/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/services/people/java/com/android/server/people/prediction/ |
D | AppTargetPredictor.java | 34 import java.util.function.Consumer; 45 @NonNull Consumer<List<AppTarget>> updatePredictionsMethod, in create() 56 private final Consumer<List<AppTarget>> mUpdatePredictionsMethod; 62 @NonNull Consumer<List<AppTarget>> updatePredictionsMethod, in AppTargetPredictor() 91 public void onSortAppTargets(List<AppTarget> targets, Consumer<List<AppTarget>> callback) { in onSortAppTargets() 104 public Consumer<List<AppTarget>> getUpdatePredictionsMethod() { in getUpdatePredictionsMethod() 123 void sortTargets(List<AppTarget> targets, Consumer<List<AppTarget>> callback) { in sortTargets()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
D | CurrentUserTracker.java | 31 import java.util.function.Consumer; 36 private Consumer<Integer> mCallback = this::onUserSwitched; 69 private List<Consumer<Integer>> mCallbacks = new ArrayList<>(); 94 private void addTracker(Consumer<Integer> callback) { in addTracker() 107 private void removeTracker(Consumer<Integer> callback) { in removeTracker() 120 List<Consumer<Integer>> callbacks = new ArrayList<>(mCallbacks); in notifyUserSwitched() 121 for (Consumer<Integer> consumer : callbacks) { in notifyUserSwitched()
|
/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/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/SystemUI/src/com/android/systemui/controls/controller/ |
D | ControlsController.kt | 27 import java.util.function.Consumer 60 dataCallback: Consumer<LoadData>, in loadForComponent() 61 cancelWrapper: Consumer<Runnable> in loadForComponent() 122 callback: Consumer<SeedResponse> in loadForComponent() 131 fun addSeedingFavoritesCallback(callback: Consumer<Boolean>): Boolean in loadForComponent()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SimpleSurfaceAnimatable.java | 24 import java.util.function.Consumer; 46 private final Consumer<SurfaceControl.Transaction> mOnAnimationLeashLost; 47 private final Consumer<Runnable> mOnAnimationFinished; 157 private Consumer<SurfaceControl.Transaction> mOnAnimationLeashLost = null; 160 private Consumer<Runnable> mOnAnimationFinished = null; 204 @Nullable Consumer<SurfaceControl.Transaction> onAnimationLeashLost) { in setOnAnimationLeashLost() 286 @Nullable Consumer<Runnable> onAnimationFinish) { in setShouldDeferAnimationFinish()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | FunctionalUtils.java | 25 import java.util.function.Consumer; 39 public static <T> Consumer<T> uncheckExceptions(ThrowingConsumer<T> action) { in uncheckExceptions() 74 public static <T> Consumer<T> ignoreRemoteException(RemoteExceptionIgnoringConsumer<T> action) { in ignoreRemoteException() 82 public static Runnable handleExceptions(ThrowingRunnable r, Consumer<Throwable> handler) { in handleExceptions() 141 public interface ThrowingConsumer<T> extends Consumer<T> { 161 public interface RemoteExceptionIgnoringConsumer<T> extends Consumer<T> {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | AnimationProperties.java | 26 import java.util.function.Consumer; 35 private Consumer<Property> mAnimationEndAction; 56 Consumer<Property> endAction = mAnimationEndAction; 74 public AnimationProperties setAnimationEndAction(Consumer<Property> listener) {
|
/frameworks/base/core/java/android/view/ |
D | ScrollCaptureTargetResolver.java | 34 import java.util.function.Consumer; 68 private Consumer<ScrollCaptureTarget> mWhenComplete; 219 Consumer<ScrollCaptureTarget> resultConsumer) { in start() 240 private void run(long timeLimitMillis, Consumer<ScrollCaptureTarget> resultConsumer) { in run() 372 static class SingletonConsumer<T> implements Consumer<T> { 373 final AtomicReference<Consumer<T>> mAtomicRef; 375 SingletonConsumer(Consumer<T> target) { in SingletonConsumer() 381 final Consumer<T> consumer = mAtomicRef.getAndSet(null); in accept()
|
D | ScrollCaptureCallback.java | 23 import java.util.function.Consumer; 85 void onScrollCaptureSearch(@NonNull Consumer<Rect> onReady); in onScrollCaptureSearch()
|
/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/core/java/com/android/server/soundtrigger_middleware/ |
D | ExternalCaptureStateTracker.java | 27 import java.util.function.Consumer; 42 private final Consumer<Boolean> mListener; 55 ExternalCaptureStateTracker(Consumer<Boolean> listener) { in ExternalCaptureStateTracker()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ObservableTextView.java | 26 import java.util.function.Consumer; 34 private Consumer<Integer> mOnVisibilityChangedListener; 63 public void setOnVisibilityChangedListener(Consumer<Integer> listener) { in setOnVisibilityChangedListener()
|
D | CachingIconView.java | 35 import java.util.function.Consumer; 48 private Consumer<Integer> mOnVisibilityChangedListener; 49 private Consumer<Boolean> mOnForceHiddenChangedListener; 220 public void setOnVisibilityChangedListener(Consumer<Integer> listener) { in setOnVisibilityChangedListener() 224 public void setOnForceHiddenChangedListener(Consumer<Boolean> listener) { in setOnForceHiddenChangedListener()
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | RegionUtils.java | 26 import java.util.function.Consumer; 56 public static void forEachRect(Region region, Consumer<Rect> rectConsumer) { in forEachRect() 72 public static void forEachRectReverse(Region region, Consumer<Rect> rectConsumer) { in forEachRectReverse()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationManagerServiceUtils.java | 25 import java.util.function.Consumer; 41 private final Consumer<TListener> mBinderDeathCallback; 47 @NonNull Consumer<TListener> binderDeathCallback) { in LinkedListener()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowContainerTraversalTests.java | 36 import java.util.function.Consumer; 60 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/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/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()
|
/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() 171 Consumer<Bundle> consumer = bundle -> { in handleCdmaScpMessage()
|
/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/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/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()
|