Home
last modified time | relevance | path

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

12

/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/treble/split/
DREADME.md7 the target, it shouldn't be in the split manifest. This smaller manifest can be
9 should be faster and smaller than a sync of a full manifest because it is
13 manifest from a full manifest using dependency information from the source tree
21 ### 1. Run a full build using a full manifest
37 # target that should be buildable from your split manifest.
45 # Create the split manifest using a sample config XML specific to aosp_arm64.
47 --manifest .repo/manifests/default.xml \
48 --split-manifest split_default.xml \
54 ### 3. Build using the split manifest
56 You should test that the split manifest created by the tool can be used to build
[all …]
Dmanifest_split.py168 def get_repo_projects(repo_list_file, manifest, path_mappings): argument
186 root = manifest.getroot()
433 def update_manifest(manifest, input_projects, remove_projects): argument
446 root = manifest.getroot()
450 return manifest
Dmanifest_split_test.py62 manifest = ET.ElementTree(ET.fromstring(manifest_contents))
64 None, manifest, path_mappings=[])
287 manifest = manifest_split.update_manifest(
291 projects = manifest.getroot().findall('project')
/tools/metalava/src/test/java/com/android/tools/metalava/
DSystemServiceCheckTest.kt42 manifest = """<?xml version="1.0" encoding="UTF-8"?> in SystemService OK, loaded from signature file()
78 manifest = """<?xml version="1.0" encoding="UTF-8"?> in SystemService OK, loaded from source()
112 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService -- no permission annotation()
139 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService -- can miss a permission with anyOf()
175 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService such that at least one permission must be defined with anyOf()
202 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService -- missing one permission with allOf()
238 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService -- must be system permission, not normal()
255 fun `Check SystemService -- missing manifest permissions`() { in Check SystemService -- missing manifest permissions()
278 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check SystemService -- missing manifest permissions()
285 fun `Invalid manifest`() { in Invalid manifest()
[all …]
DApiLintTest.kt2352 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check closeable for minSdkVersion 19()
2386 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Do not check closeable for minSdkVersion less than 19()
2422 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check ICU types for minSdkVersion 24()
2453 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Do not check ICU types for minSdkVersion less than 24()
DDriverTest.kt316 manifest: String? = null, in <lambda>()
600 val manifestFileArgs = if (manifest != null) { in <lambda>()
602 file.writeText(manifest.trimIndent()) in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DCodebase.kt133 var manifest: File? in <lambda>() variable
267 override var manifest: File? = null variable in com.android.tools.metalava.model.DefaultCodebase
280 assert(manifest != null) { in getPermissionLevel()
285 val doc = parseDocument(manifest?.readText(UTF_8) ?: "", true) in getPermissionLevel()
295 … reporter.report(Issues.PARSE_ERROR, manifest, "Failed to parse $manifest: ${error.message}") in getPermissionLevel()
305 if (manifest == null) { in getMinSdkVersion()
310 val doc = parseDocument(manifest?.readText(UTF_8) ?: "", true) in getMinSdkVersion()
319 … reporter.report(Issues.PARSE_ERROR, manifest, "Failed to parse $manifest: ${error.message}") in getMinSdkVersion()
/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/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java256 OutputManifestFile manifest = in sign() local
261 signerConfigs, jarEntryDigestAlgorithm, apkSigningSchemeIds, createdBy, manifest); in sign()
281 OutputManifestFile manifest) in signManifest() argument
292 generateSignatureFile(apkSigningSchemeIds, digestAlgorithm, createdBy, manifest); in signManifest()
316 signatureJarEntries.add(Pair.of(V1SchemeConstants.MANIFEST_ENTRY_NAME, manifest.contents)); in signManifest()
428 OutputManifestFile manifest) throws NoSuchAlgorithmException { in generateSignatureFile() argument
455 Base64.getEncoder().encodeToString(md.digest(manifest.contents))); in generateSignatureFile()
464 : manifest.individualSectionsContents.entrySet()) { in generateSignatureFile()
DV1SchemeVerifier.java181 ManifestParser manifest = new ManifestParser(manifestBytes); in parseManifest() local
182 ManifestParser.Section manifestMainSection = manifest.readSection(); in parseManifest()
183 List<ManifestParser.Section> manifestIndividualSections = manifest.readAllSections(); in parseManifest()
/tools/trebuchet/
DAndroid.bp98 manifest: "trebuchet/analyzer/MANIFEST.mf",
110 manifest: "trebuchet/startup-analyzer/MANIFEST.mf",
123 manifest: "trebuchet/startup-summarizer/MANIFEST.mf",
136 manifest: "trebuchet/traceutils/MANIFEST.mf",
148 manifest: "trebuchet/viewer/MANIFEST.mf",
/tools/metalava/src/main/java/com/android/tools/metalava/
DDriver.kt256 options.manifest?.let { codebase.manifest = it } in processFlags()
690 manifest: File? = options.manifest in parseSources()
723 codebase.manifest = manifest in parseSources()
727 fun loadFromJarFile(apiJar: File, manifest: File? = null, preFiltered: Boolean = false): Codebase { in loadFromJarFile()
738 if (manifest != null) { in loadFromJarFile()
739 codebase.manifest = options.manifest in loadFromJarFile()
/tools/metalava/
DDOWNLOADING.md3 Metalava can be downloaded from the `metalava-master` manifest branch via `repo` as explained below
32 repo init -u https://android.googlesource.com/platform/manifest -b metalava-master
DAndroid.bp33 manifest: "manifest.txt",
/tools/security/remote_provisioning/attestation_testing/
DAndroid.bp10 manifest: "AndroidManifest.xml",
/tools/test/connectivity/tools/
D.gitignore31 *.manifest
/tools/platform-compat/java/com/android/class2nonsdklist/
DAndroid.bp36 manifest: "class2nonsdklist.mf",
/tools/test/connectivity/acts_tests/
D.gitignore31 *.manifest
/tools/test/graphicsbenchmark/performance_tests/deviceside/
DAndroid.bp24 manifest: "AndroidManifest.xml",
/tools/test/connectivity/acts/
D.gitignore31 *.manifest
/tools/test/mobly_snippets/gft/
DAndroid.bp31 manifest: "src/main/AndroidManifest.xml",
/tools/apksig/
DAndroid.bp56 manifest: "src/apksigner/apksigner.mf",
/tools/treble/hacksaw/
DREADME.md47 $ repo init -u https://android.googlesource.com/platform/manifest

12