xref: /aosp_15_r20/external/mobly-snippet-lib/LICENSE (revision ae5b1ec8a57d9cd6259556f14d3f2bb4f9fb3a85)
1*ae5b1ec8SZiwei Zhang
2*ae5b1ec8SZiwei Zhang                                 Apache License
3*ae5b1ec8SZiwei Zhang                           Version 2.0, January 2004
4*ae5b1ec8SZiwei Zhang                        http://www.apache.org/licenses/
5*ae5b1ec8SZiwei Zhang
6*ae5b1ec8SZiwei Zhang   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7*ae5b1ec8SZiwei Zhang
8*ae5b1ec8SZiwei Zhang   1. Definitions.
9*ae5b1ec8SZiwei Zhang
10*ae5b1ec8SZiwei Zhang      "License" shall mean the terms and conditions for use, reproduction,
11*ae5b1ec8SZiwei Zhang      and distribution as defined by Sections 1 through 9 of this document.
12*ae5b1ec8SZiwei Zhang
13*ae5b1ec8SZiwei Zhang      "Licensor" shall mean the copyright owner or entity authorized by
14*ae5b1ec8SZiwei Zhang      the copyright owner that is granting the License.
15*ae5b1ec8SZiwei Zhang
16*ae5b1ec8SZiwei Zhang      "Legal Entity" shall mean the union of the acting entity and all
17*ae5b1ec8SZiwei Zhang      other entities that control, are controlled by, or are under common
18*ae5b1ec8SZiwei Zhang      control with that entity. For the purposes of this definition,
19*ae5b1ec8SZiwei Zhang      "control" means (i) the power, direct or indirect, to cause the
20*ae5b1ec8SZiwei Zhang      direction or management of such entity, whether by contract or
21*ae5b1ec8SZiwei Zhang      otherwise, or (ii) ownership of fifty percent (50%) or more of the
22*ae5b1ec8SZiwei Zhang      outstanding shares, or (iii) beneficial ownership of such entity.
23*ae5b1ec8SZiwei Zhang
24*ae5b1ec8SZiwei Zhang      "You" (or "Your") shall mean an individual or Legal Entity
25*ae5b1ec8SZiwei Zhang      exercising permissions granted by this License.
26*ae5b1ec8SZiwei Zhang
27*ae5b1ec8SZiwei Zhang      "Source" form shall mean the preferred form for making modifications,
28*ae5b1ec8SZiwei Zhang      including but not limited to software source code, documentation
29*ae5b1ec8SZiwei Zhang      source, and configuration files.
30*ae5b1ec8SZiwei Zhang
31*ae5b1ec8SZiwei Zhang      "Object" form shall mean any form resulting from mechanical
32*ae5b1ec8SZiwei Zhang      transformation or translation of a Source form, including but
33*ae5b1ec8SZiwei Zhang      not limited to compiled object code, generated documentation,
34*ae5b1ec8SZiwei Zhang      and conversions to other media types.
35*ae5b1ec8SZiwei Zhang
36*ae5b1ec8SZiwei Zhang      "Work" shall mean the work of authorship, whether in Source or
37*ae5b1ec8SZiwei Zhang      Object form, made available under the License, as indicated by a
38*ae5b1ec8SZiwei Zhang      copyright notice that is included in or attached to the work
39*ae5b1ec8SZiwei Zhang      (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
42*ae5b1ec8SZiwei Zhang      form, that is based on (or derived from) the Work and for which the
43*ae5b1ec8SZiwei Zhang      editorial revisions, annotations, elaborations, or other modifications
44*ae5b1ec8SZiwei Zhang      represent, as a whole, an original work of authorship. For the purposes
45*ae5b1ec8SZiwei Zhang      of this License, Derivative Works shall not include works that remain
46*ae5b1ec8SZiwei Zhang      separable from, or merely link (or bind by name) to the interfaces of,
47*ae5b1ec8SZiwei Zhang      the Work and Derivative Works thereof.
48*ae5b1ec8SZiwei Zhang
49*ae5b1ec8SZiwei Zhang      "Contribution" shall mean any work of authorship, including
50*ae5b1ec8SZiwei Zhang      the original version of the Work and any modifications or additions
51*ae5b1ec8SZiwei Zhang      to that Work or Derivative Works thereof, that is intentionally
52*ae5b1ec8SZiwei Zhang      submitted to Licensor for inclusion in the Work by the copyright owner
53*ae5b1ec8SZiwei Zhang      or by an individual or Legal Entity authorized to submit on behalf of
54*ae5b1ec8SZiwei Zhang      the copyright owner. For the purposes of this definition, "submitted"
55*ae5b1ec8SZiwei Zhang      means any form of electronic, verbal, or written communication sent
56*ae5b1ec8SZiwei Zhang      to the Licensor or its representatives, including but not limited to
57*ae5b1ec8SZiwei Zhang      communication on electronic mailing lists, source code control systems,
58*ae5b1ec8SZiwei Zhang      and issue tracking systems that are managed by, or on behalf of, the
59*ae5b1ec8SZiwei Zhang      Licensor for the purpose of discussing and improving the Work, but
60*ae5b1ec8SZiwei Zhang      excluding communication that is conspicuously marked or otherwise
61*ae5b1ec8SZiwei Zhang      designated in writing by the copyright owner as "Not a Contribution."
62*ae5b1ec8SZiwei Zhang
63*ae5b1ec8SZiwei Zhang      "Contributor" shall mean Licensor and any individual or Legal Entity
64*ae5b1ec8SZiwei Zhang      on behalf of whom a Contribution has been received by Licensor and
65*ae5b1ec8SZiwei Zhang      subsequently incorporated within the Work.
66*ae5b1ec8SZiwei Zhang
67*ae5b1ec8SZiwei Zhang   2. Grant of Copyright License. Subject to the terms and conditions of
68*ae5b1ec8SZiwei Zhang      this License, each Contributor hereby grants to You a perpetual,
69*ae5b1ec8SZiwei Zhang      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70*ae5b1ec8SZiwei Zhang      copyright license to reproduce, prepare Derivative Works of,
71*ae5b1ec8SZiwei Zhang      publicly display, publicly perform, sublicense, and distribute the
72*ae5b1ec8SZiwei Zhang      Work and such Derivative Works in Source or Object form.
73*ae5b1ec8SZiwei Zhang
74*ae5b1ec8SZiwei Zhang   3. Grant of Patent License. Subject to the terms and conditions of
75*ae5b1ec8SZiwei Zhang      this License, each Contributor hereby grants to You a perpetual,
76*ae5b1ec8SZiwei Zhang      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77*ae5b1ec8SZiwei Zhang      (except as stated in this section) patent license to make, have made,
78*ae5b1ec8SZiwei Zhang      use, offer to sell, sell, import, and otherwise transfer the Work,
79*ae5b1ec8SZiwei Zhang      where such license applies only to those patent claims licensable
80*ae5b1ec8SZiwei Zhang      by such Contributor that are necessarily infringed by their
81*ae5b1ec8SZiwei Zhang      Contribution(s) alone or by combination of their Contribution(s)
82*ae5b1ec8SZiwei Zhang      with the Work to which such Contribution(s) was submitted. If You
83*ae5b1ec8SZiwei Zhang      institute patent litigation against any entity (including a
84*ae5b1ec8SZiwei Zhang      cross-claim or counterclaim in a lawsuit) alleging that the Work
85*ae5b1ec8SZiwei Zhang      or a Contribution incorporated within the Work constitutes direct
86*ae5b1ec8SZiwei Zhang      or contributory patent infringement, then any patent licenses
87*ae5b1ec8SZiwei Zhang      granted to You under this License for that Work shall terminate
88*ae5b1ec8SZiwei Zhang      as of the date such litigation is filed.
89*ae5b1ec8SZiwei Zhang
90*ae5b1ec8SZiwei Zhang   4. Redistribution. You may reproduce and distribute copies of the
91*ae5b1ec8SZiwei Zhang      Work or Derivative Works thereof in any medium, with or without
92*ae5b1ec8SZiwei Zhang      modifications, and in Source or Object form, provided that You
93*ae5b1ec8SZiwei Zhang      meet the following conditions:
94*ae5b1ec8SZiwei Zhang
95*ae5b1ec8SZiwei Zhang      (a) You must give any other recipients of the Work or
96*ae5b1ec8SZiwei Zhang          Derivative Works a copy of this License; and
97*ae5b1ec8SZiwei Zhang
98*ae5b1ec8SZiwei Zhang      (b) You must cause any modified files to carry prominent notices
99*ae5b1ec8SZiwei Zhang          stating that You changed the files; and
100*ae5b1ec8SZiwei Zhang
101*ae5b1ec8SZiwei Zhang      (c) You must retain, in the Source form of any Derivative Works
102*ae5b1ec8SZiwei Zhang          that You distribute, all copyright, patent, trademark, and
103*ae5b1ec8SZiwei Zhang          attribution notices from the Source form of the Work,
104*ae5b1ec8SZiwei Zhang          excluding those notices that do not pertain to any part of
105*ae5b1ec8SZiwei Zhang          the Derivative Works; and
106*ae5b1ec8SZiwei Zhang
107*ae5b1ec8SZiwei Zhang      (d) If the Work includes a "NOTICE" text file as part of its
108*ae5b1ec8SZiwei Zhang          distribution, then any Derivative Works that You distribute must
109*ae5b1ec8SZiwei Zhang          include a readable copy of the attribution notices contained
110*ae5b1ec8SZiwei Zhang          within such NOTICE file, excluding those notices that do not
111*ae5b1ec8SZiwei Zhang          pertain to any part of the Derivative Works, in at least one
112*ae5b1ec8SZiwei Zhang          of the following places: within a NOTICE text file distributed
113*ae5b1ec8SZiwei Zhang          as part of the Derivative Works; within the Source form or
114*ae5b1ec8SZiwei Zhang          documentation, if provided along with the Derivative Works; or,
115*ae5b1ec8SZiwei Zhang          within a display generated by the Derivative Works, if and
116*ae5b1ec8SZiwei Zhang          wherever such third-party notices normally appear. The contents
117*ae5b1ec8SZiwei Zhang          of the NOTICE file are for informational purposes only and
118*ae5b1ec8SZiwei Zhang          do not modify the License. You may add Your own attribution
119*ae5b1ec8SZiwei Zhang          notices within Derivative Works that You distribute, alongside
120*ae5b1ec8SZiwei Zhang          or as an addendum to the NOTICE text from the Work, provided
121*ae5b1ec8SZiwei Zhang          that such additional attribution notices cannot be construed
122*ae5b1ec8SZiwei Zhang          as modifying the License.
123*ae5b1ec8SZiwei Zhang
124*ae5b1ec8SZiwei Zhang      You may add Your own copyright statement to Your modifications and
125*ae5b1ec8SZiwei Zhang      may provide additional or different license terms and conditions
126*ae5b1ec8SZiwei Zhang      for use, reproduction, or distribution of Your modifications, or
127*ae5b1ec8SZiwei Zhang      for any such Derivative Works as a whole, provided Your use,
128*ae5b1ec8SZiwei Zhang      reproduction, and distribution of the Work otherwise complies with
129*ae5b1ec8SZiwei Zhang      the conditions stated in this License.
130*ae5b1ec8SZiwei Zhang
131*ae5b1ec8SZiwei Zhang   5. Submission of Contributions. Unless You explicitly state otherwise,
132*ae5b1ec8SZiwei Zhang      any Contribution intentionally submitted for inclusion in the Work
133*ae5b1ec8SZiwei Zhang      by You to the Licensor shall be under the terms and conditions of
134*ae5b1ec8SZiwei Zhang      this License, without any additional terms or conditions.
135*ae5b1ec8SZiwei Zhang      Notwithstanding the above, nothing herein shall supersede or modify
136*ae5b1ec8SZiwei Zhang      the terms of any separate license agreement you may have executed
137*ae5b1ec8SZiwei Zhang      with Licensor regarding such Contributions.
138*ae5b1ec8SZiwei Zhang
139*ae5b1ec8SZiwei Zhang   6. Trademarks. This License does not grant permission to use the trade
140*ae5b1ec8SZiwei Zhang      names, trademarks, service marks, or product names of the Licensor,
141*ae5b1ec8SZiwei Zhang      except as required for reasonable and customary use in describing the
142*ae5b1ec8SZiwei Zhang      origin of the Work and reproducing the content of the NOTICE file.
143*ae5b1ec8SZiwei Zhang
144*ae5b1ec8SZiwei Zhang   7. Disclaimer of Warranty. Unless required by applicable law or
145*ae5b1ec8SZiwei Zhang      agreed to in writing, Licensor provides the Work (and each
146*ae5b1ec8SZiwei Zhang      Contributor provides its Contributions) on an "AS IS" BASIS,
147*ae5b1ec8SZiwei Zhang      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148*ae5b1ec8SZiwei Zhang      implied, including, without limitation, any warranties or conditions
149*ae5b1ec8SZiwei Zhang      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150*ae5b1ec8SZiwei Zhang      PARTICULAR PURPOSE. You are solely responsible for determining the
151*ae5b1ec8SZiwei Zhang      appropriateness of using or redistributing the Work and assume any
152*ae5b1ec8SZiwei Zhang      risks associated with Your exercise of permissions under this License.
153*ae5b1ec8SZiwei Zhang
154*ae5b1ec8SZiwei Zhang   8. Limitation of Liability. In no event and under no legal theory,
155*ae5b1ec8SZiwei Zhang      whether in tort (including negligence), contract, or otherwise,
156*ae5b1ec8SZiwei Zhang      unless required by applicable law (such as deliberate and grossly
157*ae5b1ec8SZiwei Zhang      negligent acts) or agreed to in writing, shall any Contributor be
158*ae5b1ec8SZiwei Zhang      liable to You for damages, including any direct, indirect, special,
159*ae5b1ec8SZiwei Zhang      incidental, or consequential damages of any character arising as a
160*ae5b1ec8SZiwei Zhang      result of this License or out of the use or inability to use the
161*ae5b1ec8SZiwei Zhang      Work (including but not limited to damages for loss of goodwill,
162*ae5b1ec8SZiwei Zhang      work stoppage, computer failure or malfunction, or any and all
163*ae5b1ec8SZiwei Zhang      other commercial damages or losses), even if such Contributor
164*ae5b1ec8SZiwei Zhang      has been advised of the possibility of such damages.
165*ae5b1ec8SZiwei Zhang
166*ae5b1ec8SZiwei Zhang   9. Accepting Warranty or Additional Liability. While redistributing
167*ae5b1ec8SZiwei Zhang      the Work or Derivative Works thereof, You may choose to offer,
168*ae5b1ec8SZiwei Zhang      and charge a fee for, acceptance of support, warranty, indemnity,
169*ae5b1ec8SZiwei Zhang      or other liability obligations and/or rights consistent with this
170*ae5b1ec8SZiwei Zhang      License. However, in accepting such obligations, You may act only
171*ae5b1ec8SZiwei Zhang      on Your own behalf and on Your sole responsibility, not on behalf
172*ae5b1ec8SZiwei Zhang      of any other Contributor, and only if You agree to indemnify,
173*ae5b1ec8SZiwei Zhang      defend, and hold each Contributor harmless for any liability
174*ae5b1ec8SZiwei Zhang      incurred by, or claims asserted against, such Contributor by reason
175*ae5b1ec8SZiwei Zhang      of your accepting any such warranty or additional liability.
176*ae5b1ec8SZiwei Zhang
177*ae5b1ec8SZiwei Zhang   END OF TERMS AND CONDITIONS
178*ae5b1ec8SZiwei Zhang
179*ae5b1ec8SZiwei Zhang   APPENDIX: How to apply the Apache License to your work.
180*ae5b1ec8SZiwei Zhang
181*ae5b1ec8SZiwei Zhang      To apply the Apache License to your work, attach the following
182*ae5b1ec8SZiwei Zhang      boilerplate notice, with the fields enclosed by brackets "[]"
183*ae5b1ec8SZiwei Zhang      replaced with your own identifying information. (Don't include
184*ae5b1ec8SZiwei Zhang      the brackets!)  The text should be enclosed in the appropriate
185*ae5b1ec8SZiwei Zhang      comment syntax for the file format. We also recommend that a
186*ae5b1ec8SZiwei Zhang      file or class name and description of purpose be included on the
187*ae5b1ec8SZiwei Zhang      same "printed page" as the copyright notice for easier
188*ae5b1ec8SZiwei Zhang      identification within third-party archives.
189*ae5b1ec8SZiwei Zhang
190*ae5b1ec8SZiwei Zhang   Copyright [yyyy] [name of copyright owner]
191*ae5b1ec8SZiwei Zhang
192*ae5b1ec8SZiwei Zhang   Licensed under the Apache License, Version 2.0 (the "License");
193*ae5b1ec8SZiwei Zhang   you may not use this file except in compliance with the License.
194*ae5b1ec8SZiwei Zhang   You may obtain a copy of the License at
195*ae5b1ec8SZiwei Zhang
196*ae5b1ec8SZiwei Zhang       http://www.apache.org/licenses/LICENSE-2.0
197*ae5b1ec8SZiwei Zhang
198*ae5b1ec8SZiwei Zhang   Unless required by applicable law or agreed to in writing, software
199*ae5b1ec8SZiwei Zhang   distributed under the License is distributed on an "AS IS" BASIS,
200*ae5b1ec8SZiwei Zhang   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201*ae5b1ec8SZiwei Zhang   See the License for the specific language governing permissions and
202*ae5b1ec8SZiwei Zhang   limitations under the License.
203