/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | MetricsTestUtil.java | 24 import java.util.function.Consumer; 37 static ConnectivityMetricsEvent describeIpEvent(Consumer<Parcel>... fs) { in describeIpEvent() 39 for (Consumer<Parcel> f : fs) { in describeIpEvent() 46 static Consumer<Parcel> aType(Class<?> c) { in aType() 50 static Consumer<Parcel> aBool(boolean b) { in aBool() 54 static Consumer<Parcel> aByte(byte b) { in aByte() 58 static Consumer<Parcel> anInt(int i) { in anInt() 62 static Consumer<Parcel> aLong(long l) { in aLong() 66 static Consumer<Parcel> aString(String s) { in aString() 70 static Consumer<Parcel> aByteArray(byte... ary) { in aByteArray() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | FunctionalUtils.java | 22 import java.util.function.Consumer; 35 public static <T> Consumer<T> uncheckExceptions(ThrowingConsumer<T> action) { in uncheckExceptions() 42 public static <T> Consumer<T> ignoreRemoteException(RemoteExceptionIgnoringConsumer<T> action) { in ignoreRemoteException() 50 public static Runnable handleExceptions(ThrowingRunnable r, Consumer<Throwable> handler) { in handleExceptions() 100 public interface ThrowingConsumer<T> extends Consumer<T> { 120 public interface RemoteExceptionIgnoringConsumer<T> extends Consumer<T> {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
D | CurrentUserTracker.java | 29 import java.util.function.Consumer; 34 private Consumer<Integer> mCallback = this::onUserSwitched; 67 private List<Consumer<Integer>> mCallbacks = new ArrayList<>(); 92 private void addTracker(Consumer<Integer> callback) { in addTracker() 104 private void removeTracker(Consumer<Integer> callback) { in removeTracker() 117 List<Consumer<Integer>> callbacks = new ArrayList<>(mCallbacks); in notifyUserSwitched() 118 for (Consumer<Integer> consumer : callbacks) { in notifyUserSwitched()
|
/frameworks/layoutlib/bridge/src/android/graphics/drawable/ |
D | AnimatedVectorDrawable_Delegate.java | 38 import java.util.function.Consumer; 93 Consumer<Float> setter = group.getPropertySetter(propertyId); in nCreateGroupPropertyHolder() 111 Consumer<Integer> setter = path.getIntPropertySetter(propertyId); in nCreatePathColorPropertyHolder() 121 Consumer<Float> setter = path.getFloatPropertySetter(propertyId); in nCreatePathPropertyHolder() 227 final Consumer<T> mValueSetter; 230 private PropertySetter(@NonNull Consumer<T> valueSetter) { in PropertySetter() 265 private IntPropertySetter(Consumer<Integer> valueSetter) { in IntPropertySetter() 269 private static PropertySetter of(Consumer<Integer> valueSetter, int... values) { in of() 282 private FloatPropertySetter(Consumer<Float> valueSetter) { in FloatPropertySetter() 286 private static PropertySetter of(Consumer<Float> valueSetter, float... values) { in of()
|
/frameworks/base/packages/Tethering/src/android/net/util/ |
D | VersionedBroadcastListener.java | 27 import java.util.function.Consumer; 46 private final Consumer<Intent> mCallback; 51 IntentFilter filter, Consumer<Intent> callback) { in VersionedBroadcastListener() 82 public final Consumer<Intent> callback; 86 Receiver(String tag, AtomicInteger atomicGenerationNumber, Consumer<Intent> callback) { in Receiver()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | DockedStackExistsListener.java | 24 import java.util.function.Consumer; 34 private static ArrayList<WeakReference<Consumer<Boolean>>> sCallbacks = new ArrayList<>(); 79 Consumer<Boolean> l = wf.get(); in onDockedStackExistsChanged() 86 public static void register(Consumer<Boolean> callback) { in register()
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | LocalIntentReceiver.java | 26 import java.util.function.Consumer; 30 final Consumer<Intent> mConsumer; 32 LocalIntentReceiver(Consumer<Intent> consumer) { in LocalIntentReceiver()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowContainerTraversalTests.java | 35 import java.util.function.Consumer; 58 Consumer<WindowState> c = mock(Consumer.class); in testDockedDividerPosition()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ExplicitHealthCheckController.java | 52 import java.util.function.Consumer; 68 @GuardedBy("mLock") @Nullable private Consumer<String> mPassedConsumer; 75 @GuardedBy("mLock") @Nullable private Consumer<List<PackageConfig>> mSupportedConsumer; 109 public void setCallbacks(Consumer<String> passedConsumer, in setCallbacks() 110 Consumer<List<PackageConfig>> supportedConsumer, Runnable notifySyncRunnable) { in setCallbacks() 183 Consumer<String> action) { in actOnDifference() 239 private void getSupportedPackages(Consumer<List<PackageConfig>> consumer) { in getSupportedPackages() 266 private void getRequestedPackages(Consumer<List<String>> consumer) { in getRequestedPackages()
|
/frameworks/base/core/java/android/app/role/ |
D | RoleControllerManager.java | 44 import java.util.function.Consumer; 122 @NonNull Consumer<Boolean> callback) { in grantDefaultRoles() 159 @NonNull @CallbackExecutor Executor executor, @NonNull Consumer<Boolean> callback) { in isApplicationQualifiedForRole() 169 @NonNull @CallbackExecutor Executor executor, @NonNull Consumer<Boolean> callback) { in isRoleVisible() 242 private final Consumer<Boolean> mCallback; 248 @NonNull @CallbackExecutor Executor executor, @NonNull Consumer<Boolean> callback) { in GrantDefaultRolesRequest() 460 private final Consumer<Boolean> mCallback; 467 @CallbackExecutor @NonNull Executor executor, @NonNull Consumer<Boolean> callback) { in IsApplicationQualifiedForRoleRequest() 514 private final Consumer<Boolean> mCallback; 520 @CallbackExecutor @NonNull Executor executor, @NonNull Consumer<Boolean> callback) { in IsRoleVisibleRequest()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | ExtensionController.java | 20 import java.util.function.Consumer; 35 void addCallback(Consumer<T> callback); in addCallback() 57 ExtensionBuilder<T> withCallback(Consumer<T> callback); in withCallback()
|
D | BrightnessMirrorController.java | 31 import java.util.function.Consumer; 40 private final Consumer<Boolean> mVisibilityCallback; 47 @NonNull Consumer<Boolean> visibilityCallback) { in BrightnessMirrorController()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | TakeScreenshotService.java | 31 import java.util.function.Consumer; 42 Consumer<Uri> finisher = new Consumer<Uri>() {
|
/frameworks/base/core/java/com/android/internal/util/function/pooled/ |
D | PooledConsumer.java | 19 import java.util.function.Consumer; 27 public interface PooledConsumer<T> extends PooledLambda, Consumer<T> {
|
/frameworks/base/telephony/java/android/telephony/ |
D | CellBroadcastService.java | 32 import java.util.function.Consumer; 103 @NonNull String originatingAddress, @NonNull Consumer<Bundle> callback); in onCdmaScpMessage() 172 Consumer<Bundle> consumer = bundle -> { in handleCdmaScpMessage()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/view/ |
D | RecentsTransition.java | 31 import java.util.function.Consumer; 90 return createHardwareBitmap(width, height, new Consumer<Canvas>() { 108 public static Bitmap createHardwareBitmap(int width, int height, Consumer<Canvas> consumer) {
|
/frameworks/base/telephony/java/com/android/internal/telephony/util/ |
D | RemoteCallbackListExt.java | 22 import java.util.function.Consumer; 36 public void broadcastAction(Consumer<E> action) { in broadcastAction()
|
/frameworks/layoutlib/bridge/src/android/util/imagepool/ |
D | ImagePoolImpl.java | 34 import java.util.function.Consumer; 59 @Nullable Consumer<BufferedImage> freedCallback) { in acquire() 99 @Nullable Consumer<BufferedImage> freedCallback) { in prepareImage() 134 @Nullable Consumer<BufferedImage> freedCallback) { in defaultImageImpl()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | Lifecycle.java | 20 import java.util.function.Consumer; 37 public void dispatch(Consumer<T> consumer) { in dispatch()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/ |
D | FakeExtensionController.java | 23 import java.util.function.Consumer; 74 public ExtensionBuilder<T> withCallback(Consumer<T> callback) { in withCallback() 123 public void addCallback(Consumer<T> callback) { in addCallback()
|
/frameworks/base/core/java/android/app/prediction/ |
D | AppPredictor.java | 39 import java.util.function.Consumer; 234 @NonNull Executor callbackExecutor, @NonNull Consumer<List<AppTarget>> callback) { in sortTargets() 306 private final Consumer<List<AppTarget>> mCallback; 310 @NonNull Consumer<List<AppTarget>> callback) { in CallbackWrapper()
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | RegionUtils.java | 26 import java.util.function.Consumer; 58 public static void forEachRectReverse(Region region, Consumer<Rect> rectConsumer) { in forEachRectReverse()
|
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/ |
D | buffer_hub_queue_parcelable.h | 23 Consumer = 0x62687163, // 'bhqc' enumerator 69 BufferHubQueueParcelable<BufferHubQueueParcelableMagic::Consumer>;
|
/frameworks/base/core/java/android/service/appprediction/ |
D | AppPredictionService.java | 47 import java.util.function.Consumer; 193 @NonNull Consumer<List<AppTarget>> callback); in onSortAppTargets() 309 private static final class CallbackWrapper implements Consumer<List<AppTarget>>, 313 private final Consumer<CallbackWrapper> mOnBinderDied; 316 @Nullable Consumer<CallbackWrapper> onBinderDied) { in CallbackWrapper()
|
/frameworks/base/core/java/android/permission/ |
D | PermissionControllerService.java | 59 import java.util.function.Consumer; 94 @NonNull Consumer<Map<String, List<String>>> callback); in onRevokeRuntimePermissions() 131 @NonNull UserHandle user, @NonNull Consumer<Boolean> callback); in onRestoreDelayedRuntimePermissionsBackup() 141 @NonNull Consumer<List<RuntimePermissionPresentationInfo>> callback); in onGetAppPermissions() 175 @NonNull Consumer<List<RuntimePermissionUsageInfo>> callback); in onGetPermissionUsages() 204 @NonNull Consumer<Boolean> callback); in onSetRuntimePermissionGrantStateByDeviceAdmin()
|