Home
last modified time | relevance | path

Searched refs:waitCondition (Results 1 – 6 of 6) sorted by relevance

/cts/tests/framework/base/windowmanager/util/src/android/server/wm/activity/lifecycle/
DEventTracker.java118 public boolean waitForConditionWithTimeout(BooleanSupplier waitCondition) { in waitForConditionWithTimeout() argument
119 return waitForConditionWithTimeout(waitCondition, TIMEOUT); in waitForConditionWithTimeout()
123 private synchronized boolean waitForConditionWithTimeout(BooleanSupplier waitCondition, in waitForConditionWithTimeout() argument
126 while (!waitCondition.getAsBoolean()) { in waitForConditionWithTimeout()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowManagerStateHelper.java376 public boolean waitForWithAmState(String message, Predicate<WindowManagerState> waitCondition) {
377 return waitForWithAmState(waitCondition, message);
380 public boolean waitForWithAmState(Predicate<WindowManagerState> waitCondition,
382 return waitFor(waitCondition, message);
401 public boolean waitFor(String message, Predicate<WindowManagerState> waitCondition) {
402 return waitFor(waitCondition, message);
406 public boolean waitFor(Predicate<WindowManagerState> waitCondition, String message) {
409 return waitCondition.test(this);
/cts/tests/app/src/android/app/cts/
DTaskDescriptionTest.java162 private void waitFor(String message, BooleanSupplier waitCondition) { in waitFor() argument
164 if (waitCondition.getAsBoolean()) { in waitFor()
/cts/tests/tests/virtualdevice/common/src/android/virtualdevice/cts/common/
DVirtualDeviceRule.java451 String message, BooleanSupplier waitCondition) { in waitAndAssertWindowManagerState() argument
455 return waitCondition.getAsBoolean(); in waitAndAssertWindowManagerState()
/cts/tests/tests/virtualdevice/core/src/android/virtualdevice/cts/core/
DVirtualDisplayTest.java483 private static void waitForCondition(String message, BooleanSupplier waitCondition) { in waitForCondition() argument
484 assertThat(Condition.waitFor(message, waitCondition)).isTrue(); in waitForCondition()
DVirtualDeviceManagerBasicTest.java741 private static void waitForCondition(String message, BooleanSupplier waitCondition) { in waitForCondition() argument
742 assertThat(Condition.waitFor(message, waitCondition)).isTrue(); in waitForCondition()