Home
last modified time | relevance | path

Searched refs:testApps (Results 1 – 25 of 69) sorted by relevance

123

/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/
DTestAppTest.java54 TestApp testApp = sDeviceState.testApps().any(); in reference_returnsNeneReference()
61 TestApp testApp = sDeviceState.testApps().any(); in install_noUserSpecified_installsInInstrumentedUser()
74 TestApp testApp = sDeviceState.testApps().any(); in install_userReference_installs()
87 TestApp testApp = sDeviceState.testApps().any(); in install_userReference_returnsReferenceToInstance()
101 TestApp testApp = sDeviceState.testApps().any(); in install_userHandle_installs()
114 TestApp testApp = sDeviceState.testApps().any(); in install_userHandle_returnsReferenceToInstance()
128 TestApp testApp = sDeviceState.testApps().any(); in install_nullUserReference_throwsException()
135 TestApp testApp = sDeviceState.testApps().any(); in install_nullUserHandle_throwsException()
142 TestApp testApp = sDeviceState.testApps().any(); in instance_userHandle_instanceIsNotInstalled_stillReturnsInstance()
152 TestApp testApp = sDeviceState.testApps().any(); in instance_userReference_instanceIsNotInstalled_stillReturnsInstance()
[all …]
DTestAppActivityReferenceTest.java48 TestApp testApp = sDeviceState.testApps().query().whereActivities().isNotEmpty().get(); in start_activityIsStarted()
59 TestApp testApp = sDeviceState.testApps().query().whereActivities().isNotEmpty().get(); in remote_executes()
DTestAppActivitiesTest.java47 private static final TestApp sTestApp = sDeviceState.testApps().query()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DTestAppsComponent.kt45 private val testApps: MutableMap<String, TestAppInstance> = HashMap() constant
62 testApps[testAppKey]!!.permissions() in ensureTestAppHasPermission()
85 testApps[testAppKey]!!.permissions().withoutPermission(*permissions) in ensureTestAppDoesNotHavePermission()
105 testApps[testAppKey]!!.permissions() in ensureTestAppHasAppOp()
110 if (!testApps.containsKey(testAppKey)) { in checkTestAppExistsWithKey()
113 " Valid Test apps: " + testApps in checkTestAppExistsWithKey()
151 testApps[key] = testAppInstance in ensureTestAppInstalled()
182 return testApps[key] in testApp()
190 testApps[key] = remoteDpc in addRemoteDpcTestApp()
220 testApps.clear() in teardownNonShareableState()
[all …]
DDeviceStateTester.java111 public TestAppProvider testApps() {
112 return mDeviceState.testApps();
/cts/hostsidetests/install/app/src/android/cts/install/
DUpgradeTest.java116 List<TestApp> testApps = mInstallRule.getTestApps(mInstallType, versionCode); in getParameterizedInstall() local
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()
DDowngradeTest.java149 List<TestApp> testApps = mInstallRule.getTestApps(mInstallType, versionCode); in getParameterizedInstall() local
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()
DSamegradeTest.java163 List<TestApp> testApps = mInstallRule.getTestApps(mInstallType, versionCode); in getParameterizedInstall() local
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()
DInstallTest.java147 List<TestApp> testApps = mInstallRule.getTestApps(mInstallType, versionCode); in getParameterizedInstall() local
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()
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/
DDeviceStateInternalTest.java108 mDeviceState.testApps().query() in requirePackageRespondsToIntentAnnotation_packageRespondsToIntent()
132 mDeviceState.testApps().query().whereActivities().contains( in requirePackageRespondsToIntentAnnotation_workProfile_packageRespondsToIntent()
173 mDeviceState.testApps().query() in requireNoPackageRespondsToIntentAnnotation_packageRespondsToIntent()
211 TestApp testApp = mDeviceState.testApps().query() in ensureNoPackageRespondsToIntentAnnotation()
/cts/libs/install/src/com/android/cts/install/lib/
DInstall.java61 private Install(boolean isMultiPackage, TestApp... testApps) { in Install() argument
63 mTestApps = testApps; in Install()
83 public static Install multi(TestApp... testApps) { in multi() argument
84 return new Install(true, testApps); in multi()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/activities/
DActivitiesTest.kt37 deviceState.testApps().query() in activityNameOfIntent_returnsActivityNameOfIntent()
55 deviceState.testApps().query() in getActivityNameOfIntent_isAlias_returnsTargetActivity()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DPackageSuspensionTest.java116 try (TestAppInstance anotherApp = sDeviceState.testApps().any().install()) { in setPackagesSuspended_suspendAlreadySuspendedPackage_returnsEmpty()
192 try (TestAppInstance anotherApp = sDeviceState.testApps().any().install()) { in setPackagesSuspended_suspendMultipleTimes_allPackagesSuspended()
219 try (TestAppInstance anotherApp = sDeviceState.testApps().any().install()) { in setPackagesSuspended_unsuspendMultipleTimes_allPackagesUnsuspended()
273 try (TestAppInstance anotherApp = sDeviceState.testApps().any().install()) { in setPackagesSuspended_multipleAdminsSuspendPackages_success()
308 try (TestAppInstance anotherApp = sDeviceState.testApps().any().install()) { in setPackagesSuspended_adminsUnsuspendOtherAdmin_fail()
DSystemErrorDialogsTest.java146 try (TestAppInstance t = sDeviceState.testApps().query() in appCrashes_disallowSystemErrorDialogsNotSet_alwaysShowSystemErrorDialogsEnabled_showsDialog()
170 try (TestAppInstance t = sDeviceState.testApps().query() in appCrashes_disallowSystemErrorDialogsSet_alwaysShowSystemErrorDialogsEnabled_doesNotShowDialog()
DPersonalAppsSuspensionTest.java66 sDeviceState.testApps().query().whereActivities().contains(
70 private static final TestApp sTestApp = sDeviceState.testApps().any();
DSystemAppTest.java51 private static final TestApp sTestApp = sDeviceState.testApps().any();
DDeviceOwnerTest.kt467 private val TEST_ONLY_DPC = deviceState.testApps() in <lambda>()
476 private val NOT_TEST_ONLY_DPC = deviceState.testApps() in <lambda>()
480 private val remoteDpcTestApp = deviceState.testApps().query() in <lambda>()
DTransferOwnershipTest.kt301 deviceState.testApps().query() in <lambda>()
309 deviceState.testApps().query() in <lambda>()
DAdbProvisioningTest.java51 private static final TestApp sRemoteDpcTestApp = sDeviceState.testApps().query()
DNotificationTest.java52 private static final TestApp sTestApp = sDeviceState.testApps().query()
/cts/common/device-side/bedstead/remotedpc/src/test/java/com/android/bedstead/remotedpc/
DRemoteDpcTest.java67 private static TestApp sNonRemoteDpcTestApp = sDeviceState.testApps().query()
819 sDeviceState.testApps().query().whereTargetSdkVersion().isLessThan(28)); in setAsProfileOwner_alreadySetToDifferentRemoteDpc_replacesRemoteDpc()
821 sDeviceState.testApps().query().whereTargetSdkVersion().isGreaterThan(28)); in setAsProfileOwner_alreadySetToDifferentRemoteDpc_replacesRemoteDpc()
837 sDeviceState.testApps().query().whereTargetSdkVersion().isLessThan(28)); in setAsDeviceOwner_alreadySetToDifferentRemoteDpc_replacesRemoteDpc()
839 sDeviceState.testApps().query().whereTargetSdkVersion().isGreaterThan(28)); in setAsDeviceOwner_alreadySetToDifferentRemoteDpc_replacesRemoteDpc()
855 sDeviceState.testApps().query().whereTargetSdkVersion().isEqualTo(28)); in setAsProfileOwner_matchesExistingRemoteDpc_doesNotReplace()
857 sDeviceState.testApps().query().whereTargetSdkVersion().isEqualTo(28)); in setAsProfileOwner_matchesExistingRemoteDpc_doesNotReplace()
873 sDeviceState.testApps().query().whereTargetSdkVersion().isEqualTo(28)); in setAsDeviceOwner_matchesExistingRemoteDpc_doesNotReplace()
875 sDeviceState.testApps().query().whereTargetSdkVersion().isEqualTo(28)); in setAsDeviceOwner_matchesExistingRemoteDpc_doesNotReplace()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DSettingsIntentsTest.java53 public void testApps() { in testApps() method in SettingsIntentsTest
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DUserVisibilityTestCase.java116 TestApp testApp = sDeviceState.testApps().any(); in runTestOnDisplay()
151 TestApp testApp = sDeviceState.testApps().any(); in runTestOnSecondaryDisplay()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/packages/
DProcessReferenceTest.java39 private static final TestApp sTestApp = sDeviceState.testApps().query()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/
DDeviceOwnerTest.java50 private static final TestApp sNonTestOnlyDpc = sDeviceState.testApps().query()

123