/frameworks/base/cmds/statsd/benchmark/ |
D | metric_util.cpp | 152 Predicate predicate; in CreateScheduledJobPredicate() local 153 predicate.set_id(StringToId("ScheduledJobRunningPredicate")); in CreateScheduledJobPredicate() 154 predicate.mutable_simple_predicate()->set_start(StringToId("ScheduledJobStart")); in CreateScheduledJobPredicate() 155 predicate.mutable_simple_predicate()->set_stop(StringToId("ScheduledJobFinish")); in CreateScheduledJobPredicate() 156 return predicate; in CreateScheduledJobPredicate() 160 Predicate predicate; in CreateBatterySaverModePredicate() local 161 predicate.set_id(StringToId("BatterySaverIsOn")); in CreateBatterySaverModePredicate() 162 predicate.mutable_simple_predicate()->set_start(StringToId("BatterySaverModeStart")); in CreateBatterySaverModePredicate() 163 predicate.mutable_simple_predicate()->set_stop(StringToId("BatterySaverModeStop")); in CreateBatterySaverModePredicate() 164 return predicate; in CreateBatterySaverModePredicate() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/util/ |
D | ArraySetPerfTest.java | 95 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Small_Base() local 109 Predicate<Integer> predicate = (i) -> false; in testRemoveIf_Small_RemoveNothing() local 116 set.removeIf(predicate); in testRemoveIf_Small_RemoveNothing() 124 Predicate<Integer> predicate = (i) -> true; in testRemoveIf_Small_RemoveAll() local 131 set.removeIf(predicate); in testRemoveIf_Small_RemoveAll() 139 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Small_RemoveHalf() local 146 set.removeIf(predicate); in testRemoveIf_Small_RemoveHalf() 158 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Large_Base() local 172 Predicate<Integer> predicate = (i) -> false; in testRemoveIf_Large_RemoveNothing() local 179 set.removeIf(predicate); in testRemoveIf_Large_RemoveNothing() [all …]
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
D | TestPredicates.java | 64 public static <T> Predicate<T> not(Predicate<? super T> predicate) { in not() argument 65 return new NotPredicate<T>(predicate); in not() 69 private final Predicate<? super T> predicate; field in TestPredicates.NotPredicate 71 private NotPredicate(Predicate<? super T> predicate) { in NotPredicate() argument 72 this.predicate = predicate; in NotPredicate() 76 return !predicate.apply(t); in apply()
|
D | TestSuiteBuilder.java | 249 for (Predicate<TestMethod> predicate : predicates) { in satisfiesAllPredicates() 250 if (!predicate.apply(test)) { in satisfiesAllPredicates()
|
/frameworks/libs/net/common/hostdevice/com/android/net/module/util/ |
D | TrackRecord.kt | 45 fun poll(timeoutMs: Long, pos: Int, predicate: (E) -> Boolean = { true }): E? in add() 102 override fun poll(timeoutMs: Long, pos: Int, predicate: (E) -> Boolean) = lock.withLock { in <lambda>() 103 elements.getOrNull(pollForIndexReadLocked(timeoutMs, pos, predicate)) in <lambda>() 107 fun getOrNull(pos: Int, predicate: (E) -> Boolean) = lock.withLock { in <lambda>() 108 if (pos < 0 || pos > size) null else elements.subList(pos, size).find(predicate) in <lambda>() 114 private fun pollForIndexReadLocked(timeoutMs: Long, pos: Int, predicate: (E) -> Boolean): Int { in pollForIndexReadLocked() 119 if (predicate(elements[index])) return index in pollForIndexReadLocked() 227 fun poll(timeoutMs: Long, predicate: (E) -> Boolean = { true }): E? { in newReadHead() 230 val index = pollForIndexReadLocked(timeoutMs, readHead, predicate) in newReadHead()
|
/frameworks/base/cmds/statsd/tests/ |
D | statsd_test_util.cpp | 199 Predicate predicate; in CreateScheduledJobPredicate() local 200 predicate.set_id(StringToId("ScheduledJobRunningPredicate")); in CreateScheduledJobPredicate() 201 predicate.mutable_simple_predicate()->set_start(StringToId("ScheduledJobStart")); in CreateScheduledJobPredicate() 202 predicate.mutable_simple_predicate()->set_stop(StringToId("ScheduledJobFinish")); in CreateScheduledJobPredicate() 203 return predicate; in CreateScheduledJobPredicate() 207 Predicate predicate; in CreateBatterySaverModePredicate() local 208 predicate.set_id(StringToId("BatterySaverIsOn")); in CreateBatterySaverModePredicate() 209 predicate.mutable_simple_predicate()->set_start(StringToId("BatterySaverModeStart")); in CreateBatterySaverModePredicate() 210 predicate.mutable_simple_predicate()->set_stop(StringToId("BatterySaverModeStop")); in CreateBatterySaverModePredicate() 211 return predicate; in CreateBatterySaverModePredicate() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | CollectionUtils.java | 52 java.util.function.Predicate<? super T> predicate) { in filter() argument 56 if (predicate.test(item)) { in filter() 67 java.util.function.Predicate<? super T> predicate) { in filter() argument 75 if (predicate.test(item)) { in filter() 81 if (predicate.test(item)) { in filter() 91 @Nullable Predicate<? super T> predicate) { in addIf() argument 94 if (predicate.test(item)) { in addIf() 227 java.util.function.Predicate<T> predicate) { in any() argument 228 return find(items, predicate) != null; in any() 236 java.util.function.Predicate<T> predicate) { in find() argument [all …]
|
/frameworks/libs/net/common/devicetests/com/android/testutils/ |
D | TestableNetworkStatsProvider.kt | 69 predicate: (T) -> Boolean = { true } in pollForNextCallback() 71 return pollForNextCallback(timeout).also { assertTrue(it is T && predicate(it)) } as T in <lambda>() 86 crossinline predicate: (T) -> Boolean = { true } in eventuallyExpect() 87 ) = history.poll(timeoutMs, from) { it is T && predicate(it) } as T in <lambda>()
|
D | TestableNetworkCallback.kt | 198 crossinline predicate: (T) -> Boolean = { true } in eventuallyExpect() 199 ): T = eventuallyExpectOrNull(timeoutMs, from, predicate).also { in <lambda>() 207 crossinline predicate: (T) -> Boolean = { true } in eventuallyExpectOrNull() 208 ) = history.poll(timeoutMs, from) { it is T && predicate(it) } as T? in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | IdleController.java | 98 Predicate<JobStatus> predicate) { in dumpControllerStateLocked() argument 105 if (!predicate.test(js)) { in dumpControllerStateLocked() 118 Predicate<JobStatus> predicate) { in dumpControllerStateLocked() argument 126 if (!predicate.test(js)) { in dumpControllerStateLocked()
|
D | StorageController.java | 156 Predicate<JobStatus> predicate) { in dumpControllerStateLocked() argument 163 if (!predicate.test(js)) { in dumpControllerStateLocked() 176 Predicate<JobStatus> predicate) { in dumpControllerStateLocked() argument 187 if (!predicate.test(js)) { in dumpControllerStateLocked()
|
D | BackgroundJobsController.java | 79 final Predicate<JobStatus> predicate) { in dumpControllerStateLocked() argument 83 mService.getJobStore().forEachJob(predicate, (jobStatus) -> { in dumpControllerStateLocked() 113 Predicate<JobStatus> predicate) { in dumpControllerStateLocked() argument 120 mService.getJobStore().forEachJob(predicate, (jobStatus) -> { in dumpControllerStateLocked()
|
D | BatteryController.java | 228 Predicate<JobStatus> predicate) { in dumpControllerStateLocked() argument 240 if (!predicate.test(js)) { in dumpControllerStateLocked() 253 Predicate<JobStatus> predicate) { in dumpControllerStateLocked() argument 269 if (!predicate.test(js)) { in dumpControllerStateLocked()
|
D | StateController.java | 134 Predicate<JobStatus> predicate); in dumpControllerStateLocked() argument 136 Predicate<JobStatus> predicate); in dumpControllerStateLocked() argument
|
D | DeviceIdleJobsController.java | 232 final Predicate<JobStatus> predicate) { in dumpControllerStateLocked() argument 236 mService.getJobStore().forEachJob(predicate, (jobStatus) -> { in dumpControllerStateLocked() 258 Predicate<JobStatus> predicate) { in dumpControllerStateLocked() argument 264 mService.getJobStore().forEachJob(predicate, (jobStatus) -> { in dumpControllerStateLocked()
|
D | ContentObserverController.java | 357 Predicate<JobStatus> predicate) { in dumpControllerStateLocked() argument 360 if (!predicate.test(js)) { in dumpControllerStateLocked() 386 if (predicate.test(inst.mJobStatus)) { in dumpControllerStateLocked() 447 Predicate<JobStatus> predicate) { in dumpControllerStateLocked() argument 453 if (!predicate.test(js)) { in dumpControllerStateLocked() 482 if (predicate.test(inst.mJobStatus)) { in dumpControllerStateLocked()
|
/frameworks/base/core/java/android/widget/ |
D | DayPickerViewPager.java | 140 protected <T extends View> T findViewByPredicateTraversal(Predicate<View> predicate, in findViewByPredicateTraversal() argument 142 if (predicate.test(this)) { in findViewByPredicateTraversal() 150 final View v = current.findViewByPredicate(predicate); in findViewByPredicateTraversal() 161 final View v = child.findViewByPredicate(predicate); in findViewByPredicateTraversal()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | PersisterQueue.java | 119 synchronized <T extends WriteQueueItem> T findLastItem(Predicate<T> predicate, Class<T> clazz) { in findLastItem() argument 124 if (predicate.test(item)) { in findLastItem() 151 synchronized <T extends WriteQueueItem> void removeItems(Predicate<T> predicate, in removeItems() argument 157 if (predicate.test(item)) { in removeItems()
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | FileUtils.cpp | 41 const FindFilesPredicate& predicate) { in FindFiles() argument 50 if (predicate(dirent->d_type, path)) { in FindFiles() 55 auto sub_vector = FindFiles(path, recurse, predicate); in FindFiles()
|
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/ |
D | ConfigFactory.java | 137 for (Predicate predicate : mTemplate.getPredicateList()) { in getConfig() 138 addPredicate(predicate, i, config); in getConfig() 275 Predicate.Builder predicate = template.toBuilder() in addPredicate() local 283 predicate.setCombination(cb.build()); in addPredicate() 292 predicate.setSimplePredicate(sc.build()); in addPredicate() 294 config.addPredicate(predicate); in addPredicate()
|
/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkProviderTest.kt | 86 crossinline predicate: (T) -> Boolean in <lambda>() 87 ) = seenEvents.poll(DEFAULT_TIMEOUT_MS) { it is T && predicate(it) } in <lambda>() 166 crossinline predicate: (T) -> Boolean in <lambda>() 167 ) = seenEvents.poll(DEFAULT_TIMEOUT_MS) { it is T && predicate(it) } in <lambda>()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | WatchHeaderListView.java | 95 Predicate<View> predicate, View childToSkip) { in findViewByPredicateTraversal() argument 96 View v = super.findViewByPredicateTraversal(predicate, childToSkip); in findViewByPredicateTraversal() 99 return (T) mTopPanel.findViewByPredicate(predicate); in findViewByPredicateTraversal()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/ |
D | TestUtils.java | 132 public static void assertLogcatContains(String tag, Predicate<ShadowLog.LogItem> predicate) { in assertLogcatContains() argument 133 assertThat(ShadowLog.getLogsForTag(tag).stream().anyMatch(predicate)).isTrue(); in assertLogcatContains()
|
/frameworks/base/cmds/idmap2/include/idmap2/ |
D | FileUtils.h | 35 const FindFilesPredicate& predicate);
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | StateControllerTest.java | 89 Predicate<JobStatus> predicate) { in dumpControllerStateLocked() argument 93 Predicate<JobStatus> predicate) { in dumpControllerStateLocked() argument
|