/frameworks/base/test-runner/src/android/test/suitebuilder/ |
D | TestPredicates.java | 23 import com.android.internal.util.Predicate; 32 static final Predicate<TestMethod> REJECT_INSTRUMENTATION = 35 static final Predicate<TestMethod> SELECT_SMOKE = hasAnnotation(Smoke.class); 37 static final Predicate<TestMethod> REJECT_SUPPRESSED = not(hasAnnotation(Suppress.class)); 43 public static Predicate<TestMethod> hasAnnotation(Class<? extends Annotation> annotationClass) { in hasAnnotation() 47 private static class HasAnnotation implements Predicate<TestMethod> { 66 public static <T> Predicate<T> not(Predicate<? super T> predicate) { in not() 70 private static class NotPredicate<T> implements Predicate<T> { 71 private final Predicate<? super T> predicate; 73 private NotPredicate(Predicate<? super T> predicate) { in NotPredicate()
|
D | TestSuiteBuilder.java | 23 import com.android.internal.util.Predicate; 48 private final Set<Predicate<TestMethod>> predicates = new HashSet<Predicate<TestMethod>>(); 124 public TestSuiteBuilder addRequirements(List<Predicate<TestMethod>> predicates) { in addRequirements() 221 public final TestSuiteBuilder addRequirements(Predicate<TestMethod>... predicates) { in addRequirements() 222 ArrayList<Predicate<TestMethod>> list = new ArrayList<Predicate<TestMethod>>(); in addRequirements() 249 for (Predicate<TestMethod> predicate : predicates) { in satisfiesAllPredicates()
|
D | AssignableFrom.java | 19 import com.android.internal.util.Predicate; 21 class AssignableFrom implements Predicate<TestMethod> {
|
D | TestGrouping.java | 21 import com.android.internal.util.Predicate; 147 private <T> List<T> select(Collection<T> items, Predicate<T> predicate) { in select() 187 private static class TestCasePredicate implements Predicate<Class<?>> { 221 private static class TestMethodPredicate implements Predicate<Method> {
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/ |
D | TestPredicatesTest.java | 19 import com.android.internal.util.Predicate; 77 private static final Predicate<Object> TRUE = new Predicate<Object>() { 83 private static final Predicate<Object> FALSE = new Predicate<Object>() {
|
/frameworks/base/apct-tests/perftests/core/src/android/util/ |
D | ArraySetPerfTest.java | 30 import java.util.function.Predicate; 128 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Small_Base() 142 Predicate<Integer> predicate = (i) -> false; in testRemoveIf_Small_RemoveNothing() 157 Predicate<Integer> predicate = (i) -> true; in testRemoveIf_Small_RemoveAll() 172 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Small_RemoveHalf() 191 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Large_Base() 205 Predicate<Integer> predicate = (i) -> false; in testRemoveIf_Large_RemoveNothing() 220 Predicate<Integer> predicate = (i) -> true; in testRemoveIf_Large_RemoveAll() 235 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Large_RemoveHalf()
|
/frameworks/libs/binary_translation/base/include/berberis/base/ |
D | algorithm.h | 47 template <class Container, class Predicate> 48 auto FindIf(const Container& container, Predicate predicate) { in FindIf() 52 template <class Container, class Predicate> 53 bool ContainsIf(const Container& container, Predicate predicate) { in ContainsIf()
|
/frameworks/base/ravenwood/runtime-helper-src/framework/com/android/platform/test/ravenwood/nativesubstitution/ |
D | SystemProperties_host.java | 25 import java.util.function.Predicate; 35 private static Predicate<String> sKeyReadablePredicate; 38 private static Predicate<String> sKeyWritablePredicate; 55 Predicate<String> keyReadablePredicate, Predicate<String> keyWritablePredicate) { in initializeIfNeeded() 66 Predicate<String> keyReadablePredicate, Predicate<String> keyWritablePredicate, in native_init$ravenwood()
|
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/ |
D | EmbeddingTestUtils.java | 41 import androidx.window.extensions.core.util.function.Predicate; 231 @NonNull Predicate<Activity> activityPredicate, in createActivityBuilder() 232 @NonNull Predicate<Intent> intentPredicate) { in createActivityBuilder() 237 @NonNull Predicate<Pair<Activity, Activity>> activitiesPairPredicate, in createSplitPairRuleBuilder() 238 @NonNull Predicate<Pair<Activity, Intent>> activityIntentPairPredicate, in createSplitPairRuleBuilder() 239 @NonNull Predicate<WindowMetrics> windowMetricsPredicate) { in createSplitPairRuleBuilder() 245 @NonNull Intent placeholderIntent, @NonNull Predicate<Activity> activityPredicate, in createSplitPlaceholderRuleBuilder() 246 @NonNull Predicate<Intent> intentPredicate, in createSplitPlaceholderRuleBuilder() 247 @NonNull Predicate<WindowMetrics> windowMetricsPredicate) { in createSplitPlaceholderRuleBuilder()
|
/frameworks/base/ravenwood/junit-src/android/platform/test/ravenwood/ |
D | RavenwoodSystemProperties.java | 25 import java.util.function.Predicate; 34 private final Predicate<String> mKeyReadablePredicate = (key) -> { 66 private final Predicate<String> mKeyWritablePredicate = (key) -> { 122 public Predicate<String> getKeyReadablePredicate() { in getKeyReadablePredicate() 126 public Predicate<String> getKeyWritablePredicate() { in getKeyWritablePredicate()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/ |
D | AlarmStore.java | 26 import java.util.function.Predicate; 55 ArrayList<Alarm> remove(Predicate<Alarm> whichAlarms); in remove() 144 int getCount(Predicate<Alarm> condition); in getCount()
|
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | PackageData.java | 38 import java.util.function.Predicate; 54 private final Predicate<String> mIsDefaultDialerPredicate; 56 private final Predicate<String> mIsDefaultSmsAppPredicate; 61 @NonNull Predicate<String> isDefaultDialerPredicate, in PackageData() 62 @NonNull Predicate<String> isDefaultSmsAppPredicate, in PackageData() 84 @NonNull Predicate<String> isDefaultDialerPredicate, in packagesDataFromDisk() 85 @NonNull Predicate<String> isDefaultSmsAppPredicate, in packagesDataFromDisk()
|
/frameworks/base/core/java/com/android/internal/util/function/pooled/ |
D | PooledPredicate.java | 19 import java.util.function.Predicate; 27 public interface PooledPredicate<T> extends PooledLambda, Predicate<T> {
|
/frameworks/native/libs/binder/include/binder/ |
D | RpcThreads.h | 54 template <typename Predicate> 55 void wait(RpcMutexUniqueLock&, Predicate stop_waiting) { in wait() 64 template <typename Duration, typename Predicate> 65 bool wait_for(RpcMutexUniqueLock&, const Duration&, Predicate stop_waiting) { in wait_for()
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | AlwaysTruePredicate.java | 19 import java.util.function.Predicate; 22 public class AlwaysTruePredicate implements Predicate<Object> {
|
/frameworks/base/test-runner/src/android/test/ |
D | InstrumentationTestRunner.java | 34 import com.android.internal.util.Predicate; 198 private static final Predicate<TestMethod> SELECT_SMALL = hasAnnotation(SmallTest.class); 200 private static final Predicate<TestMethod> SELECT_MEDIUM = hasAnnotation(MediumTest.class); 202 private static final Predicate<TestMethod> SELECT_LARGE = hasAnnotation(LargeTest.class); 322 Predicate<TestMethod> testSizePredicate = null; in onCreate() 323 Predicate<TestMethod> testAnnotationPredicate = null; in onCreate() 324 Predicate<TestMethod> testNotAnnotationPredicate = null; in onCreate() 420 List<Predicate<TestMethod>> getBuilderRequirements() { in getBuilderRequirements() 421 return new ArrayList<Predicate<TestMethod>>(); in getBuilderRequirements() 467 private Predicate<TestMethod> getSizePredicateFromArg(String sizeArg) { in getSizePredicateFromArg() [all …]
|
/frameworks/native/include/ftl/ |
D | algorithm.h | 44 template <typename Container, typename Predicate, typename V = typename Container::value_type> 45 constexpr auto find_if(const Container& container, Predicate&& predicate) 48 std::forward<Predicate>(predicate));
|
/frameworks/base/services/foldables/devicestateprovider/src/com/android/server/policy/ |
D | FoldableDeviceStateProvider.java | 61 import java.util.function.Predicate; 100 private static final Predicate<FoldableDeviceStateProvider> ALLOWED = p -> true; 446 final Predicate<FoldableDeviceStateProvider> predicate = in dump() 462 private final Predicate<FoldableDeviceStateProvider> mActiveStatePredicate; 463 private final Predicate<FoldableDeviceStateProvider> mAvailabilityPredicate; 467 @NonNull Predicate<FoldableDeviceStateProvider> predicate) { in DeviceStatePredicateWrapper() 474 @NonNull Predicate<FoldableDeviceStateProvider> activeStatePredicate, in DeviceStatePredicateWrapper() 475 @NonNull Predicate<FoldableDeviceStateProvider> availabilityPredicate) { in DeviceStatePredicateWrapper() 485 @NonNull Predicate<FoldableDeviceStateProvider> activeStatePredicate in createConfig() 493 @NonNull Predicate<FoldableDeviceStateProvider> activeStatePredicate, in createConfig() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | ServiceListing.java | 38 import java.util.function.Predicate; 55 private final Predicate mValidator; 61 boolean addDeviceLockedFlags, Predicate validator) { in ServiceListing() 202 private Predicate mValidator; 233 public Builder setValidator(Predicate<ServiceInfo> validator) { in setValidator()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | StateController.java | 34 import java.util.function.Predicate; 185 Predicate<JobStatus> predicate); in dumpControllerStateLocked() 187 Predicate<JobStatus> predicate) {} in dumpControllerStateLocked()
|
/frameworks/base/core/java/android/os/ |
D | SystemProperties.java | 42 import java.util.function.Predicate; 106 Predicate<String> keyReadablePredicate, Predicate<String> keyWritablePredicate) { in init$ravenwood() 125 Predicate<String> keyReadablePredicate, Predicate<String> keyWritablePredicate, in native_init$ravenwood()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BinderfsStatsReader.java | 25 import java.util.function.Predicate; 65 public void handleFreeAsyncSpace(Predicate<Integer> predicate, in handleFreeAsyncSpace()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayArea.java | 56 import java.util.function.Predicate; 421 ActivityRecord getActivity(Predicate<ActivityRecord> callback, boolean traverseTopToBottom, in getActivity() 430 Task getTask(Predicate<Task> callback, boolean traverseTopToBottom) { in getTask() 438 Task getRootTask(Predicate<Task> callback, boolean traverseTopToBottom) { in getRootTask() 446 boolean forAllActivities(Predicate<ActivityRecord> callback, boolean traverseTopToBottom) { in forAllActivities() 462 boolean forAllRootTasks(Predicate<Task> callback, boolean traverseTopToBottom) { in forAllRootTasks() 470 boolean forAllTasks(Predicate<Task> callback) { in forAllTasks() 478 boolean forAllLeafTasks(Predicate<Task> callback) { in forAllLeafTasks() 494 boolean forAllLeafTaskFragments(Predicate<TaskFragment> callback) { in forAllLeafTaskFragments() 508 boolean forAllTaskDisplayAreas(Predicate<TaskDisplayArea> callback, in forAllTaskDisplayAreas() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | CollectionUtils.java | 37 import java.util.function.Predicate; 64 java.util.function.Predicate<? super T> predicate) { in filter() 79 java.util.function.Predicate<? super T> predicate) { in filter() 103 @Nullable Predicate<? super T> predicate) { in addIf() 258 java.util.function.Predicate<T> predicate) { in any() 267 java.util.function.Predicate<T> predicate) { in any() 276 java.util.function.Predicate<T> predicate) { in find() 290 java.util.function.Predicate<T> predicate) { in find()
|
/frameworks/base/tools/aapt2/link/ |
D | PrivateAttributeMover.cpp | 28 template <typename InputContainer, typename OutputIterator, typename Predicate> 29 OutputIterator move_if(InputContainer& input_container, OutputIterator result, Predicate pred) { in move_if()
|