Home
last modified time | relevance | path

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

12345

/packages/modules/StatsD/statsd/benchmark/
Dmetric_util.cpp153 Predicate CreateScheduledJobPredicate() { in CreateScheduledJobPredicate()
154 Predicate predicate; in CreateScheduledJobPredicate()
161 Predicate CreateBatterySaverModePredicate() { in CreateBatterySaverModePredicate()
162 Predicate predicate; in CreateBatterySaverModePredicate()
169 Predicate CreateScreenIsOnPredicate() { in CreateScreenIsOnPredicate()
170 Predicate predicate; in CreateScreenIsOnPredicate()
177 Predicate CreateScreenIsOffPredicate() { in CreateScreenIsOffPredicate()
178 Predicate predicate; in CreateScreenIsOffPredicate()
185 Predicate CreateHoldingWakelockPredicate() { in CreateHoldingWakelockPredicate()
186 Predicate predicate; in CreateHoldingWakelockPredicate()
[all …]
Dmetric_util.h68 Predicate CreateScreenIsOffPredicate();
71 Predicate CreateScheduledJobPredicate();
74 Predicate CreateHoldingWakelockPredicate();
77 Predicate CreateIsSyncingPredicate();
80 Predicate CreateIsInBackgroundPredicate();
83 void addPredicateToPredicateCombination(const Predicate& predicate, Predicate* combination);
/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DTreeTraverser.java26 import java.util.function.Predicate;
44 @NonNull Predicate<AccessibilityNodeInfo> targetPredicate) { in findNodeOrAncestor()
58 @Nullable Predicate<AccessibilityNodeInfo> stopPredicate, in findNodeOrAncestor()
59 @NonNull Predicate<AccessibilityNodeInfo> targetPredicate) { in findNodeOrAncestor()
81 @NonNull Predicate<AccessibilityNodeInfo> targetPredicate) { in depthFirstSearch()
95 @Nullable Predicate<AccessibilityNodeInfo> skipPredicate, in depthFirstSearch()
96 @NonNull Predicate<AccessibilityNodeInfo> targetPredicate) { in depthFirstSearch()
125 @NonNull Predicate<AccessibilityNodeInfo> targetPredicate) { in reverseDepthFirstSearch()
151 @NonNull Predicate<AccessibilityNodeInfo> selectPredicate, in depthFirstSelect()
/packages/modules/StatsD/tests/src/android/cts/statsd/metric/
DDurationMetricsTests.java27 import com.android.internal.os.StatsdConfigProto.Predicate;
67 Predicate predicate = Predicate.newBuilder() in testDurationMetric()
128 Predicate predicate = Predicate.newBuilder() in testDurationMetricWithCondition()
137 Predicate conditionPredicate = Predicate.newBuilder() in testDurationMetricWithCondition()
237 Predicate predicate = Predicate.newBuilder() in testDurationMetricWithActivation()
333 Predicate predicate = Predicate.newBuilder() in testDurationMetricWithConditionAndActivation()
343 Predicate conditionPredicate = Predicate.newBuilder() in testDurationMetricWithConditionAndActivation()
496 Predicate predicateA = Predicate.newBuilder() in testDurationMetricWithDimension()
507 Predicate predicateB = in testDurationMetricWithDimension()
508 Predicate.newBuilder() in testDurationMetricWithDimension()
DGaugeMetricsTests.java31 import com.android.internal.os.StatsdConfigProto.Predicate;
68 Predicate predicate = Predicate.newBuilder() in testGaugeMetric()
227 Predicate predicate = Predicate.newBuilder() in testPulledGaugeMetricWithConditionAndActivation()
/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/DeskClock/src/com/android/deskclock/
DPredicate.kt28 interface Predicate<T> { interface
36 val TRUE: Predicate<*> = object : Predicate<Any> { in apply()
44 val FALSE: Predicate<*> = object : Predicate<Any> { in apply()
/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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DVideoProviderTest.java49 import com.google.common.base.Predicate;
335 assertTrueWithTimeout(new Predicate<Void>() { in testSetPreviewSurface()
344 assertTrueWithTimeout(new Predicate<Void>() { in testSetPreviewSurface()
362 assertTrueWithTimeout(new Predicate<Void>() { in testSetDisplaySurface()
371 assertTrueWithTimeout(new Predicate<Void>() { in testSetDisplaySurface()
388 assertTrueWithTimeout(new Predicate<Void>() { in testSetDeviceOrientation()
397 assertTrueWithTimeout(new Predicate<Void>() { in testSetDeviceOrientation()
413 assertTrueWithTimeout(new Predicate<Void>() { in testSetZoom()
477 assertTrueWithTimeout(new Predicate<Void>() { in testSessionModifyResponse()
517 assertTrueWithTimeout(new Predicate<Void>() { in testSetPauseImage()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dconfig_update_utils_test.cpp38 using android::os::statsd::Predicate;
466 Predicate predicate = CreateScreenIsOnPredicate(); in TEST_F()
490 Predicate predicate = CreateScreenIsOnPredicate(); in TEST_F()
517 Predicate predicate = CreateScreenIsOnPredicate(); in TEST_F()
543 Predicate simple1 = CreateScreenIsOnPredicate(); in TEST_F()
545 Predicate simple2 = CreateScreenIsOffPredicate(); in TEST_F()
548 Predicate combination1; in TEST_F()
587 Predicate simple1 = CreateScreenIsOnPredicate(); in TEST_F()
589 Predicate simple2 = CreateScreenIsOffPredicate(); in TEST_F()
592 Predicate combination1; in TEST_F()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/legal/
DModuleLicensesPreferenceController.java52 .filter(new Predicate(mContext)) in displayPreference()
58 static class Predicate implements java.util.function.Predicate<ModuleInfo> { class in ModuleLicensesPreferenceController
61 public Predicate(Context context) { in Predicate() method in ModuleLicensesPreferenceController.Predicate
/packages/modules/StatsD/statsd/tests/
Dstatsd_test_util.h135 Predicate CreateScreenIsOnPredicate();
138 Predicate CreateScreenIsOffPredicate();
141 Predicate CreateScheduledJobPredicate();
144 Predicate CreateBatterySaverModePredicate();
147 Predicate CreateDeviceUnpluggedPredicate();
150 Predicate CreateHoldingWakelockPredicate();
153 Predicate CreateIsSyncingPredicate();
156 Predicate CreateIsInBackgroundPredicate();
192 void addPredicateToPredicateCombination(const Predicate& predicate, Predicate* combination);
Dstatsd_test_util.cpp248 Predicate CreateScheduledJobPredicate() { in CreateScheduledJobPredicate()
249 Predicate predicate; in CreateScheduledJobPredicate()
256 Predicate CreateBatterySaverModePredicate() { in CreateBatterySaverModePredicate()
257 Predicate predicate; in CreateBatterySaverModePredicate()
264 Predicate CreateDeviceUnpluggedPredicate() { in CreateDeviceUnpluggedPredicate()
265 Predicate predicate; in CreateDeviceUnpluggedPredicate()
272 Predicate CreateScreenIsOnPredicate() { in CreateScreenIsOnPredicate()
273 Predicate predicate; in CreateScreenIsOnPredicate()
280 Predicate CreateScreenIsOffPredicate() { in CreateScreenIsOffPredicate()
281 Predicate predicate; in CreateScreenIsOffPredicate()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/data/
DDataModel.kt37 import com.android.deskclock.Predicate
71 private val mActionEnabled: Predicate<Context>,
77 Predicate.FALSE as Predicate<Context>,
81 Predicate.TRUE as Predicate<Context>,
89 Predicate.TRUE as Predicate<Context>,
118 private class ChangeSoundActionPredicate : Predicate<Context> {
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/shared/
DInitialConfiguration.java35 import java.util.function.Predicate;
218 public static <T> boolean any(Iterable<T> coll, Predicate<T> fn) { in any()
230 public static <T> boolean all(Iterable<T> coll, Predicate<T> fn) { in all()
237 public static <T> Predicate<T> not(Predicate<T> fn) { in not()
/packages/modules/StatsD/tests/src/android/cts/statsd/validation/
DValidationTests.java36 import com.android.internal.os.StatsdConfigProto.Predicate;
479 Predicate.Builder wakelockPredicate = Predicate.newBuilder() in uploadWakelockDurationBatteryStatsConfig()
527 Predicate.Builder deviceIsUnplugged = Predicate.newBuilder() in uploadWakelockDurationBatteryStatsConfig()
608 Predicate.Builder screenIsOff = Predicate.newBuilder() in uploadWakelockDurationBatteryStatsConfig()
616 Predicate.Builder screenOffBatteryOn = Predicate.newBuilder() in uploadWakelockDurationBatteryStatsConfig()
618 .setCombination(Predicate.Combination.newBuilder() in uploadWakelockDurationBatteryStatsConfig()
/packages/apps/Contacts/src/com/android/contacts/model/
DAccountTypeManager.java55 import com.google.common.base.Predicate;
84 public enum AccountFilter implements Predicate<AccountInfo> {
153 Predicate<AccountInfo> filter) {
209 Predicate<AccountInfo> filter); in filterAccountsAsync()
227 return Futures.getUnchecked(filterAccountsAsync(new Predicate<AccountInfo>() { in getWritableGoogleAccounts()
332 public static Predicate<AccountInfo> writableFilter() {
336 public static Predicate<AccountInfo> drawerDisplayableFilter() {
340 public static Predicate<AccountInfo> groupWritableFilter() {
607 final Predicate<AccountInfo> filter) {
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupDataProvider.java45 import java.util.function.Predicate;
56 private final Consumer<Predicate<PackageUserKey>> mNotificationDotsChangeListener;
70 public PopupDataProvider(Consumer<Predicate<PackageUserKey>> notificationDotsChangeListener) { in PopupDataProvider()
74 private void updateNotificationDots(Predicate<PackageUserKey> updatedDots) { in updateNotificationDots()
271 default void onNotificationDotsUpdated(Predicate<PackageUserKey> updatedDots) { }
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DBreadBot.java29 import java.util.function.Predicate;
51 Predicate<String> checker = this::hasHorizontalEntry; in assertItemsPresent()
55 private void assertItemsPresent(String[] items, Predicate<String> predicate) { in assertItemsPresent()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DFakeEpgReader.java34 import com.google.common.base.Predicate;
90 new Predicate<Channel>() { in getChannels()
164 protected Predicate<Program> isProgramDuring(final Range<Long> validRange) {
165 return new Predicate<Program>() {
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/browse/
DMediaBrowserViewModelImpl.java33 import java.util.function.Predicate;
53 Predicate<MediaItemMetadata> predicate = forRoot ? MediaItemMetadata::isBrowsable in filterItems()
63 Predicate<MediaItemMetadata> predicate = MediaItemMetadata::isBrowsable; in selectBrowseableItems()
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/
DDialerFutures.java19 import com.google.common.base.Predicate;
46 Predicate<T> predicate, in firstMatching()
53 Predicate<T> predicate, in firstMatchingImpl()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DModel.java48 import java.util.function.Predicate;
196 public List<DocumentInfo> loadDocuments(Selection<String> selection, Predicate<Cursor> filter) { in loadDocuments()
210 public boolean hasDocuments(Selection<String> selection, Predicate<Cursor> filter) { in hasDocuments()
222 private @Nullable DocumentInfo loadDocument(String modelId, Predicate<Cursor> filter) { in loadDocument()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DLastAccessedProvider.java46 import java.util.function.Predicate;
207 purgeByAuthority(new Predicate<String>() { in call()
228 purgeByAuthority(new Predicate<String>() { in call()
248 private void purgeByAuthority(Predicate<String> predicate) { in purgeByAuthority()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDragHost.java43 import java.util.function.Predicate;
57 private final Predicate<View> mIsDocumentView;
68 Predicate<View> isDocumentView, in DragHost()

12345