1 Copyright (C) 2015 The Android Open Source Project 2 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9 It is also reproduced at the end of this file. 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 17 All material in this directory, except SlowCRTest.java and ConversionTest.java, 18 is also covered by one or both of the following: 19 20 --------------------------------------- 21 22 Copyright 1999, Silicon Graphics, Inc. -- ALL RIGHTS RESERVED 23 24 Permission is granted free of charge to copy, modify, use and distribute 25 this software provided you include the entirety of this notice in all 26 copies made. 27 28 THIS SOFTWARE IS PROVIDED ON AN AS IS BASIS, WITHOUT WARRANTY OF ANY 29 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, 30 WARRANTIES THAT THE SUBJECT SOFTWARE IS FREE OF DEFECTS, MERCHANTABLE, FIT 31 FOR A PARTICULAR PURPOSE OR NON-INFRINGING. SGI ASSUMES NO RISK AS TO THE 32 QUALITY AND PERFORMANCE OF THE SOFTWARE. SHOULD THE SOFTWARE PROVE 33 DEFECTIVE IN ANY RESPECT, SGI ASSUMES NO COST OR LIABILITY FOR ANY 34 SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES 35 AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY SUBJECT SOFTWARE IS 36 AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. 37 38 UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING, 39 WITHOUT LIMITATION, NEGLIGENCE OR STRICT LIABILITY), CONTRACT, OR 40 OTHERWISE, SHALL SGI BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, 41 INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER WITH RESPECT TO THE 42 SOFTWARE INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK 43 STOPPAGE, LOSS OF DATA, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL 44 OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SGI SHALL HAVE BEEN INFORMED OF 45 THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT 46 APPLY TO LIABILITY RESULTING FROM SGI's NEGLIGENCE TO THE EXTENT APPLICABLE 47 LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE 48 EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THAT 49 EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. 50 51 These license terms shall be governed by and construed in accordance with 52 the laws of the United States and the State of California as applied to 53 agreements entered into and to be performed entirely within California 54 between California residents. Any litigation relating to these license 55 terms shall be subject to the exclusive jurisdiction of the Federal Courts 56 of the Northern District of California (or, absent subject matter 57 jurisdiction in such courts, the courts of the State of California), with 58 venue lying exclusively in Santa Clara County, California. 59 60 -------------------------------------------- 61 62 Copyright (c) 2001-2002, Hewlett-Packard Company -- ALL RIGHTS RESERVED 63 64 Permission is granted free of charge to copy, modify, use and distribute 65 this software provided you include the entirety of this notice in all 66 copies made. 67 68 THIS SOFTWARE IS PROVIDED ON AN AS IS BASIS, WITHOUT WARRANTY OF ANY 69 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, 70 WARRANTIES THAT THE SUBJECT SOFTWARE IS FREE OF DEFECTS, MERCHANTABLE, FIT 71 FOR A PARTICULAR PURPOSE OR NON-INFRINGING. HEWLETT-PACKARD ASSUMES 72 NO RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE. 73 SHOULD THE SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, 74 HEWLETT-PACKARD ASSUMES NO COST OR LIABILITY FOR ANY 75 SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES 76 AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY SUBJECT SOFTWARE IS 77 AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. 78 79 UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING, 80 WITHOUT LIMITATION, NEGLIGENCE OR STRICT LIABILITY), CONTRACT, OR 81 OTHERWISE, SHALL HEWLETT-PACKARD BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, 82 INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER WITH RESPECT TO THE 83 SOFTWARE INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK 84 STOPPAGE, LOSS OF DATA, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL 85 OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF HEWLETT-PACKARD SHALL 86 HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. 87 THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY RESULTING 88 FROM HEWLETT-PACKARD's NEGLIGENCE TO THE EXTENT APPLICABLE 89 LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE 90 EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THAT 91 EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. 92 93 --------------------------------------------- 94 95 96 97 98 99 100 101 102 Apache License 103 Version 2.0, January 2004 104 http://www.apache.org/licenses/ 105 106 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 107 108 1. Definitions. 109 110 "License" shall mean the terms and conditions for use, reproduction, 111 and distribution as defined by Sections 1 through 9 of this document. 112 113 "Licensor" shall mean the copyright owner or entity authorized by 114 the copyright owner that is granting the License. 115 116 "Legal Entity" shall mean the union of the acting entity and all 117 other entities that control, are controlled by, or are under common 118 control with that entity. For the purposes of this definition, 119 "control" means (i) the power, direct or indirect, to cause the 120 direction or management of such entity, whether by contract or 121 otherwise, or (ii) ownership of fifty percent (50%) or more of the 122 outstanding shares, or (iii) beneficial ownership of such entity. 123 124 "You" (or "Your") shall mean an individual or Legal Entity 125 exercising permissions granted by this License. 126 127 "Source" form shall mean the preferred form for making modifications, 128 including but not limited to software source code, documentation 129 source, and configuration files. 130 131 "Object" form shall mean any form resulting from mechanical 132 transformation or translation of a Source form, including but 133 not limited to compiled object code, generated documentation, 134 and conversions to other media types. 135 136 "Work" shall mean the work of authorship, whether in Source or 137 Object form, made available under the License, as indicated by a 138 copyright notice that is included in or attached to the work 139 (an example is provided in the Appendix below). 140 141 "Derivative Works" shall mean any work, whether in Source or Object 142 form, that is based on (or derived from) the Work and for which the 143 editorial revisions, annotations, elaborations, or other modifications 144 represent, as a whole, an original work of authorship. For the purposes 145 of this License, Derivative Works shall not include works that remain 146 separable from, or merely link (or bind by name) to the interfaces of, 147 the Work and Derivative Works thereof. 148 149 "Contribution" shall mean any work of authorship, including 150 the original version of the Work and any modifications or additions 151 to that Work or Derivative Works thereof, that is intentionally 152 submitted to Licensor for inclusion in the Work by the copyright owner 153 or by an individual or Legal Entity authorized to submit on behalf of 154 the copyright owner. For the purposes of this definition, "submitted" 155 means any form of electronic, verbal, or written communication sent 156 to the Licensor or its representatives, including but not limited to 157 communication on electronic mailing lists, source code control systems, 158 and issue tracking systems that are managed by, or on behalf of, the 159 Licensor for the purpose of discussing and improving the Work, but 160 excluding communication that is conspicuously marked or otherwise 161 designated in writing by the copyright owner as "Not a Contribution." 162 163 "Contributor" shall mean Licensor and any individual or Legal Entity 164 on behalf of whom a Contribution has been received by Licensor and 165 subsequently incorporated within the Work. 166 167 2. Grant of Copyright License. Subject to the terms and conditions of 168 this License, each Contributor hereby grants to You a perpetual, 169 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 170 copyright license to reproduce, prepare Derivative Works of, 171 publicly display, publicly perform, sublicense, and distribute the 172 Work and such Derivative Works in Source or Object form. 173 174 3. Grant of Patent License. Subject to the terms and conditions of 175 this License, each Contributor hereby grants to You a perpetual, 176 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 177 (except as stated in this section) patent license to make, have made, 178 use, offer to sell, sell, import, and otherwise transfer the Work, 179 where such license applies only to those patent claims licensable 180 by such Contributor that are necessarily infringed by their 181 Contribution(s) alone or by combination of their Contribution(s) 182 with the Work to which such Contribution(s) was submitted. If You 183 institute patent litigation against any entity (including a 184 cross-claim or counterclaim in a lawsuit) alleging that the Work 185 or a Contribution incorporated within the Work constitutes direct 186 or contributory patent infringement, then any patent licenses 187 granted to You under this License for that Work shall terminate 188 as of the date such litigation is filed. 189 190 4. Redistribution. You may reproduce and distribute copies of the 191 Work or Derivative Works thereof in any medium, with or without 192 modifications, and in Source or Object form, provided that You 193 meet the following conditions: 194 195 (a) You must give any other recipients of the Work or 196 Derivative Works a copy of this License; and 197 198 (b) You must cause any modified files to carry prominent notices 199 stating that You changed the files; and 200 201 (c) You must retain, in the Source form of any Derivative Works 202 that You distribute, all copyright, patent, trademark, and 203 attribution notices from the Source form of the Work, 204 excluding those notices that do not pertain to any part of 205 the Derivative Works; and 206 207 (d) If the Work includes a "NOTICE" text file as part of its 208 distribution, then any Derivative Works that You distribute must 209 include a readable copy of the attribution notices contained 210 within such NOTICE file, excluding those notices that do not 211 pertain to any part of the Derivative Works, in at least one 212 of the following places: within a NOTICE text file distributed 213 as part of the Derivative Works; within the Source form or 214 documentation, if provided along with the Derivative Works; or, 215 within a display generated by the Derivative Works, if and 216 wherever such third-party notices normally appear. The contents 217 of the NOTICE file are for informational purposes only and 218 do not modify the License. You may add Your own attribution 219 notices within Derivative Works that You distribute, alongside 220 or as an addendum to the NOTICE text from the Work, provided 221 that such additional attribution notices cannot be construed 222 as modifying the License. 223 224 You may add Your own copyright statement to Your modifications and 225 may provide additional or different license terms and conditions 226 for use, reproduction, or distribution of Your modifications, or 227 for any such Derivative Works as a whole, provided Your use, 228 reproduction, and distribution of the Work otherwise complies with 229 the conditions stated in this License. 230 231 5. Submission of Contributions. Unless You explicitly state otherwise, 232 any Contribution intentionally submitted for inclusion in the Work 233 by You to the Licensor shall be under the terms and conditions of 234 this License, without any additional terms or conditions. 235 Notwithstanding the above, nothing herein shall supersede or modify 236 the terms of any separate license agreement you may have executed 237 with Licensor regarding such Contributions. 238 239 6. Trademarks. This License does not grant permission to use the trade 240 names, trademarks, service marks, or product names of the Licensor, 241 except as required for reasonable and customary use in describing the 242 origin of the Work and reproducing the content of the NOTICE file. 243 244 7. Disclaimer of Warranty. Unless required by applicable law or 245 agreed to in writing, Licensor provides the Work (and each 246 Contributor provides its Contributions) on an "AS IS" BASIS, 247 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 248 implied, including, without limitation, any warranties or conditions 249 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 250 PARTICULAR PURPOSE. You are solely responsible for determining the 251 appropriateness of using or redistributing the Work and assume any 252 risks associated with Your exercise of permissions under this License. 253 254 8. Limitation of Liability. In no event and under no legal theory, 255 whether in tort (including negligence), contract, or otherwise, 256 unless required by applicable law (such as deliberate and grossly 257 negligent acts) or agreed to in writing, shall any Contributor be 258 liable to You for damages, including any direct, indirect, special, 259 incidental, or consequential damages of any character arising as a 260 result of this License or out of the use or inability to use the 261 Work (including but not limited to damages for loss of goodwill, 262 work stoppage, computer failure or malfunction, or any and all 263 other commercial damages or losses), even if such Contributor 264 has been advised of the possibility of such damages. 265 266 9. Accepting Warranty or Additional Liability. While redistributing 267 the Work or Derivative Works thereof, You may choose to offer, 268 and charge a fee for, acceptance of support, warranty, indemnity, 269 or other liability obligations and/or rights consistent with this 270 License. However, in accepting such obligations, You may act only 271 on Your own behalf and on Your sole responsibility, not on behalf 272 of any other Contributor, and only if You agree to indemnify, 273 defend, and hold each Contributor harmless for any liability 274 incurred by, or claims asserted against, such Contributor by reason 275 of your accepting any such warranty or additional liability. 276 277 END OF TERMS AND CONDITIONS 278