Home
last modified time | relevance | path

Searched refs:Install (Results 1 – 25 of 27) sorted by relevance

12

/cts/libs/install/src/com/android/cts/install/lib/
DInstall.java38 public class Install { class
42 private final Install[] mChildInstalls;
61 private Install(boolean isMultiPackage, TestApp... testApps) { in Install() method in Install
64 mChildInstalls = new Install[0]; in Install()
67 private Install(boolean isMultiPackage, Install... installs) { in Install() method in Install
76 public static Install single(TestApp testApp) { in single()
77 return new Install(false, testApp); in single()
83 public static Install multi(TestApp... testApps) { in multi()
84 return new Install(true, testApps); in multi()
101 public static Install multi(Install... installs) { in multi()
[all …]
DInstallUtils.java188 String expectedFailMessage, Install install) { in commitExpectingFailure()
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/
DAtomicInstallTest.java33 import com.android.cts.install.lib.Install;
119 int sessionId = Install.single(TestApp.A1).commit(); in testSessionCleanUp_Single()
133 int sessionId = Install.multi(TestApp.A1, TestApp.B1).commit(); in testSessionCleanUp_Multi()
145 Install.multi(TestApp.A1, TestApp.B1).commit(); in testInstallTwoApks()
159 int parentId = Install.multi(TestApp.A1).createSession(); in testRemoveChild()
160 int childBId = Install.single(TestApp.B1).createSession(); in testRemoveChild()
161 int childCId = Install.single(TestApp.C1).createSession(); in testRemoveChild()
177 Install.multi(TestApp.A2, TestApp.B1).commit(); in testInstallTwoApksDowngradeFail()
182 "INSTALL_FAILED_VERSION_DOWNGRADE", Install.multi(TestApp.A1, TestApp.B1)); in testInstallTwoApksDowngradeFail()
190 Install parentStaged = Install.multi(Install.single(TestApp.A1)).setStaged(); in testFailInconsistentMultiPackageCommit()
[all …]
DSessionAbandonBehaviorTest.java40 import com.android.cts.install.lib.Install;
267 final int sessionId = Install.single(TestApp.A1).setStaged().createSession(); in abandon_stagedSession_shouldReceiveAbandonCallBack()
281 final int sessionId = Install.single(TestApp.A1).createSession(); in abandon_nonStagedSession_shouldReceiveAbandonCallBack()
296 final int sessionId = Install.single(TestApp.A1).setStaged().createSession(); in abandon_stagedSession_openedSession_canNotGetNames()
313 final int sessionId = Install.single(TestApp.A1).createSession(); in abandon_nonStagedSession_openedSession_canNotGetNames()
330 final int sessionId = Install.single(TestApp.A1).setStaged().createSession(); in abandon_stagedSession_openForWriting_shouldFail()
348 final int sessiondId = Install.single(TestApp.A1).createSession(); in abandon_nonStagedSession_openForWriting_shouldFail()
366 final int sessionId = Install.single(TestApp.A1).setStaged().createSession(); in abandon_stagedSession_canNotOpenAgain()
382 final int sessionId = Install.single(TestApp.A1).createSession(); in abandon_nonStagedSession_canNotOpenAgain()
398 final int parentSessionId = Install.multi(TestApp.A1, in abandon_stagedParentSession_shouldReceiveAllChildrenAbandonCallBack()
[all …]
/cts/tests/rollback/src/com/android/cts/rollback/
DRollbackManagerTest.java39 import com.android.cts.install.lib.Install;
110 Install.single(TestApp.A1).commit(); in testBasic()
117 Install.single(TestApp.A2).setEnableRollback().commit(); in testBasic()
145 Install.multi(TestApp.A1, TestApp.B1).commit(); in testBasic_MultiPackage()
146 Install.multi(TestApp.A2, TestApp.B2).setEnableRollback().commit(); in testBasic_MultiPackage()
179 Install.single(TestApp.A1).commit(); in testSingleRollbackPersistence()
180 Install.single(TestApp.A2).setEnableRollback().commit(); in testSingleRollbackPersistence()
212 Install.multi(TestApp.A1, TestApp.B1).commit(); in testMultiRollbackPersistence()
213 Install.multi(TestApp.A2, TestApp.B2).setEnableRollback().commit(); in testMultiRollbackPersistence()
305 Install.single(TestApp.A1).commit(); in testEnableRollbackPermission()
[all …]
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DPackageInstallerEnumerationTests.java39 import com.android.cts.install.lib.Install;
65 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A).createSession(); in getSessionInfo_queriesNothing_cannotSeeSession()
73 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A).createSession(); in getSessionInfo_queriesNothingHasPermission_canSeeSession()
81 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A).createSession(); in getSessionInfo_queriesPackage_canSeeSession()
89 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A).createSession(); in getSessionInfo_queriesNothingTargetsQ_canSeeSession()
97 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A).createSession(); in getSessionInfo_sessionOwner_canSeeSession()
105 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A).setStaged() in getStagedSessions_queriesNothing_cannotSeeSession()
114 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A).setStaged() in getStagedSessions_queriesNothingHasPermission_canSeeSession()
123 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A).setStaged() in getStagedSessions_queriesPackage_canSeeSession()
132 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A).setStaged() in getStagedSessions_queriesNothingTargetsQ_canSeeSession()
[all …]
DLauncherAppsEnumerationTests.java81 import com.android.cts.install.lib.Install;
244 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A) in sessionCallback_queriesNothing_cannotSeeSession()
262 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A) in sessionCallback_queriesNothingHasPermission_canSeeSession()
280 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A) in sessionCallback_queriesPackage_canSeeSession()
298 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A) in sessionCallback_queriesNothingTargetsQ_canSeeSession()
316 final int expectedSessionId = Install.single(TestApp.A1).setPackageName(TestApp.A) in sessionCallback_sessionOwner_canSeeSession()
368 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A) in getAllPkgInstallerSessions_queriesNothing_cannotSeeSessions()
384 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A) in getAllPkgInstallerSessions_queriesNothingHasPermission_canSeeSessions()
399 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A) in getAllPkgInstallerSessions_queriesPackage_canSeeSessions()
415 final int sessionId = Install.single(TestApp.A1).setPackageName(TestApp.A) in getAllPkgInstallerSessions_queriesNothingTargetsQ_canSeeSessions()
[all …]
/cts/hostsidetests/install/app/src/android/cts/install/
DDowngradeTest.java21 import com.android.cts.install.lib.Install;
98 Install install = getParameterizedInstall(VERSION_CODE_DOWNGRADE); in action_phase()
126 Install install = getParameterizedInstall(VERSION_CODE_DOWNGRADE).setRequestDowngrade(); in assert_downgradeNotAllowed_phase()
138 Install install = getParameterizedInstall(VERSION_CODE_DOWNGRADE); in assert_downgradeNotRequested_phase()
148 private Install getParameterizedInstall(int versionCode) { in getParameterizedInstall()
150 Install install = testApps.size() == 1 in getParameterizedInstall()
151 ? Install.single(testApps.get(0)) in getParameterizedInstall()
152 : Install.multi(testApps.toArray(new TestApp[testApps.size()])); in getParameterizedInstall()
DUpgradeTest.java23 import com.android.cts.install.lib.Install;
90 Install install = getParameterizedInstall(VERSION_CODE_UPGRADE); in action_phase()
115 private Install getParameterizedInstall(int versionCode) { in getParameterizedInstall()
117 Install install = testApps.size() == 1 in getParameterizedInstall()
118 ? Install.single(testApps.get(0)) in getParameterizedInstall()
119 : Install.multi(testApps.toArray(new TestApp[testApps.size()])); in getParameterizedInstall()
DInstallTest.java32 import com.android.cts.install.lib.Install;
98 Install install = getParameterizedInstall(VERSION_CODE_TARGET); in action_phase()
105 Install install = getParameterizedInstall(VERSION_CODE_TARGET); in assert_commitFailure_phase()
146 private Install getParameterizedInstall(int versionCode) { in getParameterizedInstall()
148 Install install = testApps.size() == 1 in getParameterizedInstall()
149 ? Install.single(testApps.get(0)) in getParameterizedInstall()
150 : Install.multi(testApps.toArray(new TestApp[testApps.size()])); in getParameterizedInstall()
DSamegradeTest.java28 import com.android.cts.install.lib.Install;
102 Install install = getParameterizedInstall(VERSION_CODE_SAMEGRADE); in action_phase()
162 private Install getParameterizedInstall(int versionCode) { in getParameterizedInstall()
164 Install install = testApps.size() == 1 in getParameterizedInstall()
165 ? Install.single(testApps.get(0)) in getParameterizedInstall()
166 : Install.multi(testApps.toArray(new TestApp[testApps.size()])); in getParameterizedInstall()
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DInstallConstraintsTest.kt36 import com.android.cts.install.lib.Install in <lambda>()
117 Install.single(TestApp.A1).commit() in <lambda>()
155 Install.single(TestApp.A1).commit() in <lambda>()
156 Install.single(TestApp.B1).commit() in <lambda>()
187 Install.single(TestApp.A1).commit() in <lambda>()
188 Install.single(TestApp.B1).commit() in <lambda>()
221 Install.single(TestApp.A1).commit() in <lambda>()
253 Install.single(TestApp.A1).commit() in <lambda>()
285 Install.single(TestApp.A1).commit() in <lambda>()
286 Install.single(TestApp.B1).commit() in <lambda>()
[all …]
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DApexShimValidationTest.java29 import com.android.cts.install.lib.Install;
120 Install.single(apex)); in testRejectsApexWithAdditionalFile_rebootless()
132 Install.single(apex)); in testRejectsApexWithAdditionalFolder_rebootless()
144 Install.single(apex)); in testRejectsApexWithPostInstallHook_rebootless()
156 Install.single(apex)); in testRejectsApexWithPreInstallHook_rebootless()
166 AssertionError.class, "has unexpected SHA512 hash", Install.single(apex)); in testRejectsApexWrongSHA_rebootless()
173 int sessionId = Install.single(apexTestApp).setStaged().createSession(); in stageApex()
DStagedInstallTest.java49 import com.android.cts.install.lib.Install;
363 int sessionId = Install.multi(TestApp.A1, TestApp.Apex2).setStaged().createSession(); in testNoSessionUpdatedBroadcastSentForStagedSessionAbandon()
438 Install.single(TestApp.A2).commit(); in testStagedInstallDowngrade_DowngradeNotRequested_Fails_Commit()
448 Install.single(TestApp.A2).commit(); in testStagedInstallDowngrade_DowngradeRequested_Commit()
458 Install.single(TestApp.A2).commit(); in testStagedInstallDowngrade_DowngradeRequested_Fails_Commit()
527 Install.single(apex)); in testsFailsNonStagedApexInstall()
575 Install.single(Apex2AsApk)); in testNonStagedInstallApkWithSameNameAsApexShouldFail()
951 Install.single(TestApp.A2).commit(); in testInstallMultipleStagedSession_PartialFail_ApkOnly_Commit()
972 int sessionId = Install.single(TestApp.A1).setStaged().commit(); in testFailureReasonPersists_SingleSession_Commit()
974 Install.single(TestApp.A2).commit(); in testFailureReasonPersists_SingleSession_Commit()
[all …]
/cts/hostsidetests/rollback/app/src/com/android/cts/rollback/host/app/
DHostTestHelper.java35 import com.android.cts.install.lib.Install;
105 Install.single(TestApp.A1).commit(); in testApkOnlyStagedRollback_Phase1_Install()
106 Install.single(TestApp.A2).setStaged().setEnableRollback().commit(); in testApkOnlyStagedRollback_Phase1_Install()
165 Install.single(TestApp.A1).commit(); in testApkOnlyMultipleStagedRollback_Phase1_Install()
166 Install.single(TestApp.A2).setStaged().setEnableRollback().commit(); in testApkOnlyMultipleStagedRollback_Phase1_Install()
168 Install.single(TestApp.B1).commit(); in testApkOnlyMultipleStagedRollback_Phase1_Install()
169 Install.single(TestApp.B2).setStaged().setEnableRollback().commit(); in testApkOnlyMultipleStagedRollback_Phase1_Install()
254 Install.single(TestApp.A1).commit(); in testApkOnlyMultipleStagedPartialRollback_Phase1_Install()
255 Install.single(TestApp.A2).setStaged().setEnableRollback().commit(); in testApkOnlyMultipleStagedPartialRollback_Phase1_Install()
257 Install.single(TestApp.B1).commit(); in testApkOnlyMultipleStagedPartialRollback_Phase1_Install()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DInstallUtilTest.java31 import com.android.cts.install.lib.Install;
106 Install.multi(TestApp.A1, TestApp.B2).commit(); in testNativeFilePathTestApp()
126 Install.multi(a1, b2).addInstallFlags(PackageManager.INSTALL_REPLACE_EXISTING).commit(); in testNativeFilePathTestApp()
138 Install.single(TestApp.A1).commit(); in testCommitSingleTestApp()
154 Install.multi(TestApp.A1, TestApp.B2).commit(); in testCommitMultiTestApp()
162 int sessionId = Install.single(TestApp.A1).createSession(); in testOpenAndAbandonSessionForSingleApk()
181 int sessionId = Install.single(TestApp.A1).createSession(); in testOpenAndCommitSessionForSingleApk()
198 int sessionId = Install.single(TestApp.A1).setStaged().createSession(); in testOpenSingleSessionWithParameters()
209 int parentSessionId = Install.multi(TestApp.A1, TestApp.B1).setStaged().createSession(); in testOpenSessionForMultiPackageSession()
/cts/tests/tests/content/pm/SecureFrp/src/com/android/tests/securefrpinstall/
DSecureFrpInstallTest.java30 import com.android.cts.install.lib.Install;
118 Install.single(TestApp.A1).commit(); in testPackageInstallApi()
130 Install.single(TestApp.A1).commit(); in testPackageInstallApiAsShell()
/cts/tests/camera/src/android/hardware/camera2/cts/
DPropertyTest.java35 import com.android.cts.install.lib.Install;
93 Install.single(PROPERTY_APP1).commit(); in setupClass()
94 Install.single(PROPERTY_APP2).commit(); in setupClass()
/cts/tests/tests/security/src/android/security/cts/
DPackageInstallerTest.java43 import com.android.cts.install.lib.Install;
125 Install.single(TEST_APP).enableVerifier().addInstallFlags( in verificationCanNotBeDisabledByInstaller()
137 Install.single(TEST_APP).commit(); in commitSessionInBackground_withActivityIntentSender_doesNotLaunchActivity()
162 Install.single(TEST_APP).commit(); in commitSessionInBackground_withForegroundServiceIntentSender_doesNotStartService()
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
DSessionCommitBroadcastTest.java40 import com.android.cts.install.lib.Install;
117 int sessionId = Install.single(TestApp.A1).commit(); in testBroadcastNotReceivedForUpdateInstall()
127 Install.single(TestApp.A2).commit(); in testBroadcastNotReceivedForUpdateInstall()
/cts/tests/tests/content/src/android/content/pm/cts/
DInstallSessionCleanupTest.java34 import com.android.cts.install.lib.Install;
92 Install.single(INSTALLER_APP).commit(); in testSessionsDeletedOnInstallerUninstalled()
DPackageManagerGetPropertyTest.java37 import com.android.cts.install.lib.Install;
97 Install.single(PROPERTY_APP1).commit(); in setup()
98 Install.single(PROPERTY_APP2).commit(); in setup()
349 Install.single(PROPERTY_APP3).commit(); in testPackageRemoval()
DPackageManagerQueryPropertyTest.java33 import com.android.cts.install.lib.Install;
95 Install.single(PROPERTY_APP1).commit(); in setup()
96 Install.single(PROPERTY_APP2).commit(); in setup()
337 Install.single(PROPERTY_APP2).commit(); in testPackageRemoval()
/cts/hostsidetests/os/test-apps/StaticSharedLibTestApp/src/android/os/lib/app/
DStaticSharedLibsTests.java40 import com.android.cts.install.lib.Install;
107 Install.single(TESTAPP_STATIC_LIB_PROVIDER5).commit(); in testSamegradeStaticSharedLibFail()
114 Install.single(TESTAPP_STATIC_LIB_PROVIDER5)); in testSamegradeStaticSharedLibFail()
/cts/hostsidetests/hdmicec/
DREADME.md19 * Install `cec-client` binary, see [install instructions](cec_adapter.md#software)
41 * Install `cec-client` binary, see [install instructions](cec_adapter.md#software)

12