Home
last modified time | relevance | path

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

/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/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 …]
DDriverTest.kt299 manifest: String? = null, in <lambda>()
591 val manifestFileArgs = if (manifest != null) { in <lambda>()
593 file.writeText(manifest.trimIndent()) in <lambda>()
/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/tradefederation/core/tests/src/com/android/tradefed/util/xml/
DAndroidManifestWriterTest.java52 File manifest = extractTestXml("AndroidManifest_invalid.xml"); in testSetMinSdkVersion_invalid() local
54 assertNull(AndroidManifestWriter.parse(manifest.getAbsolutePath())); in testSetMinSdkVersion_invalid()
56 FileUtil.deleteFile(manifest); in testSetMinSdkVersion_invalid()
62 File manifest = extractTestXml(inputFileName); in assertMinSdkChange() local
65 AndroidManifestWriter writer = AndroidManifestWriter.parse(manifest.getAbsolutePath()); in assertMinSdkChange()
69 resultFileName), FileUtil.compareFileContents(manifest, expectedResultFile)); in assertMinSdkChange()
71 FileUtil.deleteFile(manifest); in assertMinSdkChange()
/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/trebuchet/
DAndroid.bp83 manifest: "trebuchet/analyzer/MANIFEST.mf",
95 manifest: "trebuchet/startup-analyzer/MANIFEST.mf",
108 manifest: "trebuchet/startup-summarizer/MANIFEST.mf",
121 manifest: "trebuchet/traceutils/MANIFEST.mf",
133 manifest: "trebuchet/viewer/MANIFEST.mf",
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DCodebase.kt132 var manifest: File? in <lambda>() variable
260 override var manifest: File? = null variable in com.android.tools.metalava.model.DefaultCodebase
272 assert(manifest != null) { in getPermissionLevel()
277 val doc = parseDocument(manifest?.readText(UTF_8) ?: "", true) in getPermissionLevel()
287 … reporter.report(Errors.PARSE_ERROR, manifest, "Failed to parse $manifest: ${error.message}") in getPermissionLevel()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java252 OutputManifestFile manifest = in sign() local
257 signerConfigs, jarEntryDigestAlgorithm, apkSigningSchemeIds, createdBy, manifest); in sign()
277 OutputManifestFile manifest) in signManifest() argument
288 generateSignatureFile(apkSigningSchemeIds, digestAlgorithm, createdBy, manifest); in signManifest()
312 signatureJarEntries.add(Pair.of(MANIFEST_ENTRY_NAME, manifest.contents)); in signManifest()
424 OutputManifestFile manifest) throws NoSuchAlgorithmException { in generateSignatureFile() argument
451 Base64.getEncoder().encodeToString(md.digest(manifest.contents))); in generateSignatureFile()
460 : 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/metalava/src/main/java/com/android/tools/metalava/
DDriver.kt226 options.manifest?.let { codebase.manifest = it } in processFlags()
869 manifest: File? = options.manifest, in parseSources()
899 codebase.manifest = manifest in parseSources()
905 fun loadFromJarFile(apiJar: File, manifest: File? = null, preFiltered: Boolean = false): Codebase { in loadFromJarFile()
919 if (manifest != null) { in loadFromJarFile()
920 codebase.manifest = options.manifest in loadFromJarFile()
DOptions.kt419 var manifest: File? = null in <lambda>() variable in com.android.tools.metalava.Options
716 … ARG_MANIFEST, "-manifest" -> manifest = stringToExistingFile(getValue(args, ++index)) in <lambda>()
DApiAnalyzer.kt776 options.showAnnotations.contains(ANDROID_SYSTEM_API) && options.manifest != null in <lambda>()
/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.
244 * We need to add `pylint` tool to the AOSP manifest and use that local copy
/tools/metalava/
DAndroid.bp27 manifest: "manifest.txt",
/tools/test/connectivity/tools/
D.gitignore31 *.manifest
/tools/test/connectivity/acts/
D.gitignore31 *.manifest
/tools/test/graphicsbenchmark/performance_tests/deviceside/
DAndroid.bp18 manifest: "AndroidManifest.xml",
/tools/apksig/
DAndroid.bp31 manifest: "src/apksigner/apksigner.mf",
/tools/tradefederation/core/
DAndroid.bp117 manifest: "MANIFEST.mf",