/packages/apps/ThemePicker/robolectric_tests/src/com/android/customization/testutils/ |
D | Wait.java | 30 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/ |
D | Assert.java | 82 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/ |
D | Wait.java | 15 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()
|
D | Condition.java | 18 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/ |
D | ResourceUtils.java | 137 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/ |
D | ZenModeVoiceActivity.java | 51 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/ |
D | ZenModeVoiceActivity.java | 51 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/ |
D | AbstractLauncherUiTest.java | 266 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()
|
D | TestViewHelpers.java | 66 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/ |
D | JobInfoRowArrayAdapter.java | 116 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/ |
D | Assert.java | 26 public static void isTrue(boolean condition) { in isTrue() argument 27 if (!condition) { in isTrue()
|
/packages/services/Telephony/src/com/android/phone/ |
D | Assert.java | 29 public static void isTrue(boolean condition) { in isTrue() argument 30 if (!condition) { in isTrue()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | SystemActivityMonitoringServiceTest.java | 131 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/ |
D | TimeZoneUpdateHostTest.java | 355 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/ |
D | FiniteTicketPool.java | 61 private Waiter(int ticketsRequested, Condition condition) { in Waiter() argument 63 mCondition = condition; in Waiter()
|
/packages/modules/DnsResolver/tests/ |
D | resolv_test_utils.cpp | 140 bool PollForCondition(const std::function<bool()>& condition, std::chrono::milliseconds timeout) { in PollForCondition() argument 144 if (condition()) return true; in PollForCondition()
|
D | resolv_test_utils.h | 196 bool PollForCondition(const std::function<bool()>& condition,
|
D | resolv_integration_test.cpp | 4740 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/ |
D | Selection.java | 159 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/ |
D | NavigationModeSwitchRule.java | 82 private void assertTrue(String message, boolean condition) { in apply() 83 if(!condition) { in apply()
|
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/ |
D | CaptivePortalLoginActivityTest.java | 508 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/ |
D | LauncherInstrumentation.java | 360 void assertTrue(String message, boolean condition) { in assertTrue() argument 361 if (!condition) { in assertTrue()
|
/packages/modules/DnsResolver/ |
D | README-DoT.md | 58 We need to pass messages between threads using a pipe, and not a condition variable
|
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/ |
D | IpClientIntegrationTest.java | 1399 Predicate<LinkAddress> condition) { 1401 if (condition.test(addr)) {
|
/packages/inputmethods/LatinIME/dictionaries/ |
D | en_GB_wordlist.combined.gz | 1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ... |