Home
last modified time | relevance | path

Searched refs:manifest (Results 1 – 18 of 18) sorted by relevance

/tools/metalava/src/test/java/com/android/tools/metalava/
DSystemServiceCheckTest.kt43 manifest = """<?xml version="1.0" encoding="UTF-8"?> in SystemService OK, loaded from signature file()
80 manifest = """<?xml version="1.0" encoding="UTF-8"?> in SystemService OK, loaded from source()
115 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService -- no permission annotation()
143 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService -- can miss a permission with anyOf()
180 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService such that at least one permission must be defined with anyOf()
208 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService -- missing one permission with allOf()
245 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService -- must be system permission, not normal()
262 fun `Check SystemService -- missing manifest permissions`() { in Check SystemService -- missing manifest permissions()
286 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService -- missing manifest permissions()
293 fun `Invalid manifest`() { in Invalid manifest()
[all …]
/tools/apksig/src/test/java/com/android/apksig/apk/
DApkUtilsTest.java64 ByteBuffer manifest = getAndroidManifest("original.apk"); in testGetMinSdkVersionFromBinaryAndroidManifest() local
65 assertEquals(23, ApkUtils.getMinSdkVersionFromBinaryAndroidManifest(manifest)); in testGetMinSdkVersionFromBinaryAndroidManifest()
70 ByteBuffer manifest = getAndroidManifest("original.apk"); in testGetDebuggableFromBinaryAndroidManifest() local
71 assertFalse(ApkUtils.getDebuggableFromBinaryAndroidManifest(manifest)); in testGetDebuggableFromBinaryAndroidManifest()
73 manifest = getAndroidManifest("debuggable-boolean.apk"); in testGetDebuggableFromBinaryAndroidManifest()
74 assertTrue(ApkUtils.getDebuggableFromBinaryAndroidManifest(manifest)); in testGetDebuggableFromBinaryAndroidManifest()
77 manifest = getAndroidManifest("debuggable-resource.apk"); in testGetDebuggableFromBinaryAndroidManifest()
79 ApkUtils.getDebuggableFromBinaryAndroidManifest(manifest); in testGetDebuggableFromBinaryAndroidManifest()
86 ByteBuffer manifest = getAndroidManifest("original.apk"); in testGetPackageNameFromBinaryAndroidManifest() local
89 ApkUtils.getPackageNameFromBinaryAndroidManifest(manifest)); in testGetPackageNameFromBinaryAndroidManifest()
[all …]
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DJarSigningTest.java66 Manifest manifest = new Manifest(new ByteArrayInputStream(manifestEntry.read())); in signEmptyJar() local
67 assertEquals(3, manifest.getMainAttributes().size()); in signEmptyJar()
68 assertEquals("1.0", manifest.getMainAttributes().getValue("Manifest-Version")); in signEmptyJar()
69 assertEquals("Me", manifest.getMainAttributes().getValue("Created-By")); in signEmptyJar()
70 assertEquals("Me", manifest.getMainAttributes().getValue("Built-By")); in signEmptyJar()
95 Manifest manifest = new Manifest(new ByteArrayInputStream(manifestEntry.read())); in signJarWithPrexistingSimpleTextFilePre18() local
96 assertEquals(3, manifest.getMainAttributes().size()); in signJarWithPrexistingSimpleTextFilePre18()
97 assertEquals("1.0", manifest.getMainAttributes().getValue("Manifest-Version")); in signJarWithPrexistingSimpleTextFilePre18()
98 assertEquals("Merry", manifest.getMainAttributes().getValue("Built-By")); in signJarWithPrexistingSimpleTextFilePre18()
99 assertEquals("Christmas", manifest.getMainAttributes().getValue("Created-By")); in signJarWithPrexistingSimpleTextFilePre18()
[all …]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DManifestGenerationExtension.java86 private final Manifest manifest; field in ManifestGenerationExtension
129 manifest = new Manifest(); in ManifestGenerationExtension()
134 manifest.write(outBytes); in ManifestGenerationExtension()
189 manifest.clear(); in rebuildManifest()
191 manifest.read(new ByteArrayInputStream(manifestBytes)); in rebuildManifest()
195 Attributes mainAttributes = manifest.getMainAttributes(); in rebuildManifest()
221 Attributes mainAttributes = manifest.getMainAttributes(); in setMainAttribute()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DSubprocessReportingHelper.java70 Manifest manifest = new Manifest(); in createSubprocessReporterJar() local
71 createJar(reporterJar, manifest, classFiles); in createSubprocessReporterJar()
79 Manifest manifest = new Manifest(new FileInputStream(mf)); in createSubprocessReporterJar() local
80 createJar(reporterJar, manifest, classFiles); in createSubprocessReporterJar()
95 private void createJar(File jar, Manifest manifest, Set<File> classFiles) throws IOException { in createJar() argument
96 try (JarOutputStream jarOutput = new JarOutputStream(new FileOutputStream(jar), manifest)) { in createJar() argument
/tools/trebuchet/
DAndroid.bp81 manifest: "trebuchet/analyzer/MANIFEST.mf",
93 manifest: "trebuchet/startup-analyzer/MANIFEST.mf",
106 manifest: "trebuchet/startup-summarizer/MANIFEST.mf",
119 manifest: "trebuchet/traceutils/MANIFEST.mf",
131 manifest: "trebuchet/viewer/MANIFEST.mf",
/tools/treble/split/
Dmanifest_split_test.py178 manifest = manifest_split.update_manifest(
182 projects = manifest.getroot().findall('project')
189 manifest = ET.ElementTree(ET.fromstring('<manifest></manifest>'))
190 manifest_sha1 = hashlib.sha1(ET.tostring(manifest.getroot())).hexdigest()
194 manifest, 'test_manifest')).decode(),
Dmanifest_split.py300 def update_manifest(manifest, input_projects, remove_projects): argument
313 root = manifest.getroot()
317 return manifest
320 def create_manifest_sha1_element(manifest, name): argument
334 hashlib.sha1(ET.tostring(manifest.getroot())).hexdigest())
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java246 OutputManifestFile manifest = in sign() local
251 signerConfigs, jarEntryDigestAlgorithm, apkSigningSchemeIds, createdBy, manifest); in sign()
271 OutputManifestFile manifest) in signManifest() argument
282 generateSignatureFile(apkSigningSchemeIds, digestAlgorithm, createdBy, manifest); in signManifest()
306 signatureJarEntries.add(Pair.of(MANIFEST_ENTRY_NAME, manifest.contents)); in signManifest()
418 OutputManifestFile manifest) throws NoSuchAlgorithmException { in generateSignatureFile() argument
445 Base64.getEncoder().encodeToString(md.digest(manifest.contents))); in generateSignatureFile()
454 : manifest.individualSectionsContents.entrySet()) { in generateSignatureFile()
DV1SchemeVerifier.java178 ManifestParser manifest = new ManifestParser(manifestBytes); in parseManifest() local
179 ManifestParser.Section manifestMainSection = manifest.readSection(); in parseManifest()
180 List<ManifestParser.Section> manifestIndividualSections = manifest.readAllSections(); in parseManifest()
/tools/test/connectivity/acts/
D.gitignore31 *.manifest
/tools/test/graphicsbenchmark/performance_tests/deviceside/
DAndroid.bp18 manifest: "AndroidManifest.xml",
/tools/test/connectivity/tools/
D.gitignore31 *.manifest
/tools/tradefederation/core/tests/
DAndroid.bp41 manifest: "MANIFEST.mf",
/tools/apksig/
DAndroid.bp33 manifest: "src/apksigner/apksigner.mf",
/tools/tradefederation/core/
DAndroid.bp111 manifest: "MANIFEST.mf",
127 manifest: "MANIFEST.mf",
/tools/repohooks/
DREADME.md31 projects that are checked out via a single manifest.
40 These are the manifest-wide defaults and can be located in two places:
41 * `.repo/manifests/GLOBAL-PREUPLOAD.cfg`: The manifest git repo.
42 Simply check this in to the manifest git repo and you're done.
286 * We need to add `pylint` tool to the AOSP manifest and use that local copy
/tools/tradefederation/core/tests/res/testdata/
Dtradefed-prebuilt-cts-8.0_r21.jar ... META-INF/ META-INF/MANIFEST.MF jline/ jline/CompletionHandler.class CompletionHandler ...