14a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 24a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate Copyright (c) 2011, The Android Open Source Project 34a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 44a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate Licensed under the Apache License, Version 2.0 (the "License"); 54a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate you may not use this file except in compliance with the License. 64a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 74a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate Unless required by applicable law or agreed to in writing, software 84a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate distributed under the License is distributed on an "AS IS" BASIS, 94a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 104a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate See the License for the specific language governing permissions and 114a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate limitations under the License. 124a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 134a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 144a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate Apache License 154a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate Version 2.0, January 2004 164a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate http://www.apache.org/licenses/ 174a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 184a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 194a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 204a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 1. Definitions. 214a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 224a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate "License" shall mean the terms and conditions for use, reproduction, 234a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate and distribution as defined by Sections 1 through 9 of this document. 244a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 254a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate "Licensor" shall mean the copyright owner or entity authorized by 264a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate the copyright owner that is granting the License. 274a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 284a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate "Legal Entity" shall mean the union of the acting entity and all 294a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate other entities that control, are controlled by, or are under common 304a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate control with that entity. For the purposes of this definition, 314a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate "control" means (i) the power, direct or indirect, to cause the 324a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate direction or management of such entity, whether by contract or 334a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate otherwise, or (ii) ownership of fifty percent (50%) or more of the 344a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate outstanding shares, or (iii) beneficial ownership of such entity. 354a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 364a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate "You" (or "Your") shall mean an individual or Legal Entity 374a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate exercising permissions granted by this License. 384a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 394a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate "Source" form shall mean the preferred form for making modifications, 404a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate including but not limited to software source code, documentation 414a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate source, and configuration files. 424a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 434a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate "Object" form shall mean any form resulting from mechanical 444a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate transformation or translation of a Source form, including but 454a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate not limited to compiled object code, generated documentation, 464a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate and conversions to other media types. 474a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 484a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate "Work" shall mean the work of authorship, whether in Source or 494a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate Object form, made available under the License, as indicated by a 504a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate copyright notice that is included in or attached to the work 514a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate (an example is provided in the Appendix below). 524a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 534a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate "Derivative Works" shall mean any work, whether in Source or Object 544a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate form, that is based on (or derived from) the Work and for which the 554a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate editorial revisions, annotations, elaborations, or other modifications 564a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate represent, as a whole, an original work of authorship. For the purposes 574a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate of this License, Derivative Works shall not include works that remain 584a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate separable from, or merely link (or bind by name) to the interfaces of, 594a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate the Work and Derivative Works thereof. 604a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 614a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate "Contribution" shall mean any work of authorship, including 624a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate the original version of the Work and any modifications or additions 634a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate to that Work or Derivative Works thereof, that is intentionally 644a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate submitted to Licensor for inclusion in the Work by the copyright owner 654a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate or by an individual or Legal Entity authorized to submit on behalf of 664a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate the copyright owner. For the purposes of this definition, "submitted" 674a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate means any form of electronic, verbal, or written communication sent 684a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate to the Licensor or its representatives, including but not limited to 694a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate communication on electronic mailing lists, source code control systems, 704a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate and issue tracking systems that are managed by, or on behalf of, the 714a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate Licensor for the purpose of discussing and improving the Work, but 724a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate excluding communication that is conspicuously marked or otherwise 734a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate designated in writing by the copyright owner as "Not a Contribution." 744a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 754a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate "Contributor" shall mean Licensor and any individual or Legal Entity 764a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate on behalf of whom a Contribution has been received by Licensor and 774a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate subsequently incorporated within the Work. 784a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 794a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 2. Grant of Copyright License. Subject to the terms and conditions of 804a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate this License, each Contributor hereby grants to You a perpetual, 814a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate worldwide, non-exclusive, no-charge, royalty-free, irrevocable 824a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate copyright license to reproduce, prepare Derivative Works of, 834a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate publicly display, publicly perform, sublicense, and distribute the 844a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate Work and such Derivative Works in Source or Object form. 854a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 864a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 3. Grant of Patent License. Subject to the terms and conditions of 874a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate this License, each Contributor hereby grants to You a perpetual, 884a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate worldwide, non-exclusive, no-charge, royalty-free, irrevocable 894a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate (except as stated in this section) patent license to make, have made, 904a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate use, offer to sell, sell, import, and otherwise transfer the Work, 914a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate where such license applies only to those patent claims licensable 924a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate by such Contributor that are necessarily infringed by their 934a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate Contribution(s) alone or by combination of their Contribution(s) 944a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate with the Work to which such Contribution(s) was submitted. If You 954a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate institute patent litigation against any entity (including a 964a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate cross-claim or counterclaim in a lawsuit) alleging that the Work 974a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate or a Contribution incorporated within the Work constitutes direct 984a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate or contributory patent infringement, then any patent licenses 994a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate granted to You under this License for that Work shall terminate 1004a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate as of the date such litigation is filed. 1014a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 1024a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 4. Redistribution. You may reproduce and distribute copies of the 1034a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate Work or Derivative Works thereof in any medium, with or without 1044a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate modifications, and in Source or Object form, provided that You 1054a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate meet the following conditions: 1064a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 1074a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate (a) You must give any other recipients of the Work or 1084a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate Derivative Works a copy of this License; and 1094a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 1104a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate (b) You must cause any modified files to carry prominent notices 1114a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate stating that You changed the files; and 1124a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 1134a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate (c) You must retain, in the Source form of any Derivative Works 1144a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate that You distribute, all copyright, patent, trademark, and 1154a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate attribution notices from the Source form of the Work, 1164a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate excluding those notices that do not pertain to any part of 1174a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate the Derivative Works; and 1184a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 1194a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate (d) If the Work includes a "NOTICE" text file as part of its 1204a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate distribution, then any Derivative Works that You distribute must 1214a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate include a readable copy of the attribution notices contained 1224a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate within such NOTICE file, excluding those notices that do not 1234a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate pertain to any part of the Derivative Works, in at least one 1244a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate of the following places: within a NOTICE text file distributed 1254a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate as part of the Derivative Works; within the Source form or 1264a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate documentation, if provided along with the Derivative Works; or, 1274a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate within a display generated by the Derivative Works, if and 1284a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate wherever such third-party notices normally appear. The contents 1294a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate of the NOTICE file are for informational purposes only and 1304a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate do not modify the License. You may add Your own attribution 1314a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate notices within Derivative Works that You distribute, alongside 1324a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate or as an addendum to the NOTICE text from the Work, provided 1334a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate that such additional attribution notices cannot be construed 1344a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate as modifying the License. 1354a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 1364a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate You may add Your own copyright statement to Your modifications and 1374a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate may provide additional or different license terms and conditions 1384a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate for use, reproduction, or distribution of Your modifications, or 1394a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate for any such Derivative Works as a whole, provided Your use, 1404a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate reproduction, and distribution of the Work otherwise complies with 1414a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate the conditions stated in this License. 1424a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 1434a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 5. Submission of Contributions. Unless You explicitly state otherwise, 1444a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate any Contribution intentionally submitted for inclusion in the Work 1454a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate by You to the Licensor shall be under the terms and conditions of 1464a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate this License, without any additional terms or conditions. 1474a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate Notwithstanding the above, nothing herein shall supersede or modify 1484a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate the terms of any separate license agreement you may have executed 1494a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate with Licensor regarding such Contributions. 1504a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 1514a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 6. Trademarks. This License does not grant permission to use the trade 1524a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate names, trademarks, service marks, or product names of the Licensor, 1534a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate except as required for reasonable and customary use in describing the 1544a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate origin of the Work and reproducing the content of the NOTICE file. 1554a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 1564a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 7. Disclaimer of Warranty. Unless required by applicable law or 1574a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate agreed to in writing, Licensor provides the Work (and each 1584a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate Contributor provides its Contributions) on an "AS IS" BASIS, 1594a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 1604a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate implied, including, without limitation, any warranties or conditions 1614a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 1624a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate PARTICULAR PURPOSE. You are solely responsible for determining the 1634a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate appropriateness of using or redistributing the Work and assume any 1644a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate risks associated with Your exercise of permissions under this License. 1654a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 1664a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 8. Limitation of Liability. In no event and under no legal theory, 1674a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate whether in tort (including negligence), contract, or otherwise, 1684a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate unless required by applicable law (such as deliberate and grossly 1694a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate negligent acts) or agreed to in writing, shall any Contributor be 1704a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate liable to You for damages, including any direct, indirect, special, 1714a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate incidental, or consequential damages of any character arising as a 1724a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate result of this License or out of the use or inability to use the 1734a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate Work (including but not limited to damages for loss of goodwill, 1744a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate work stoppage, computer failure or malfunction, or any and all 1754a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate other commercial damages or losses), even if such Contributor 1764a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate has been advised of the possibility of such damages. 1774a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 1784a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 9. Accepting Warranty or Additional Liability. While redistributing 1794a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate the Work or Derivative Works thereof, You may choose to offer, 1804a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate and charge a fee for, acceptance of support, warranty, indemnity, 1814a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate or other liability obligations and/or rights consistent with this 1824a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate License. However, in accepting such obligations, You may act only 1834a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate on Your own behalf and on Your sole responsibility, not on behalf 1844a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate of any other Contributor, and only if You agree to indemnify, 1854a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate defend, and hold each Contributor harmless for any liability 1864a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate incurred by, or claims asserted against, such Contributor by reason 1874a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate of your accepting any such warranty or additional liability. 1884a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 1894a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate END OF TERMS AND CONDITIONS 1904a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 191