Home
last modified time | relevance | path

Searched refs:Predicate (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DDocumentFilters.java27 import java.util.function.Predicate;
39 public static final Predicate<Cursor> ANY = (Cursor c) -> { return true; };
40 public static final Predicate<Cursor> VIRTUAL = DocumentFilters::isVirtual;
41 public static final Predicate<Cursor> NOT_MOVABLE = DocumentFilters::isNotMovable;
42 private static final Predicate<Cursor> O_SHARABLE = DocumentFilters::isSharableInO;
43 private static final Predicate<Cursor> PREO_SHARABLE = DocumentFilters::isSharablePreO;
45 public static Predicate<Cursor> sharable(Features features) { in sharable()
/packages/apps/Contacts/src/com/android/contacts/model/account/
DAccountsLoader.java29 import com.google.common.base.Predicate;
40 private final Predicate<AccountInfo> mFilter;
46 public AccountsLoader(Context context, Predicate<AccountInfo> filter) { in AccountsLoader()
78 final FragmentType fragment, int loaderId, final Predicate<AccountInfo> filter) { in loadAccounts()
87 final ActivityType activity, int id, final Predicate<AccountInfo> filter) { in loadAccounts()
92 final Predicate<AccountInfo> filter, final AccountsListener listener) { in loadAccounts()
/packages/apps/DeskClock/src/com/android/deskclock/
DPredicate.java29 public interface Predicate<T> { interface
36 Predicate TRUE = new Predicate() {
46 Predicate FALSE = new Predicate() {
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DVideoProviderTest.java43 import com.google.common.base.Predicate;
313 assertTrueWithTimeout(new Predicate<Void>() { in testSetPreviewSurface()
322 assertTrueWithTimeout(new Predicate<Void>() { in testSetPreviewSurface()
339 assertTrueWithTimeout(new Predicate<Void>() { in testSetDisplaySurface()
348 assertTrueWithTimeout(new Predicate<Void>() { in testSetDisplaySurface()
364 assertTrueWithTimeout(new Predicate<Void>() { in testSetDeviceOrientation()
373 assertTrueWithTimeout(new Predicate<Void>() { in testSetDeviceOrientation()
388 assertTrueWithTimeout(new Predicate<Void>() { in testSetZoom()
450 assertTrueWithTimeout(new Predicate<Void>() { in testSessionModifyResponse()
488 assertTrueWithTimeout(new Predicate<Void>() { in testSetPauseImage()
DTelecomSystemTest.java89 import com.google.common.base.Predicate;
853 assertTrueWithTimeout(new Predicate<Void>() { in startIncomingPhoneCall()
860 assertTrueWithTimeout(new Predicate<Void>() { in startIncomingPhoneCall()
874 assertTrueWithTimeout(new Predicate<Void>() { in startIncomingPhoneCall()
881 assertTrueWithTimeout(new Predicate<Void>() { in startIncomingPhoneCall()
887 assertTrueWithTimeout(new Predicate<Void>() { in startIncomingPhoneCall()
998 protected static void assertTrueWithTimeout(Predicate<Void> predicate) { in assertTrueWithTimeout()
DBasicCallTests.java57 import com.google.common.base.Predicate;
342 assertTrueWithTimeout(new Predicate<Void>() { in testIncomingCallFromContactWithSendToVoicemailIsRejected()
348 assertTrueWithTimeout(new Predicate<Void>() { in testIncomingCallFromContactWithSendToVoicemailIsRejected()
389 assertTrueWithTimeout(new Predicate<Void>() { in testIncomingCallCallerInfoLookupTimesOutIsAllowed()
431 assertTrueWithTimeout(new Predicate<Void>() { in testIncomingCallFromBlockedNumberIsRejected()
/packages/apps/Contacts/src/com/android/contacts/model/
DAccountTypeManager.java56 import com.google.common.base.Predicate;
84 public enum AccountFilter implements Predicate<AccountInfo> {
146 Predicate<AccountInfo> filter) {
202 Predicate<AccountInfo> filter); in filterAccountsAsync()
220 return Futures.getUnchecked(filterAccountsAsync(new Predicate<AccountInfo>() { in getWritableGoogleAccounts()
325 public static Predicate<AccountInfo> writableFilter() {
329 public static Predicate<AccountInfo> groupWritableFilter() {
568 final Predicate<AccountInfo> filter) {
/packages/apps/DeskClock/src/com/android/deskclock/data/
DDataModel.java30 import com.android.deskclock.Predicate;
66 DO_NOT_DISTURB(R.string.alarms_blocked_by_dnd, 0, Predicate.FALSE, null),
70 Predicate.TRUE,
79 Predicate.TRUE,
84 private final Predicate<Context> mActionEnabled;
87 SilentSetting(int labelResId, int actionResId, Predicate<Context> actionEnabled, in SilentSetting()
123 private static class ChangeSoundActionPredicate implements Predicate<Context> {
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageView.java73 import com.google.common.base.Predicate;
596 private void bindAttachmentsOfSameType(final Predicate<MessagePartData> attachmentTypeFilter, in bindAttachmentsOfSameType()
1064 static final Predicate<MessagePartData> sVideoFilter = new Predicate<MessagePartData>() {
1071 static final Predicate<MessagePartData> sAudioFilter = new Predicate<MessagePartData>() {
1078 static final Predicate<MessagePartData> sVCardFilter = new Predicate<MessagePartData>() {
1085 static final Predicate<MessagePartData> sImageFilter = new Predicate<MessagePartData>() {
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DLastAccessedProvider.java46 import java.util.function.Predicate;
199 purgeByAuthority(new Predicate<String>() { in call()
220 purgeByAuthority(new Predicate<String>() { in call()
240 private void purgeByAuthority(Predicate<String> predicate) { in purgeByAuthority()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DModel.java51 import java.util.function.Predicate;
217 public List<DocumentInfo> loadDocuments(Selection selection, Predicate<Cursor> filter) { in loadDocuments()
231 public boolean hasDocuments(Selection selection, Predicate<Cursor> filter) { in hasDocuments()
243 private @Nullable DocumentInfo loadDocument(String modelId, Predicate<Cursor> filter) { in loadDocument()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDragHost.java38 import java.util.function.Predicate;
52 private final Predicate<View> mIsDocumentView;
63 Predicate<View> isDocumentView, in DragHost()
DDragHoverListener.java33 import java.util.function.Predicate;
57 private final Predicate<View> mIsScrollView;
66 Predicate<View> isScrollView, in DragHoverListener()
DUserInputHandler.java35 import java.util.function.Predicate;
52 private final Predicate<DocumentDetails> mSelectable;
69 Predicate<DocumentDetails> selectable, in UserInputHandler()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DBreadBot.java49 import java.util.function.Predicate;
109 Predicate<String> checker = mMain.inFixedLayout() in assertItemsPresent()
116 public void assertItemsPresent(String[] items, Predicate<String> predicate) { in assertItemsPresent()
/packages/apps/Camera2/src/com/android/camera/one/v2/photo/zsl/
DZslImageCaptureCommand.java33 import com.google.common.base.Predicate;
59 private final Predicate<TotalCaptureResultProxy> mMetadataFilter;
66 Predicate<TotalCaptureResultProxy> metadataFilter, in ZslImageCaptureCommand()
DAcceptableZslImageFilter.java22 import com.google.common.base.Predicate;
28 public class AcceptableZslImageFilter implements Predicate<TotalCaptureResultProxy> {
DAutoFlashZslImageFilter.java30 import com.google.common.base.Predicate;
60 public final class AutoFlashZslImageFilter implements Predicate<TotalCaptureResultProxy>,
/packages/experimental/FillService/src/foo/bar/fill/
DFillService.java41 import java.util.function.Predicate;
202 Predicate<ViewNode> predicate) { in findByPredicate()
218 private static ViewNode findByPredicate(ViewNode root, Predicate<ViewNode> predicate) { in findByPredicate()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestPredicate.java27 import java.util.function.Predicate;
35 public class TestPredicate<T> implements Predicate<T> {
DTestConfirmationCallback.java23 import java.util.function.Predicate;
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockAccountTypeManager.java27 import com.google.common.base.Predicate;
76 public ListenableFuture<List<AccountInfo>> filterAccountsAsync(Predicate<AccountInfo> filter) { in filterAccountsAsync()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DPredicate.java31 public interface Predicate<T> { interface
DCharMatcher.java45 public abstract class CharMatcher implements Predicate<Character> {
516 final Predicate<? super Character> predicate) {
/packages/apps/Car/Messenger/src/com/android/car/messenger/
DMapMessageMonitor.java64 import java.util.function.Predicate;
427 private void cleanupMessagesAndNotifications(Predicate<CompositeKey> predicate) { in cleanupMessagesAndNotifications()

12