13d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 23d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong Copyright (c) 2005-2008, The Android Open Source Project 33d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 43d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong Licensed under the Apache License, Version 2.0 (the "License"); 53d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong you may not use this file except in compliance with the License. 63d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 73d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong Unless required by applicable law or agreed to in writing, software 83d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong distributed under the License is distributed on an "AS IS" BASIS, 93d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 103d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong See the License for the specific language governing permissions and 113d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong limitations under the License. 123d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 133d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 143d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong Apache License 153d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong Version 2.0, January 2004 163d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong http://www.apache.org/licenses/ 173d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 183d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 193d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 203d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 1. Definitions. 213d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 223d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong "License" shall mean the terms and conditions for use, reproduction, 233d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong and distribution as defined by Sections 1 through 9 of this document. 243d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 253d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong "Licensor" shall mean the copyright owner or entity authorized by 263d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong the copyright owner that is granting the License. 273d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 283d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong "Legal Entity" shall mean the union of the acting entity and all 293d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong other entities that control, are controlled by, or are under common 303d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong control with that entity. For the purposes of this definition, 313d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong "control" means (i) the power, direct or indirect, to cause the 323d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong direction or management of such entity, whether by contract or 333d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong otherwise, or (ii) ownership of fifty percent (50%) or more of the 343d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong outstanding shares, or (iii) beneficial ownership of such entity. 353d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 363d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong "You" (or "Your") shall mean an individual or Legal Entity 373d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong exercising permissions granted by this License. 383d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 393d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong "Source" form shall mean the preferred form for making modifications, 403d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong including but not limited to software source code, documentation 413d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong source, and configuration files. 423d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 433d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong "Object" form shall mean any form resulting from mechanical 443d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong transformation or translation of a Source form, including but 453d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong not limited to compiled object code, generated documentation, 463d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong and conversions to other media types. 473d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 483d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong "Work" shall mean the work of authorship, whether in Source or 493d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong Object form, made available under the License, as indicated by a 503d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong copyright notice that is included in or attached to the work 513d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong (an example is provided in the Appendix below). 523d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 533d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong "Derivative Works" shall mean any work, whether in Source or Object 543d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong form, that is based on (or derived from) the Work and for which the 553d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong editorial revisions, annotations, elaborations, or other modifications 563d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong represent, as a whole, an original work of authorship. For the purposes 573d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong of this License, Derivative Works shall not include works that remain 583d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong separable from, or merely link (or bind by name) to the interfaces of, 593d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong the Work and Derivative Works thereof. 603d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 613d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong "Contribution" shall mean any work of authorship, including 623d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong the original version of the Work and any modifications or additions 633d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong to that Work or Derivative Works thereof, that is intentionally 643d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong submitted to Licensor for inclusion in the Work by the copyright owner 653d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong or by an individual or Legal Entity authorized to submit on behalf of 663d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong the copyright owner. For the purposes of this definition, "submitted" 673d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong means any form of electronic, verbal, or written communication sent 683d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong to the Licensor or its representatives, including but not limited to 693d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong communication on electronic mailing lists, source code control systems, 703d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong and issue tracking systems that are managed by, or on behalf of, the 713d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong Licensor for the purpose of discussing and improving the Work, but 723d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong excluding communication that is conspicuously marked or otherwise 733d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong designated in writing by the copyright owner as "Not a Contribution." 743d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 753d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong "Contributor" shall mean Licensor and any individual or Legal Entity 763d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong on behalf of whom a Contribution has been received by Licensor and 773d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong subsequently incorporated within the Work. 783d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 793d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 2. Grant of Copyright License. Subject to the terms and conditions of 803d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong this License, each Contributor hereby grants to You a perpetual, 813d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong worldwide, non-exclusive, no-charge, royalty-free, irrevocable 823d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong copyright license to reproduce, prepare Derivative Works of, 833d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong publicly display, publicly perform, sublicense, and distribute the 843d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong Work and such Derivative Works in Source or Object form. 853d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 863d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 3. Grant of Patent License. Subject to the terms and conditions of 873d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong this License, each Contributor hereby grants to You a perpetual, 883d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong worldwide, non-exclusive, no-charge, royalty-free, irrevocable 893d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong (except as stated in this section) patent license to make, have made, 903d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong use, offer to sell, sell, import, and otherwise transfer the Work, 913d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong where such license applies only to those patent claims licensable 923d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong by such Contributor that are necessarily infringed by their 933d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong Contribution(s) alone or by combination of their Contribution(s) 943d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong with the Work to which such Contribution(s) was submitted. If You 953d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong institute patent litigation against any entity (including a 963d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong cross-claim or counterclaim in a lawsuit) alleging that the Work 973d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong or a Contribution incorporated within the Work constitutes direct 983d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong or contributory patent infringement, then any patent licenses 993d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong granted to You under this License for that Work shall terminate 1003d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong as of the date such litigation is filed. 1013d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 1023d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 4. Redistribution. You may reproduce and distribute copies of the 1033d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong Work or Derivative Works thereof in any medium, with or without 1043d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong modifications, and in Source or Object form, provided that You 1053d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong meet the following conditions: 1063d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 1073d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong (a) You must give any other recipients of the Work or 1083d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong Derivative Works a copy of this License; and 1093d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 1103d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong (b) You must cause any modified files to carry prominent notices 1113d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong stating that You changed the files; and 1123d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 1133d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong (c) You must retain, in the Source form of any Derivative Works 1143d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong that You distribute, all copyright, patent, trademark, and 1153d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong attribution notices from the Source form of the Work, 1163d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong excluding those notices that do not pertain to any part of 1173d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong the Derivative Works; and 1183d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 1193d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong (d) If the Work includes a "NOTICE" text file as part of its 1203d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong distribution, then any Derivative Works that You distribute must 1213d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong include a readable copy of the attribution notices contained 1223d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong within such NOTICE file, excluding those notices that do not 1233d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong pertain to any part of the Derivative Works, in at least one 1243d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong of the following places: within a NOTICE text file distributed 1253d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong as part of the Derivative Works; within the Source form or 1263d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong documentation, if provided along with the Derivative Works; or, 1273d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong within a display generated by the Derivative Works, if and 1283d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong wherever such third-party notices normally appear. The contents 1293d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong of the NOTICE file are for informational purposes only and 1303d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong do not modify the License. You may add Your own attribution 1313d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong notices within Derivative Works that You distribute, alongside 1323d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong or as an addendum to the NOTICE text from the Work, provided 1333d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong that such additional attribution notices cannot be construed 1343d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong as modifying the License. 1353d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 1363d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong You may add Your own copyright statement to Your modifications and 1373d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong may provide additional or different license terms and conditions 1383d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong for use, reproduction, or distribution of Your modifications, or 1393d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong for any such Derivative Works as a whole, provided Your use, 1403d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong reproduction, and distribution of the Work otherwise complies with 1413d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong the conditions stated in this License. 1423d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 1433d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 5. Submission of Contributions. Unless You explicitly state otherwise, 1443d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong any Contribution intentionally submitted for inclusion in the Work 1453d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong by You to the Licensor shall be under the terms and conditions of 1463d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong this License, without any additional terms or conditions. 1473d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong Notwithstanding the above, nothing herein shall supersede or modify 1483d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong the terms of any separate license agreement you may have executed 1493d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong with Licensor regarding such Contributions. 1503d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 1513d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 6. Trademarks. This License does not grant permission to use the trade 1523d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong names, trademarks, service marks, or product names of the Licensor, 1533d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong except as required for reasonable and customary use in describing the 1543d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong origin of the Work and reproducing the content of the NOTICE file. 1553d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 1563d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 7. Disclaimer of Warranty. Unless required by applicable law or 1573d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong agreed to in writing, Licensor provides the Work (and each 1583d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong Contributor provides its Contributions) on an "AS IS" BASIS, 1593d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 1603d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong implied, including, without limitation, any warranties or conditions 1613d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 1623d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong PARTICULAR PURPOSE. You are solely responsible for determining the 1633d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong appropriateness of using or redistributing the Work and assume any 1643d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong risks associated with Your exercise of permissions under this License. 1653d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 1663d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 8. Limitation of Liability. In no event and under no legal theory, 1673d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong whether in tort (including negligence), contract, or otherwise, 1683d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong unless required by applicable law (such as deliberate and grossly 1693d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong negligent acts) or agreed to in writing, shall any Contributor be 1703d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong liable to You for damages, including any direct, indirect, special, 1713d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong incidental, or consequential damages of any character arising as a 1723d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong result of this License or out of the use or inability to use the 1733d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong Work (including but not limited to damages for loss of goodwill, 1743d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong work stoppage, computer failure or malfunction, or any and all 1753d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong other commercial damages or losses), even if such Contributor 1763d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong has been advised of the possibility of such damages. 1773d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 1783d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 9. Accepting Warranty or Additional Liability. While redistributing 1793d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong the Work or Derivative Works thereof, You may choose to offer, 1803d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong and charge a fee for, acceptance of support, warranty, indemnity, 1813d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong or other liability obligations and/or rights consistent with this 1823d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong License. However, in accepting such obligations, You may act only 1833d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong on Your own behalf and on Your sole responsibility, not on behalf 1843d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong of any other Contributor, and only if You agree to indemnify, 1853d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong defend, and hold each Contributor harmless for any liability 1863d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong incurred by, or claims asserted against, such Contributor by reason 1873d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong of your accepting any such warranty or additional liability. 1883d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 1893d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong END OF TERMS AND CONDITIONS 1903d51d5cb53cc630709a0ba78d0e60501a675f2d5James Dong 191