/tools/test/graphicsbenchmark/performance_tests/helper/test/com/android/game/qualification/ |
D | GameCoreConfigurationXmlParserTest.java | 67 ApkInfo apk = config.getApkInfo().get(0); in testSingleApkInfo() local 68 assertEquals("foo", apk.getName()); in testSingleApkInfo() 69 assertEquals("foo.apk", apk.getFileName()); in testSingleApkInfo() 70 assertEquals("com.foo.test", apk.getPackageName()); in testSingleApkInfo() 71 assertEquals(null, apk.getActivityName()); in testSingleApkInfo() 72 assertEquals(null, apk.getScript()); in testSingleApkInfo() 73 assertEquals(10000, apk.getLoadTime()); in testSingleApkInfo() 74 assertEquals(10000, apk.getRunTime()); in testSingleApkInfo() 99 ApkInfo apk = apks.get(0); in testOptionalFields() local 100 assertEquals("foo", apk.getName()); in testOptionalFields() [all …]
|
/tools/test/graphicsbenchmark/dist/ |
D | README | 4 Usage: ./run_gamecore.sh [--all] [--apk-info=file] [--apk-dir=dir] 9 --apk-info=file An XML file describing the list of APKs for qualifications. 10 --apk-dir=dir Directory containing the APKs for qualifications. If --apk-info is 11 not specified and a file named 'apk-info.xml' exists in --apk-dir, 12 that file will be used as the apk-info.
|
D | run_gamecore.sh | 31 OPTS=`getopt -o ah -l all,help,apk-info:,apk-dir: -- "$@"` || usage 39 --apk-info) 41 --apk-dir)
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
D | V4SchemeSigner.java | 17 package com.android.apksig.internal.apk.v4; 19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeCertificates; 20 import static com.android.apksig.internal.apk.v2.V2SchemeSigner.APK_SIGNATURE_SCHEME_V2_BLOCK_ID; 21 import static com.android.apksig.internal.apk.v3.V3SchemeSigner.APK_SIGNATURE_SCHEME_V3_BLOCK_ID; 23 import com.android.apksig.apk.ApkFormatException; 24 import com.android.apksig.apk.ApkUtils; 25 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 26 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignerConfig; 27 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 28 import com.android.apksig.internal.apk.SignatureAlgorithm; [all …]
|
D | V4SchemeVerifier.java | 17 package com.android.apksig.internal.apk.v4; 19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.toHex; 23 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 24 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 25 import com.android.apksig.internal.apk.SignatureAlgorithm; 68 public static ApkSigningBlockUtils.Result verify(DataSource apk, File v4SignatureFile) in verify() argument 96 final byte[] signedData = V4Signature.getSigningData(apk.size(), hashingInfo, signingInfo); in verify() 107 verifyRootHashAndTree(apk, signerInfo, hashingInfo.rawRootHash, tree); in verify()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/ |
D | V2SourceStampSigner.java | 17 package com.android.apksig.internal.apk.stamp; 19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V2; 20 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V3; 21 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.VERSION_JAR_SIGNATURE_SCHEME; 22 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsLengthPrefixedElement; 23 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed… 24 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed… 26 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 27 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignerConfig; 28 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
|
D | V1SourceStampVerifier.java | 16 package com.android.apksig.internal.apk.stamp; 18 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed… 19 import static com.android.apksig.internal.apk.stamp.V1SourceStampSigner.V1_SOURCE_STAMP_BLOCK_ID; 22 import com.android.apksig.apk.ApkFormatException; 23 import com.android.apksig.apk.ApkUtils; 24 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 25 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 26 import com.android.apksig.internal.apk.SignatureInfo; 65 DataSource apk, in verify() argument 77 apk, zipSections, V1_SOURCE_STAMP_BLOCK_ID, result); in verify()
|
D | V1SourceStampSigner.java | 17 package com.android.apksig.internal.apk.stamp; 19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsLengthPrefixedElement; 20 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed… 21 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed… 23 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 24 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignerConfig; 25 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
|
D | V2SourceStampVerifier.java | 17 package com.android.apksig.internal.apk.stamp; 19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed… 20 import static com.android.apksig.internal.apk.stamp.V2SourceStampSigner.V2_SOURCE_STAMP_BLOCK_ID; 23 import com.android.apksig.apk.ApkFormatException; 24 import com.android.apksig.apk.ApkUtils; 25 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 26 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 27 import com.android.apksig.internal.apk.SignatureInfo; 67 DataSource apk, in verify() argument 79 apk, zipSections, V2_SOURCE_STAMP_BLOCK_ID, result); in verify()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | BuildTestsZipUtilsTest.java | 69 File apk = new File(apkDir, "TestApk.apk"); in testGetApkFile_fromTestDir() local 70 apk.createNewFile(); in testGetApkFile_fromTestDir() 80 assertEquals(apk, apkFile); in testGetApkFile_fromTestDir() 100 File apk = new File(apkDir, "TestApk.apk"); in testGetApkFile_fromTestDir_testCase() local 101 apk.createNewFile(); in testGetApkFile_fromTestDir_testCase() 111 assertEquals(apk, apkFile); in testGetApkFile_fromTestDir_testCase() 131 File apk = new File(apkDir, "TestApk.apk"); in testGetApkFile_fromTestDir_differentModule_testCase() local 132 apk.createNewFile(); in testGetApkFile_fromTestDir_differentModule_testCase() 142 assertEquals(apk, apkFile); in testGetApkFile_fromTestDir_differentModule_testCase()
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkVerifierTest.java | 26 import com.android.apksig.apk.ApkFormatException; 927 String apk = "v1-only-with-signed-attrs.apk"; in testV1SignedAttrs() local 929 verifyForMinSdkVersion(apk, AndroidSdkVersion.JELLY_BEAN_MR2), in testV1SignedAttrs() 931 assertVerified(verifyForMinSdkVersion(apk, AndroidSdkVersion.KITKAT)); in testV1SignedAttrs() 933 apk = "v1-only-with-signed-attrs-signerInfo1-good-signerInfo2-good.apk"; in testV1SignedAttrs() 935 verifyForMinSdkVersion(apk, AndroidSdkVersion.JELLY_BEAN_MR2), in testV1SignedAttrs() 937 assertVerified(verifyForMinSdkVersion(apk, AndroidSdkVersion.KITKAT)); in testV1SignedAttrs() 955 String apk = "v1-only-with-signed-attrs-missing-content-type.apk"; in testV1SignedAttrsMissingContentType() local 956 assertVerified(verifyForMaxSdkVersion(apk, AndroidSdkVersion.N - 1)); in testV1SignedAttrsMissingContentType() 957 assertVerificationFailure(verify(apk), Issue.JAR_SIG_VERIFY_EXCEPTION); in testV1SignedAttrsMissingContentType() [all …]
|
/tools/tradefederation/core/tests/res/testdata/ |
D | test_mapping_with_mainline | 4 "name": "test[mod1.apk]", 12 "name": "test[mod2.apk]", 20 "name": "test[mod1.apk+mod2.apk]"
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstallerTest.java | 82 File apk = FileUtil.createTempFile("testapk", ".apk", mTmpDepDir); in testGetLocalPathForFilename_withVariable() local 83 File res = mPreparer.getLocalPathForFilename(mTestInfo, apk.getName()); in testGetLocalPathForFilename_withVariable() 86 assertEquals(apk.getAbsolutePath(), res.getAbsolutePath()); in testGetLocalPathForFilename_withVariable() 119 File apk = mPreparer.getLocalPathForFilename(mTestInfo, tmpApk.getName()); in testGetLocalPathForFileName() local 120 assertEquals(tmpApk.getAbsolutePath(), apk.getAbsolutePath()); in testGetLocalPathForFileName() 157 File apk = mPreparer.getLocalPathForFilename(mTestInfo, tmpApk.getName()); in testGetLocalPathForFileName_testsDir() local 158 assertEquals(tmpApk.getAbsolutePath(), apk.getAbsolutePath()); in testGetLocalPathForFileName_testsDir() 171 File apk = mPreparer.getLocalPathForFilename(mTestInfo, "foo.apk"); in testGetLocalPathForFileName_inBuildKey() local 172 assertEquals(tmpApk.getAbsolutePath(), apk.getAbsolutePath()); in testGetLocalPathForFileName_inBuildKey() 197 File apk = mPreparer.getLocalPathForFilename(mTestInfo, "suite-apk-installer.apk"); in testGetLocalPathForFileName_remoteZip() local [all …]
|
/tools/test/graphicsbenchmark/performance_tests/deviceside/src/com/android/game/qualification/device/ |
D | GameQualificationTest.java | 59 for (ApkInfo apk : apks) { in data() 60 params.add(new Object[] { apk.getName(), apk }); in data() 80 private void startApp(ApkInfo apk) throws IntentFilter.MalformedMimeTypeException, IOException { in startApp() argument 85 mReport.begin(apk.getName()); in startApp() 86 Log.d(TAG, "Launching " + apk.getPackageName()); in startApp() 90 .getLaunchIntentForPackage(apk.getPackageName()); in startApp() 91 if (apk.getActivityName() != null) { in startApp() 92 intent.setClassName(apk.getPackageName(), apk.getActivityName()); in startApp()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zfile/ |
D | ApkAlignmentTest.java | 40 File apk = new File(mTemporaryFolder.getRoot(), "a.apk"); in soFilesUncompressedAndAligned() local 48 apk, in soFilesUncompressedAndAligned() 64 try (ZFile zf = new ZFile(apk)) { in soFilesUncompressedAndAligned() 97 File apk = new File(mTemporaryFolder.getRoot(), "b.apk"); in soFilesMergedFromZipsCanBeUncompressedAndAligned() local 101 apk, in soFilesMergedFromZipsCanBeUncompressedAndAligned() 117 try (ZFile zf = new ZFile(apk)) { in soFilesMergedFromZipsCanBeUncompressedAndAligned() 137 File apk = new File(mTemporaryFolder.getRoot(), "a.apk"); in soFilesUncompressedAndNotAligned() local 145 apk, in soFilesUncompressedAndNotAligned() 161 try (ZFile zf = new ZFile(apk)) { in soFilesUncompressedAndNotAligned() 194 File apk = new File(mTemporaryFolder.getRoot(), "b.apk"); in soFilesMergedFromZipsCanBeUncompressedAndNotAligned() local [all …]
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkVerifier.java | 19 import static com.android.apksig.apk.ApkUtils.SOURCE_STAMP_CERTIFICATE_HASH_ZIP_ENTRY_NAME; 20 import static com.android.apksig.apk.ApkUtils.computeSha256DigestBytes; 21 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V2; 22 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V3; 23 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.VERSION_JAR_SIGNATURE_SCHEME; 24 import static com.android.apksig.internal.apk.v1.V1SchemeSigner.MANIFEST_ENTRY_NAME; 26 import com.android.apksig.apk.ApkFormatException; 27 import com.android.apksig.apk.ApkUtils; 28 import com.android.apksig.internal.apk.AndroidBinXmlParser; 29 import com.android.apksig.internal.apk.ApkSigningBlockUtils; [all …]
|
/tools/test/graphicsbenchmark/ |
D | README | 17 --apk-info An XML file describing the list of APKs for qualifications. 18 --apk-dir Directory contains the APKs for qualifications. If --apk-info is not specified and a 19 file named 'apk-info.xml' exists in --apk-dir, that file will be used as the apk-info.
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | InstallApkSetup.java | 89 for (File apk : mApkPaths) { in setUp() 90 if (!apk.exists()) { in setUp() 92 apk.getAbsolutePath()), device.getDeviceDescriptor()); in setUp() 94 Log.i(LOG_TAG, String.format("Installing %s on %s", apk.getName(), in setUp() 106 String result = device.installPackage(apk, true, mInstallArgs.toArray(new String[]{})); in setUp() 111 apk.getAbsolutePath(), device.getSerialNumber(), result), in setUp() 115 apk.getAbsolutePath(), device.getSerialNumber(), result)); in setUp()
|
D | InstallBuildEnvApkSetup.java | 58 File apk = FileUtil.getFileForPath(testAppDir, apkPrimaryFileName, apkName); in setUp() local 59 CLog.i("Installing %s on %s", apk.getName(), device.getSerialNumber()); in setUp() 60 String result = device.installPackage(apk, true); in setUp() 63 "Failed to install %s on device %s. Reason: %s", apk.getAbsolutePath(), in setUp()
|
/tools/tradefederation/core/tests/res/testconfigs/yaml/ |
D | test-config.tf_yaml | 4 - apks: ["test.apk", "test2.apk"] 5 - apks: ["test1.apk"]
|
/tools/apksig/src/main/java/com/android/apksig/apk/ |
D | ApkUtils.java | 17 package com.android.apksig.apk; 19 import com.android.apksig.internal.apk.AndroidBinXmlParser; 20 import com.android.apksig.internal.apk.v1.V1SchemeVerifier; 57 public static ZipSections findZipSections(DataSource apk) in findZipSections() argument 60 ZipUtils.findZipEndOfCentralDirectoryRecord(apk); in findZipSections() 185 public static ApkSigningBlock findApkSigningBlock(DataSource apk, ZipSections zipSections) in findApkSigningBlock() argument 213 ByteBuffer footer = apk.getByteBuffer(centralDirStartOffset - 24, 24); in findApkSigningBlock() 233 ByteBuffer apkSigBlock = apk.getByteBuffer(apkSigBlockOffset, 8); in findApkSigningBlock() 241 return new ApkSigningBlock(apkSigBlockOffset, apk.slice(apkSigBlockOffset, totalSize)); in findApkSigningBlock() 285 public static ByteBuffer getAndroidManifest(DataSource apk) in getAndroidManifest() argument [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeSigner.java | 17 package com.android.apksig.internal.apk.v2; 19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed… 20 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed… 21 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeCertificates; 22 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodePublicKey; 24 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 25 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignerConfig; 26 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 27 import com.android.apksig.internal.apk.SignatureAlgorithm;
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeSigner.java | 17 package com.android.apksig.internal.apk.v3; 19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsLengthPrefixedElement; 20 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed… 21 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed… 22 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeCertificates; 23 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodePublicKey; 26 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 27 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignerConfig; 28 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 29 import com.android.apksig.internal.apk.SignatureAlgorithm;
|
D | V3SigningCertificateLineage.java | 17 package com.android.apksig.internal.apk.v3; 19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsLengthPrefixedElement; 20 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed… 21 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.getLengthPrefixedSlice; 22 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.readLengthPrefixedByteArray; 24 import com.android.apksig.apk.ApkFormatException; 25 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 26 import com.android.apksig.internal.apk.SignatureAlgorithm;
|
/tools/tradefederation/core/src/com/android/tradefed/config/yaml/ |
D | YamlTestDependencies.java | 48 for (String apk : (List<String>) dependencyEntry.get(APKS_KEY)) { in YamlTestDependencies() 49 mApkDependencies.add(apk.trim()); in YamlTestDependencies() 53 for (String apk : (List<String>) dependencyEntry.get(FILES_KEY)) { in YamlTestDependencies() 54 mFileDependencies.add(apk.trim()); in YamlTestDependencies()
|