/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/ |
D | JarSigningTest.java | 66 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/ |
D | SystemServiceCheckTest.kt | 43 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 …]
|
D | DriverTest.kt | 299 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/ |
D | ApkUtilsTest.java | 64 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/ |
D | AndroidManifestWriterTest.java | 52 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/ |
D | ManifestGenerationExtension.java | 86 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/ |
D | Android.bp | 83 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/ |
D | Codebase.kt | 132 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/ |
D | V1SchemeSigner.java | 252 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()
|
D | V1SchemeVerifier.java | 178 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/ |
D | Driver.kt | 226 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()
|
D | Options.kt | 419 var manifest: File? = null in <lambda>() variable in com.android.tools.metalava.Options 716 … ARG_MANIFEST, "-manifest" -> manifest = stringToExistingFile(getValue(args, ++index)) in <lambda>()
|
D | ApiAnalyzer.kt | 776 options.showAnnotations.contains(ANDROID_SYSTEM_API) && options.manifest != null in <lambda>()
|
/tools/repohooks/ |
D | README.md | 31 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/ |
D | Android.bp | 27 manifest: "manifest.txt",
|
/tools/test/connectivity/tools/ |
D | .gitignore | 31 *.manifest
|
/tools/test/connectivity/acts/ |
D | .gitignore | 31 *.manifest
|
/tools/test/graphicsbenchmark/performance_tests/deviceside/ |
D | Android.bp | 18 manifest: "AndroidManifest.xml",
|
/tools/apksig/ |
D | Android.bp | 31 manifest: "src/apksigner/apksigner.mf",
|
/tools/tradefederation/core/ |
D | Android.bp | 117 manifest: "MANIFEST.mf",
|