/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/ |
D | ApexShimValidationTest.java | 19 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME; 105 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testInstallRejected_VerifyPostReboot() 110 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithAdditionalFile_rebootless() 111 TestApp apex = new TestApp("ShimApex", SHIM_APEX_PACKAGE_NAME, 2, in testRejectsApexWithAdditionalFile_rebootless() 117 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithAdditionalFile_rebootless() 122 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithAdditionalFolder_rebootless() 123 TestApp apex = new TestApp("ShimApex", SHIM_APEX_PACKAGE_NAME, 2, in testRejectsApexWithAdditionalFolder_rebootless() 129 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithAdditionalFolder_rebootless() 134 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithPostInstallHook_rebootless() 135 TestApp apex = new TestApp("ShimApex", SHIM_APEX_PACKAGE_NAME, 2, in testRejectsApexWithPostInstallHook_rebootless() [all …]
|
D | StagedInstallTest.java | 24 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME; 117 "TestAppSamePackageNameAsApex", SHIM_APEX_PACKAGE_NAME, 1, /*isApex*/ false, 120 "Apex2DifferentCertificate", SHIM_APEX_PACKAGE_NAME, 2, /*isApex*/true, 126 "Apex2SignedBob", SHIM_APEX_PACKAGE_NAME, 2, /*isApex*/true, 129 "Apex2SignedBobRot", SHIM_APEX_PACKAGE_NAME, 2, /*isApex*/true, 132 "Apex2SignedBobRotRollback", SHIM_APEX_PACKAGE_NAME, 2, /*isApex*/true, 135 "Apex2", SHIM_APEX_PACKAGE_NAME, 2, /*isApex*/true, 138 "ApexWrongSha2", SHIM_APEX_PACKAGE_NAME, 2, /*isApex*/true, 141 "Apex2WithoutApkInApex", SHIM_APEX_PACKAGE_NAME, 2, /*isApex*/true, 144 "Apex3SignedBob", SHIM_APEX_PACKAGE_NAME, 3, /*isApex*/true, [all …]
|
/cts/hostsidetests/install/src/android/cts/install/host/ |
D | ShimApexRule.java | 19 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME; 76 mHostTest.getDevice().uninstallPackage(SHIM_APEX_PACKAGE_NAME); in uninstallShimApexIfNecessary() 78 Log.e(TAG, "Failed to uninstall " + SHIM_APEX_PACKAGE_NAME + " : " + errorMessage); in uninstallShimApexIfNecessary() 95 apex -> apex.name.equals(SHIM_APEX_PACKAGE_NAME)).findAny().orElseThrow( in getShimApex() 96 () -> new AssertionError("Can't find " + SHIM_APEX_PACKAGE_NAME)); in getShimApex()
|
/cts/hostsidetests/install/app/src/android/cts/install/ |
D | InstallRule.java | 20 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME; 133 return Arrays.asList(SHIM_APEX_PACKAGE_NAME); in getTestPackageNames() 137 return Arrays.asList(TestApp.A, SHIM_APEX_PACKAGE_NAME); in getTestPackageNames() 158 testAppMap.put(SHIM_APEX_PACKAGE_NAME, 1, TestApp.Apex1); in getTestAppTable() 159 testAppMap.put(SHIM_APEX_PACKAGE_NAME, 2, TestApp.Apex2); in getTestAppTable() 160 testAppMap.put(SHIM_APEX_PACKAGE_NAME, 3, TestApp.Apex3); in getTestAppTable()
|
D | SamegradeTest.java | 20 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME; 127 final PackageInfo shim = getPackageInfo(SHIM_APEX_PACKAGE_NAME); in action_systemApex_phase() 145 final PackageInfo shim = getPackageInfo(SHIM_APEX_PACKAGE_NAME); in assert_systemApex_postReboot_phase()
|
/cts/hostsidetests/rollback/app/src/com/android/cts/rollback/host/app/ |
D | HostTestHelper.java | 20 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME; 63 "Apex2SignedBobRotRollback", SHIM_APEX_PACKAGE_NAME, 2, /*isApex*/true, 315 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testApexOnlyStagedRollback_Phase1_InstallFirst() 325 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(2); in testApexOnlyStagedRollback_Phase2_InstallSecond() 339 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(3); in testApexOnlyStagedRollback_Phase3_RollBack() 345 RollbackInfo available = RollbackUtils.getAvailableRollback(SHIM_APEX_PACKAGE_NAME); in testApexOnlyStagedRollback_Phase3_RollBack() 369 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(3); in testApexOnlyStagedRollback_Phase3_RollBack() 378 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(2); in testApexOnlyStagedRollback_Phase4_Confirm() 390 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testApexOnlySystemVersionStagedRollback_Phase1_Install() 400 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(2); in testApexOnlySystemVersionStagedRollback_Phase2_RollBack() [all …]
|
/cts/hostsidetests/stagedinstall/src/com/android/tests/stagedinstall/host/ |
D | StagedInstallTest.java | 19 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME; 239 () -> new AssertionError("Can't find " + SHIM_APEX_PACKAGE_NAME) in testShimApexShouldPreInstalledIfUpdatingApexIsSupported() 361 .filter(a -> a.getModuleName().equals(SHIM_APEX_PACKAGE_NAME)) in testInstallStagedApex_SameGrade() 366 "No active version of " + SHIM_APEX_PACKAGE_NAME in testInstallStagedApex_SameGrade() 372 .filter(a -> a.getModuleName().equals(SHIM_APEX_PACKAGE_NAME)) in testInstallStagedApex_SameGrade() 377 "No active version of " + SHIM_APEX_PACKAGE_NAME in testInstallStagedApex_SameGrade() 726 () -> new AssertionError("Can't find " + SHIM_APEX_PACKAGE_NAME) in testUpdatedApexFromDataApexActiveCanBePulled() 769 .filter(a -> a.getModuleName().equals(SHIM_APEX_PACKAGE_NAME)) in testApexInfoListAfterUpdate() 780 "No factory version of " + SHIM_APEX_PACKAGE_NAME in testApexInfoListAfterUpdate() 782 assertThat(factoryShimApexInfo.getModuleName()).isEqualTo(SHIM_APEX_PACKAGE_NAME); in testApexInfoListAfterUpdate() [all …]
|
D | ApexShimValidationTest.java | 20 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME; 72 private static final String SHIM_APK_CODE_PATH_PREFIX = "/apex/" + SHIM_APEX_PACKAGE_NAME + "/"; 128 apex -> apex.name.equals(SHIM_APEX_PACKAGE_NAME)); in testShimApexIsPreInstalled() 272 SHIM_APEX_PACKAGE_NAME + ".*\\" + APEX_FILE_SUFFIX)) { in extractApexes()
|
/cts/libs/install/src/com/android/cts/install/lib/ |
D | TestApp.java | 19 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME; 71 public static final TestApp Apex1 = new TestApp("Apex1", SHIM_APEX_PACKAGE_NAME, 1, 73 public static final TestApp Apex2 = new TestApp("Apex2", SHIM_APEX_PACKAGE_NAME, 2, 75 public static final TestApp Apex3 = new TestApp("Apex3", SHIM_APEX_PACKAGE_NAME, 3,
|
/cts/libs/install/src/android/cts/install/lib/host/ |
D | InstallUtilsHost.java | 19 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME; 91 () -> new AssertionError("Can't find " + SHIM_APEX_PACKAGE_NAME)); in uninstallShimApexIfNecessary() 98 final String errorMessage = mTest.getDevice().uninstallPackage(SHIM_APEX_PACKAGE_NAME); in uninstallShimApexIfNecessary() 100 Log.e(TAG, "Failed to uninstall " + SHIM_APEX_PACKAGE_NAME + " : " + errorMessage); in uninstallShimApexIfNecessary() 104 () -> new AssertionError("Can't find " + SHIM_APEX_PACKAGE_NAME)); in uninstallShimApexIfNecessary() 115 apex -> apex.name.equals(SHIM_APEX_PACKAGE_NAME)).findAny(); in getShimApex()
|
/cts/hostsidetests/apex/src/android/apex/cts/ |
D | ApexTest.java | 19 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME; 103 SHIM_APEX_PACKAGE_NAME + "*\" | wc -l"); in countFlattenedApexes() 110 SHIM_APEX_PACKAGE_NAME + ".apex\" | wc -l"); in countNonFlattenedApexes()
|
/cts/libs/shim/src/com/android/cts/shim/lib/ |
D | ShimPackage.java | 37 public static final String SHIM_APEX_PACKAGE_NAME = "com.android.apex.cts.shim"; field in ShimPackage
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerTest.java | 142 private static final String SHIM_APEX_PACKAGE_NAME = "com.android.apex.cts.shim"; field in PackageManagerTest 1033 PackageInfo packageInfo = mPackageManager.getPackageInfo(SHIM_APEX_PACKAGE_NAME, in testGetPackageInfo_ApexSupported_ApexPackage_MatchesApex() 1043 mPackageManager.getPackageInfo(SHIM_APEX_PACKAGE_NAME, 0 /* flags */); in testGetPackageInfo_ApexSupported_ApexPackage_DoesNotMatchApex() 1054 mPackageManager.getPackageInfo(SHIM_APEX_PACKAGE_NAME, PackageManager.MATCH_APEX); in testGetPackageInfo_ApexNotSupported_ApexPackage_MatchesApex() 1065 mPackageManager.getPackageInfo(SHIM_APEX_PACKAGE_NAME, 0); in testGetPackageInfo_ApexNotSupported_ApexPackage_DoesNotMatchApex() 1078 packageInfo -> packageInfo.packageName.equals(SHIM_APEX_PACKAGE_NAME)).collect( in testGetInstalledPackages_ApexSupported_MatchesApex() 1090 packageInfo -> packageInfo.packageName.equals(SHIM_APEX_PACKAGE_NAME)).collect( in testGetInstalledPackages_ApexSupported_DoesNotMatchApex() 1102 packageInfo -> packageInfo.packageName.equals(SHIM_APEX_PACKAGE_NAME)).collect( in testGetInstalledPackages_ApexNotSupported_MatchesApex() 1113 packageInfo -> packageInfo.packageName.equals(SHIM_APEX_PACKAGE_NAME)).collect( in testGetInstalledPackages_ApexNotSupported_DoesNotMatchApex() 1312 SHIM_APEX_PACKAGE_NAME, PackageManager.MATCH_APEX); in testGetApplicationInfo_ApexSupported_MatchesApex() [all …]
|