Home
last modified time | relevance | path

Searched refs:waitFindObjectOrNull (Results 1 – 16 of 16) sorted by relevance

/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ui/
DHealthConnectAllAppPermissionFragmentTest.kt28 import com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObjectOrNull
77 assertNull(waitFindObjectOrNull(By.text(HEALTH_CONNECT_LABEL), TIMEOUT_SHORT)) in invalidUngrantedUsedHealthConnectPermissionsAreNotListed()
79 waitFindObjectOrNull( in invalidUngrantedUsedHealthConnectPermissionsAreNotListed()
85 waitFindObjectOrNull( in invalidUngrantedUsedHealthConnectPermissionsAreNotListed()
DAppPermissionFragmentTest.kt28 import com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObjectOrNull
91 eventually { assertNull(waitFindObjectOrNull(By.text(APP_PERMISSIONS))) } in activityIsClosedWhenUserIsUninstalled()
98 eventually { assertNull(waitFindObjectOrNull(By.text(APP_PERMISSIONS))) } in activityIsClosedWhenDefinerIsUninstalled()
DAllAppPermissionsFragmentTest.kt27 import com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObjectOrNull
105 eventually { assertNull(waitFindObjectOrNull(By.text(SECOND_PERM_LABEL), TIMEOUT_SHORT)) } in permissionsAreRemovedWhenAppIsUpdated()
111 eventually { assertNull(waitFindObjectOrNull(By.text(ALL_PERMISSIONS), TIMEOUT_SHORT)) } in activityIsClosedWhenUserIsUninstalled()
DCustomPermissionAppsFragmentTest.kt23 import com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObjectOrNull
51 eventually { assertNull(waitFindObjectOrNull(By.text(PERMISSION_APPS_DESCRIPTION))) } in fragmentIsClosedWhenPermissionIsRemoved()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DReviewAccessibilityServicesTest.kt36 import com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObjectOrNull
201 waitFindObjectOrNull(containsWithoutCaseSelector) in findObjectByTextWithoutRetry()
203 waitFindObjectOrNull(containsWithoutCaseSelector, EXPECTED_TIMEOUT_MS) in findObjectByTextWithoutRetry()
230 val view = waitFindObjectOrNull(selector) in findPCObjectByClassAndText()
DBasePermissionTest.kt324 protected fun waitFindObjectOrNull(selector: BySelector): UiObject2? { in <lambda>() method
325 return findObjectWithRetry({ t -> UiAutomatorUtils2.waitFindObjectOrNull(selector, t) }) in <lambda>()
328 protected fun waitFindObjectOrNull(selector: BySelector, timeoutMillis: Long): UiObject2? { in <lambda>() method in android.permissionui.cts.BasePermissionTest
330 { t -> UiAutomatorUtils2.waitFindObjectOrNull(selector, t) }, in <lambda>()
DPermissionTest30.kt79 waitFindObjectOrNull( in testRequestFgLocationAndNoAccuracyOptions()
DPermissionDecisionsTest.kt84 waitFindObjectOrNull( in testAppUninstallRemovesDecision()
DPermissionTapjackingTest.kt79 waitFindObjectOrNull(By.text(getPermissionControllerString(ALLOW_ONE_TIME_BUTTON_TEXT))) in testTapjackGrantDialog_partialOverlay()
DSensorBlockedBannerTest.kt158 waitFindObjectOrNull(By.text(closePattern), DELAY_MILLIS)?.click() in setSensor()
DCameraMicIndicatorsPermissionTest.kt462 val iconView = UiAutomatorUtils2.waitFindObjectOrNull(By.descContains(WEAR_MIC_LABEL)) in <lambda>()
569 val privacyChip = UiAutomatorUtils2.waitFindObjectOrNull(By.res(PRIVACY_CHIP_ID)) in <lambda>()
DEnhancedConfirmationManagerTest.kt272 waitFindObjectOrNull(By.res(ALERT_DIALOG_OK_BUTTON), UNEXPECTED_TIMEOUT_MILLIS.toLong()) in assertNoEcmDialogShown()
DPhotoPickerPermissionTest.kt137 assertNotNull(waitFindObjectOrNull(By.res(SELECT_BUTTON))) in testAppWithUserSelectedPermShowsSelectOption()
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ui/handheld/
DManageStandardPermissionsFragmentTest.kt32 import com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObjectOrNull
93 waitFindObjectOrNull(By.textContains(ADDITIONAL_PERMISSIONS_LABEL)) ?: return 0 in getAdditionalPermissionCount()
97 waitFindObjectOrNull(By.textContains(ADDITIONAL_PERMISSIONS_SUMMARY)) ?: return 0 in getAdditionalPermissionCount()
/packages/modules/Permission/tests/cts/role/src/android/app/role/cts/
DRoleManagerTest.java24 import static com.android.compatibility.common.util.UiAutomatorUtils2.waitFindObjectOrNull;
357 UiObject2 cancelButton = waitFindObjectOrNull(NEGATIVE_BUTTON_SELECTOR); in requestRoleAndDenyWithDontAskAgainAndClearDataThenShowsUiWithoutDontAskAgain()
393 UiObject2 cancelButton = waitFindObjectOrNull(NEGATIVE_BUTTON_SELECTOR); in requestRoleAndDenyWithDontAskAgainAndReinstallThenShowsUiWithoutDontAskAgain()
465 : waitFindObjectOrNull(DONT_ASK_AGAIN_TOGGLE_SELECTOR, UNEXPECTED_TIMEOUT_MILLIS); in findDontAskAgainCheck()
807 assertThat(waitFindObjectOrNull(By.text(APP_LABEL), UNEXPECTED_TIMEOUT_MILLIS)) in openDefaultAppListThenIsNotDefaultAppInList()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/
DUiTestUtils.kt165 waitFindObjectOrNull(selector, it.toMillis()) == null in waitNotDisplayed()