Lines Matching refs:apk

47   def run_test(self, xml, apk, uses_libraries=[], optional_uses_libraries=[]):  argument
53 manifest_check.enforce_uses_libraries(apk, uses_libraries,
77 apk = self.apk_tmpl % (uses_library_apk('foo'))
78 matches = self.run_test(xml, apk, uses_libraries=['foo'])
83 apk = self.apk_tmpl % (uses_library_apk('foo', required_apk(True)))
84 matches = self.run_test(xml, apk, uses_libraries=['foo'])
89 apk = self.apk_tmpl % (uses_library_apk('foo', required_apk(False)))
90 matches = self.run_test(xml, apk, optional_uses_libraries=['foo'])
95 apk = self.apk_tmpl % (uses_library_apk('foo', required_apk(False)))
96 matches = self.run_test(xml, apk, uses_libraries=['foo'])
101 apk = self.apk_tmpl % (uses_library_apk('foo'))
102 matches = self.run_test(xml, apk, optional_uses_libraries=['foo'])
107 apk = self.apk_tmpl % ('')
108 matches = self.run_test(xml, apk, uses_libraries=['foo'])
113 apk = self.apk_tmpl % ('')
114 matches = self.run_test(xml, apk, optional_uses_libraries=['foo'])
119 apk = self.apk_tmpl % (uses_library_xml('foo'))
120 matches = self.run_test(xml, apk)
125 apk = self.apk_tmpl % (uses_library_apk('foo', required_apk(False)))
126 matches = self.run_test(xml, apk)
132 apk = self.apk_tmpl % ('\n'.join([uses_library_apk('foo'),
134 matches = self.run_test(xml, apk, uses_libraries=['foo', 'bar'])
140 apk = self.apk_tmpl % ('\n'.join([uses_library_apk('foo', required_apk(False)),
142 matches = self.run_test(xml, apk, optional_uses_libraries=['foo', 'bar'])
148 apk = self.apk_tmpl % ('\n'.join([uses_library_apk('foo'),
150 matches = self.run_test(xml, apk, uses_libraries=['bar', 'foo'])
156 apk = self.apk_tmpl % ('\n'.join([uses_library_apk('foo', required_apk(False)),
158 matches = self.run_test(xml, apk, optional_uses_libraries=['bar', 'foo'])
164 apk = self.apk_tmpl % ('\n'.join([uses_library_apk('foo'),
166 matches = self.run_test(xml, apk, uses_libraries=['foo'])
172 apk = self.apk_tmpl % ('\n'.join([uses_library_apk('foo', required_apk(False)),
174 matches = self.run_test(xml, apk, optional_uses_libraries=['foo'])
180 apk = self.apk_tmpl % ('\n'.join([uses_library_apk('foo'),
182 matches = self.run_test(xml, apk, uses_libraries=['foo'],
188 def run_test(self, xml, apk, version): argument
192 v = manifest_check.extract_target_sdk_version(apk, is_apk=True)
209 apk = self.apk_tmpl % "28"
210 self.run_test(xml, apk, "28")
214 apk = self.apk_tmpl % "29"
215 self.run_test(xml, apk, "29")