/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ui/ |
D | HealthConnectAllAppPermissionFragmentTest.kt | 27 import com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObject 64 waitFindObject(By.text(HEALTH_CONNECT_LABEL)) in usedHealthConnectPermissionsAreListed() 65 waitFindObject(By.text(HEALTH_CONNECT_PERMISSION_READ_FLOORS_CLIMBED_LABEL)) in usedHealthConnectPermissionsAreListed() 66 waitFindObject(By.text(HEALTH_CONNECT_PERMISSION_READ_STEPS_LABEL)) in usedHealthConnectPermissionsAreListed() 104 waitFindObject(By.text(HEALTH_CONNECT_LABEL)) in invalidGrantedUsedHealthConnectPermissionsAreListed() 105 waitFindObject(By.text(HEALTH_CONNECT_PERMISSION_READ_FLOORS_CLIMBED_LABEL)) in invalidGrantedUsedHealthConnectPermissionsAreListed() 109 waitFindObject(By.text(HEALTH_CONNECT_PERMISSION_READ_STEPS_LABEL)) in invalidGrantedUsedHealthConnectPermissionsAreListed() 130 waitFindObject(By.descContains(MORE_OPTIONS)).click() in startManageAppPermissionsActivity() 131 waitFindObject(By.text(ALL_PERMISSIONS)).click() in startManageAppPermissionsActivity()
|
D | AllAppPermissionsFragmentTest.kt | 26 import com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObject 82 waitFindObject(By.descContains(MORE_OPTIONS)).click() in startManageAppPermissionsActivity() 83 waitFindObject(By.text(ALL_PERMISSIONS)).click() in startManageAppPermissionsActivity() 88 waitFindObject(By.text(PERM_LABEL)) in usedPermissionsAreListed() 93 waitFindObject(By.text(PERM_LABEL)) in permissionsAreAddedWhenAppIsUpdated() 96 eventually { waitFindObject(By.text(SECOND_PERM_LABEL)) } in permissionsAreAddedWhenAppIsUpdated() 102 eventually { waitFindObject(By.text(SECOND_PERM_LABEL)) } in permissionsAreRemovedWhenAppIsUpdated()
|
D | HealthConnectAppPermissionFragmentTest.kt | 26 import com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObject 61 eventually { waitFindObject(By.text(HEALTH_CONNECT_LABEL)) } in usedHealthConnectPermissionsAreListed() 80 eventually { waitFindObject(By.text(HEALTH_CONNECT_LABEL)) } in invalidGrantedUsedHealthConnectPermissionsAreListed()
|
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/ |
D | PermissionDecisionsTest.kt | 54 waitFindObject( in testAcceptPermissionDialogShowsDecisionWithGrantedAccess() 68 waitFindObject( in testDenyPermissionDialogShowsDecisionWithDeniedAccess() 101 waitFindObject( in testClickOnDecisionAndChangeAccessUpdatesDecision() 107 waitFindObject(By.text(APP_PACKAGE_NAME)) in testClickOnDecisionAndChangeAccessUpdatesDecision() 108 waitFindObject(By.text("Location access for this app")) in testClickOnDecisionAndChangeAccessUpdatesDecision() 112 waitFindObject(By.text("Don’t allow")).click() in testClickOnDecisionAndChangeAccessUpdatesDecision() 114 waitFindObject( in testClickOnDecisionAndChangeAccessUpdatesDecision()
|
D | PermissionTapjackingTest.kt | 53 waitFindObject(By.text(getPermissionControllerString(ALLOW_FOREGROUND_BUTTON_TEXT))) in testTapjackGrantDialog_fullOverlay() 58 waitFindObject(By.res("android.permissionui.cts.usepermission:id/overlay")) in testTapjackGrantDialog_fullOverlay() 76 waitFindObject(By.text(getPermissionControllerString(ALLOW_FOREGROUND_BUTTON_TEXT))) in testTapjackGrantDialog_partialOverlay() 83 ?: waitFindObject(By.text(getPermissionControllerString(DENY_BUTTON_TEXT))) in testTapjackGrantDialog_partialOverlay() 95 waitFindObject(By.res("android.permissionui.cts.usepermission:id/overlay")) in testTapjackGrantDialog_partialOverlay()
|
D | PermissionReviewTapjackingTest.kt | 78 waitFindObject( in testOverlaysAreHidden() 83 waitFindObject(By.res("com.android.permissioncontroller:id/permissions_message")) in testOverlaysAreHidden() 97 private fun findOverlay() = waitFindObject(By.text("Find me!"))
|
D | PermissionTest29.kt | 179 waitFindObject(By.textContains("Allow in settings."), 100) in openSettingsThenDoNothingThenLeave() 186 waitFindObject(By.res("com.android.permissioncontroller:id/grant_dialog"), 100) in openSettingsThenDoNothingThenLeave() 227 waitFindObject( in testAppCanOnlyShowOneDialog() 232 waitFindObject( in testAppCanOnlyShowOneDialog()
|
D | BasePermissionTest.kt | 313 protected fun waitFindObject(selector: BySelector): UiObject2 { in <lambda>() method 314 return findObjectWithRetry({ t -> UiAutomatorUtils2.waitFindObject(selector, t) })!! in <lambda>() 317 protected fun waitFindObject(selector: BySelector, timeoutMillis: Long): UiObject2 { in <lambda>() method in android.permissionui.cts.BasePermissionTest 319 { t -> UiAutomatorUtils2.waitFindObject(selector, t) }, in <lambda>() 352 waitFindObject(selector, timeoutMillis).click() in <lambda>() 359 waitFindObject(selector, timeoutMillis) in <lambda>() 373 waitFindObject(selector, timeoutMs) in <lambda>()
|
D | BaseUsePermissionTest.kt | 806 waitFindObject(By.text(getPermissionControllerString(ALLOW_BUTTON_TEXT)), timeoutMillis) in <lambda>() 808 waitFindObject(By.res(ALLOW_BUTTON), timeoutMillis) in <lambda>() 874 waitFindObject( in <lambda>() 879 waitFindObject(By.res(ALLOW_FOREGROUND_BUTTON), timeoutMillis) in <lambda>() 944 val text = waitFindObject(By.textContains(" settings.")) in <lambda>() 1177 !waitFindObject( in <lambda>() 1182 !(waitFindObject(By.text(getPermissionControllerString(DENY_BUTTON_TEXT))) in <lambda>() 1186 waitFindObject(By.text(getPermissionControllerString(ASK_BUTTON_TEXT))) in <lambda>() 1189 !(waitFindObject(By.res(DENY_RADIO_BUTTON)).isChecked || in <lambda>() 1192 waitFindObject(By.res(ASK_RADIO_BUTTON)).isChecked)) in <lambda>() [all …]
|
D | AppPermissionTest.kt | 325 waitFindObject(By.res(ALLOW_RADIO_BUTTON).enabled(true).checked(false)) in assertAllowButtonIsEnabledAndClickAndChecked() 327 waitFindObject(By.res(ALLOW_RADIO_BUTTON).checked(true)) in assertAllowButtonIsEnabledAndClickAndChecked() 331 waitFindObject(By.res(ALLOW_RADIO_BUTTON).enabled(false)) in assertAllowButtonIsDisabledAndRestrictedSettingDialogPoppedUp() 334 waitFindObject(ENHANCED_CONFIRMATION_DIALOG_SELECTOR, TIMEOUT_MILLIS) in assertAllowButtonIsDisabledAndRestrictedSettingDialogPoppedUp()
|
D | NotificationPermissionTest.kt | 146 waitFindObject(By.textContains(ALLOW)) in notificationPromptShowsForLegacyAppWithNotificationChannelsOnStart() 205 waitFindObject(By.text(getPermissionControllerString(ALLOW_BUTTON_TEXT))) in notificationPromptShownForSubsequentStartsIfTaskStartWasLauncher() 207 waitFindObject(By.res(ALLOW_BUTTON)) in notificationPromptShownForSubsequentStartsIfTaskStartWasLauncher() 243 waitFindObject(By.textContains(SECOND_ACTIVITY_LABEL)) in notificationPromptNotShownForSubsequentStartsIfSubsequentIsDifferentPkg() 404 waitFindObject(By.textContains(ACTIVITY_LABEL)) in launchApp()
|
D | CameraMicIndicatorsPermissionTest.kt | 589 val iconView = waitFindObject(By.descContains(micLabel)) in <lambda>() 599 val iconView = waitFindObject(By.descContains(cameraLabel)) in <lambda>() 605 var appView = waitFindObject(By.textContains(APP_LABEL)) in <lambda>() 647 var shellView = waitFindObject(By.textContains(shellLabel)) in <lambda>() 686 protected fun waitFindObject(selector: BySelector): UiObject2? { in <lambda>() method in android.permissionui.cts.CameraMicIndicatorsPermissionTest 687 return findObjectWithRetry({ t -> UiAutomatorUtils2.waitFindObject(selector, t) }) in <lambda>() 725 val micView = waitFindObject(byOneOfText(originalMicLabel, safetyCenterMicLabel)) in <lambda>() 734 val cameraView = waitFindObject(byOneOfText(originalCameraLabel, safetyCenterCameraLabel)) in <lambda>()
|
D | SensorBlockedBannerTest.kt | 88 waitFindObject(By.text(getPermissionControllerString(bannerTitle))) in navigateAndTest() 144 waitFindObject(By.text(CAMERA_TOGGLE_LABEL)).click() in testCardClickOpenPrivacyControls()
|
/packages/modules/Permission/tests/cts/permissionmultidevice/TestUtils/src/android/permissionmultidevice/cts/ |
D | UiAutomatorUtils.kt | 27 fun waitFindObject(selector: BySelector): UiObject2 { in <lambda>() method 28 return findObjectWithRetry({ t -> UiAutomatorUtils2.waitFindObject(selector, t) })!! in <lambda>() 31 fun waitFindObject(selector: BySelector, timeoutMillis: Long): UiObject2 { in <lambda>() method 33 { t -> UiAutomatorUtils2.waitFindObject(selector, t) }, in <lambda>() 39 waitFindObject(selector, timeoutMillis).click() in <lambda>() 48 view = waitFindObject(selector, timeoutMs) in <lambda>()
|
/packages/modules/Permission/tests/cts/role/src/android/app/role/cts/ |
D | RoleManagerTest.java | 23 import static com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObject; 277 waitFindObject(ENHANCED_CONFIRMATION_DIALOG_SELECTOR, TIMEOUT_MILLIS); in requestRoleThenBlockRequestRoleDialogByRestrictedSettingDialog() 453 waitFindObject(By.text(APP_LABEL)).click(); in respondToRoleRequest() 464 ? waitFindObject(DONT_ASK_AGAIN_TOGGLE_SELECTOR) in findDontAskAgainCheck() 476 waitFindObject(positive ? POSITIVE_BUTTON_SELECTOR : NEGATIVE_BUTTON_SELECTOR).click(); in clickButtonAndWaitForResult() 544 waitFindObject(By.text(APP_28_LABEL)).click(); in targetSdk28AndChangeDefaultDialerAndAllowThenIsDefaultDialer() 545 waitFindObject(POSITIVE_BUTTON_SELECTOR).click(); in targetSdk28AndChangeDefaultDialerAndAllowThenIsDefaultDialer() 565 waitFindObject(By.text(APP_28_LABEL)).click(); in targetSdk28AndChangeDefaultSmsAndAllowThenIsDefaultSms() 566 waitFindObject(POSITIVE_BUTTON_SELECTOR).click(); in targetSdk28AndChangeDefaultSmsAndAllowThenIsDefaultSms() 617 waitFindObject(By.text(APP_LABEL)).click(); in targetSdk28AndChangeDefaultDialerForAnotherAppAsHolderAndAllowThenTheOtherAppIsDefaultDialer() [all …]
|
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ui/handheld/ |
D | ManageCustomPermissionsFragmentTest.kt | 28 import com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObject 68 waitFindObject(By.textContains(ADDITIONAL_PERMISSIONS_LABEL)).click() in groupSummaryGetsUpdatedWhenPermissionGetsGranted() 69 waitFindObject(By.textContains(PERM_LABEL)) in groupSummaryGetsUpdatedWhenPermissionGetsGranted() 83 waitFindObject(By.textContains(ADDITIONAL_PERMISSIONS_LABEL)).click() in groupSummaryGetsUpdatedWhenPermissionGetsRevoked() 84 waitFindObject(By.textContains(PERM_LABEL)) in groupSummaryGetsUpdatedWhenPermissionGetsRevoked()
|
D | ReviewOngoingUsageFragmentTest.kt | 23 import com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObject 54 waitFindObject(By.textContains(CAMERA_TEST_APP_LABEL)).click() in cameraAccessShouldBeShown()
|
/packages/modules/Permission/tests/cts/permissionmultidevice/src/android/permissionmultidevice/cts/ |
D | AppPermissionsTest.kt | 323 val actualText = UiAutomatorUtils2.waitFindObject(By.res(PERMISSION_MESSAGE_ID)).text in verifyPermissionMessage() 370 UiAutomatorUtils2.waitFindObject(By.res(ALLOW_FOREGROUND_ONLY_RADIO_BUTTON)) in verifyRadioButtonStates() 375 UiAutomatorUtils2.waitFindObject(By.res(ASK_RADIO_BUTTON)).isChecked in verifyRadioButtonStates() 379 UiAutomatorUtils2.waitFindObject(By.res(DENY_RADIO_BUTTON)).isChecked in verifyRadioButtonStates() 403 UiAutomatorUtils2.waitFindObject(By.res(RECYCLER_VIEW)) in getScrollableRecyclerView() 408 UiAutomatorUtils2.waitFindObject(By.text(permissionItemName)).click() in clickPermissionItem() 411 UiAutomatorUtils2.waitFindObject(By.res(ALLOW_FOREGROUND_ONLY_RADIO_BUTTON)).click() in clickPermissionItem() 414 UiAutomatorUtils2.waitFindObject(By.res(ASK_RADIO_BUTTON)).click() in clickPermissionItem() 417 UiAutomatorUtils2.waitFindObject(By.res(DENY_RADIO_BUTTON)).click() in clickPermissionItem()
|
D | DeviceAwarePermissionGrantTest.kt | 40 import android.permissionmultidevice.cts.UiAutomatorUtils.waitFindObject in <lambda>() 155 waitFindObject(By.displayId(displayId).textContains("Permission request suppressed")) in <lambda>() 239 waitFindObject(By.displayId(displayId).res(PERMISSION_MESSAGE_ID)) in <lambda>()
|
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | UndefinedGroupPermissionTest.kt | 36 import com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObject 171 waitFindObject(By.text(mAllowButtonText!!)) in findAllowButton() 173 waitFindObject( in findAllowButton() 201 waitFindObject(By.text(mDenyButtonText!!)) in testOtherGroupPermissionsNotGranted() 205 waitFindObject(By.res(ALLOW_BUTTON), 2000) in testOtherGroupPermissionsNotGranted() 207 waitFindObject(By.res(GRANT_DIALOG), 2000) in testOtherGroupPermissionsNotGranted()
|
D | SafetyCenterUtils.kt | 33 import com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObject 72 waitFindObject(By.desc("Security & privacy")) in assertSafetyCenterStarted()
|
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ |
D | PermissionGroupPreferenceUtils.kt | 21 import com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObject 32 waitFindObject(By.text(groupLabel.toString())) in getUsageCountsFromUi() 36 waitFindObject( in getUsageCountsFromUi()
|
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ui/handheld/v31/ |
D | PermissionUsageFragmentTest.kt | 30 import com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObject 69 waitFindObject(By.res("android:id/title").textContains(CAMERA_PREF_LABEL)).click() in cameraAccessShouldBeListed() 71 waitFindObject(By.textContains(APP_LABEL)) in cameraAccessShouldBeListed()
|
/packages/modules/Permission/tests/cts/permissionmultiuser/src/android/permissionmultiuser/cts/ |
D | AppDataSharingUpdatesTest.kt | 440 protected fun waitFindObject( in <lambda>() method 447 UiAutomatorUtils.waitFindObject(selector, timeoutMillis) in <lambda>() 453 UiAutomatorUtils.waitFindObject(selector, remainingTime) in <lambda>() 470 UiAutomatorUtils.waitFindObject(selector, timeoutMillis) in <lambda>() 477 UiAutomatorUtils.waitFindObject(selector, remainingTime) in <lambda>()
|
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/ |
D | UiTestHelper.kt | 35 import com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObject 64 uiObjectAction(waitFindObject(selector, remaining.toMillis()))
|