1202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
2202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   Copyright (c) 2008-2009, The Android Open Source Project
3202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
4202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   Licensed under the Apache License, Version 2.0 (the "License");
5202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   you may not use this file except in compliance with the License.
6202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
7202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   Unless required by applicable law or agreed to in writing, software
8202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   distributed under the License is distributed on an "AS IS" BASIS,
9202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   See the License for the specific language governing permissions and
11202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   limitations under the License.
12202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
13202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
14202a77d28ac251545f6f998a974690212309b927Iliyan Malchev                                 Apache License
15202a77d28ac251545f6f998a974690212309b927Iliyan Malchev                           Version 2.0, January 2004
16202a77d28ac251545f6f998a974690212309b927Iliyan Malchev                        http://www.apache.org/licenses/
17202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
18202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
19202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
20202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   1. Definitions.
21202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
22202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      "License" shall mean the terms and conditions for use, reproduction,
23202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      and distribution as defined by Sections 1 through 9 of this document.
24202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
25202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      "Licensor" shall mean the copyright owner or entity authorized by
26202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      the copyright owner that is granting the License.
27202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
28202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      "Legal Entity" shall mean the union of the acting entity and all
29202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      other entities that control, are controlled by, or are under common
30202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      control with that entity. For the purposes of this definition,
31202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      "control" means (i) the power, direct or indirect, to cause the
32202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      direction or management of such entity, whether by contract or
33202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      otherwise, or (ii) ownership of fifty percent (50%) or more of the
34202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      outstanding shares, or (iii) beneficial ownership of such entity.
35202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
36202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      "You" (or "Your") shall mean an individual or Legal Entity
37202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      exercising permissions granted by this License.
38202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
39202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      "Source" form shall mean the preferred form for making modifications,
40202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      including but not limited to software source code, documentation
41202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      source, and configuration files.
42202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
43202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      "Object" form shall mean any form resulting from mechanical
44202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      transformation or translation of a Source form, including but
45202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      not limited to compiled object code, generated documentation,
46202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      and conversions to other media types.
47202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
48202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      "Work" shall mean the work of authorship, whether in Source or
49202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      Object form, made available under the License, as indicated by a
50202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      copyright notice that is included in or attached to the work
51202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      (an example is provided in the Appendix below).
52202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
53202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      "Derivative Works" shall mean any work, whether in Source or Object
54202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      form, that is based on (or derived from) the Work and for which the
55202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      editorial revisions, annotations, elaborations, or other modifications
56202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      represent, as a whole, an original work of authorship. For the purposes
57202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      of this License, Derivative Works shall not include works that remain
58202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      separable from, or merely link (or bind by name) to the interfaces of,
59202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      the Work and Derivative Works thereof.
60202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
61202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      "Contribution" shall mean any work of authorship, including
62202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      the original version of the Work and any modifications or additions
63202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      to that Work or Derivative Works thereof, that is intentionally
64202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      submitted to Licensor for inclusion in the Work by the copyright owner
65202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      or by an individual or Legal Entity authorized to submit on behalf of
66202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      the copyright owner. For the purposes of this definition, "submitted"
67202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      means any form of electronic, verbal, or written communication sent
68202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      to the Licensor or its representatives, including but not limited to
69202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      communication on electronic mailing lists, source code control systems,
70202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      and issue tracking systems that are managed by, or on behalf of, the
71202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      Licensor for the purpose of discussing and improving the Work, but
72202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      excluding communication that is conspicuously marked or otherwise
73202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      designated in writing by the copyright owner as "Not a Contribution."
74202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
75202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      "Contributor" shall mean Licensor and any individual or Legal Entity
76202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      on behalf of whom a Contribution has been received by Licensor and
77202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      subsequently incorporated within the Work.
78202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
79202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   2. Grant of Copyright License. Subject to the terms and conditions of
80202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      this License, each Contributor hereby grants to You a perpetual,
81202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
82202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      copyright license to reproduce, prepare Derivative Works of,
83202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      publicly display, publicly perform, sublicense, and distribute the
84202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      Work and such Derivative Works in Source or Object form.
85202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
86202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   3. Grant of Patent License. Subject to the terms and conditions of
87202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      this License, each Contributor hereby grants to You a perpetual,
88202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
89202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      (except as stated in this section) patent license to make, have made,
90202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      use, offer to sell, sell, import, and otherwise transfer the Work,
91202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      where such license applies only to those patent claims licensable
92202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      by such Contributor that are necessarily infringed by their
93202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      Contribution(s) alone or by combination of their Contribution(s)
94202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      with the Work to which such Contribution(s) was submitted. If You
95202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      institute patent litigation against any entity (including a
96202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      cross-claim or counterclaim in a lawsuit) alleging that the Work
97202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      or a Contribution incorporated within the Work constitutes direct
98202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      or contributory patent infringement, then any patent licenses
99202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      granted to You under this License for that Work shall terminate
100202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      as of the date such litigation is filed.
101202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
102202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   4. Redistribution. You may reproduce and distribute copies of the
103202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      Work or Derivative Works thereof in any medium, with or without
104202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      modifications, and in Source or Object form, provided that You
105202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      meet the following conditions:
106202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
107202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      (a) You must give any other recipients of the Work or
108202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          Derivative Works a copy of this License; and
109202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
110202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      (b) You must cause any modified files to carry prominent notices
111202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          stating that You changed the files; and
112202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
113202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      (c) You must retain, in the Source form of any Derivative Works
114202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          that You distribute, all copyright, patent, trademark, and
115202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          attribution notices from the Source form of the Work,
116202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          excluding those notices that do not pertain to any part of
117202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          the Derivative Works; and
118202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
119202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      (d) If the Work includes a "NOTICE" text file as part of its
120202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          distribution, then any Derivative Works that You distribute must
121202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          include a readable copy of the attribution notices contained
122202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          within such NOTICE file, excluding those notices that do not
123202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          pertain to any part of the Derivative Works, in at least one
124202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          of the following places: within a NOTICE text file distributed
125202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          as part of the Derivative Works; within the Source form or
126202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          documentation, if provided along with the Derivative Works; or,
127202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          within a display generated by the Derivative Works, if and
128202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          wherever such third-party notices normally appear. The contents
129202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          of the NOTICE file are for informational purposes only and
130202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          do not modify the License. You may add Your own attribution
131202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          notices within Derivative Works that You distribute, alongside
132202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          or as an addendum to the NOTICE text from the Work, provided
133202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          that such additional attribution notices cannot be construed
134202a77d28ac251545f6f998a974690212309b927Iliyan Malchev          as modifying the License.
135202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
136202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      You may add Your own copyright statement to Your modifications and
137202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      may provide additional or different license terms and conditions
138202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      for use, reproduction, or distribution of Your modifications, or
139202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      for any such Derivative Works as a whole, provided Your use,
140202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      reproduction, and distribution of the Work otherwise complies with
141202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      the conditions stated in this License.
142202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
143202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   5. Submission of Contributions. Unless You explicitly state otherwise,
144202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      any Contribution intentionally submitted for inclusion in the Work
145202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      by You to the Licensor shall be under the terms and conditions of
146202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      this License, without any additional terms or conditions.
147202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      Notwithstanding the above, nothing herein shall supersede or modify
148202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      the terms of any separate license agreement you may have executed
149202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      with Licensor regarding such Contributions.
150202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
151202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   6. Trademarks. This License does not grant permission to use the trade
152202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      names, trademarks, service marks, or product names of the Licensor,
153202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      except as required for reasonable and customary use in describing the
154202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      origin of the Work and reproducing the content of the NOTICE file.
155202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
156202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   7. Disclaimer of Warranty. Unless required by applicable law or
157202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      agreed to in writing, Licensor provides the Work (and each
158202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      Contributor provides its Contributions) on an "AS IS" BASIS,
159202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
160202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      implied, including, without limitation, any warranties or conditions
161202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
162202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      PARTICULAR PURPOSE. You are solely responsible for determining the
163202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      appropriateness of using or redistributing the Work and assume any
164202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      risks associated with Your exercise of permissions under this License.
165202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
166202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   8. Limitation of Liability. In no event and under no legal theory,
167202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      whether in tort (including negligence), contract, or otherwise,
168202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      unless required by applicable law (such as deliberate and grossly
169202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      negligent acts) or agreed to in writing, shall any Contributor be
170202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      liable to You for damages, including any direct, indirect, special,
171202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      incidental, or consequential damages of any character arising as a
172202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      result of this License or out of the use or inability to use the
173202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      Work (including but not limited to damages for loss of goodwill,
174202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      work stoppage, computer failure or malfunction, or any and all
175202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      other commercial damages or losses), even if such Contributor
176202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      has been advised of the possibility of such damages.
177202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
178202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   9. Accepting Warranty or Additional Liability. While redistributing
179202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      the Work or Derivative Works thereof, You may choose to offer,
180202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      and charge a fee for, acceptance of support, warranty, indemnity,
181202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      or other liability obligations and/or rights consistent with this
182202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      License. However, in accepting such obligations, You may act only
183202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      on Your own behalf and on Your sole responsibility, not on behalf
184202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      of any other Contributor, and only if You agree to indemnify,
185202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      defend, and hold each Contributor harmless for any liability
186202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      incurred by, or claims asserted against, such Contributor by reason
187202a77d28ac251545f6f998a974690212309b927Iliyan Malchev      of your accepting any such warranty or additional liability.
188202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
189202a77d28ac251545f6f998a974690212309b927Iliyan Malchev   END OF TERMS AND CONDITIONS
190202a77d28ac251545f6f998a974690212309b927Iliyan Malchev
191