/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/ |
D | SourceStampVerifier.java | 23 import static com.android.apksig.apk.ApkUtilsLite.computeSha256DigestBytes; 24 import static com.android.apksig.internal.apk.stamp.SourceStampConstants.SOURCE_STAMP_CERTIFICATE_H… 25 import static com.android.apksig.internal.apk.v1.V1SchemeConstants.MANIFEST_ENTRY_NAME; 26 import static com.android.apksig.internal.apk.v3.V3SchemeConstants.MIN_SDK_WITH_V31_SUPPORT; 28 import com.android.apksig.apk.ApkFormatException; 29 import com.android.apksig.apk.ApkUtilsLite; 30 import com.android.apksig.internal.apk.ApkSigResult; 31 import com.android.apksig.internal.apk.ApkSignerInfo; 32 import com.android.apksig.internal.apk.ApkSigningBlockUtilsLite; 33 import com.android.apksig.internal.apk.ContentDigestAlgorithm; [all …]
|
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.apk.ApkUtils.getTargetSandboxVersionFromBinaryAndroidManifest; 22 import static com.android.apksig.apk.ApkUtils.getTargetSdkVersionFromBinaryAndroidManifest; 23 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V2; 24 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V3; 25 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V31; 26 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V4; 27 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.VERSION_JAR_SIGNATURE_SCHEME; 28 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.VERSION_SOURCE_STAMP; [all …]
|
D | Constants.java | 19 import com.android.apksig.internal.apk.stamp.SourceStampConstants; 20 import com.android.apksig.internal.apk.v1.V1SchemeConstants; 21 import com.android.apksig.internal.apk.v2.V2SchemeConstants; 22 import com.android.apksig.internal.apk.v3.V3SchemeConstants;
|
/tools/aadevtools/validation/ |
D | install_apk.sh | 21 apk=$1 22 if [[ -f ${apk} ]]; then 23 echo "Installing ${apk}" 24 cmd="adb install -r ${apk}" 27 echo "Error: Can not find ${apk}"
|
D | batch_install_app.sh | 76 for apk in "${!apkDic[@]}"; do 77 path="${apkDic[${apk}]}" 79 apkBadgingDic[${apk}]="\"${badging}\"" 80 log "${apkBadgingDic[${apk}]}"
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/ |
D | V2SourceStampVerifier.java | 17 package com.android.apksig.internal.apk.stamp; 19 import static com.android.apksig.internal.apk.ApkSigningBlockUtilsLite.encodeAsSequenceOfLengthPref… 20 import static com.android.apksig.internal.apk.stamp.SourceStampConstants.V2_SOURCE_STAMP_BLOCK_ID; 24 import com.android.apksig.apk.ApkFormatException; 25 import com.android.apksig.internal.apk.ApkSigResult; 26 import com.android.apksig.internal.apk.ApkSignerInfo; 27 import com.android.apksig.internal.apk.ApkSigningBlockUtilsLite; 28 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 29 import com.android.apksig.internal.apk.SignatureInfo; 30 import com.android.apksig.internal.apk.SignatureNotFoundException; [all …]
|
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.SourceStampConstants.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 | 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… 27 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 28 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignerConfig; 29 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
|
/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.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_APK_SIGNATURE_SCHEME_V31; 22 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeCertificates; 23 import static com.android.apksig.internal.apk.v2.V2SchemeConstants.APK_SIGNATURE_SCHEME_V2_BLOCK_ID; 24 import static com.android.apksig.internal.apk.v3.V3SchemeConstants.APK_SIGNATURE_SCHEME_V31_BLOCK_I… 25 import static com.android.apksig.internal.apk.v3.V3SchemeConstants.APK_SIGNATURE_SCHEME_V3_BLOCK_ID; 27 import com.android.apksig.apk.ApkUtils; 28 import com.android.apksig.internal.apk.ApkSigningBlockUtils; [all …]
|
/tools/tradefederation/core/javatests/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/tradefederation/core/javatests/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstallerTest.java | 83 File apk = FileUtil.createTempFile("testapk", ".apk", mTmpDepDir); in testGetLocalPathForFilename_withVariable() local 84 File res = mPreparer.getLocalPathForFilename(mTestInfo, apk.getName()); in testGetLocalPathForFilename_withVariable() 87 assertEquals(apk.getAbsolutePath(), res.getAbsolutePath()); in testGetLocalPathForFilename_withVariable() 120 File apk = mPreparer.getLocalPathForFilename(mTestInfo, tmpApk.getName()); in testGetLocalPathForFileName() local 121 assertEquals(tmpApk.getAbsolutePath(), apk.getAbsolutePath()); in testGetLocalPathForFileName() 158 File apk = mPreparer.getLocalPathForFilename(mTestInfo, tmpApk.getName()); in testGetLocalPathForFileName_testsDir() local 159 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() 196 File apk = mPreparer.getLocalPathForFilename(mTestInfo, "suite-apk-installer.apk"); in testGetLocalPathForFileName_remoteZip() local [all …]
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkVerifierTest.java | 38 import com.android.apksig.apk.ApkFormatException; 39 import com.android.apksig.apk.ApkUtils; 40 import com.android.apksig.internal.apk.ApkSigningBlockUtils; 41 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 42 import com.android.apksig.internal.apk.v3.V3SchemeConstants; 332 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultLineage() local 335 ApkUtils.ZipSections zipSections = ApkUtils.findZipSections(apk); in testGetResultLineage() 338 apk, zipSections, sdkVersion, VERSION_APK_SIGNATURE_SCHEME_V31); in testGetResultLineage() 355 DataSource apk = DataSources.asDataSource(ByteBuffer.wrap(Resources.toByteArray(getClass(), in testGetResultV3Lineage() local 358 ApkUtils.ZipSections zipSections = ApkUtils.findZipSections(apk); in testGetResultV3Lineage() [all …]
|
/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/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/tradefederation/core/javatests/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/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.stamp.SourceStampConstants; 21 import com.android.apksig.internal.apk.v1.V1SchemeVerifier; 58 public static ZipSections findZipSections(DataSource apk) in findZipSections() argument 60 com.android.apksig.zip.ZipSections zipSections = ApkUtilsLite.findZipSections(apk); in findZipSections() 120 public static ApkSigningBlock findApkSigningBlock(DataSource apk) in findApkSigningBlock() argument 124 inputZipSections = ApkUtils.findZipSections(apk); in findApkSigningBlock() 128 return findApkSigningBlock(apk, inputZipSections); in findApkSigningBlock() 140 public static ApkSigningBlock findApkSigningBlock(DataSource apk, ZipSections zipSections) in findApkSigningBlock() argument [all …]
|
D | ApkUtilsLite.java | 17 package com.android.apksig.apk; 44 public static ZipSections findZipSections(DataSource apk) in findZipSections() argument 47 ZipUtils.findZipEndOfCentralDirectoryRecord(apk); in findZipSections() 95 public static ApkSigningBlock findApkSigningBlock(DataSource apk, ZipSections zipSections) in findApkSigningBlock() argument 123 ByteBuffer footer = apk.getByteBuffer(centralDirStartOffset - 24, 24); in findApkSigningBlock() 143 ByteBuffer apkSigBlock = apk.getByteBuffer(apkSigBlockOffset, 8); in findApkSigningBlock() 151 return new ApkSigningBlock(apkSigBlockOffset, apk.slice(apkSigBlockOffset, totalSize)); in findApkSigningBlock()
|
/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 | 87 for (File apk : mApkPaths) { in setUp() 88 if (!apk.exists()) { in setUp() 90 apk.getAbsolutePath()), device.getDeviceDescriptor()); in setUp() 92 CLog.i("Installing %s on %s", apk.getName(), device.getSerialNumber()); in setUp() 112 String result = device.installPackage(apk, true, mInstallArgs.toArray(new String[]{})); in setUp() 117 apk.getAbsolutePath(), device.getSerialNumber(), result), in setUp() 122 apk.getAbsolutePath(), device.getSerialNumber(), result); in setUp()
|
/tools/asuite/atest/unittest_data/ |
D | AndroidLibCoreTest.xml.data | 7 <option name="test-file-name" value="CtsJankDeviceTestCases.apk" /> 8 <option name="test-file-name" value="is_not_module.apk" /> 9 …<option name="push" value="GtsEmptyTestApp.apk->/data/local/tmp/gts/packageinstaller/GtsEmptyTestA…
|
D | AndroidTest.xml.data | 7 <option name="test-file-name" value="CtsJankDeviceTestCases.apk" /> 8 <option name="test-file-name" value="is_not_module.apk" /> 9 …<option name="push" value="GtsEmptyTestApp.apk->/data/local/tmp/gts/packageinstaller/GtsEmptyTestA…
|