/frameworks/native/services/inputflinger/tests/ |
D | TestInputListener.cpp | 93 std::optional<TimePoint> waitUntil) { in assertNotifyMotionWasCalled() argument 97 waitUntil)); in assertNotifyMotionWasCalled() 101 const ::testing::Matcher<NotifyMotionArgs>& matcher, std::optional<TimePoint> waitUntil) { in assertNotifyMotionWasCalled() argument 103 ASSERT_NO_FATAL_FAILURE(assertNotifyMotionWasCalled(&outEventArgs, waitUntil)); in assertNotifyMotionWasCalled() 107 void TestInputListener::assertNotifyMotionWasNotCalled(std::optional<TimePoint> waitUntil) { in assertNotifyMotionWasNotCalled() argument 109 assertNotCalled<NotifyMotionArgs>("notifyMotion() should not be called.", waitUntil)); in assertNotifyMotionWasNotCalled() 145 std::optional<TimePoint> waitUntil) { in assertCalled() argument 152 waitUntil.value_or(std::chrono::system_clock::now() + mEventHappenedTimeout); in assertCalled() 167 void TestInputListener::assertNotCalled(std::string message, std::optional<TimePoint> waitUntil) { in assertNotCalled() argument 173 waitUntil.value_or(std::chrono::system_clock::now() + mEventDidNotHappenTimeout); in assertNotCalled()
|
D | TestInputListener.h | 61 std::optional<TimePoint> waitUntil = {}); 64 std::optional<TimePoint> waitUntil = {}); 66 void assertNotifyMotionWasNotCalled(std::optional<TimePoint> waitUntil = {}); 78 std::optional<TimePoint> waitUntil = {});
|
D | InputReader_test.cpp | 2572 auto waitUntil = std::chrono::system_clock::now() + in TEST_F() local 2584 waitUntil)); in TEST_F()
|
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/tests/src/com/android/systemui/accessibility/accessibilitymenu/tests/ |
D | AccessibilityMenuServiceTest.java | 129 TestUtils.waitUntil("Failed to disable all services", in classSetup() 139 TestUtils.waitUntil("Failed to enable service", in classSetup() 224 TestUtils.waitUntil("Timed out before menu could close.", in closeMenu() 271 TestUtils.waitUntil("Could not change to minimum brightness", in testAdjustBrightness() 280 TestUtils.waitUntil("Did not detect an increase in brightness.", in testAdjustBrightness() 285 TestUtils.waitUntil("Could not change to maximum brightness", in testAdjustBrightness() 294 TestUtils.waitUntil("Did not detect a decrease in brightness.", in testAdjustBrightness() 320 TestUtils.waitUntil("Could not change audio stream to minimum volume.", in testAdjustVolume() 324 TestUtils.waitUntil("Did not detect an increase in volume.", in testAdjustVolume() 331 TestUtils.waitUntil("Could not change audio stream to maximum volume.", in testAdjustVolume() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/ |
D | GlobalActionsImeTest.java | 94 boolean isImeVisible = waitUntil(activity::isImeVisible); in testGlobalActions_doesntStealImeControl() 99 waitUntil("Ime is not visible", activity::isImeVisible); in testGlobalActions_doesntStealImeControl() 107 waitUntil("activity loses focus", () -> !activity.mHasFocus); in testGlobalActions_doesntStealImeControl() 127 waitUntil("Device not interactive", powerManager::isInteractive); in turnScreenOn() 131 private static void waitUntil(String message, BooleanSupplier predicate) in waitUntil() method in GlobalActionsImeTest 133 if (!waitUntil(predicate)) { in waitUntil() 138 private static boolean waitUntil(BooleanSupplier predicate) throws Exception { in waitUntil() method in GlobalActionsImeTest
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/ |
D | TestUtils.java | 63 public static void waitUntil(Supplier<Boolean> condition) in waitUntil() method in TestUtils 65 waitUntil(condition, STEP_MS, TIMEOUT_MS); in waitUntil() 68 public static void waitUntil(Supplier<Boolean> condition, long stepMs, long timeoutMs) in waitUntil() method in TestUtils
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | VibratorManagerServiceTest.java | 262 assertTrue(waitUntil(s -> { in tearDown() 517 assertTrue(waitUntil(s -> s.isVibrating(1), service, TEST_TIMEOUT_MILLIS)); in unregisterVibratorStateListener_callbackNotTriggeredAfter() 522 assertTrue(waitUntil(s -> !s.isVibrating(1), service, TEST_TIMEOUT_MILLIS)); in unregisterVibratorStateListener_callbackNotTriggeredAfter() 915 assertTrue(waitUntil(s -> fakeVibrator.getAmplitudes().size() == 2, service, in vibrate_withOngoingRepeatingVibration_ignoresEffect() 947 assertTrue(waitUntil(s -> fakeVibrator.getAmplitudes().size() == 2, service, in vibrate_withOngoingRepeatingVibrationBeingCancelled_playsAfterPreviousIsCancelled() 977 assertTrue(waitUntil(s -> fakeVibrator.getAmplitudes().size() == 2, service, in vibrate_withNewSameImportanceVibrationAndBothRepeating_cancelsOngoingEffect() 986 assertTrue(waitUntil(s -> fakeVibrator.getAmplitudes().size() == 4, service, in vibrate_withNewSameImportanceVibrationAndBothRepeating_cancelsOngoingEffect() 1007 assertTrue(waitUntil(s -> fakeVibrator.getAmplitudes().size() == 2, service, in vibrate_withNewSameImportanceVibrationButOngoingIsRepeating_ignoreNewVibration() 1034 assertTrue(waitUntil(s -> fakeVibrator.getAmplitudes().size() == 2, service, in vibrate_withNewUnknownUsageVibrationAndRepeating_cancelsOngoingEffect() 1043 assertTrue(waitUntil(s -> fakeVibrator.getAmplitudes().size() == 4, service, in vibrate_withNewUnknownUsageVibrationAndRepeating_cancelsOngoingEffect() [all …]
|
D | VibrationThreadTest.java | 299 waitUntil(() -> fakeVibrator.getAmplitudes().size() > 2 * amplitudes.length, 340 assertTrue(waitUntil(() -> !fakeVibrator.getAmplitudes().isEmpty(), TEST_TIMEOUT_MILLIS)); in vibrate_singleVibratorRepeatingShortAlwaysOnWaveform_turnsVibratorOnForLonger() 409 assertTrue(waitUntil(() -> fakeVibrator.getEffectSegments(vibrationId).size() >= 5, in vibrate_singleVibratorRepeatingPatternWithZeroDurationSteps_repeatsEffectCorrectly() 442 assertTrue(waitUntil(() -> !fakeVibrator.getEffectSegments(vibrationId).isEmpty(), in vibrate_singleVibratorRepeatingPwle_generatesLargestPwles() 472 assertTrue(waitUntil(() -> !fakeVibrator.getEffectSegments(vibrationId).isEmpty(), in vibrate_singleVibratorRepeatingPrimitives_generatesLargestComposition() 496 assertTrue(waitUntil(() -> !fakeVibrator.getAmplitudes().isEmpty(), TEST_TIMEOUT_MILLIS)); in vibrate_singleVibratorRepeatingLongAlwaysOnWaveform_turnsVibratorOnForACycle() 521 assertTrue(waitUntil(() -> fakeVibrator.getEffectSegments(vibrationId).size() > 1, in vibrate_singleVibratorRepeatingAlwaysOnWaveform_turnsVibratorBackOn() 555 assertTrue(waitUntil(() -> mControllers.get(VIBRATOR_ID).isVibrating(), 583 assertTrue(waitUntil(() -> mControllers.get(VIBRATOR_ID).isVibrating(), in vibrate_singleVibratorWaveformCancel_cancelsVibrationImmediately() 888 assertTrue(waitUntil(() -> fakeVibrator.getAmplitudes().size() > 2, TEST_TIMEOUT_MILLIS)); in vibrate_singleVibratorCancelled_vibratorStopped() [all …]
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/framework/compose/ |
D | DisposableBroadcastReceiverAsUserTest.kt | 73 composeTestRule.waitUntil { registeredBroadcastReceiver != null } in broadcastReceiver_registered() 92 composeTestRule.waitUntil { onReceiveIsCalled } in broadcastReceiver_isCalledOnReceive()
|
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/util/ |
D | FlowsTest.kt | 21 import com.android.settingslib.spa.testutils.waitUntil 100 waitUntil { actual == "A" } in collectLatestWithLifecycle()
|
/frameworks/base/packages/SettingsLib/Spa/testutils/src/com/android/settingslib/spa/testutils/ |
D | ComposeContentTestRuleExt.kt | 43 fun ComposeContentTestRule.waitUntilExists(matcher: SemanticsMatcher) = waitUntil { in <lambda>() 49 waitUntil(timeoutMillis) { false } in delay()
|
D | SpaTest.kt | 24 fun waitUntil(timeoutMillis: Long = 1000, condition: () -> Boolean) { in waitUntil() method
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/template/app/ |
D | AppStorageSizeTest.kt | 83 composeTestRule.waitUntil { storageSize.value == "120 B" } in getStorageSize() 103 composeTestRule.waitUntil { storageSize.value == "" } in getStorageSize_throwException()
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/ |
D | AppListViewModelTest.kt | 25 import com.android.settingslib.spa.testutils.waitUntil 82 waitUntil { listModel.onFirstLoadedCalled } in <lambda>()
|
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/ |
D | BrowseActivityTest.kt | 38 import com.android.settingslib.spa.testutils.waitUntil 81 waitUntil { in browseContent_onNavigate_logPageEvent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | MagnificationScaleProviderTest.java | 59 TestUtils.waitUntil("settings value is not changed", in putScaleOnDefaultDisplay_getExpectedValue()
|
/frameworks/base/apct-tests/perftests/core/src/android/accessibility/ |
D | AccessibilityPerfTest.java | 153 TestUtils.waitUntil( in testConnectUiAutomation()
|
/frameworks/opt/car/services/builtInServices/host_tests/src/com/android/internal/car/test/ |
D | CarServiceCrashDumpTest.java | 106 CommonTestUtils.waitUntil("timed out waiting for car service ", in waitForCarServiceReady()
|
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ |
D | ShortcutManagerTestUtils.java | 265 waitUntil("Failed to get shortcut access", in setDefaultLauncher() 788 public static void waitUntil(String message, BooleanSupplier condition) { in waitUntil() method 789 waitUntil(message, condition, STANDARD_TIMEOUT_SEC); in waitUntil() 792 public static void waitUntil(String message, BooleanSupplier condition, int timeoutSeconds) { in waitUntil() method
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppStandbyControllerTests.java | 792 waitUntil(() -> bucket == getStandbyBucket(userId, controller, pkg)); in waitAndAssertBucket() 801 waitUntil(() -> bucket != getStandbyBucket(controller, pkg)); in waitAndAssertNotBucket() 806 waitUntil(() -> { in waitAndAssertLastNoteEvent() method 814 private void waitUntil(BooleanSupplier resultSupplier) { in waitUntil() method in AppStandbyControllerTests
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 37 import static com.android.server.backup.testing.TestUtils.waitUntil; 2567 waitUntil(() -> messagesInLooper(mMainLooper, this::isSharedPrefsSynchronizer) > 0); in verifyAndUnblockAgentCalls()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityManagerServiceTest.java | 500 TestUtils.waitUntil("magnification mode " + ACCESSIBILITY_MAGNIFICATION_MODE_WINDOW in testChangeMagnificationModeOnDefaultDisplay_capabilitiesIsAll_persistChangedMode()
|