xref: /aosp_15_r20/external/mobly-snippet-lib/third_party/sl4a/LICENSE (revision ae5b1ec8a57d9cd6259556f14d3f2bb4f9fb3a85)
1*ae5b1ec8SZiwei ZhangCopied from http://www.apache.org/licenses/LICENSE-2.0:
2*ae5b1ec8SZiwei Zhang
3*ae5b1ec8SZiwei ZhangApache License
4*ae5b1ec8SZiwei Zhang
5*ae5b1ec8SZiwei ZhangVersion 2.0, January 2004
6*ae5b1ec8SZiwei Zhang
7*ae5b1ec8SZiwei Zhanghttp://www.apache.org/licenses/
8*ae5b1ec8SZiwei Zhang
9*ae5b1ec8SZiwei ZhangTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
10*ae5b1ec8SZiwei Zhang
11*ae5b1ec8SZiwei Zhang1. Definitions.
12*ae5b1ec8SZiwei Zhang
13*ae5b1ec8SZiwei Zhang"License" shall mean the terms and conditions for use, reproduction, and
14*ae5b1ec8SZiwei Zhangdistribution as defined by Sections 1 through 9 of this document.
15*ae5b1ec8SZiwei Zhang
16*ae5b1ec8SZiwei Zhang"Licensor" shall mean the copyright owner or entity authorized by the copyright
17*ae5b1ec8SZiwei Zhangowner that is granting the License.
18*ae5b1ec8SZiwei Zhang
19*ae5b1ec8SZiwei Zhang"Legal Entity" shall mean the union of the acting entity and all other entities
20*ae5b1ec8SZiwei Zhangthat control, are controlled by, or are under common control with that entity.
21*ae5b1ec8SZiwei ZhangFor the purposes of this definition, "control" means (i) the power, direct or
22*ae5b1ec8SZiwei Zhangindirect, to cause the direction or management of such entity, whether by
23*ae5b1ec8SZiwei Zhangcontract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
24*ae5b1ec8SZiwei Zhangoutstanding shares, or (iii) beneficial ownership of such entity.
25*ae5b1ec8SZiwei Zhang
26*ae5b1ec8SZiwei Zhang"You" (or "Your") shall mean an individual or Legal Entity exercising
27*ae5b1ec8SZiwei Zhangpermissions granted by this License.
28*ae5b1ec8SZiwei Zhang
29*ae5b1ec8SZiwei Zhang"Source" form shall mean the preferred form for making modifications, including
30*ae5b1ec8SZiwei Zhangbut not limited to software source code, documentation source, and configuration
31*ae5b1ec8SZiwei Zhangfiles.
32*ae5b1ec8SZiwei Zhang
33*ae5b1ec8SZiwei Zhang"Object" form shall mean any form resulting from mechanical transformation or
34*ae5b1ec8SZiwei Zhangtranslation of a Source form, including but not limited to compiled object code,
35*ae5b1ec8SZiwei Zhanggenerated documentation, and conversions to other media types.
36*ae5b1ec8SZiwei Zhang
37*ae5b1ec8SZiwei Zhang"Work" shall mean the work of authorship, whether in Source or Object form, made
38*ae5b1ec8SZiwei Zhangavailable under the License, as indicated by a copyright notice that is included
39*ae5b1ec8SZiwei Zhangin or attached to the work (an example is provided in the Appendix below).
40*ae5b1ec8SZiwei Zhang
41*ae5b1ec8SZiwei Zhang"Derivative Works" shall mean any work, whether in Source or Object form, that
42*ae5b1ec8SZiwei Zhangis based on (or derived from) the Work and for which the editorial revisions,
43*ae5b1ec8SZiwei Zhangannotations, elaborations, or other modifications represent, as a whole, an
44*ae5b1ec8SZiwei Zhangoriginal work of authorship. For the purposes of this License, Derivative Works
45*ae5b1ec8SZiwei Zhangshall not include works that remain separable from, or merely link (or bind by
46*ae5b1ec8SZiwei Zhangname) to the interfaces of, the Work and Derivative Works thereof.
47*ae5b1ec8SZiwei Zhang
48*ae5b1ec8SZiwei Zhang"Contribution" shall mean any work of authorship, including the original version
49*ae5b1ec8SZiwei Zhangof the Work and any modifications or additions to that Work or Derivative Works
50*ae5b1ec8SZiwei Zhangthereof, that is intentionally submitted to Licensor for inclusion in the Work
51*ae5b1ec8SZiwei Zhangby the copyright owner or by an individual or Legal Entity authorized to submit
52*ae5b1ec8SZiwei Zhangon behalf of the copyright owner. For the purposes of this definition,
53*ae5b1ec8SZiwei Zhang"submitted" means any form of electronic, verbal, or written communication sent
54*ae5b1ec8SZiwei Zhangto the Licensor or its representatives, including but not limited to
55*ae5b1ec8SZiwei Zhangcommunication on electronic mailing lists, source code control systems, and
56*ae5b1ec8SZiwei Zhangissue tracking systems that are managed by, or on behalf of, the Licensor for
57*ae5b1ec8SZiwei Zhangthe purpose of discussing and improving the Work, but excluding communication
58*ae5b1ec8SZiwei Zhangthat is conspicuously marked or otherwise designated in writing by the copyright
59*ae5b1ec8SZiwei Zhangowner as "Not a Contribution."
60*ae5b1ec8SZiwei Zhang
61*ae5b1ec8SZiwei Zhang"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
62*ae5b1ec8SZiwei Zhangof whom a Contribution has been received by Licensor and subsequently
63*ae5b1ec8SZiwei Zhangincorporated within the Work.
64*ae5b1ec8SZiwei Zhang
65*ae5b1ec8SZiwei Zhang2. Grant of Copyright License. Subject to the terms and conditions of this
66*ae5b1ec8SZiwei ZhangLicense, each Contributor hereby grants to You a perpetual, worldwide, non-
67*ae5b1ec8SZiwei Zhangexclusive, no-charge, royalty-free, irrevocable copyright license to reproduce,
68*ae5b1ec8SZiwei Zhangprepare Derivative Works of, publicly display, publicly perform, sublicense, and
69*ae5b1ec8SZiwei Zhangdistribute the Work and such Derivative Works in Source or Object form.
70*ae5b1ec8SZiwei Zhang
71*ae5b1ec8SZiwei Zhang3. Grant of Patent License. Subject to the terms and conditions of this License,
72*ae5b1ec8SZiwei Zhangeach Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-
73*ae5b1ec8SZiwei Zhangcharge, royalty-free, irrevocable (except as stated in this section) patent
74*ae5b1ec8SZiwei Zhanglicense to make, have made, use, offer to sell, sell, import, and otherwise
75*ae5b1ec8SZiwei Zhangtransfer the Work, where such license applies only to those patent claims
76*ae5b1ec8SZiwei Zhanglicensable by such Contributor that are necessarily infringed by their
77*ae5b1ec8SZiwei ZhangContribution(s) alone or by combination of their Contribution(s) with the Work
78*ae5b1ec8SZiwei Zhangto which such Contribution(s) was submitted. If You institute patent litigation
79*ae5b1ec8SZiwei Zhangagainst any entity (including a cross-claim or counterclaim in a lawsuit)
80*ae5b1ec8SZiwei Zhangalleging that the Work or a Contribution incorporated within the Work
81*ae5b1ec8SZiwei Zhangconstitutes direct or contributory patent infringement, then any patent licenses
82*ae5b1ec8SZiwei Zhanggranted to You under this License for that Work shall terminate as of the date
83*ae5b1ec8SZiwei Zhangsuch litigation is filed.
84*ae5b1ec8SZiwei Zhang
85*ae5b1ec8SZiwei Zhang4. Redistribution. You may reproduce and distribute copies of the Work or
86*ae5b1ec8SZiwei ZhangDerivative Works thereof in any medium, with or without modifications, and in
87*ae5b1ec8SZiwei ZhangSource or Object form, provided that You meet the following conditions:
88*ae5b1ec8SZiwei Zhang
89*ae5b1ec8SZiwei ZhangYou must give any other recipients of the Work or Derivative Works a copy of
90*ae5b1ec8SZiwei Zhangthis License; and You must cause any modified files to carry prominent notices
91*ae5b1ec8SZiwei Zhangstating that You changed the files; and You must retain, in the Source form of
92*ae5b1ec8SZiwei Zhangany Derivative Works that You distribute, all copyright, patent, trademark, and
93*ae5b1ec8SZiwei Zhangattribution notices from the Source form of the Work, excluding those notices
94*ae5b1ec8SZiwei Zhangthat do not pertain to any part of the Derivative Works; and If the Work
95*ae5b1ec8SZiwei Zhangincludes a "NOTICE" text file as part of its distribution, then any Derivative
96*ae5b1ec8SZiwei ZhangWorks that You distribute must include a readable copy of the attribution
97*ae5b1ec8SZiwei Zhangnotices contained within such NOTICE file, excluding those notices that do not
98*ae5b1ec8SZiwei Zhangpertain to any part of the Derivative Works, in at least one of the following
99*ae5b1ec8SZiwei Zhangplaces: within a NOTICE text file distributed as part of the Derivative Works;
100*ae5b1ec8SZiwei Zhangwithin the Source form or documentation, if provided along with the Derivative
101*ae5b1ec8SZiwei ZhangWorks; or, within a display generated by the Derivative Works, if and wherever
102*ae5b1ec8SZiwei Zhangsuch third-party notices normally appear. The contents of the NOTICE file are
103*ae5b1ec8SZiwei Zhangfor informational purposes only and do not modify the License. You may add Your
104*ae5b1ec8SZiwei Zhangown attribution notices within Derivative Works that You distribute, alongside
105*ae5b1ec8SZiwei Zhangor as an addendum to the NOTICE text from the Work, provided that such
106*ae5b1ec8SZiwei Zhangadditional attribution notices cannot be construed as modifying the License.
107*ae5b1ec8SZiwei Zhang
108*ae5b1ec8SZiwei ZhangYou may add Your own copyright statement to Your modifications and may provide
109*ae5b1ec8SZiwei Zhangadditional or different license terms and conditions for use, reproduction, or
110*ae5b1ec8SZiwei Zhangdistribution of Your modifications, or for any such Derivative Works as a whole,
111*ae5b1ec8SZiwei Zhangprovided Your use, reproduction, and distribution of the Work otherwise complies
112*ae5b1ec8SZiwei Zhangwith the conditions stated in this License.
113*ae5b1ec8SZiwei Zhang
114*ae5b1ec8SZiwei Zhang5. Submission of Contributions. Unless You explicitly state otherwise, any
115*ae5b1ec8SZiwei ZhangContribution intentionally submitted for inclusion in the Work by You to the
116*ae5b1ec8SZiwei ZhangLicensor shall be under the terms and conditions of this License, without any
117*ae5b1ec8SZiwei Zhangadditional terms or conditions. Notwithstanding the above, nothing herein shall
118*ae5b1ec8SZiwei Zhangsupersede or modify the terms of any separate license agreement you may have
119*ae5b1ec8SZiwei Zhangexecuted with Licensor regarding such Contributions.
120*ae5b1ec8SZiwei Zhang
121*ae5b1ec8SZiwei Zhang6. Trademarks. This License does not grant permission to use the trade names,
122*ae5b1ec8SZiwei Zhangtrademarks, service marks, or product names of the Licensor, except as required
123*ae5b1ec8SZiwei Zhangfor reasonable and customary use in describing the origin of the Work and
124*ae5b1ec8SZiwei Zhangreproducing the content of the NOTICE file.
125*ae5b1ec8SZiwei Zhang
126*ae5b1ec8SZiwei Zhang7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
127*ae5b1ec8SZiwei Zhangwriting, Licensor provides the Work (and each Contributor provides its
128*ae5b1ec8SZiwei ZhangContributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
129*ae5b1ec8SZiwei ZhangKIND, either express or implied, including, without limitation, any warranties
130*ae5b1ec8SZiwei Zhangor conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
131*ae5b1ec8SZiwei ZhangPARTICULAR PURPOSE. You are solely responsible for determining the
132*ae5b1ec8SZiwei Zhangappropriateness of using or redistributing the Work and assume any risks
133*ae5b1ec8SZiwei Zhangassociated with Your exercise of permissions under this License.
134*ae5b1ec8SZiwei Zhang
135*ae5b1ec8SZiwei Zhang8. Limitation of Liability. In no event and under no legal theory, whether in
136*ae5b1ec8SZiwei Zhangtort (including negligence), contract, or otherwise, unless required by
137*ae5b1ec8SZiwei Zhangapplicable law (such as deliberate and grossly negligent acts) or agreed to in
138*ae5b1ec8SZiwei Zhangwriting, shall any Contributor be liable to You for damages, including any
139*ae5b1ec8SZiwei Zhangdirect, indirect, special, incidental, or consequential damages of any character
140*ae5b1ec8SZiwei Zhangarising as a result of this License or out of the use or inability to use the
141*ae5b1ec8SZiwei ZhangWork (including but not limited to damages for loss of goodwill, work stoppage,
142*ae5b1ec8SZiwei Zhangcomputer failure or malfunction, or any and all other commercial damages or
143*ae5b1ec8SZiwei Zhanglosses), even if such Contributor has been advised of the possibility of such
144*ae5b1ec8SZiwei Zhangdamages.
145*ae5b1ec8SZiwei Zhang
146*ae5b1ec8SZiwei Zhang9. Accepting Warranty or Additional Liability. While redistributing the Work or
147*ae5b1ec8SZiwei ZhangDerivative Works thereof, You may choose to offer, and charge a fee for,
148*ae5b1ec8SZiwei Zhangacceptance of support, warranty, indemnity, or other liability obligations
149*ae5b1ec8SZiwei Zhangand/or rights consistent with this License. However, in accepting such
150*ae5b1ec8SZiwei Zhangobligations, You may act only on Your own behalf and on Your sole
151*ae5b1ec8SZiwei Zhangresponsibility, not on behalf of any other Contributor, and only if You agree to
152*ae5b1ec8SZiwei Zhangindemnify, defend, and hold each Contributor harmless for any liability incurred
153*ae5b1ec8SZiwei Zhangby, or claims asserted against, such Contributor by reason of your accepting any
154*ae5b1ec8SZiwei Zhangsuch warranty or additional liability.
155