Home
last modified time | relevance | path

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

/cts/libs/install/src/com/android/cts/install/lib/
DInstall.java33 public class Install { class
37 private final Install[] mChildInstalls;
50 private Install(boolean isMultiPackage, TestApp... testApps) { in Install() method in Install
53 mChildInstalls = new Install[0]; in Install()
56 private Install(boolean isMultiPackage, Install... installs) { in Install() method in Install
65 public static Install single(TestApp testApp) { in single()
66 return new Install(false, testApp); in single()
72 public static Install multi(TestApp... testApps) { in multi()
73 return new Install(true, testApps); in multi()
90 public static Install multi(Install... installs) { in multi()
[all …]
DInstallUtils.java230 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/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.java21 import com.android.cts.install.lib.Install;
88 Install install = getParameterizedInstall(VERSION_CODE_UPGRADE); in action_phase()
113 private Install getParameterizedInstall(int versionCode) { in getParameterizedInstall()
115 Install install = testApps.size() == 1 in getParameterizedInstall()
116 ? Install.single(testApps.get(0)) in getParameterizedInstall()
117 : Install.multi(testApps.toArray(new TestApp[testApps.size()])); in getParameterizedInstall()
DInstallTest.java33 import com.android.cts.install.lib.Install;
99 Install install = getParameterizedInstall(VERSION_CODE_TARGET); in action_phase()
106 Install install = getParameterizedInstall(VERSION_CODE_TARGET); in assert_commitFailure_phase()
150 private Install getParameterizedInstall(int versionCode) { in getParameterizedInstall()
152 Install install = testApps.size() == 1 in getParameterizedInstall()
153 ? Install.single(testApps.get(0)) in getParameterizedInstall()
154 : Install.multi(testApps.toArray(new TestApp[testApps.size()])); in getParameterizedInstall()
DSamegradeTest.java27 import com.android.cts.install.lib.Install;
101 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/rollback/src/com/android/cts/rollback/
DRollbackManagerTest.java30 import com.android.cts.install.lib.Install;
84 Install.single(TestApp.A1).commit(); in testBasic()
91 Install.single(TestApp.A2).setEnableRollback().commit(); in testBasic()
120 Install.single(TestApp.A1).commit(); in testGetRollbackDataPolicy()
124 final int sessionId = Install.single(TestApp.A2).setEnableRollback( in testGetRollbackDataPolicy()
141 Install.single(TestApp.A1).commit(); in testRollbackClearsFlags()
146 Install.single(TestApp.A2).setEnableRollback().commit(); in testRollbackClearsFlags()
174 Install.single(TestApp.AOriginal1).commit(); in testRollbackAfterKeyRotation()
177 Install.single(TestApp.ARotated2).setEnableRollback().commit(); in testRollbackAfterKeyRotation()
/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.java29 import com.android.cts.install.lib.Install;
99 Install.multi(TestApp.A1, TestApp.B2).commit(); in testNativeFilePathTestApp()
119 Install.multi(a1, b2).addInstallFlags(PackageManager.INSTALL_REPLACE_EXISTING).commit(); in testNativeFilePathTestApp()
131 Install.single(TestApp.A1).commit(); in testCommitSingleTestApp()
147 Install.multi(TestApp.A1, TestApp.B2).commit(); in testCommitMultiTestApp()
155 int sessionId = Install.single(TestApp.A1).createSession(); in testOpenAndAbandonSessionForSingleApk()
174 int sessionId = Install.single(TestApp.A1).createSession(); in testOpenAndCommitSessionForSingleApk()
191 int sessionId = Install.single(TestApp.A1).setStaged().createSession(); in testOpenSingleSessionWithParameters()
202 int parentSessionId = Install.multi(TestApp.A1, TestApp.B1).setStaged().createSession(); in testOpenSessionForMultiPackageSession()
/cts/tests/tests/content/pm/SecureFrp/src/com/android/tests/securefrpinstall/
DSecureFrpInstallTest.java27 import com.android.cts.install.lib.Install;
104 Install.single(TestApp.A1).commit(); in testPackageInstallApi()
116 Install.single(TestApp.A1).commit(); in testPackageInstallApiAsShell()
/cts/hostsidetests/os/test-apps/StaticSharedLibTestApp/src/android/os/lib/app/
DStaticSharedLibsTests.java30 import com.android.cts.install.lib.Install;
74 Install.single(TESTAPP_STATIC_LIB_PROVIDER5).commit(); in testSamegradeStaticSharedLibFail()
79 Install.single(TESTAPP_STATIC_LIB_PROVIDER5)); in testSamegradeStaticSharedLibFail()
/cts/tests/tests/security/src/android/security/cts/
DPackageInstallerTest.java25 import com.android.cts.install.lib.Install;
69 Install.single(TEST_APP).addInstallFlags( in verificationCanNotBeDisabledByInstaller()
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DStagedInstallTest.java49 import com.android.cts.install.lib.Install;
429 Install.single(TestApp.A2).commit(); in testStagedInstallDowngrade_DowngradeNotRequested_Fails_Commit()
439 Install.single(TestApp.A2).commit(); in testStagedInstallDowngrade_DowngradeRequested_Commit()
450 Install.single(TestApp.A2).commit(); in testStagedInstallDowngrade_DowngradeRequested_Fails_Commit()
524 Install.single(apex)); in testsFailsNonStagedApexInstall()
570 Install.single(TESTAPP_SAME_NAME_AS_APEX)); in testNonStagedInstallApkWithSameNameAsApexShouldFail()
719 Install.single(TestApp.Apex2).setStaged()); in testInstallApex_DeviceDoesNotSupportApex_Fails()
985 Install.single(TestApp.A2).commit(); in testInstallMultipleStagedSession_PartialFail_ApkOnly_Commit()
1006 int sessionId = Install.single(TestApp.A1).setStaged().commit(); in testFailureReasonPersists_SingleSession_Commit()
1008 Install.single(TestApp.A2).commit(); in testFailureReasonPersists_SingleSession_Commit()
[all …]
DApexShimValidationTest.java30 import com.android.cts.install.lib.Install;
111 int sessionId = Install.single(apexTestApp).setStaged().createSession(); in stageApex()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerGetPropertyTest.java36 import com.android.cts.install.lib.Install;
94 Install.single(PROPERTY_APP1).commit(); in setup()
95 Install.single(PROPERTY_APP2).commit(); in setup()
344 Install.single(PROPERTY_APP3).commit(); in testPackageRemoval()
DPackageManagerQueryPropertyTest.java32 import com.android.cts.install.lib.Install;
92 Install.single(PROPERTY_APP1).commit(); in setup()
93 Install.single(PROPERTY_APP2).commit(); in setup()
334 Install.single(PROPERTY_APP2).commit(); in testPackageRemoval()
/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)
Dcec_adapter.md16 3. Install the cec-client
/cts/hostsidetests/devicepolicy/app/AccountCheck/Tester/
DREADME.txt11 - Install
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTestUtils.java57 import com.android.cts.install.lib.Install;
295 Install.single(testApp).commit(); in installAppWithStoragePermissions()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java62 import com.android.cts.install.lib.Install;
583 Install.single(testApp).commit(); in installApp()