Home
last modified time | relevance | path

Searched refs:condition (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/ThemePicker/robolectric_tests/src/com/android/customization/testutils/
DWait.java30 public static void atMost(String message, Condition condition, long timeout) { in atMost() argument
31 atMost(message, condition, timeout, DEFAULT_SLEEP_MS); in atMost()
34 public static void atMost(String message, Condition condition, long timeout, long sleepMillis) { in atMost() argument
38 if (condition.isTrue()) { in atMost()
49 if (condition.isTrue()) { in atMost()
/packages/apps/Messaging/src/com/android/messaging/util/
DAssert.java82 public static void isTrue(final boolean condition) { in isTrue() argument
83 if (!condition) { in isTrue()
91 public static void isFalse(final boolean condition) { in isFalse() argument
92 if (condition) { in isFalse()
100 public static void isTrueReleaseCheck(final boolean condition) { in isTrueReleaseCheck() argument
101 if (!condition) { in isTrueReleaseCheck()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DWait.java15 public static void atMost(String message, Condition condition, long timeout) { in atMost() argument
16 atMost(message, condition, timeout, DEFAULT_SLEEP_MS); in atMost()
19 public static void atMost(String message, Condition condition, long timeout, long sleepMillis) { in atMost() argument
25 if (condition.isTrue()) { in atMost()
36 if (condition.isTrue()) { in atMost()
DCondition.java18 static Condition runOnUiThread(final Condition condition) { in runOnUiThread() argument
26 value.set(condition.isTrue()); in runOnUiThread()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DResourceUtils.java137 final String condition = conditionConstant.substring(0, posComma); in findConstantForKeyValuePairs() local
138 if (condition.isEmpty()) { in findConstantForKeyValuePairs()
143 if (fulfillsCondition(keyValuePairs, condition)) { in findConstantForKeyValuePairs()
158 final String condition) throws DeviceOverridePatternSyntaxError { in fulfillsCondition() argument
159 final String[] patterns = condition.split(":"); in fulfillsCondition()
165 throw new DeviceOverridePatternSyntaxError("Pattern has no '='", condition); in fulfillsCondition()
170 throw new DeviceOverridePatternSyntaxError("Unknown key", condition); in fulfillsCondition()
179 throw new DeviceOverridePatternSyntaxError("Syntax error", condition, e); in fulfillsCondition()
/packages/apps/Settings/src/com/android/settings/notification/
DZenModeVoiceActivity.java51 Condition condition = null; in onVoiceSettingInteraction() local
56 condition = ZenModeConfig.toTimeCondition(this, minutes, UserHandle.myUserId()); in onVoiceSettingInteraction()
60 setZenModeConfig(mode, condition); in onVoiceSettingInteraction()
77 private void setZenModeConfig(int mode, Condition condition) { in setZenModeConfig() argument
78 if (condition != null) { in setZenModeConfig()
79 NotificationManager.from(this).setZenMode(mode, condition.id, TAG); in setZenModeConfig()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenModeVoiceActivity.java51 Condition condition = null; in onVoiceSettingInteraction() local
56 condition = ZenModeConfig.toTimeCondition(this, minutes, UserHandle.myUserId()); in onVoiceSettingInteraction()
60 setZenModeConfig(mode, condition); in onVoiceSettingInteraction()
77 private void setZenModeConfig(int mode, Condition condition) { in setZenModeConfig() argument
78 if (condition != null) { in setZenModeConfig()
79 NotificationManager.from(this).setZenMode(mode, condition.id, TAG); in setZenModeConfig()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DAbstractLauncherUiTest.java266 protected void waitForLauncherCondition(String message, Function<Launcher, Boolean> condition) { in waitForLauncherCondition() argument
267 waitForLauncherCondition(message, condition, DEFAULT_ACTIVITY_TIMEOUT); in waitForLauncherCondition()
279 String message, Function<Launcher, Boolean> condition, long timeout) { in waitForLauncherCondition() argument
281 Wait.atMost(message, () -> getFromLauncher(condition), timeout); in waitForLauncherCondition()
302 Runnable testThreadAction, Function<Launcher, Boolean> condition, in waitForLauncherCondition() argument
307 return getFromLauncher(condition); in waitForLauncherCondition()
DTestViewHelpers.java66 public static View findChildView(ViewGroup parent, Function<View, Boolean> condition) { in findChildView() argument
69 if (condition.apply(child)) return child; in findChildView()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DJobInfoRowArrayAdapter.java116 private void setColoredText(TextView view, String label, boolean condition) { in setColoredText() argument
118 String value = (condition ? "Yes" : "No"); in setColoredText()
119 int color = (condition ? Color.GREEN : Color.RED); in setColoredText()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DAssert.java26 public static void isTrue(boolean condition) { in isTrue() argument
27 if (!condition) { in isTrue()
/packages/services/Telephony/src/com/android/phone/
DAssert.java29 public static void isTrue(boolean condition) { in isTrue() argument
30 if (!condition) { in isTrue()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DSystemActivityMonitoringServiceTest.java131 private void waitUntil(BooleanSupplier condition) throws Exception { in waitUntil() argument
132 while (!condition.getAsBoolean()) { in waitUntil()
135 if (!didAquire && !condition.getAsBoolean()) { in waitUntil()
/packages/apps/TimeZoneData/testing/xts/src/com/android/timezone/xts/
DTimeZoneUpdateHostTest.java355 private static void waitForCondition(BooleanSupplier condition) throws Exception { in waitForCondition() argument
358 while (!(lastResult = condition.getAsBoolean()) && count++ < 120) { in waitForCondition()
363 assertTrue("Failed condition: " + condition, lastResult); in waitForCondition()
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ticketpool/
DFiniteTicketPool.java61 private Waiter(int ticketsRequested, Condition condition) { in Waiter() argument
63 mCondition = condition; in Waiter()
/packages/modules/DnsResolver/tests/
Dresolv_test_utils.cpp140 bool PollForCondition(const std::function<bool()>& condition, std::chrono::milliseconds timeout) { in PollForCondition() argument
144 if (condition()) return true; in PollForCondition()
Dresolv_test_utils.h196 bool PollForCondition(const std::function<bool()>& condition,
Dresolv_integration_test.cpp4740 const auto condition = [&]() { in TEST_F() local
4743 EXPECT_TRUE(PollForCondition(condition)); in TEST_F()
5460 const auto condition = [&]() { return GetNumQueries(dnsPair->dnsServer, host_name) == 1U; }; in TEST_F() local
5461 EXPECT_TRUE(PollForCondition(condition)); in TEST_F()
/packages/apps/Dialer/java/com/android/dialer/common/database/
DSelection.java159 public Selection is(@NonNull String condition) { in is() argument
160 return fromString(column + " " + Assert.isNotNull(condition)); in is()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DNavigationModeSwitchRule.java82 private void assertTrue(String message, boolean condition) { in apply()
83 if(!condition) { in apply()
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DCaptivePortalLoginActivityTest.java508 private static boolean isEventually(BooleanSupplier condition, long timeout) in isEventually() argument
512 if (condition.getAsBoolean()) return true; in isEventually()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DLauncherInstrumentation.java360 void assertTrue(String message, boolean condition) { in assertTrue() argument
361 if (!condition) { in assertTrue()
/packages/modules/DnsResolver/
DREADME-DoT.md58 We need to pass messages between threads using a pipe, and not a condition variable
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java1399 Predicate<LinkAddress> condition) {
1401 if (condition.test(addr)) {
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...

12