Home
last modified time | relevance | path

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

12

/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 …]
DApiLintTest.kt2294 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check closeable for minSdkVersion 19()
2329 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Do not check closeable for minSdkVersion less than 19()
2366 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Check ICU types for minSdkVersion 24()
2398 manifest = """<?xml version="1.0" encoding="UTF-8"?> in Do not check ICU types for minSdkVersion less than 24()
DDriverTest.kt343 manifest: String? = null, in <lambda>()
670 val manifestFileArgs = if (manifest != null) { in <lambda>()
672 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/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/metalava/src/main/java/com/android/tools/metalava/
DDriver.kt265 options.manifest?.let { codebase.manifest = it } in processFlags()
862 manifest: File? = options.manifest, in parseSources()
903 codebase.manifest = manifest in parseSources()
909 fun loadFromJarFile(apiJar: File, manifest: File? = null, preFiltered: Boolean = false): Codebase { in loadFromJarFile()
924 if (manifest != null) { in loadFromJarFile()
925 codebase.manifest = options.manifest in loadFromJarFile()
DOptions.kt459 var manifest: File? = null in <lambda>() variable in com.android.tools.metalava.Options
865 … ARG_MANIFEST, "-manifest" -> manifest = stringToExistingFile(getValue(args, ++index)) in <lambda>()
DApiAnalyzer.kt772 options.showAnnotations.matches(ANDROID_SYSTEM_API) && options.manifest != null in <lambda>()
/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/tradefederation/core/src/com/android/tradefed/cluster/
DSubprocessReportingHelper.java99 Manifest manifest = new Manifest(); in buildSubprocessReporterJar() local
100 createJar(reporterJar, manifest, classFiles, configFileName, patchedConfigFile); in buildSubprocessReporterJar()
107 Manifest manifest = new Manifest(new FileInputStream(mf)); in buildSubprocessReporterJar() local
108 createJar(reporterJar, manifest, classFiles, configFileName, patchedConfigFile); in buildSubprocessReporterJar()
124 File jar, Manifest manifest, Set<File> classFiles, String configName, File configFile) in createJar() argument
126 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.py234 manifest = manifest_split.update_manifest(
238 projects = manifest.getroot().findall('project')
245 manifest = ET.ElementTree(ET.fromstring('<manifest></manifest>'))
246 manifest_sha1 = hashlib.sha1(ET.tostring(manifest.getroot())).hexdigest()
250 manifest, 'test_manifest')).decode(),
Dmanifest_split.py361 def update_manifest(manifest, input_projects, remove_projects): argument
374 root = manifest.getroot()
378 return manifest
381 def create_manifest_sha1_element(manifest, name): argument
395 hashlib.sha1(ET.tostring(manifest.getroot())).hexdigest())
/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/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.bp27 manifest: "manifest.txt",
/tools/tradefederation/core/
DAndroid.bp111 manifest: "MANIFEST.mf",
127 manifest: "MANIFEST.mf",
/tools/test/graphicsbenchmark/performance_tests/deviceside/
DAndroid.bp18 manifest: "AndroidManifest.xml",
/tools/tradefederation/core/tests/
DAndroid.bp41 manifest: "MANIFEST.mf",
/tools/apksig/
DAndroid.bp32 manifest: "src/apksigner/apksigner.mf",
/tools/dexter/testdata/expected/
Dlarge.rewrite20364 66| const-string/jumbo v8, "' in manifest"
499136 289| const-string/jumbo v27, " has no manifest"
502599 177| const-string/jumbo v5, " not found in manifest"
504058 251| const-string/jumbo v7, "Failed to read manifest from "
504334 78| const-string/jumbo v6, "<manifest> specifies bad sharedUserId name ""
504486 279| const-string/jumbo v7, "Skipping unsupported element under <manifest>: "
504531 350| const-string/jumbo v6, "<manifest> has more than one <application>"
505821 2098| const-string/jumbo v7, "Unknown element under <manifest>: "
505866 2167| const-string/jumbo v5, "<manifest> does not contain an <application> or <instrumentation>"
509485 32| const-string/jumbo v5, "manifest"
[all …]
Dlarge.compact_cfg24152 65| const-string/jumbo v8, "' in manifest"
609833 287| const-string/jumbo v27, " has no manifest"
614094 177| const-string/jumbo v5, " not found in manifest"
615811 251| const-string/jumbo v7, "Failed to read manifest from "
616131 78| const-string/jumbo v6, "<manifest> specifies bad sharedUserId name ""
616315 279| const-string/jumbo v7, "Skipping unsupported element under <manifest>: "
616366 349| const-string/jumbo v6, "<manifest> has more than one <application>"
617934 2089| const-string/jumbo v7, "Unknown element under <manifest>: "
617985 2158| const-string/jumbo v5, "<manifest> does not contain an <application> or <instrumentation>"
622356 32| const-string/jumbo v5, "manifest"
[all …]

12