12564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
22564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   Copyright (c) 2005-2008, The Android Open Source Project
32564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
42564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   Licensed under the Apache License, Version 2.0 (the "License");
52564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   you may not use this file except in compliance with the License.
62564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
72564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   Unless required by applicable law or agreed to in writing, software
82564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   distributed under the License is distributed on an "AS IS" BASIS,
92564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
102564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   See the License for the specific language governing permissions and
112564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   limitations under the License.
122564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
132564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
142564202072904392d8cdb756af1566a7bd633c04Christopher Wiley                                 Apache License
152564202072904392d8cdb756af1566a7bd633c04Christopher Wiley                           Version 2.0, January 2004
162564202072904392d8cdb756af1566a7bd633c04Christopher Wiley                        http://www.apache.org/licenses/
172564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
182564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
192564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
202564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   1. Definitions.
212564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
222564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      "License" shall mean the terms and conditions for use, reproduction,
232564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      and distribution as defined by Sections 1 through 9 of this document.
242564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
252564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      "Licensor" shall mean the copyright owner or entity authorized by
262564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      the copyright owner that is granting the License.
272564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
282564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      "Legal Entity" shall mean the union of the acting entity and all
292564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      other entities that control, are controlled by, or are under common
302564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      control with that entity. For the purposes of this definition,
312564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      "control" means (i) the power, direct or indirect, to cause the
322564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      direction or management of such entity, whether by contract or
332564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      otherwise, or (ii) ownership of fifty percent (50%) or more of the
342564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      outstanding shares, or (iii) beneficial ownership of such entity.
352564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
362564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      "You" (or "Your") shall mean an individual or Legal Entity
372564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      exercising permissions granted by this License.
382564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
392564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      "Source" form shall mean the preferred form for making modifications,
402564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      including but not limited to software source code, documentation
412564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      source, and configuration files.
422564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
432564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      "Object" form shall mean any form resulting from mechanical
442564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      transformation or translation of a Source form, including but
452564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      not limited to compiled object code, generated documentation,
462564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      and conversions to other media types.
472564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
482564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      "Work" shall mean the work of authorship, whether in Source or
492564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      Object form, made available under the License, as indicated by a
502564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      copyright notice that is included in or attached to the work
512564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      (an example is provided in the Appendix below).
522564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
532564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      "Derivative Works" shall mean any work, whether in Source or Object
542564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      form, that is based on (or derived from) the Work and for which the
552564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      editorial revisions, annotations, elaborations, or other modifications
562564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      represent, as a whole, an original work of authorship. For the purposes
572564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      of this License, Derivative Works shall not include works that remain
582564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      separable from, or merely link (or bind by name) to the interfaces of,
592564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      the Work and Derivative Works thereof.
602564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
612564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      "Contribution" shall mean any work of authorship, including
622564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      the original version of the Work and any modifications or additions
632564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      to that Work or Derivative Works thereof, that is intentionally
642564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      submitted to Licensor for inclusion in the Work by the copyright owner
652564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      or by an individual or Legal Entity authorized to submit on behalf of
662564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      the copyright owner. For the purposes of this definition, "submitted"
672564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      means any form of electronic, verbal, or written communication sent
682564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      to the Licensor or its representatives, including but not limited to
692564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      communication on electronic mailing lists, source code control systems,
702564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      and issue tracking systems that are managed by, or on behalf of, the
712564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      Licensor for the purpose of discussing and improving the Work, but
722564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      excluding communication that is conspicuously marked or otherwise
732564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      designated in writing by the copyright owner as "Not a Contribution."
742564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
752564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      "Contributor" shall mean Licensor and any individual or Legal Entity
762564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      on behalf of whom a Contribution has been received by Licensor and
772564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      subsequently incorporated within the Work.
782564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
792564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   2. Grant of Copyright License. Subject to the terms and conditions of
802564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      this License, each Contributor hereby grants to You a perpetual,
812564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
822564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      copyright license to reproduce, prepare Derivative Works of,
832564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      publicly display, publicly perform, sublicense, and distribute the
842564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      Work and such Derivative Works in Source or Object form.
852564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
862564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   3. Grant of Patent License. Subject to the terms and conditions of
872564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      this License, each Contributor hereby grants to You a perpetual,
882564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
892564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      (except as stated in this section) patent license to make, have made,
902564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      use, offer to sell, sell, import, and otherwise transfer the Work,
912564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      where such license applies only to those patent claims licensable
922564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      by such Contributor that are necessarily infringed by their
932564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      Contribution(s) alone or by combination of their Contribution(s)
942564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      with the Work to which such Contribution(s) was submitted. If You
952564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      institute patent litigation against any entity (including a
962564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      cross-claim or counterclaim in a lawsuit) alleging that the Work
972564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      or a Contribution incorporated within the Work constitutes direct
982564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      or contributory patent infringement, then any patent licenses
992564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      granted to You under this License for that Work shall terminate
1002564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      as of the date such litigation is filed.
1012564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
1022564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   4. Redistribution. You may reproduce and distribute copies of the
1032564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      Work or Derivative Works thereof in any medium, with or without
1042564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      modifications, and in Source or Object form, provided that You
1052564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      meet the following conditions:
1062564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
1072564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      (a) You must give any other recipients of the Work or
1082564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          Derivative Works a copy of this License; and
1092564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
1102564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      (b) You must cause any modified files to carry prominent notices
1112564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          stating that You changed the files; and
1122564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
1132564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      (c) You must retain, in the Source form of any Derivative Works
1142564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          that You distribute, all copyright, patent, trademark, and
1152564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          attribution notices from the Source form of the Work,
1162564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          excluding those notices that do not pertain to any part of
1172564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          the Derivative Works; and
1182564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
1192564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      (d) If the Work includes a "NOTICE" text file as part of its
1202564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          distribution, then any Derivative Works that You distribute must
1212564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          include a readable copy of the attribution notices contained
1222564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          within such NOTICE file, excluding those notices that do not
1232564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          pertain to any part of the Derivative Works, in at least one
1242564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          of the following places: within a NOTICE text file distributed
1252564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          as part of the Derivative Works; within the Source form or
1262564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          documentation, if provided along with the Derivative Works; or,
1272564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          within a display generated by the Derivative Works, if and
1282564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          wherever such third-party notices normally appear. The contents
1292564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          of the NOTICE file are for informational purposes only and
1302564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          do not modify the License. You may add Your own attribution
1312564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          notices within Derivative Works that You distribute, alongside
1322564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          or as an addendum to the NOTICE text from the Work, provided
1332564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          that such additional attribution notices cannot be construed
1342564202072904392d8cdb756af1566a7bd633c04Christopher Wiley          as modifying the License.
1352564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
1362564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      You may add Your own copyright statement to Your modifications and
1372564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      may provide additional or different license terms and conditions
1382564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      for use, reproduction, or distribution of Your modifications, or
1392564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      for any such Derivative Works as a whole, provided Your use,
1402564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      reproduction, and distribution of the Work otherwise complies with
1412564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      the conditions stated in this License.
1422564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
1432564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   5. Submission of Contributions. Unless You explicitly state otherwise,
1442564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      any Contribution intentionally submitted for inclusion in the Work
1452564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      by You to the Licensor shall be under the terms and conditions of
1462564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      this License, without any additional terms or conditions.
1472564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      Notwithstanding the above, nothing herein shall supersede or modify
1482564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      the terms of any separate license agreement you may have executed
1492564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      with Licensor regarding such Contributions.
1502564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
1512564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   6. Trademarks. This License does not grant permission to use the trade
1522564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      names, trademarks, service marks, or product names of the Licensor,
1532564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      except as required for reasonable and customary use in describing the
1542564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      origin of the Work and reproducing the content of the NOTICE file.
1552564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
1562564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   7. Disclaimer of Warranty. Unless required by applicable law or
1572564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      agreed to in writing, Licensor provides the Work (and each
1582564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      Contributor provides its Contributions) on an "AS IS" BASIS,
1592564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
1602564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      implied, including, without limitation, any warranties or conditions
1612564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
1622564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      PARTICULAR PURPOSE. You are solely responsible for determining the
1632564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      appropriateness of using or redistributing the Work and assume any
1642564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      risks associated with Your exercise of permissions under this License.
1652564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
1662564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   8. Limitation of Liability. In no event and under no legal theory,
1672564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      whether in tort (including negligence), contract, or otherwise,
1682564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      unless required by applicable law (such as deliberate and grossly
1692564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      negligent acts) or agreed to in writing, shall any Contributor be
1702564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      liable to You for damages, including any direct, indirect, special,
1712564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      incidental, or consequential damages of any character arising as a
1722564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      result of this License or out of the use or inability to use the
1732564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      Work (including but not limited to damages for loss of goodwill,
1742564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      work stoppage, computer failure or malfunction, or any and all
1752564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      other commercial damages or losses), even if such Contributor
1762564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      has been advised of the possibility of such damages.
1772564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
1782564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   9. Accepting Warranty or Additional Liability. While redistributing
1792564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      the Work or Derivative Works thereof, You may choose to offer,
1802564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      and charge a fee for, acceptance of support, warranty, indemnity,
1812564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      or other liability obligations and/or rights consistent with this
1822564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      License. However, in accepting such obligations, You may act only
1832564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      on Your own behalf and on Your sole responsibility, not on behalf
1842564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      of any other Contributor, and only if You agree to indemnify,
1852564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      defend, and hold each Contributor harmless for any liability
1862564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      incurred by, or claims asserted against, such Contributor by reason
1872564202072904392d8cdb756af1566a7bd633c04Christopher Wiley      of your accepting any such warranty or additional liability.
1882564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
1892564202072904392d8cdb756af1566a7bd633c04Christopher Wiley   END OF TERMS AND CONDITIONS
1902564202072904392d8cdb756af1566a7bd633c04Christopher Wiley
191