xref: /aosp_15_r20/developers/build/prebuilts/androidtv/visual-game-controller/LICENSE (revision d353a188ca6ec4b5eba25b5fbd7bcb8ce61322fb)
1*d353a188SXin LiApache License
2*d353a188SXin LiVersion 2.0, January 2004
3*d353a188SXin Lihttp://www.apache.org/licenses/
4*d353a188SXin Li
5*d353a188SXin LiTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6*d353a188SXin Li
7*d353a188SXin Li1. Definitions.
8*d353a188SXin Li
9*d353a188SXin Li"License" shall mean the terms and conditions for use, reproduction, and
10*d353a188SXin Lidistribution as defined by Sections 1 through 9 of this document.
11*d353a188SXin Li
12*d353a188SXin Li"Licensor" shall mean the copyright owner or entity authorized by the copyright
13*d353a188SXin Liowner that is granting the License.
14*d353a188SXin Li
15*d353a188SXin Li"Legal Entity" shall mean the union of the acting entity and all other entities
16*d353a188SXin Lithat control, are controlled by, or are under common control with that entity.
17*d353a188SXin LiFor the purposes of this definition, "control" means (i) the power, direct or
18*d353a188SXin Liindirect, to cause the direction or management of such entity, whether by
19*d353a188SXin Licontract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
20*d353a188SXin Lioutstanding shares, or (iii) beneficial ownership of such entity.
21*d353a188SXin Li
22*d353a188SXin Li"You" (or "Your") shall mean an individual or Legal Entity exercising
23*d353a188SXin Lipermissions granted by this License.
24*d353a188SXin Li
25*d353a188SXin Li"Source" form shall mean the preferred form for making modifications, including
26*d353a188SXin Libut not limited to software source code, documentation source, and configuration
27*d353a188SXin Lifiles.
28*d353a188SXin Li
29*d353a188SXin Li"Object" form shall mean any form resulting from mechanical transformation or
30*d353a188SXin Litranslation of a Source form, including but not limited to compiled object code,
31*d353a188SXin Ligenerated documentation, and conversions to other media types.
32*d353a188SXin Li
33*d353a188SXin Li"Work" shall mean the work of authorship, whether in Source or Object form, made
34*d353a188SXin Liavailable under the License, as indicated by a copyright notice that is included
35*d353a188SXin Liin or attached to the work (an example is provided in the Appendix below).
36*d353a188SXin Li
37*d353a188SXin Li"Derivative Works" shall mean any work, whether in Source or Object form, that
38*d353a188SXin Liis based on (or derived from) the Work and for which the editorial revisions,
39*d353a188SXin Liannotations, elaborations, or other modifications represent, as a whole, an
40*d353a188SXin Lioriginal work of authorship. For the purposes of this License, Derivative Works
41*d353a188SXin Lishall not include works that remain separable from, or merely link (or bind by
42*d353a188SXin Liname) to the interfaces of, the Work and Derivative Works thereof.
43*d353a188SXin Li
44*d353a188SXin Li"Contribution" shall mean any work of authorship, including the original version
45*d353a188SXin Liof the Work and any modifications or additions to that Work or Derivative Works
46*d353a188SXin Lithereof, that is intentionally submitted to Licensor for inclusion in the Work
47*d353a188SXin Liby the copyright owner or by an individual or Legal Entity authorized to submit
48*d353a188SXin Lion behalf of the copyright owner. For the purposes of this definition,
49*d353a188SXin Li"submitted" means any form of electronic, verbal, or written communication sent
50*d353a188SXin Lito the Licensor or its representatives, including but not limited to
51*d353a188SXin Licommunication on electronic mailing lists, source code control systems, and
52*d353a188SXin Liissue tracking systems that are managed by, or on behalf of, the Licensor for
53*d353a188SXin Lithe purpose of discussing and improving the Work, but excluding communication
54*d353a188SXin Lithat is conspicuously marked or otherwise designated in writing by the copyright
55*d353a188SXin Liowner as "Not a Contribution."
56*d353a188SXin Li
57*d353a188SXin Li"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
58*d353a188SXin Liof whom a Contribution has been received by Licensor and subsequently
59*d353a188SXin Liincorporated within the Work.
60*d353a188SXin Li
61*d353a188SXin Li2. Grant of Copyright License.
62*d353a188SXin Li
63*d353a188SXin LiSubject to the terms and conditions of this License, each Contributor hereby
64*d353a188SXin Ligrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
65*d353a188SXin Liirrevocable copyright license to reproduce, prepare Derivative Works of,
66*d353a188SXin Lipublicly display, publicly perform, sublicense, and distribute the Work and such
67*d353a188SXin LiDerivative Works in Source or Object form.
68*d353a188SXin Li
69*d353a188SXin Li3. Grant of Patent License.
70*d353a188SXin Li
71*d353a188SXin LiSubject to the terms and conditions of this License, each Contributor hereby
72*d353a188SXin Ligrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
73*d353a188SXin Liirrevocable (except as stated in this section) patent license to make, have
74*d353a188SXin Limade, use, offer to sell, sell, import, and otherwise transfer the Work, where
75*d353a188SXin Lisuch license applies only to those patent claims licensable by such Contributor
76*d353a188SXin Lithat are necessarily infringed by their Contribution(s) alone or by combination
77*d353a188SXin Liof their Contribution(s) with the Work to which such Contribution(s) was
78*d353a188SXin Lisubmitted. If You institute patent litigation against any entity (including a
79*d353a188SXin Licross-claim or counterclaim in a lawsuit) alleging that the Work or a
80*d353a188SXin LiContribution incorporated within the Work constitutes direct or contributory
81*d353a188SXin Lipatent infringement, then any patent licenses granted to You under this License
82*d353a188SXin Lifor that Work shall terminate as of the date such litigation is filed.
83*d353a188SXin Li
84*d353a188SXin Li4. Redistribution.
85*d353a188SXin Li
86*d353a188SXin LiYou may reproduce and distribute copies of the Work or Derivative Works thereof
87*d353a188SXin Liin any medium, with or without modifications, and in Source or Object form,
88*d353a188SXin Liprovided that You meet the following conditions:
89*d353a188SXin Li
90*d353a188SXin LiYou must give any other recipients of the Work or Derivative Works a copy of
91*d353a188SXin Lithis License; and
92*d353a188SXin LiYou must cause any modified files to carry prominent notices stating that You
93*d353a188SXin Lichanged the files; and
94*d353a188SXin LiYou must retain, in the Source form of any Derivative Works that You distribute,
95*d353a188SXin Liall copyright, patent, trademark, and attribution notices from the Source form
96*d353a188SXin Liof the Work, excluding those notices that do not pertain to any part of the
97*d353a188SXin LiDerivative Works; and
98*d353a188SXin LiIf the Work includes a "NOTICE" text file as part of its distribution, then any
99*d353a188SXin LiDerivative Works that You distribute must include a readable copy of the
100*d353a188SXin Liattribution notices contained within such NOTICE file, excluding those notices
101*d353a188SXin Lithat do not pertain to any part of the Derivative Works, in at least one of the
102*d353a188SXin Lifollowing places: within a NOTICE text file distributed as part of the
103*d353a188SXin LiDerivative Works; within the Source form or documentation, if provided along
104*d353a188SXin Liwith the Derivative Works; or, within a display generated by the Derivative
105*d353a188SXin LiWorks, if and wherever such third-party notices normally appear. The contents of
106*d353a188SXin Lithe NOTICE file are for informational purposes only and do not modify the
107*d353a188SXin LiLicense. You may add Your own attribution notices within Derivative Works that
108*d353a188SXin LiYou distribute, alongside or as an addendum to the NOTICE text from the Work,
109*d353a188SXin Liprovided that such additional attribution notices cannot be construed as
110*d353a188SXin Limodifying the License.
111*d353a188SXin LiYou may add Your own copyright statement to Your modifications and may provide
112*d353a188SXin Liadditional or different license terms and conditions for use, reproduction, or
113*d353a188SXin Lidistribution of Your modifications, or for any such Derivative Works as a whole,
114*d353a188SXin Liprovided Your use, reproduction, and distribution of the Work otherwise complies
115*d353a188SXin Liwith the conditions stated in this License.
116*d353a188SXin Li
117*d353a188SXin Li5. Submission of Contributions.
118*d353a188SXin Li
119*d353a188SXin LiUnless You explicitly state otherwise, any Contribution intentionally submitted
120*d353a188SXin Lifor inclusion in the Work by You to the Licensor shall be under the terms and
121*d353a188SXin Liconditions of this License, without any additional terms or conditions.
122*d353a188SXin LiNotwithstanding the above, nothing herein shall supersede or modify the terms of
123*d353a188SXin Liany separate license agreement you may have executed with Licensor regarding
124*d353a188SXin Lisuch Contributions.
125*d353a188SXin Li
126*d353a188SXin Li6. Trademarks.
127*d353a188SXin Li
128*d353a188SXin LiThis License does not grant permission to use the trade names, trademarks,
129*d353a188SXin Liservice marks, or product names of the Licensor, except as required for
130*d353a188SXin Lireasonable and customary use in describing the origin of the Work and
131*d353a188SXin Lireproducing the content of the NOTICE file.
132*d353a188SXin Li
133*d353a188SXin Li7. Disclaimer of Warranty.
134*d353a188SXin Li
135*d353a188SXin LiUnless required by applicable law or agreed to in writing, Licensor provides the
136*d353a188SXin LiWork (and each Contributor provides its Contributions) on an "AS IS" BASIS,
137*d353a188SXin LiWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
138*d353a188SXin Liincluding, without limitation, any warranties or conditions of TITLE,
139*d353a188SXin LiNON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
140*d353a188SXin Lisolely responsible for determining the appropriateness of using or
141*d353a188SXin Liredistributing the Work and assume any risks associated with Your exercise of
142*d353a188SXin Lipermissions under this License.
143*d353a188SXin Li
144*d353a188SXin Li8. Limitation of Liability.
145*d353a188SXin Li
146*d353a188SXin LiIn no event and under no legal theory, whether in tort (including negligence),
147*d353a188SXin Licontract, or otherwise, unless required by applicable law (such as deliberate
148*d353a188SXin Liand grossly negligent acts) or agreed to in writing, shall any Contributor be
149*d353a188SXin Liliable to You for damages, including any direct, indirect, special, incidental,
150*d353a188SXin Lior consequential damages of any character arising as a result of this License or
151*d353a188SXin Liout of the use or inability to use the Work (including but not limited to
152*d353a188SXin Lidamages for loss of goodwill, work stoppage, computer failure or malfunction, or
153*d353a188SXin Liany and all other commercial damages or losses), even if such Contributor has
154*d353a188SXin Libeen advised of the possibility of such damages.
155*d353a188SXin Li
156*d353a188SXin Li9. Accepting Warranty or Additional Liability.
157*d353a188SXin Li
158*d353a188SXin LiWhile redistributing the Work or Derivative Works thereof, You may choose to
159*d353a188SXin Lioffer, and charge a fee for, acceptance of support, warranty, indemnity, or
160*d353a188SXin Liother liability obligations and/or rights consistent with this License. However,
161*d353a188SXin Liin accepting such obligations, You may act only on Your own behalf and on Your
162*d353a188SXin Lisole responsibility, not on behalf of any other Contributor, and only if You
163*d353a188SXin Liagree to indemnify, defend, and hold each Contributor harmless for any liability
164*d353a188SXin Liincurred by, or claims asserted against, such Contributor by reason of your
165*d353a188SXin Liaccepting any such warranty or additional liability.
166*d353a188SXin Li
167*d353a188SXin LiEND OF TERMS AND CONDITIONS
168*d353a188SXin Li
169*d353a188SXin LiAPPENDIX: How to apply the Apache License to your work
170*d353a188SXin Li
171*d353a188SXin LiTo apply the Apache License to your work, attach the following boilerplate
172*d353a188SXin Linotice, with the fields enclosed by brackets "[]" replaced with your own
173*d353a188SXin Liidentifying information. (Don't include the brackets!) The text should be
174*d353a188SXin Lienclosed in the appropriate comment syntax for the file format. We also
175*d353a188SXin Lirecommend that a file or class name and description of purpose be included on
176*d353a188SXin Lithe same "printed page" as the copyright notice for easier identification within
177*d353a188SXin Lithird-party archives.
178*d353a188SXin Li
179*d353a188SXin Li   Copyright [yyyy] [name of copyright owner]
180*d353a188SXin Li
181*d353a188SXin Li   Licensed under the Apache License, Version 2.0 (the "License");
182*d353a188SXin Li   you may not use this file except in compliance with the License.
183*d353a188SXin Li   You may obtain a copy of the License at
184*d353a188SXin Li
185*d353a188SXin Li     http://www.apache.org/licenses/LICENSE-2.0
186*d353a188SXin Li
187*d353a188SXin Li   Unless required by applicable law or agreed to in writing, software
188*d353a188SXin Li   distributed under the License is distributed on an "AS IS" BASIS,
189*d353a188SXin Li   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190*d353a188SXin Li   See the License for the specific language governing permissions and
191*d353a188SXin Li   limitations under the License.