Searched refs:waitCondition (Results 1 – 6 of 6) sorted by relevance
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/activity/lifecycle/ |
D | EventTracker.java | 118 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/ |
D | WindowManagerStateHelper.java | 376 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/ |
D | TaskDescriptionTest.java | 162 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/ |
D | VirtualDeviceRule.java | 451 String message, BooleanSupplier waitCondition) { in waitAndAssertWindowManagerState() argument 455 return waitCondition.getAsBoolean(); in waitAndAssertWindowManagerState()
|
/cts/tests/tests/virtualdevice/core/src/android/virtualdevice/cts/core/ |
D | VirtualDisplayTest.java | 483 private static void waitForCondition(String message, BooleanSupplier waitCondition) { in waitForCondition() argument 484 assertThat(Condition.waitFor(message, waitCondition)).isTrue(); in waitForCondition()
|
D | VirtualDeviceManagerBasicTest.java | 741 private static void waitForCondition(String message, BooleanSupplier waitCondition) { in waitForCondition() argument 742 assertThat(Condition.waitFor(message, waitCondition)).isTrue(); in waitForCondition()
|