/aosp14/frameworks/base/tools/aapt2/cmd/ |
H A D | Dump.cpp | 228 int DumpConfigsCommand::Dump(LoadedApk* apk) { in Dump() 259 int DumpPackageNameCommand::Dump(LoadedApk* apk) { in Dump() 268 int DumpStringsCommand::Dump(LoadedApk* apk) { in Dump() 284 int DumpStyleParentCommand::Dump(LoadedApk* apk) { in Dump() 309 int DumpTableCommand::Dump(LoadedApk* apk) { in Dump() 329 int DumpXmlStringsCommand::Dump(LoadedApk* apk) { in Dump() 385 int DumpXmlTreeCommand::Dump(LoadedApk* apk) { in Dump() 396 int DumpOverlayableCommand::Dump(LoadedApk* apk) { in Dump() 563 int DumpChunks::Dump(LoadedApk* apk) { in Dump()
|
H A D | ApkInfo.cpp | 36 int ExportApkInfo(LoadedApk* apk, bool include_resource_table, in ExportApkInfo() 68 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(path, diag_); in Action() local
|
H A D | Dump.h | 50 std::optional<std::string> GetPackageName(LoadedApk* apk) { in GetPackageName() 75 for (auto apk : args) { in Action() local 143 int Dump(LoadedApk* apk) override { in Dump() 178 int Dump(LoadedApk* apk) override { in Dump()
|
H A D | Convert_test.cpp | 61 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_convert_apk, &diag); in TEST_F() local 99 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_convert_apk, &diag); in TEST_F() local 191 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(binary_apk, &diag); in TEST_F() local
|
H A D | Link_test.cpp | 52 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F() local 80 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F() local 116 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F() local 164 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F() local 218 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F() local 262 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F() local 730 auto apk = LoadedApk::LoadApkFromPath(lib_apk, &diag); local
|
H A D | Optimize.cpp | 134 int Run(std::unique_ptr<LoadedApk> apk) { in Run() 329 bool ExtractAppDataFromManifest(OptimizeContext* context, const LoadedApk* apk, in ExtractAppDataFromManifest() 403 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(apk_path, context.GetDiagnostics()); in Action() local
|
H A D | Compile_test.cpp | 215 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in AssertTranslations() local 317 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(apk_path, &diag); in TEST_F() local
|
H A D | Convert.cpp | 269 int Convert(IAaptContext* context, LoadedApk* apk, IArchiveWriter* output_writer, in Convert() 392 unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(path, context.GetDiagnostics()); in Action() local
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
H A D | ArtStatsLogUtilsTest.java | 99 Path apk = null; in testProfileAndVdexDexMetadata() local 131 Path apk = null; in testProfileOnlyDexMetadata() local 163 Path apk = null; in testVdexOnlyDexMetadata() local 194 Path apk = null; in testNoneDexMetadata() local 224 Path apk = null; in testUnKnownDexMetadata() local
|
/aosp14/frameworks/base/core/java/android/util/apk/ |
H A D | ApkSignatureSchemeV2Verifier.java | 88 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in hasSignature() 131 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in verify() 145 private static VerifiedSigner verify(RandomAccessFile apk, boolean verifyIntegrity) in verify() 158 public static SignatureInfo findSignature(RandomAccessFile apk) in findSignature() 171 RandomAccessFile apk, in verify() 404 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in getVerityRootHash() 414 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateApkVerity()
|
H A D | ApkSignatureSchemeV3Verifier.java | 82 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in hasSignature() 121 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in verify() 136 private static VerifiedSigner verify(RandomAccessFile apk, boolean verifyIntegrity) in verify() 164 public static SignatureInfo findSignature(RandomAccessFile apk) in findSignature() 177 private static SignatureInfo findSignature(RandomAccessFile apk, int blockId) in findSignature() 188 private ApkSignatureSchemeV3Verifier(RandomAccessFile apk, boolean verifyIntegrity) { in ApkSignatureSchemeV3Verifier() 532 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in getVerityRootHash() 542 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateApkVerity()
|
H A D | VerityBuilder.java | 81 public static VerityResult generateApkVerityTree(@NonNull RandomAccessFile apk, in generateApkVerityTree() 88 private static VerityResult generateVerityTreeInternal(@NonNull RandomAccessFile apk, in generateVerityTreeInternal() 107 static void generateApkVerityFooter(@NonNull RandomAccessFile apk, in generateApkVerityFooter() 134 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateFsVerityRootHash() 161 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateApkVerity() 292 private static void generateApkVerityDigestAtLeafLevel(RandomAccessFile apk, in generateApkVerityDigestAtLeafLevel() 338 private static byte[] generateFsVerityTreeInternal(@NonNull RandomAccessFile apk, in generateFsVerityTreeInternal() 367 private static byte[] generateVerityTreeInternal(@NonNull RandomAccessFile apk, in generateVerityTreeInternal()
|
H A D | ApkSigningBlockUtils.java | 69 static SignatureInfo findSignature(RandomAccessFile apk, int blockId) in findSignature() 100 RandomAccessFile apk, in verifyIntegrity() 129 expectedDigests.get(CONTENT_DIGEST_VERITY_CHUNKED_SHA256), apk, signatureInfo); in verifyIntegrity() local 367 RandomAccessFile apk, in verifyIntegrityForVerityBasedAlgorithm() 393 static Pair<ByteBuffer, Long> getEocd(RandomAccessFile apk) in getEocd() 699 RandomAccessFile apk, long centralDirOffset) in findApkSigningBlock()
|
H A D | SourceStampVerifier.java | 120 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in verify() 144 RandomAccessFile apk, byte[] sourceStampCertificateDigest, byte[] manifestBytes) { in verify() 335 RandomAccessFile apk, byte[] manifestBytes) throws IOException { in getSignatureSchemeApkContentDigests()
|
/aosp14/frameworks/base/libs/androidfw/tests/ |
H A D | AssetManager2_bench.cpp | 41 auto apk = ApkAssets::Load(path); in BM_AssetManagerLoadAssets() local 64 auto apk = ApkAssets::Load(path); in BM_AssetManagerLoadFrameworkAssets() local 132 auto apk = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); in BM_AssetManagerGetBag() local 184 auto apk = ApkAssets::Load(kFrameworkPath); in BM_AssetManagerGetResourceLocales() local 220 auto apk = ApkAssets::Load(kFrameworkPath); in BM_AssetManagerSetConfigurationFramework() local
|
H A D | Theme_bench.cpp | 31 auto apk = ApkAssets::Load(kFrameworkPath); in BM_ThemeApplyStyleFramework() local 65 auto apk = ApkAssets::Load(kFrameworkPath); in BM_ThemeGetAttribute() local
|
H A D | BenchmarkHelpers.cpp | 58 auto apk = ApkAssets::Load(path); in GetResourceBenchmark() local
|
/aosp14/frameworks/base/tools/aapt2/optimize/ |
H A D | MultiApkGenerator_test.cpp | 59 MultiApkGeneratorWrapper(LoadedApk* apk, IAaptContext* context) in MultiApkGeneratorWrapper() 109 LoadedApk apk = {{"test.apk"}, {}, std::move(table), {}, kBinary}; in TEST_F() local 136 LoadedApk apk = {{"test.apk"}, {}, std::move(table), {}, kBinary}; in TEST_F() local 161 LoadedApk apk = {{"test.apk"}, {}, std::move(table), {}, kBinary}; in TEST_F() local
|
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/appenumeration/src/com/android/server/pm/test/appenumeration/ |
H A D | CrossUserPackageVisibilityTests.java | 315 private static void installPackage(File apk) { in installPackage() 319 private static void installPackageForUser(File apk, UserReference user) { in installPackageForUser() 323 private static void installPackageForUser(File apk, UserReference user, in installPackageForUser()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/util/apk/ |
H A D | SourceStampVerifierTest.java | 235 File apk = File.createTempFile("SourceStampApk", ".apk"); in getApk() local 242 private byte[] getSourceStampCertificateHashFromApk(File apk) throws IOException { in getSourceStampCertificateHashFromApk()
|
/aosp14/frameworks/base/tools/aapt2/test/ |
H A D | Fixture.cpp | 149 std::unique_ptr<io::IData> CommandTestFixture::OpenFileAsData(LoadedApk* apk, 157 void CommandTestFixture::AssertLoadXml(LoadedApk* apk, const io::IData* data,
|
/aosp14/frameworks/base/tools/aapt2/ |
H A D | LoadedApk.h | 61 LoadedApk(const android::Source& source, std::unique_ptr<io::IFileCollection> apk, in LoadedApk()
|
H A D | LoadedApk.cpp | 38 static ApkFormat DetermineApkFormat(io::IFileCollection* apk) { in DetermineApkFormat() 79 std::unique_ptr<io::ZipFileCollection> apk = io::ZipFileCollection::Create(path, &error); in LoadApkFromPath() local
|
/aosp14/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/ |
H A D | NetworkStagedRollbackTest.java | 66 final File apk = new File("/system/priv-app/" + name + "/" + name + ".apk"); in findNetworkStackApk() local
|
/aosp14/frameworks/base/core/java/android/webkit/ |
H A D | WebViewLibraryLoader.java | 78 LoadedApk apk = ActivityThread.currentActivityThread().getPackageInfo( in main() local
|