Home
last modified time | relevance | path

Searched refs:SHIM_APEX_PACKAGE_NAME (Results 1 – 13 of 13) sorted by relevance

/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DApexShimValidationTest.java20 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME;
109 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testInstallRejected_VerifyPostReboot()
114 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithAdditionalFile_rebootless()
115 TestApp apex = new TestApp("ShimApex", SHIM_APEX_PACKAGE_NAME, 2, in testRejectsApexWithAdditionalFile_rebootless()
121 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithAdditionalFile_rebootless()
126 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithAdditionalFolder_rebootless()
127 TestApp apex = new TestApp("ShimApex", SHIM_APEX_PACKAGE_NAME, 2, in testRejectsApexWithAdditionalFolder_rebootless()
133 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithAdditionalFolder_rebootless()
138 assertThat(InstallUtils.getInstalledVersion(SHIM_APEX_PACKAGE_NAME)).isEqualTo(1); in testRejectsApexWithPostInstallHook_rebootless()
139 TestApp apex = new TestApp("ShimApex", SHIM_APEX_PACKAGE_NAME, 2, in testRejectsApexWithPostInstallHook_rebootless()
[all …]
DStagedInstallTest.java25 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME;
119 "TestAppSamePackageNameAsApex", SHIM_APEX_PACKAGE_NAME, 1, /*isApex*/ false,
122 "Apex2DifferentCertificate", SHIM_APEX_PACKAGE_NAME, 2, /*isApex*/true,
128 "Apex2SignedBob", SHIM_APEX_PACKAGE_NAME, 2, /*isApex*/true,
131 "Apex2SignedBobRot", SHIM_APEX_PACKAGE_NAME, 2, /*isApex*/true,
134 "Apex2SignedBobRotRollback", SHIM_APEX_PACKAGE_NAME, 2, /*isApex*/true,
137 "Apex2", SHIM_APEX_PACKAGE_NAME, 2, /*isApex*/true,
140 "ApexWrongSha2", SHIM_APEX_PACKAGE_NAME, 2, /*isApex*/true,
143 "Apex2WithoutApkInApex", SHIM_APEX_PACKAGE_NAME, 2, /*isApex*/true,
146 "Apex3SignedBob", SHIM_APEX_PACKAGE_NAME, 3, /*isApex*/true,
[all …]
/cts/hostsidetests/install/src/android/cts/install/host/
DShimApexRule.java19 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME;
72 mHostTest.getDevice().uninstallPackage(SHIM_APEX_PACKAGE_NAME); in uninstallShimApexIfNecessary()
74 Log.e(TAG, "Failed to uninstall " + SHIM_APEX_PACKAGE_NAME + " : " + errorMessage); in uninstallShimApexIfNecessary()
86 apex -> apex.name.equals(SHIM_APEX_PACKAGE_NAME)).findAny().orElseThrow( in getShimApex()
87 () -> new AssertionError("Can't find " + SHIM_APEX_PACKAGE_NAME)); in getShimApex()
/cts/hostsidetests/stagedinstall/src/com/android/tests/stagedinstall/host/
DStagedInstallTest.java19 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME;
234 () -> new AssertionError("Can't find " + SHIM_APEX_PACKAGE_NAME) in testShimApexShouldPreInstalledIfUpdatingApexIsSupported()
338 .filter(a -> a.getModuleName().equals(SHIM_APEX_PACKAGE_NAME)) in testInstallStagedApex_SameGrade()
343 "No active version of " + SHIM_APEX_PACKAGE_NAME in testInstallStagedApex_SameGrade()
349 .filter(a -> a.getModuleName().equals(SHIM_APEX_PACKAGE_NAME)) in testInstallStagedApex_SameGrade()
354 "No active version of " + SHIM_APEX_PACKAGE_NAME in testInstallStagedApex_SameGrade()
660 () -> new AssertionError("Can't find " + SHIM_APEX_PACKAGE_NAME) in testUpdatedApexFromDataApexActiveCanBePulled()
703 .filter(a -> a.getModuleName().equals(SHIM_APEX_PACKAGE_NAME)) in testApexInfoListAfterUpdate()
714 "No factory version of " + SHIM_APEX_PACKAGE_NAME in testApexInfoListAfterUpdate()
716 assertThat(factoryShimApexInfo.getModuleName()).isEqualTo(SHIM_APEX_PACKAGE_NAME); in testApexInfoListAfterUpdate()
[all …]
DApexShimValidationTest.java20 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME;
67 private static final String SHIM_APK_CODE_PATH_PREFIX = "/apex/" + SHIM_APEX_PACKAGE_NAME + "/";
123 apex -> apex.name.equals(SHIM_APEX_PACKAGE_NAME)); in testShimApexIsPreInstalled()
272 SHIM_APEX_PACKAGE_NAME + ".*\\" + APEX_FILE_SUFFIX)) { in extractApexes()
/cts/hostsidetests/install/app/src/android/cts/install/
DInstallRule.java20 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()
DSamegradeTest.java21 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME;
128 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/
DHostTestHelper.java20 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/libs/install/src/com/android/cts/install/lib/
DTestApp.java19 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME;
83 public static final TestApp Apex1 = new TestApp("Apex1", SHIM_APEX_PACKAGE_NAME, 1,
85 public static final TestApp Apex2 = new TestApp("Apex2", SHIM_APEX_PACKAGE_NAME, 2,
87 public static final TestApp Apex3 = new TestApp("Apex3", SHIM_APEX_PACKAGE_NAME, 3,
/cts/libs/install/src/android/cts/install/lib/host/
DInstallUtilsHost.java19 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME;
96 () -> new AssertionError("Can't find " + SHIM_APEX_PACKAGE_NAME)); in uninstallShimApexIfNecessary()
104 getTestInfo().getDevice().uninstallPackage(SHIM_APEX_PACKAGE_NAME); in uninstallShimApexIfNecessary()
106 Log.e(TAG, "Failed to uninstall " + SHIM_APEX_PACKAGE_NAME + " : " + errorMessage); in uninstallShimApexIfNecessary()
110 () -> new AssertionError("Can't find " + SHIM_APEX_PACKAGE_NAME)); in uninstallShimApexIfNecessary()
121 apex -> apex.name.equals(SHIM_APEX_PACKAGE_NAME)).findAny(); in getShimApex()
/cts/hostsidetests/apkinapex/src/android/addapktoapex/cts/
DAddApkToApexTest.java19 import static com.android.cts.shim.lib.ShimPackage.SHIM_APEX_PACKAGE_NAME;
93 if (SHIM_APEX_PACKAGE_NAME.equals(apex.name)) { in getShimApexVersionCode()
/cts/libs/shim/src/com/android/cts/shim/lib/
DShimPackage.java37 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/
DPackageManagerTest.java244 private static final String SHIM_APEX_PACKAGE_NAME = "com.android.apex.cts.shim"; field in PackageManagerTest
1428 PackageInfo packageInfo = mPackageManager.getPackageInfo(SHIM_APEX_PACKAGE_NAME, in testGetPackageInfo_ApexSupported_ApexPackage_MatchesApex()
1436 mPackageManager.getPackageInfo(SHIM_APEX_PACKAGE_NAME, in testGetPackageInfo_ApexSupported_ApexPackage_DoesNotMatchApex()
1452 packageInfo -> packageInfo.packageName.equals(SHIM_APEX_PACKAGE_NAME)).collect( in testGetInstalledPackages_ApexSupported_MatchesApex()
1463 packageInfo -> packageInfo.packageName.equals(SHIM_APEX_PACKAGE_NAME)).collect( in testGetInstalledPackages_ApexSupported_DoesNotMatchApex()
1472 mPackageManager.getPackageInfo(SHIM_APEX_PACKAGE_NAME, PackageManager.MATCH_APEX); in testGetPackageInfo_apex_hasApexPackageName()
1474 assertThat(packageInfo.packageName).isEqualTo(SHIM_APEX_PACKAGE_NAME); in testGetPackageInfo_apex_hasApexPackageName()
1475 assertThat(packageInfo.getApexPackageName()).isEqualTo(SHIM_APEX_PACKAGE_NAME); in testGetPackageInfo_apex_hasApexPackageName()
1486 assertThat(packageInfo.getApexPackageName()).isEqualTo(SHIM_APEX_PACKAGE_NAME); in testGetPackageInfo_apkInApex_hasApexPackageName()
1704 SHIM_APEX_PACKAGE_NAME, in testGetApplicationInfo_ApexSupported_MatchesApex()
[all …]