/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/ |
D | TestAppTest.java | 54 TestApp testApp = sDeviceState.testApps().any(); in reference_returnsNeneReference() local 61 TestApp testApp = sDeviceState.testApps().any(); in install_noUserSpecified_installsInInstrumentedUser() local 74 TestApp testApp = sDeviceState.testApps().any(); in install_userReference_installs() local 87 TestApp testApp = sDeviceState.testApps().any(); in install_userReference_returnsReferenceToInstance() local 101 TestApp testApp = sDeviceState.testApps().any(); in install_userHandle_installs() local 114 TestApp testApp = sDeviceState.testApps().any(); in install_userHandle_returnsReferenceToInstance() local 128 TestApp testApp = sDeviceState.testApps().any(); in install_nullUserReference_throwsException() local 135 TestApp testApp = sDeviceState.testApps().any(); in install_nullUserHandle_throwsException() local 142 TestApp testApp = sDeviceState.testApps().any(); in instance_userHandle_instanceIsNotInstalled_stillReturnsInstance() local 152 TestApp testApp = sDeviceState.testApps().any(); in instance_userReference_instanceIsNotInstalled_stillReturnsInstance() local [all …]
|
D | TestAppProviderTest.java | 395 TestApp testApp = mTestAppProvider.query() in query_testOnly_returnsMatching() local 404 TestApp testApp = mTestAppProvider.query() in query_notTestOnly_returnsMatching() local 413 TestApp testApp = mTestAppProvider.query() in query_minSdkVersion_returnsMatching() local 422 TestApp testApp = mTestAppProvider.query() in query_targetSdkVersion_returnsMatching() local 431 TestApp testApp = mTestAppProvider.query() in query_withPermission_returnsMatching() local 440 TestApp testApp = mTestAppProvider.query() in query_withoutPermission_returnsMatching() local 449 TestApp testApp = mTestAppProvider.query() in query_metadata_returnsMatching() local 458 TestApp testApp = mTestAppProvider.query() in query_withExistingActivity_returnsMatching() local 472 TestApp testApp = mTestAppProvider.query() in query_withAnyActivity_returnsMatching() local 481 TestApp testApp = mTestAppProvider.query() in query_withNoActivity_returnsMatching() local [all …]
|
D | TestAppActivityReferenceTest.java | 48 TestApp testApp = sDeviceState.testApps().query().whereActivities().isNotEmpty().get(); in start_activityIsStarted() local 59 TestApp testApp = sDeviceState.testApps().query().whereActivities().isNotEmpty().get(); in remote_executes() local
|
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()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | DelegationScopesTest.java | 85 try (TestAppInstance testApp = sTestApp.install(sUser)) { in getDelegatedScopes_returnsFromSetDelegatedScopes() 104 try (TestAppInstance testApp = sTestApp.install(sUser)) { in getDelegatedScopes_fromApp_returnsFromSetDelegatedScopes() 122 try (TestAppInstance testApp = sTestApp.install(sUser)) { in getDelegatedScopes_fromApp_passComponentName_throwsException() 140 try (TestAppInstance testApp = sTestApp.install(sUser); in getDelegatedScopes_fromApp_differentPackage_throwsException() 164 try (TestAppInstance testApp = sTestApp.install(sUser)) { in setDelegatedScopes_invalidAdmin_throwsSecurityException() 175 try (TestAppInstance testApp = sTestApp.install(sUser)) { in getDelegatedScopes_invalidAdmin_throwsSecurityException() 184 try (TestAppInstance testApp = sTestApp.install(sUser)) { in getDelegatedScopes_returnsLatestFromSetDelegatedScopes() 225 try (TestAppInstance testApp = sTestApp.install(sUser)) { in getDelegatePackages_oneApp_twoScopes_returnsFromSetDelegatedScopes() 255 try (TestAppInstance testApp = sTestApp.install(sUser); in getDelegatePackages_twoApps_differentScopes_returnsFromSetDelegatedScopes() 284 try (TestAppInstance testApp = sTestApp.install(sUser); in getDelegatePackages_twoApps_sameScope_returnsFromSetDelegatedScopes() [all …]
|
D | PackageSuspensionTest.java | 64 String testApp = sDeviceState.testApp().packageName(); in isPackageSuspended_packageIsSuspended_returnsTrue() local 82 String testApp = sDeviceState.testApp().packageName(); in isPackageSuspended_packageIsNotSuspended_returnFalse() local 96 String testApp = sDeviceState.testApp().packageName(); in setPackagesSuspended_suspendSuccessful() local 115 String testApp = sDeviceState.testApp().packageName(); in setPackagesSuspended_suspendAlreadySuspendedPackage_returnsEmpty() local 146 String testApp = sDeviceState.testApp().packageName(); in setPackagesSuspended_unsuspendSuccessful() local 191 String testApp = sDeviceState.testApp().packageName(); in setPackagesSuspended_suspendMultipleTimes_allPackagesSuspended() local 218 String testApp = sDeviceState.testApp().packageName(); in setPackagesSuspended_unsuspendMultipleTimes_allPackagesUnsuspended() local 247 String testApp = sDeviceState.testApp().packageName(); in setPackagesSuspended_suspendMixedPackages_onlySomeSuspended() local 272 String testApp = sDeviceState.testApp().packageName(); in setPackagesSuspended_multipleAdminsSuspendPackages_success() local 307 String testApp = sDeviceState.testApp().packageName(); in setPackagesSuspended_adminsUnsuspendOtherAdmin_fail() local [all …]
|
D | DeviceIdentifiersTest.java | 60 try (TestAppInstance testApp = sSmsTestApp.install(); in getDeviceId_smsAppReturnsSameValue() 74 try (TestAppInstance testApp = sSmsTestApp.install(); in getImei_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue() 88 try (TestAppInstance testApp = sSmsTestApp.install(); in getMeid_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue() 102 try (TestAppInstance testApp = sSmsTestApp.install(); in getSubscriberId_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue() 116 try (TestAppInstance testApp = sSmsTestApp.install(); in getSimSerialNumber_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue() 130 try (TestAppInstance testApp = sSmsTestApp.install(); in getNai_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue()
|
D | ApplicationExemptionsTest.java | 114 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationExemptions_noPermission_throwsSecurityException() 129 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationExemptions_validExemptionSet_exemptionAppOpsGranted() 146 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationExemptions_emptyExemptionSet_unsetsAllExemptions() 166 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationExemptions_invalidExemptionInSet_throwsIllegalArgumentException() 190 try (TestAppInstance testApp = sTestApp.install()) { in getApplicationExemptions_noPermission_throwsSecurityException() 203 try (TestAppInstance testApp = sTestApp.install()) { in getApplicationExemptions_validPackage_returnsExemptionsSet() 230 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationExemptions_reinstallApplication_exemptionAppOpsReset() 236 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationExemptions_reinstallApplication_exemptionAppOpsReset() 250 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationExemptions_powerRestrictionExemption_exemptedAppStandbyBucket() 271 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationExemptions_powerRestrictionExemption_allowsBgUsage() [all …]
|
D | CrossProfileIntentFiltersTest.java | 91 try (TestAppInstance testApp = sTestApp.install(sDeviceState.otherUser())) { in queryIntentActivities_doesntIncludeAppInOtherUser() 105 try (TestAppInstance testApp = sTestApp.install(sDeviceState.otherUser())) { in queryIntentActivities_intentFilterIsSet_includesAppInOtherUser() 133 try (TestAppInstance testApp = sTestApp.install()) { in queryIntentActivities_intentFilterIsSet_includesAppInOwnUser() 161 try (TestAppInstance testApp = sTestApp.install(sDeviceState.otherUser())) { in startActivity_intentFilterIsSet_startsAppInOtherUser() 193 try (TestAppInstance testApp = sTestApp.install()) { in startActivity_intentFilterIsSet_startsAppInOwnUser() 248 try (TestAppInstance testApp = sTestApp.install(sDeviceState.otherUser())) { in clearCrossProfileIntentFilters_clears() 273 try (TestAppInstance testApp = sTestApp.install(); in queryIntentActivities_intentFilterIsSet_includesAppInBothUsers() 305 try (TestAppInstance testApp = sTestApp.install(); in startActivity_intentFilterIsSet_appIsInBothUsers_requiresDisambiguation()
|
D | CheckFinancedTest.java | 79 try (TestAppInstance testApp = sTestApp.install()) { in isDeviceFinanced_isNotFinanced_returnsFalse() 90 try (TestAppInstance testApp = sTestApp.install()) { in isDeviceFinanced_isFinanced_returnsTrue() 130 try (TestAppInstance testApp = sTestApp.install(); in getFinancedDeviceKioskRoleHolder_isFinanced_returnsRoleHolder() 153 try (TestAppInstance testApp = sTestApp.install()) { in deviceFinancingStateChanged_roleAdded_ReceivesBroadcast()
|
D | ApplicationRestrictionsTest.java | 92 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationRestrictions_applicationRestrictionsAreSet() 119 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationRestrictions_applicationRestrictionsAlreadySet_setsNewRestrictions() 236 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationRestrictions_policyDoesNotApply_applicationRestrictionsAreNotSet() 297 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationRestrictions_restrictionsChangedBroadcastIsReceived() 322 try (TestAppInstance testApp = sTestApp.install()) { in setApplicationRestrictionsManagingPackage_applicationRestrictionsManagingPackageIsSet() 408 try (TestAppInstance testApp = sTestApp.install()) { in getApplicationRestrictionsPerAdmin_restrictionsSetForOneAdmin_returnsApplicationRestrictions() 439 try (TestAppInstance testApp = sTestApp.install()) { in roleHolderSetApplicationRestrictions_UserManagerReturnsNull() 466 try (TestAppInstance testApp = sTestApp.install()) { in roleHolderSetApplicationRestrictionsOnParent_successWithBroadcastSent() 525 try (TestAppInstance testApp = sTestApp.install()) { in dpcAndRoleHolderSetApplicationRestrictions_doesNotOverlap()
|
D | LockTaskTest.kt | 128 testApp.install().use { testApp -> in <lambda>() method 417 testApp.install().use { testApp -> in <lambda>() method 450 testApp.install().use { testApp -> in <lambda>() method 483 testApp.install().use { testApp -> in <lambda>() method 517 testApp.install().use { testApp -> in <lambda>() method 554 testApp.install().use { testApp -> in <lambda>() method 584 testApp.install().use { testApp -> in <lambda>() method 616 testApp.install().use { testApp -> in <lambda>() method 663 testApp.install().use { testApp -> in <lambda>() method 697 testApp.install().use { testApp -> in <lambda>() method [all …]
|
D | AdbProvisioningTest.java | 59 try (TestAppInstance testApp = sRemoteDpcTestApp.install(TestApis.users().system())) { in setDeviceOwnerUsingAdb_isLogged() 86 try (TestAppInstance testApp = sRemoteDpcTestApp.install()) { in setProfileOwnerUsingAdb_isLogged()
|
D | StatusBarTest.java | 69 try (TestAppInstance testApp = sTestApp.install()) { in statusBar_personalActivityIsInForeground_doesNotIncludeWorkBadge() 87 try (TestAppInstance testApp = sTestApp.install(sDeviceState.workProfile())) { in statusBar_workActivityIsInForeground_includesWorkBadge()
|
D | PersonalAppsSuspensionTest.java | 92 try (TestAppInstance testApp = sTestApp.install()) { in setPersonalAppsSuspended_cannotStartActivity() 112 try (TestAppInstance testApp = sTestApp.install()) { in setPersonalAppsSuspended_policyDoesNotApply_canStartActivity() 134 try (TestAppInstance testApp = sSmsTestApp.install(); in setPersonalAppsSuspended_smsApp_canStartActivity()
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/packages/ |
D | ProcessReferenceTest.java | 46 try (TestAppInstance testApp = sTestApp.install()) { in kill_killsProcess() 63 try (TestAppInstance testApp = sTestApp.install()) { in crash_crashesProcess()
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | TestUtils.java | 279 public static ArrayList<String> listAs(TestApp testApp, String dirPath) throws Exception { in listAs() 287 public static boolean canReadAndWriteAs(TestApp testApp, String path) throws Exception { in canReadAndWriteAs() 296 TestApp testApp, String filePath) throws Exception { in readExifMetadataFromTestApp() 307 public static boolean createFileAs(TestApp testApp, String path) throws Exception { in createFileAs() 316 public static boolean createFileAs(TestApp testApp, String path, IBinder content) in createFileAs() 328 public static boolean createImageEntryAs(TestApp testApp, String path) throws Exception { in createImageEntryAs() 341 public static Uri createImageEntryForUriAs(TestApp testApp, String path) throws Exception { in createImageEntryForUriAs() 353 public static String[] queryForOwnerPackageNamesAs(TestApp testApp, Uri uri) throws Exception { in queryForOwnerPackageNamesAs() 365 public static int queryWithArgsAs(TestApp testApp, Uri uri, Bundle queryArgs) throws Exception { in queryWithArgsAs() 377 public static int deleteMediaByUriAs(TestApp testApp, Uri uri) throws Exception { in deleteMediaByUriAs() [all …]
|
/cts/tests/tests/companion/core/src/android/companion/cts/core/ |
D | CoreTestBase.kt | 10 protected val testApp = AppHelper( constant
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | CVE_2021_39701.java | 36 final String testApp = "CVE-2021-39701.apk"; in testPocCVE_2021_39701() local
|
D | CVE_2022_20007.java | 38 final String testApp = "CVE-2022-20007.apk"; in testPocCVE_2022_20007() local
|
D | CVE_2021_39622.java | 44 final String testApp = "CVE-2021-39622.apk"; in testPocCVE_2021_39622() local
|
D | CVE_2021_39706.java | 38 final String testApp = "CVE-2021-39706.apk"; in testPocCVE_2021_39706() local
|
/cts/common/device-side/bedstead/remotedpc/src/main/java/com/android/bedstead/remotedpc/ |
D | RemoteDevicePolicyManagerRoleHolder.java | 35 public RemoteDevicePolicyManagerRoleHolder(TestApp testApp, UserReference user) { in RemoteDevicePolicyManagerRoleHolder()
|
D | RemotePolicyManager.java | 30 RemotePolicyManager(TestApp testApp, UserReference user) { in RemotePolicyManager()
|
D | RemoteDelegate.java | 37 public RemoteDelegate(TestApp testApp, UserReference user) { in RemoteDelegate()
|