Home
last modified time | relevance | path

Searched refs:predicate (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Car/libs/car-arch-common/tests/robotests/src/com/android/car/arch/common/
DLiveDataFunctionsTest.java256 (predicate, value) -> LiveDataFunctions.iff(predicate, Boolean::booleanValue, in testIff_truthTable()
266 (predicate, value) -> LiveDataFunctions.iff(predicate, Boolean::booleanValue, in testIff_uninitialized()
275 MutableLiveData<Boolean> predicate = new MutableLiveData<>(); in testIff_changePredicate() local
281 LiveDataFunctions.iff(predicate, Boolean::booleanValue, value) in testIff_changePredicate()
285 predicate.setValue(false); in testIff_changePredicate()
291 predicate.setValue(true); in testIff_changePredicate()
297 predicate.setValue(null); in testIff_changePredicate()
305 LiveData<Boolean> predicate = trueLiveData(); in testIff_changeValue() local
310 LiveDataFunctions.iff(predicate, Boolean::booleanValue, value) in testIff_changeValue()
398 MutableLiveData<Boolean> predicate = new MutableLiveData<>(); in testIfThenElse_liveDataParams_changePredicate() local
[all …]
/packages/apps/Car/libs/car-arch-common/src/com/android/car/arch/common/
DLiveDataFunctions.java365 @NonNull LiveData<Boolean> predicate, @NonNull LiveData<T> value) {
366 return iff(predicate, Boolean::booleanValue, value);
375 @NonNull Predicate<? super P> predicate,
378 trigger, value, (p, v) -> p == null || !predicate.test(p) ? null : v);
394 @NonNull LiveData<Boolean> predicate,
397 return ifThenElse(predicate, Boolean::booleanValue, trueData, falseData);
412 @NonNull Predicate<? super P> predicate,
421 return predicate.test(t) ? trueData : falseData;
439 @NonNull LiveData<Boolean> predicate, @Nullable T trueValue, @Nullable T falseValue) {
440 return ifThenElse(predicate, Boolean::booleanValue, trueValue, falseValue);
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DDotsPageIndicator.java736 protected StartPredicate predicate; field in DotsPageIndicator.PendingStartAnimator
738 public PendingStartAnimator(StartPredicate predicate) { in PendingStartAnimator() argument
740 this.predicate = predicate; in PendingStartAnimator()
745 if (!hasStarted && predicate.shouldStart(currentValue)) { in startIfNecessary()
759 public PendingRetreatAnimator(int was, int now, int steps, StartPredicate predicate) { in PendingRetreatAnimator() argument
760 super(predicate); in PendingRetreatAnimator()
853 public PendingRevealAnimator(int dot, StartPredicate predicate) { in PendingRevealAnimator() argument
854 super(predicate); in PendingRevealAnimator()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DDotsPageIndicator.java736 protected StartPredicate predicate; field in DotsPageIndicator.PendingStartAnimator
738 public PendingStartAnimator(StartPredicate predicate) { in PendingStartAnimator() argument
740 this.predicate = predicate; in PendingStartAnimator()
745 if (!hasStarted && predicate.shouldStart(currentValue)) { in startIfNecessary()
759 public PendingRetreatAnimator(int was, int now, int steps, StartPredicate predicate) { in PendingRetreatAnimator() argument
760 super(predicate); in PendingRetreatAnimator()
853 public PendingRevealAnimator(int dot, StartPredicate predicate) { in PendingRevealAnimator() argument
854 super(predicate); in PendingRevealAnimator()
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/
DDialerFutures.java46 Predicate<T> predicate, in firstMatching() argument
48 return firstMatchingImpl(futures, predicate, defaultValue); in firstMatching()
53 Predicate<T> predicate, in firstMatchingImpl() argument
75 if (!predicate.apply(value)) { in firstMatchingImpl()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/activecall/
DInCallViewModel.java276 private static Call firstMatch(List<Call> callList, Predicate<Call> predicate) { in firstMatch() argument
277 List<Call> filteredResults = filter(callList, predicate); in firstMatch()
281 private static List<Call> filter(List<Call> callList, Predicate<Call> predicate) { in filter() argument
282 if (callList == null || predicate == null) { in filter()
288 if (predicate.apply(call)) { in filter()
/packages/apps/Car/Messenger/src/com/android/car/messenger/
DMessengerDelegate.java211 protected void clearNotifications(Predicate<CompositeKey> predicate) { in clearNotifications() argument
213 if (predicate.test(senderKey)) { in clearNotifications()
220 private void cleanupMessagesAndNotifications(Predicate<CompositeKey> predicate) { in cleanupMessagesAndNotifications() argument
222 if (predicate.test(key)) { in cleanupMessagesAndNotifications()
227 messageKeyMapMessageEntry -> predicate.test(messageKeyMapMessageEntry.getKey())); in cleanupMessagesAndNotifications()
228 clearNotifications(predicate); in cleanupMessagesAndNotifications()
229 mNotificationInfos.entrySet().removeIf(entry -> predicate.test(entry.getKey())); in cleanupMessagesAndNotifications()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DCharMatcher.java516 final Predicate<? super Character> predicate) {
517 checkNotNull(predicate);
518 if (predicate instanceof CharMatcher) {
519 return (CharMatcher) predicate;
523 return predicate.apply(c);
526 return predicate.apply(checkNotNull(character));
/packages/services/Car/service/src/com/android/car/
DSlidingWindow.java61 public int count(Predicate<T> predicate) { in count() argument
62 return (int)stream().filter(predicate).count(); in count()
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DAnnotatedCallLogConstraints.java98 Predicate<ContentValues> predicate) { in checkColumn() argument
107 predicate.test(contentValues), in checkColumn()
/packages/modules/NetworkStack/src/android/net/util/
DNetworkStackUtils.java158 public static <T> boolean any(SparseArray<T> array, Predicate<T> predicate) { in any() argument
160 if (predicate.test(array.valueAt(i))) { in any()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DBreadBot.java116 public void assertItemsPresent(String[] items, Predicate<String> predicate) { in assertItemsPresent() argument
119 if (!predicate.test(item)) { in assertItemsPresent()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DLastAccessedProvider.java241 private void purgeByAuthority(Predicate<String> predicate) { in purgeByAuthority() argument
253 if (stack.getRoot() != null && predicate.test(stack.getRoot().authority)) { in purgeByAuthority()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DTelecomSystemTest.java1030 protected static void assertTrueWithTimeout(Predicate<Void> predicate) { in assertTrueWithTimeout() argument
1033 if (predicate.apply(null)) { in assertTrueWithTimeout()
/packages/inputmethods/LatinIME/dictionaries/
Den_US_wordlist.combined.gz
Den_GB_wordlist.combined.gz
Dit_wordlist.combined.gz
Den_wordlist.combined.gz
Dro_wordlist.combined.gz