/aosp_15_r20/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/ |
H A D | TestAppTest.java | 59 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 …]
|
H A D | TestAppProviderTest.java | 440 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 …]
|
H A D | TestAppInstanceTest.java | 466 try (TestAppInstance testApp = sTestApp.install(); in permissions_withPermission_permissionStateAppliesToCallsToTestApp() 475 try (TestAppInstance testApp = sTestApp.install(); in permissions_withPermission_permissionStateDoesNotApplyToOtherTestApps() 485 try (TestAppInstance testApp = sTestApp.install(); in permissions_withPermission_permissionStateDoesNotApplyToInstrumentedApp() 494 try (TestAppInstance testApp = sTestApp.install(); in permissions_withPermission_permissionStateDoesNotApplyToInstrumentedAppAfterCall() 505 try (TestAppInstance testApp = sTestApp.install(); in permissions_withPermission_instrumentedPermissionStateDoesNotAffectTestApp() 517 try (TestAppInstance testApp = sTestApp.install(); in permissions_withAppOp_appOpIsAllowedForTestApp() 526 try (TestAppInstance testApp = sTestApp.install(); in permissions_withoutAppOp_appOpIsNotAllowedForTestApp() 535 try (TestAppInstance testApp = sTestApp.install()) { in callThrowsException_doesNotBlockUsage()
|
H A D | TestAppActivityReferenceTest.java | 50 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
|
/aosp_15_r20/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
H A D | DelegationScopesTest.java | 88 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 …]
|
H A D | PackageSuspensionTest.java | 69 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 …]
|
H A D | ApplicationExemptionsTest.java | 115 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 …]
|
H A D | LockTaskTest.kt | 130 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 …]
|
H A D | CrossProfileIntentFiltersTest.java | 95 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()
|
H A D | ApplicationRestrictionsTest.java | 92 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()
|
H A D | DeviceIdentifiersTest.java | 65 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()
|
H A D | PermissionGrantTest.java | 662 try (TestAppInstance testApp = sNotInstalledTestApp.install()) { in setPermissionPolicy_grant_automaticallyGrantsPermissions() 687 try (TestAppInstance testApp = sNotInstalledTestApp.install()) { in setPermissionPolicy_deny_automaticallyDeniesPermissions() 760 try (TestAppInstance testApp = sNotInstalledTestApp.install()) { in setPermissionGrantStateDeny_autoGrantPermission_deniesPermissions() 794 try (TestAppInstance testApp = sNotInstalledTestApp.install()) { in setPermissionPolicy_sensorPermissions_autoGrantPermission_denies() 820 try (TestAppInstance testApp = sNotInstalledTestApp.install()) { in setPermissionPolicy_smsPermission_autoGrantPermission_denies() 844 try (TestAppInstance testApp = sNotInstalledTestApp.install()) { in setPermissionGrantStateDeny_autoDenyPermission_deniesPermissions() 876 try (TestAppInstance testApp = sNotInstalledTestApp.install()) { in setPermissionGrantStateDeny_promptPermission_deniesPermissions() 905 try (TestAppInstance testApp = sNotInstalledTestApp.install()) { in setPermissionStateGranted_autoDenyPermission_grantsPermissions() 938 try (TestAppInstance testApp = sNotInstalledTestApp.install()) { in setPermissionStateGranted_promptPermission_grantsPermissions() 974 try (TestAppInstance testApp = sNotInstalledTestApp.install()) { in setSensorPermissionStateGranted_promptPermission_denyAsPermissionCantBeGrantedAutomatically()
|
H A D | CheckFinancedTest.java | 81 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()
|
H A D | PersonalAppsSuspensionTest.java | 96 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()
|
H A D | TransferOwnershipTest.kt | 54 targetDeviceAdminTestAppSupportsTransferOwnership.install().use { testApp -> in <lambda>() method 85 targetDeviceAdminTestAppSupportsTransferOwnership.install().use { testApp -> in <lambda>() method 173 targetDeviceAdminTestAppSupportsTransferOwnership.install().use { testApp -> in <lambda>() method 274 targetDeviceAdminTestAppSupportsTransferOwnership.install().use {testApp -> in <lambda>() method
|
H A D | UserControlDisabledPackagesTest.java | 215 try (TestAppInstance testApp = sTestApp.install()) { in setUserControlDisabledPackages_bgUsageAllowed() 237 try (TestAppInstance testApp = sTestApp.install()) { in setUserControlDisabledPackages_exemptFromStandbyBuckets() 266 try (TestAppInstance testApp = sTestApp.install()) { in setUserControlDisabledPackages_clearsStoppedState()
|
/aosp_15_r20/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
H A D | TestUtils.java | 282 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 …]
|
/aosp_15_r20/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/defaultapps/ |
D | DefaultAppsPickerBasePreferenceControllerTest.java | 120 DefaultAppInfo testApp = mock(DefaultAppInfo.class); in refreshUi_hasAdditionalCandidate_hasTwoElements() local 135 DefaultAppInfo testApp = mock(DefaultAppInfo.class); in refreshUi_hasAdditionalCandidateAsDefault_secondElementIsSelected() local 152 DefaultAppInfo testApp = mock(DefaultAppInfo.class); in performClick_currentDefaultApp_nothingHappened() local 181 DefaultAppInfo testApp = mock(DefaultAppInfo.class); in performClick_otherOptionNoMessage_otherOptionSelected() local 211 DefaultAppInfo testApp = mock(DefaultAppInfo.class); in performClick_otherOptionHasMessage_dialogOpened() local 239 DefaultAppInfo testApp = mock(DefaultAppInfo.class); in performClick_otherOptionNoMessage_newKeySet() local
|
/aosp_15_r20/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/applications/defaultapps/ |
D | DefaultAppsPickerBasePreferenceControllerTest.java | 120 DefaultAppInfo testApp = mock(DefaultAppInfo.class); in refreshUi_hasAdditionalCandidate_hasTwoElements() local 135 DefaultAppInfo testApp = mock(DefaultAppInfo.class); in refreshUi_hasAdditionalCandidateAsDefault_secondElementIsSelected() local 152 DefaultAppInfo testApp = mock(DefaultAppInfo.class); in performClick_currentDefaultApp_nothingHappened() local 181 DefaultAppInfo testApp = mock(DefaultAppInfo.class); in performClick_otherOptionNoMessage_otherOptionSelected() local 211 DefaultAppInfo testApp = mock(DefaultAppInfo.class); in performClick_otherOptionHasMessage_dialogOpened() local 239 DefaultAppInfo testApp = mock(DefaultAppInfo.class); in performClick_otherOptionNoMessage_newKeySet() local
|
/aosp_15_r20/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | InstallPackageTaskTest.java | 77 TestApp testApp = writeApkToInstall(appToInstallFile); in run_success() local 132 TestApp testApp = writeApkToInstall(appToInstallFile); in run_packageAlreadyInstalled_success() local 195 TestApp testApp = testAppProvider in writeApkToInstall() local
|
/aosp_15_r20/cts/common/device-side/bedstead/remotedpc/src/main/java/com/android/bedstead/remotedpc/ |
H A D | RemoteDeviceAdmin.java | 47 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
|
/aosp_15_r20/cts/common/device-side/bedstead/modules/testapps/src/main/kotlin/com/android/bedstead/testapps/ |
H A D | TestAppsComponent.kt | 188 fun testApp(key: String): TestAppInstance { in testApp() method 209 val testApp: TestApp = testAppProvider.query(query).applyAnnotation( in ensureTestAppInstalled() constant
|
H A D | TestAppsDeviceStateExtensions.kt | 35 fun DeviceState.testApp(): TestAppInstance = testApp(EnsureTestAppInstalled.DEFAULT_KEY) method 40 fun DeviceState.testApp(key: String): TestAppInstance = method
|
/aosp_15_r20/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/packages/ |
H A D | ProcessReferenceTest.java | 47 try (TestAppInstance testApp = sTestApp.install()) { in kill_killsProcess() 64 try (TestAppInstance testApp = sTestApp.install()) { in crash_crashesProcess()
|
/aosp_15_r20/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/ |
H A D | AppWindowBecomesTopWindow.kt | 32 val testApp = component.get(scenarioInstance) in doEvaluate() constant
|