Home
last modified time | relevance | path

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

/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/utils/
DPollTest.java51 assertThat(Poll.forValue("tester value", valueTester::get) in await_toBeEqualTo_alreadyEqual_returns()
60 assertThat(Poll.forValue("tester value", valueTester::get) in await_toBeEqualTo_becomesEqual_returns()
69 assertThat(Poll.forValue("tester value", valueTester::get) in await_toBeEqualTo_doesNotBecomeEqual_returnIncorrectValue()
80 Poll.forValue("tester value", valueTester::get) in await_toBeEqualTo_errorOnFailure_doesNotBecomeEqual_throwsException()
94 Poll.forValue("tester value", valueTester::get) in await_toBeEqualTo_errorOnFailure_doesNotBecomeEqual_customError_throwsException()
107 assertThat(Poll.forValue("tester value", valueTester::get) in await_toNotBeEqualTo_alreadyNotEqual_returns()
116 assertThat(Poll.forValue("tester value", valueTester::get) in await_toNotBeEqualTo_becomesNotEqual_returns()
125 assertThat(Poll.forValue("tester value", valueTester::get) in await_toNotBeEqualTo_doesNotBecomeNotEqual_returnIncorrectValue()
136 Poll.forValue("tester value", valueTester::get) in await_toNotBeEqualTo_errorOnFailure_doesNotBecomeNotEqual_throwsException()
150 Poll.forValue("tester value", valueTester::get) in await_toNotBeEqualTo_errorOnFailure_doesNotBecomeNotEqual_customError_throwsException()
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/activities/
DActivity.java65 Poll.forValue("Lock task mode state", () -> TestApis.activities().getLockTaskModeState()) in startLockTask()
82 Poll.forValue("Lock task mode state", () -> TestApis.activities().getLockTaskModeState()) in stopLockTask()
101 Poll.forValue("Foreground activity", () -> TestApis.activities().foregroundActivity()) in startActivity()
108 Poll.forValue("Foreground activity", () -> TestApis.activities().foregroundActivity()) in startActivity()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/appops/
DAppOps.java50 static AppOpsMode forValue(int value) { in forValue() method in AppOps.AppOpsMode
87 return AppOpsMode.forValue( in get()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DPoll.java87 public static <E> Poll<E> forValue(ValueSupplier<E> supplier) { in forValue() method in Poll
88 return forValue("value", supplier); in forValue()
96 public static <E> Poll<E> forValue(String valueName, ValueSupplier<E> supplier) { in forValue() method in Poll
DRetry.java55 mPoll = Poll.forValue(supplier) in Retry()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DDeviceOwnerPrerequisitesTest.java108 Poll.forValue("Active admins", dpm::getActiveAdmins) in setDeviceOwnerViaAdb_deviceHasAccount_fails()
119 Poll.forValue("account created success", this::addAccountOnce) in addAccount()
DScreenCaptureDisabledTest.java192 return Poll.forValue(mUiAutomation::takeScreenshot) in takeScreenshotExpectingFailure()
202 return Poll.forValue(mUiAutomation::takeScreenshot) in takeScreenshotExpectingSuccess()
DLockTaskTest.java682 Poll.forValue("Foreground activity", in startActivity_withinSameTask_blockStartInTask_doesNotStart()
724 Poll.forValue("Foreground activity", in startActivity_inNewTask_blockStartInTask_doesNotStart()
994 Poll.forValue("Foreground package", in launchDefaultDialerInLockTaskMode_launches()
1000 Poll.forValue("Lock task mode state", in launchDefaultDialerInLockTaskMode_launches()
DCaCertManagementTest.java257 Poll.forValue("Accepted issuers", () -> Arrays.asList(tm.getAcceptedIssuers())) in assertCaCertTrustStatusChange()
DAccountManagementTest.java298 return Poll.forValue("created account bundle", () -> addAccountWithTypeOnce(type)) in addAccountWithType()
/cts/common/device-side/bedstead/testapp/src/testapps/main/java/com/android/bedstead/testapp/
DBaseTestAppActivity.java45 return Poll.forValue("activity for className", () -> { in findActivity()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUserReference.java105 Poll.forValue("User exists", this::exists) in remove()
134 Poll.forValue("User running unlocked", () -> isRunning() && isUnlocked()) in start()
161 Poll.forValue("User running", this::isRunning) in stop()
DUsers.java411 return Poll.forValue("user", () -> userReference) in waitForUserToMatch()
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/
DTestAppInstanceTest.java131 Poll.forValue("running process", () -> sTestApp.pkg().runningProcess(sUser)) in killProcess_keepAlive_processIsRunningAgain()
178 Poll.forValue("TestApp process", testAppInstance::process) in process_isRunning_isNotNull()
294 Poll.forValue("running process", () -> sTestApp.pkg().runningProcess(sUser)) in registerReceiver_appIsKilled_stillReceivesBroadcast()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackage.java207 String commandOutput = Poll.forValue(() -> { in uninstall()
692 Poll.forValue("Application flag", () -> { in forceStop()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/users/
DUsersTest.java498 Poll.forValue("Secondary user running", in switch_hasSetStopBgUsersOnSwitch_stopsUser()