Home
last modified time | relevance | path

Searched defs:testApp (Results 1 – 25 of 58) sorted by relevance

123

/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/
DTestAppTest.java59 TestApp testApp = testApps(sDeviceState).any(); in reference_returnsNeneReference() local
66 TestApp testApp = testApps(sDeviceState).any(); in install_noUserSpecified_installsInInstrumentedUser() local
79 TestApp testApp = testApps(sDeviceState).any(); in install_userReference_installs() local
92 TestApp testApp = testApps(sDeviceState).any(); in install_userReference_returnsReferenceToInstance() local
106 TestApp testApp = testApps(sDeviceState).any(); in install_userHandle_installs() local
119 TestApp testApp = testApps(sDeviceState).any(); in install_userHandle_returnsReferenceToInstance() local
133 TestApp testApp = testApps(sDeviceState).any(); in install_nullUserReference_throwsException() local
140 TestApp testApp = testApps(sDeviceState).any(); in install_nullUserHandle_throwsException() local
147 TestApp testApp = testApps(sDeviceState).any(); in instance_userHandle_instanceIsNotInstalled_stillReturnsInstance() local
157 TestApp testApp = testApps(sDeviceState).any(); in instance_userReference_instanceIsNotInstalled_stillReturnsInstance() local
[all …]
DTestAppProviderTest.java440 TestApp testApp = mTestAppProvider.query() in query_testOnly_returnsMatching() local
449 TestApp testApp = mTestAppProvider.query() in query_notTestOnly_returnsMatching() local
458 TestApp testApp = mTestAppProvider.query() in query_minSdkVersion_returnsMatching() local
467 TestApp testApp = mTestAppProvider.query() in query_targetSdkVersion_returnsMatching() local
476 TestApp testApp = mTestAppProvider.query() in query_withPermission_returnsMatching() local
485 TestApp testApp = mTestAppProvider.query() in query_withoutPermission_returnsMatching() local
494 TestApp testApp = mTestAppProvider.query() in query_metadata_returnsMatching() local
504 TestApp testApp = mTestAppProvider.query() in query_matchStringInXml_returnsMatching() local
517 TestApp testApp = mTestAppProvider.query() in query_searchExistingTag_returnsMatching() local
528 TestApp testApp = mTestAppProvider.query() in query_matchMultiplePathsInXml_returnsMatching() local
[all …]
DTestAppActivityReferenceTest.java50 TestApp testApp = testApps(sDeviceState).query().whereActivities().isNotEmpty().get(); in start_activityIsStarted() local
61 TestApp testApp = testApps(sDeviceState).query().whereActivities().isNotEmpty().get(); in remote_executes() local
DTestAppInstanceTest.java467 try (TestAppInstance testApp = sTestApp.install(); in permissions_withPermission_permissionStateAppliesToCallsToTestApp()
476 try (TestAppInstance testApp = sTestApp.install(); in permissions_withPermission_permissionStateDoesNotApplyToOtherTestApps()
486 try (TestAppInstance testApp = sTestApp.install(); in permissions_withPermission_permissionStateDoesNotApplyToInstrumentedApp()
495 try (TestAppInstance testApp = sTestApp.install(); in permissions_withPermission_permissionStateDoesNotApplyToInstrumentedAppAfterCall()
506 try (TestAppInstance testApp = sTestApp.install(); in permissions_withPermission_instrumentedPermissionStateDoesNotAffectTestApp()
518 try (TestAppInstance testApp = sTestApp.install(); in permissions_withAppOp_appOpIsAllowedForTestApp()
527 try (TestAppInstance testApp = sTestApp.install(); in permissions_withoutAppOp_appOpIsNotAllowedForTestApp()
536 try (TestAppInstance testApp = sTestApp.install()) { in callThrowsException_doesNotBlockUsage()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DDelegationScopesTest.java88 try (TestAppInstance testApp = sTestApp.install(sUser)) { in getDelegatedScopes_returnsFromSetDelegatedScopes()
107 try (TestAppInstance testApp = sTestApp.install(sUser)) { in getDelegatedScopes_fromApp_returnsFromSetDelegatedScopes()
125 try (TestAppInstance testApp = sTestApp.install(sUser)) { in getDelegatedScopes_fromApp_passComponentName_throwsException()
143 try (TestAppInstance testApp = sTestApp.install(sUser); in getDelegatedScopes_fromApp_differentPackage_throwsException()
167 try (TestAppInstance testApp = sTestApp.install(sUser)) { in setDelegatedScopes_invalidAdmin_throwsSecurityException()
178 try (TestAppInstance testApp = sTestApp.install(sUser)) { in getDelegatedScopes_invalidAdmin_throwsSecurityException()
187 try (TestAppInstance testApp = sTestApp.install(sUser)) { in getDelegatedScopes_returnsLatestFromSetDelegatedScopes()
228 try (TestAppInstance testApp = sTestApp.install(sUser)) { in getDelegatePackages_oneApp_twoScopes_returnsFromSetDelegatedScopes()
258 try (TestAppInstance testApp = sTestApp.install(sUser); in getDelegatePackages_twoApps_differentScopes_returnsFromSetDelegatedScopes()
287 try (TestAppInstance testApp = sTestApp.install(sUser); in getDelegatePackages_twoApps_sameScope_returnsFromSetDelegatedScopes()
[all …]
DPackageSuspensionTest.java69 String testApp = testApp(sDeviceState).packageName(); in isPackageSuspended_packageIsSuspended_returnsTrue() local
87 String testApp = testApp(sDeviceState).packageName(); in isPackageSuspended_packageIsNotSuspended_returnFalse() local
101 String testApp = testApp(sDeviceState).packageName(); in setPackagesSuspended_suspendSuccessful() local
120 String testApp = testApp(sDeviceState).packageName(); in setPackagesSuspended_suspendAlreadySuspendedPackage_returnsEmpty() local
151 String testApp = testApp(sDeviceState).packageName(); in setPackagesSuspended_unsuspendSuccessful() local
196 String testApp = testApp(sDeviceState).packageName(); in setPackagesSuspended_suspendMultipleTimes_allPackagesSuspended() local
223 String testApp = testApp(sDeviceState).packageName(); in setPackagesSuspended_unsuspendMultipleTimes_allPackagesUnsuspended() local
252 String testApp = testApp(sDeviceState).packageName(); in setPackagesSuspended_suspendMixedPackages_onlySomeSuspended() local
277 String testApp = testApp(sDeviceState).packageName(); in setPackagesSuspended_multipleAdminsSuspendPackages_success() local
312 String testApp = testApp(sDeviceState).packageName(); in setPackagesSuspended_adminsUnsuspendOtherAdmin_fail() local
[all …]
DDeviceIdentifiersTest.java65 try (TestAppInstance testApp = sSmsTestApp.install(); in getDeviceId_smsAppReturnsSameValue()
80 try (TestAppInstance testApp = sSmsTestApp.install(); in getImei_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue()
95 try (TestAppInstance testApp = sSmsTestApp.install(); in getMeid_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue()
110 try (TestAppInstance testApp = sSmsTestApp.install(); in getSubscriberId_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue()
125 try (TestAppInstance testApp = sSmsTestApp.install(); in getSimSerialNumber_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue()
140 try (TestAppInstance testApp = sSmsTestApp.install(); in getNai_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue()
DApplicationExemptionsTest.java115 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationExemptions_noPermission_throwsSecurityException()
130 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationExemptions_validExemptionSet_exemptionAppOpsGranted()
147 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationExemptions_emptyExemptionSet_unsetsAllExemptions()
167 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationExemptions_invalidExemptionInSet_throwsIllegalArgumentException()
191 try (TestAppInstance testApp = sTestApp.install()) { in getApplicationExemptions_noPermission_throwsSecurityException()
204 try (TestAppInstance testApp = sTestApp.install()) { in getApplicationExemptions_validPackage_returnsExemptionsSet()
231 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationExemptions_reinstallApplication_exemptionAppOpsReset()
237 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationExemptions_reinstallApplication_exemptionAppOpsReset()
251 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationExemptions_powerRestrictionExemption_exemptedAppStandbyBucket()
271 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationExemptions_powerRestrictionExemption_allowsBgUsage()
[all …]
DCrossProfileIntentFiltersTest.java95 try (TestAppInstance testApp = sTestApp.install(otherUser(sDeviceState))) { in queryIntentActivities_doesntIncludeAppInOtherUser()
109 try (TestAppInstance testApp = sTestApp.install(otherUser(sDeviceState))) { in queryIntentActivities_intentFilterIsSet_includesAppInOtherUser()
137 try (TestAppInstance testApp = sTestApp.install()) { in queryIntentActivities_intentFilterIsSet_includesAppInOwnUser()
165 try (TestAppInstance testApp = sTestApp.install(otherUser(sDeviceState))) { in startActivity_intentFilterIsSet_startsAppInOtherUser()
197 try (TestAppInstance testApp = sTestApp.install()) { in startActivity_intentFilterIsSet_startsAppInOwnUser()
252 try (TestAppInstance testApp = sTestApp.install(otherUser(sDeviceState))) { in clearCrossProfileIntentFilters_clears()
277 try (TestAppInstance testApp = sTestApp.install(); in queryIntentActivities_intentFilterIsSet_includesAppInBothUsers()
309 try (TestAppInstance testApp = sTestApp.install(); in startActivity_intentFilterIsSet_appIsInBothUsers_requiresDisambiguation()
DCheckFinancedTest.java81 try (TestAppInstance testApp = sTestApp.install()) { in isDeviceFinanced_isNotFinanced_returnsFalse()
92 try (TestAppInstance testApp = sTestApp.install()) { in isDeviceFinanced_isFinanced_returnsTrue()
132 try (TestAppInstance testApp = sTestApp.install(); in getFinancedDeviceKioskRoleHolder_isFinanced_returnsRoleHolder()
155 try (TestAppInstance testApp = sTestApp.install()) { in deviceFinancingStateChanged_roleAdded_ReceivesBroadcast()
DApplicationRestrictionsTest.java92 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationRestrictions_applicationRestrictionsAreSet()
119 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationRestrictions_applicationRestrictionsAlreadySet_setsNewRestrictions()
234 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationRestrictions_policyDoesNotApply_applicationRestrictionsAreNotSet()
294 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationRestrictions_restrictionsChangedBroadcastIsReceived()
319 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationRestrictionsManagingPackage_applicationRestrictionsManagingPackageIsSet()
403 try (TestAppInstance testApp = sTestApp.install()) { in getApplicationRestrictionsPerAdmin_restrictionsSetForOneAdmin_returnsApplicationRestrictions()
433 try (TestAppInstance testApp = sTestApp.install()) { in roleHolderSetApplicationRestrictions_UserManagerReturnsNull()
459 try (TestAppInstance testApp = sTestApp.install()) { in roleHolderSetApplicationRestrictionsOnParent_successWithBroadcastSent()
515 try (TestAppInstance testApp = sTestApp.install()) { in dpcAndRoleHolderSetApplicationRestrictions_doesNotOverlap()
DLockTaskTest.kt130 testApp.install().use { testApp -> in <lambda>() method
419 testApp.install().use { testApp -> in <lambda>() method
452 testApp.install().use { testApp -> in <lambda>() method
485 testApp.install().use { testApp -> in <lambda>() method
519 testApp.install().use { testApp -> in <lambda>() method
556 testApp.install().use { testApp -> in <lambda>() method
586 testApp.install().use { testApp -> in <lambda>() method
618 testApp.install().use { testApp -> in <lambda>() method
665 testApp.install().use { testApp -> in <lambda>() method
699 testApp.install().use { testApp -> in <lambda>() method
[all …]
DAdbProvisioningTest.java60 try (TestAppInstance testApp = sRemoteDpcTestApp.install(TestApis.users().system())) { in setDeviceOwnerUsingAdb_isLogged()
87 try (TestAppInstance testApp = sRemoteDpcTestApp.install()) { in setProfileOwnerUsingAdb_isLogged()
DStatusBarTest.java72 try (TestAppInstance testApp = sTestApp.install()) { in statusBar_personalActivityIsInForeground_doesNotIncludeWorkBadge()
90 try (TestAppInstance testApp = sTestApp.install(workProfile(sDeviceState))) { in statusBar_workActivityIsInForeground_includesWorkBadge()
DPersonalAppsSuspensionTest.java96 try (TestAppInstance testApp = sTestApp.install()) { in setPersonalAppsSuspended_cannotStartActivity()
116 try (TestAppInstance testApp = sTestApp.install()) { in setPersonalAppsSuspended_policyDoesNotApply_canStartActivity()
139 try (TestAppInstance testApp = sSmsTestApp.install(); in setPersonalAppsSuspended_smsApp_canStartActivity()
/cts/common/device-side/bedstead/modules/testapps/src/main/kotlin/com/android/bedstead/testapps/
DTestAppsDeviceStateExtensions.kt35 fun DeviceState.testApp(): TestAppInstance = testApp(EnsureTestAppInstalled.DEFAULT_KEY) method
40 fun DeviceState.testApp(key: String): TestAppInstance = method
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java282 public static ArrayList<String> listAs(TestApp testApp, String dirPath) throws Exception { in listAs()
290 public static String mediaStoreVersion(TestApp testApp) throws Exception { in mediaStoreVersion()
299 public static boolean canReadAndWriteAs(TestApp testApp, String path) throws Exception { in canReadAndWriteAs()
308 TestApp testApp, String filePath) throws Exception { in readExifMetadataFromTestApp()
319 public static boolean createFileAs(TestApp testApp, String path) throws Exception { in createFileAs()
328 public static boolean createFileAs(TestApp testApp, String path, IBinder content) in createFileAs()
340 public static boolean createImageEntryAs(TestApp testApp, String path) throws Exception { in createImageEntryAs()
353 public static Uri createImageEntryForUriAs(TestApp testApp, String path) throws Exception { in createImageEntryForUriAs()
365 public static String[] queryForOwnerPackageNamesAs(TestApp testApp, Uri uri) throws Exception { in queryForOwnerPackageNamesAs()
377 public static int queryWithArgsAs(TestApp testApp, Uri uri, Bundle queryArgs) throws Exception { in queryWithArgsAs()
[all …]
/cts/tests/tests/companion/core/src/android/companion/cts/core/
DCoreTestBase.kt10 protected val testApp = AppHelper( constant in android.companion.cts.core.CoreTestBase
/cts/tests/mediaprovider/MediaProviderTestHelper/src/android/provider/cts/media/modern/
DMediaStoreTestUtils.java53 public static Bundle markIsFavoriteStatus(TestApp testApp, Uri uri, boolean value) in markIsFavoriteStatus()
90 private static void launchTestApp(com.android.cts.install.lib.TestApp testApp, in launchTestApp()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2021_39701.java36 final String testApp = "CVE-2021-39701.apk"; in testPocCVE_2021_39701() local
DCVE_2022_20007.java38 final String testApp = "CVE-2022-20007.apk"; in testPocCVE_2022_20007() local
/cts/common/device-side/bedstead/remotedpc/src/main/java/com/android/bedstead/remotedpc/
DRemoteDevicePolicyManagerRoleHolder.java35 public RemoteDevicePolicyManagerRoleHolder(TestApp testApp, UserReference user) { in RemoteDevicePolicyManagerRoleHolder()
DRemotePolicyManager.java30 RemotePolicyManager(TestApp testApp, UserReference user) { in RemotePolicyManager()
DRemoteDelegate.java37 public RemoteDelegate(TestApp testApp, UserReference user) { in RemoteDelegate()
DRemoteDeviceAdmin.java47 public RemoteDeviceAdmin(TestApp testApp, DevicePolicyController devicePolicyController) { in RemoteDeviceAdmin()
53 public RemoteDeviceAdmin(String key, TestApp testApp, in RemoteDeviceAdmin()
124 TestApp testApp = deviceAdminQuery.get(); in setAsDeviceAdmin() local

123