/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | CommandQueueTest.java | 66 private Callbacks mCallbacks; field in CommandQueueTest 72 mCallbacks = mock(Callbacks.class); in setup() 73 mCommandQueue.addCallback(mCallbacks); in setup() 74 verify(mCallbacks).disable(anyInt(), eq(0), eq(0), eq(false)); in setup() 79 verifyNoMoreInteractions(mCallbacks); in tearDown() 88 verify(mCallbacks).setIcon(eq(slot), eq(icon)); in testIcon() 92 verify(mCallbacks).removeIcon(eq(slot)); in testIcon() 101 verify(mCallbacks).disable(eq(DEFAULT_DISPLAY), eq(state1), eq(state2), eq(true)); in testDisable() 110 verify(mCallbacks).disable(eq(SECONDARY_DISPLAY), eq(state1), eq(state2), eq(true)); in testDisableForSecondaryDisplay() 117 verify(mCallbacks).animateExpandNotificationsPanel(); in testExpandNotifications() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/listeners/ |
D | ListenerMultiplexerTest.java | 74 Callbacks mCallbacks; field in ListenerMultiplexerTest 80 mCallbacks = mock(Callbacks.class); in setUp() 81 mMultiplexer = new TestMultiplexer(mCallbacks); in setUp() 82 mInOrder = inOrder(mCallbacks); in setUp() 90 mInOrder.verify(mCallbacks).onRegister(); in testAdd() 91 mInOrder.verify(mCallbacks).onRegistrationAdded(eq(consumer), in testAdd() 93 mInOrder.verify(mCallbacks).onActive(); in testAdd() 98 mInOrder.verify(mCallbacks).onRegistrationReplaced(eq(consumer), in testAdd() 115 mInOrder.verify(mCallbacks).onRegister(); in testReplace() 116 mInOrder.verify(mCallbacks).onRegistrationAdded(eq(oldConsumer), in testReplace() [all …]
|
/frameworks/base/core/java/android/os/ |
D | RemoteCallbackList.java | 59 /*package*/ ArrayMap<IBinder, Callback> mCallbacks field in RemoteCallbackList 76 synchronized (mCallbacks) { in binderDied() 77 mCallbacks.remove(mCallback.asBinder()); in binderDied() 118 synchronized (mCallbacks) { in register() 129 mCallbacks.put(binder, cb); in register() 155 synchronized (mCallbacks) { in unregister() 156 Callback cb = mCallbacks.remove(callback.asBinder()); in unregister() 174 synchronized (mCallbacks) { in kill() 175 for (int cbi=mCallbacks.size()-1; cbi>=0; cbi--) { in kill() 176 Callback cb = mCallbacks.valueAt(cbi); in kill() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | CommandQueue.java | 185 private ArrayList<Callbacks> mCallbacks = new ArrayList<>(); field in CommandQueue 538 for (int i = mCallbacks.size() - 1; i >= 0; i--) { in CommandQueue() 539 mCallbacks.get(i).onDisplayRemoved(displayId); in CommandQueue() 557 mCallbacks.add(callbacks); in addCallback() 569 mCallbacks.remove(callbacks); in removeCallback() 1131 for (int i = 0; i < mCallbacks.size(); i++) { in handleShowImeButton() 1132 mCallbacks.get(i).setImeWindowStatus(displayId, token, vis, backDisposition, in handleShowImeButton() 1139 for (int i = 0; i < mCallbacks.size(); i++) { in sendImeInvisibleStatusForPrevNavBar() 1140 mCallbacks.get(i).setImeWindowStatus(mLastUpdatedImeDisplayId, in sendImeInvisibleStatusForPrevNavBar() 1390 for (int i = 0; i < mCallbacks.size(); i++) { in handleMessage() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | CallbackRegistry.java | 46 private List<C> mCallbacks = new ArrayList<C>(); field in CallbackRegistry 123 final int maxNotified = Math.min(Long.SIZE, mCallbacks.size()); in notifyFirst64Locked() 143 final int callbackCount = mCallbacks.size(); in notifyRecurseLocked() 176 final int endIndex = Math.min(mCallbacks.size(), startIndex + Long.SIZE); in notifyRemainderLocked() 204 mNotifier.onNotifyCallback(mCallbacks.get(i), sender, arg, arg2); in notifyCallbacksLocked() 216 int index = mCallbacks.lastIndexOf(callback); in add() 218 mCallbacks.add(callback); in add() 264 mCallbacks.remove(i); in removeRemovedCallbacks() 276 mCallbacks.remove(callback); in remove() 278 int index = mCallbacks.lastIndexOf(callback); in remove() [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | ChoreographerCallbacks.java | 53 private final RangeList<Callback> mCallbacks = new RangeList<>(); field in ChoreographerCallbacks 56 synchronized (mCallbacks) { in add() 60 while (idx < mCallbacks.size()) { in add() 61 if (mCallbacks.get(idx).mDueTime > dueTime) { in add() 67 mCallbacks.add(idx, new Callback(action, token, dueTime)); in add() 72 synchronized (mCallbacks) { in remove() 73 mCallbacks.removeIf(el -> (action == null || el.mAction == action) in remove() 81 synchronized (mCallbacks) { in execute() 83 while (idx < mCallbacks.size()) { in execute() 84 if (mCallbacks.get(idx).mDueTime > currentTimeMs) { in execute() [all …]
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
D | ClientMonitorCompositeCallback.java | 27 private final List<ClientMonitorCallback> mCallbacks; field in ClientMonitorCompositeCallback 30 mCallbacks = new ArrayList<>(); in ClientMonitorCompositeCallback() 34 mCallbacks.add(callback); in ClientMonitorCompositeCallback() 41 for (int i = 0; i < mCallbacks.size(); i++) { in onClientStarted() 42 mCallbacks.get(i).onClientStarted(clientMonitor); in onClientStarted() 48 for (int i = 0; i < mCallbacks.size(); i++) { in onBiometricAction() 49 mCallbacks.get(i).onBiometricAction(action); in onBiometricAction() 56 for (int i = mCallbacks.size() - 1; i >= 0; i--) { in onClientFinished() 57 mCallbacks.get(i).onClientFinished(clientMonitor, success); in onClientFinished()
|
/frameworks/base/core/java/android/accessibilityservice/ |
D | AccessibilityButtonController.java | 58 private ArrayMap<AccessibilityButtonCallback, Handler> mCallbacks; field in AccessibilityButtonController 114 if (mCallbacks == null) { in registerAccessibilityButtonCallback() 115 mCallbacks = new ArrayMap<>(); in registerAccessibilityButtonCallback() 118 mCallbacks.put(callback, handler); in registerAccessibilityButtonCallback() 132 if (mCallbacks == null) { in unregisterAccessibilityButtonCallback() 136 final int keyIndex = mCallbacks.indexOfKey(callback); in unregisterAccessibilityButtonCallback() 139 mCallbacks.removeAt(keyIndex); in unregisterAccessibilityButtonCallback() 151 if (mCallbacks == null || mCallbacks.isEmpty()) { in dispatchAccessibilityButtonClicked() 158 entries = new ArrayMap<>(mCallbacks); in dispatchAccessibilityButtonClicked() 175 if (mCallbacks == null || mCallbacks.isEmpty()) { in dispatchAccessibilityButtonAvailabilityChanged() [all …]
|
D | TouchInteractionController.java | 106 private ArrayMap<Callback, Executor> mCallbacks; field in TouchInteractionController 133 if (mCallbacks == null) { in registerCallback() 134 mCallbacks = new ArrayMap<>(); in registerCallback() 136 mCallbacks.put(callback, executor); in registerCallback() 137 if (mCallbacks.size() == 1) { in registerCallback() 150 if (mCallbacks == null) { in unregisterCallback() 154 boolean result = mCallbacks.remove(callback) != null; in unregisterCallback() 155 if (result && mCallbacks.size() == 0) { in unregisterCallback() 166 if (mCallbacks != null) { in unregisterAllCallbacks() 168 mCallbacks.clear(); in unregisterAllCallbacks() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | RemoteDisplayChangeController.java | 53 private final List<ContinueRemoteDisplayChangeCallback> mCallbacks = new ArrayList<>(); field in RemoteDisplayChangeController 66 return !mCallbacks.isEmpty(); in isWaitingForRemoteDisplayChange() 84 mCallbacks.add(callback); in performRemoteDisplayChange() 108 mCallbacks.remove(callback); in performRemoteDisplayChange() 117 for (int i = 0; i < mCallbacks.size(); ++i) { in onContinueTimedOut() 118 mCallbacks.get(i).onContinueRemoteDisplayChange(null /* transaction */); in onContinueTimedOut() 120 mCallbacks.clear(); in onContinueTimedOut() 140 int idx = mCallbacks.indexOf(callback); in continueDisplayChange() 148 mCallbacks.get(i).onContinueRemoteDisplayChange(null /* transaction */); in continueDisplayChange() 151 mCallbacks.subList(0, idx + 1).clear(); in continueDisplayChange() [all …]
|
D | SystemGesturesPointerEventListener.java | 76 private final Callbacks mCallbacks; field in SystemGesturesPointerEventListener 98 mCallbacks = checkNull("callbacks", callbacks); in SystemGesturesPointerEventListener() 190 mCallbacks.onMouseLeaveFromLeft(); in onPointerEvent() 194 mCallbacks.onMouseLeaveFromTop(); in onPointerEvent() 198 mCallbacks.onMouseLeaveFromRight(); in onPointerEvent() 202 mCallbacks.onMouseLeaveFromBottom(); in onPointerEvent() 204 mCallbacks.onDown(); in onPointerEvent() 212 mCallbacks.onDebug(); in onPointerEvent() 223 mCallbacks.onSwipeFromTop(); in onPointerEvent() 226 mCallbacks.onSwipeFromBottom(); in onPointerEvent() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/whitebalance/ |
D | AmbientSensor.java | 231 private Callbacks mCallbacks; field in AmbientSensor.AmbientBrightnessSensor 256 mCallbacks = null; in AmbientBrightnessSensor() 268 if (mCallbacks == callbacks) { in setCallbacks() 271 mCallbacks = callbacks; in setCallbacks() 281 writer.println(" mCallbacks=" + mCallbacks); in dump() 290 if (mCallbacks != null) { in update() 291 mCallbacks.onAmbientBrightnessChanged(value); in update() 308 private Callbacks mCallbacks; field in AmbientSensor.AmbientColorTemperatureSensor 341 mCallbacks = null; in AmbientColorTemperatureSensor() 353 if (mCallbacks == callbacks) { in setCallbacks() [all …]
|
D | DisplayWhiteBalanceSettings.java | 56 private Callbacks mCallbacks; field in DisplayWhiteBalanceSettings 76 mCallbacks = null; in DisplayWhiteBalanceSettings() 93 if (mCallbacks == callbacks) { in setCallbacks() 96 mCallbacks = callbacks; in setCallbacks() 138 writer.println(" mCallbacks=" + mCallbacks); in dump() 160 if (mCallbacks != null) { in setEnabled() 161 mCallbacks.updateWhiteBalance(); in setEnabled() 173 if (mCallbacks != null) { in setActive() 174 mCallbacks.updateWhiteBalance(); in setActive()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | AssistDataRequesterTest.java | 92 private Callbacks mCallbacks; field in AssistDataRequesterTest 115 mCallbacks = new Callbacks(); in setUp() 117 mAppOpsManager, mCallbacks, mCallbacksLock, OP_ASSIST_STRUCTURE, in setUp() 194 mCallbacks.mCanHandleReceivedData = false; in testProcessPendingData() 206 assertThat(mCallbacks.mReceivedData).isEmpty(); in testProcessPendingData() 207 assertThat(mCallbacks.mReceivedScreenshots).isEmpty(); in testProcessPendingData() 208 assertFalse(mCallbacks.mRequestCompleted); in testProcessPendingData() 210 mCallbacks.mCanHandleReceivedData = true; in testProcessPendingData() 215 assertEquals(5, mCallbacks.mReceivedData.size()); in testProcessPendingData() 216 assertEquals(1, mCallbacks.mReceivedScreenshots.size()); in testProcessPendingData() [all …]
|
/frameworks/base/services/people/java/com/android/server/people/ |
D | SessionInfo.java | 40 private final RemoteCallbackList<IPredictionCallback> mCallbacks = field in SessionInfo 50 mCallbacks.register(callback); in addCallback() 54 mCallbacks.unregister(callback); in removeCallback() 62 mCallbacks.kill(); in onDestroy() 66 int callbackCount = mCallbacks.beginBroadcast(); in updatePredictions() 69 mCallbacks.getBroadcastItem(i).onResult(new ParceledListSlice<>(targets)); in updatePredictions() 74 mCallbacks.finishBroadcast(); in updatePredictions()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/gesture/ |
D | GesturePointerEventListener.kt | 57 private var mCallbacks: Callbacks? = null in <lambda>() variable 170 mCallbacks?.onMouseLeaveFromLeft() in <lambda>() 174 mCallbacks?.onMouseLeaveFromTop() in <lambda>() 178 mCallbacks?.onMouseLeaveFromRight() in <lambda>() 182 mCallbacks?.onMouseLeaveFromBottom() in <lambda>() 184 mCallbacks?.onDown() in <lambda>() 192 mCallbacks?.onDebug() in <lambda>() 203 mCallbacks?.onSwipeFromTop() in <lambda>() 206 mCallbacks?.onSwipeFromBottom() in <lambda>() 209 mCallbacks?.onSwipeFromRight() in <lambda>() [all …]
|
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/ |
D | MediaTranscoderTests.cpp | 70 mCallbacks = std::make_shared<TestTranscoderCallbacks>(); in SetUp() 76 mCallbacks.reset(); in TearDown() 106 auto transcoder = MediaTranscoder::create(mCallbacks, heartBeatIntervalUs); in transcodeHelper() 142 mCallbacks->waitForProgressMade(); in transcodeHelper() 148 mCallbacks->waitForProgressMade(); in transcodeHelper() 154 mCallbacks->waitForProgressMade(); in transcodeHelper() 156 mCallbacks->waitForTranscodingFinished(); in transcodeHelper() 162 EXPECT_GE(mCallbacks->mHeartBeatCount, expectedCount - 1); in transcodeHelper() 167 mCallbacks->waitForTranscodingFinished(); in transcodeHelper() 174 return mCallbacks->mStatus; in transcodeHelper() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | GbaManager.java | 86 private final SparseArray<IBootstrapAuthenticationCallback> mCallbacks = new SparseArray<>(); field in GbaManager 274 synchronized (mCallbacks) { 275 cb = mCallbacks.get(token); 284 synchronized (mCallbacks) { 285 mCallbacks.remove(token); 286 if (mCallbacks.size() == 0) { 299 synchronized (mCallbacks) { 300 cb = mCallbacks.get(token); 309 synchronized (mCallbacks) { 310 mCallbacks.remove(token); [all …]
|
/frameworks/base/telephony/java/android/telephony/gba/ |
D | GbaService.java | 78 private final SparseArray<IBootstrapAuthenticationCallback> mCallbacks = new SparseArray<>(); field in GbaService 103 synchronized (mCallbacks) { in handleMessage() 104 mCallbacks.put(req.getToken(), req.getCallback()); in handleMessage() 165 synchronized (mCallbacks) { in reportKeysAvailable() 166 cb = mCallbacks.get(token); in reportKeysAvailable() 167 mCallbacks.remove(token); in reportKeysAvailable() 189 synchronized (mCallbacks) { in reportAuthenticationFailure() 190 cb = mCallbacks.get(token); in reportAuthenticationFailure() 191 mCallbacks.remove(token); in reportAuthenticationFailure()
|
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/util/ |
D | BaseDataProducer.java | 40 private final Set<Consumer<T>> mCallbacks = new LinkedHashSet<>(); field in BaseDataProducer 53 mCallbacks.add(callback); in addDataChangedCallback() 69 mCallbacks.remove(callback); in removeDataChangedCallback() 81 return !mCallbacks.isEmpty(); in hasListeners() 100 for (Consumer<T> callback : mCallbacks) { in notifyDataChanged() 114 mCallbacks.remove(callback); in removeFinishedCallbacksLocked()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/touch/scrim/ |
D | BouncerlessScrimController.java | 62 mExecutor.execute(() -> mCallbacks.add(listener)); in addCallback() 67 mExecutor.execute(() -> mCallbacks.remove(listener)); in removeCallback() 70 private final HashSet<Callback> mCallbacks; field in BouncerlessScrimController 78 mCallbacks = new HashSet<>(); in BouncerlessScrimController() 86 mExecutor.execute(() -> mCallbacks.forEach(callback -> callback.onWakeup())); in expand() 88 mExecutor.execute(() -> mCallbacks.forEach(callback -> callback.onExpansion(event))); in expand()
|
/frameworks/base/core/java/android/window/ |
D | ProxyOnBackInvokedDispatcher.java | 51 private final List<Pair<OnBackInvokedCallback, Integer>> mCallbacks = new ArrayList<>(); field in ProxyOnBackInvokedDispatcher 86 mCallbacks.removeIf((p) -> p.first.equals(callback)); in unregisterOnBackInvokedCallback() 96 mCallbacks.add(Pair.create(callback, priority)); in registerOnBackInvokedCallbackUnchecked() 118 Log.v(TAG, String.format("Proxy transferring %d callbacks to %s", mCallbacks.size(), in transferCallbacksToDispatcher() 124 for (Pair<OnBackInvokedCallback, Integer> callbackPair : mCallbacks) { in transferCallbacksToDispatcher() 132 mCallbacks.clear(); in transferCallbacksToDispatcher() 140 for (Pair<OnBackInvokedCallback, Integer> callback : mCallbacks) { in clearCallbacksOnDispatcher() 158 mCallbacks.clear(); in reset()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | HotspotControllerImpl.java | 57 private final ArrayList<Callback> mCallbacks = new ArrayList<>(); field in HotspotControllerImpl 164 synchronized (mCallbacks) { in addCallback() 165 if (callback == null || mCallbacks.contains(callback)) return; in addCallback() 167 mCallbacks.add(callback); in addCallback() 169 if (mCallbacks.size() == 1) { in addCallback() 186 synchronized (mCallbacks) { in removeCallback() 187 mCallbacks.remove(callback); in removeCallback() 188 if (mCallbacks.isEmpty() && mWifiManager != null) { in removeCallback() 241 synchronized (mCallbacks) { in fireHotspotChangedCallback() 242 list = new ArrayList<>(mCallbacks); in fireHotspotChangedCallback() [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | BaseSurfaceHolder.java | 34 public final ArrayList<SurfaceHolder.Callback> mCallbacks field in BaseSurfaceHolder 75 synchronized (mCallbacks) { in addCallback() 78 if (mCallbacks.contains(callback) == false) { in addCallback() 79 mCallbacks.add(callback); in addCallback() 85 synchronized (mCallbacks) { in removeCallback() 86 mCallbacks.remove(callback); in removeCallback() 95 synchronized (mCallbacks) { in getCallbacks() 96 final int N = mCallbacks.size(); in getCallbacks() 101 mCallbacks.toArray(mGottenCallbacks); in getCallbacks()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ManagedProfileControllerImpl.java | 39 private final List<Callback> mCallbacks = new ArrayList<>(); field in ManagedProfileControllerImpl 62 mCallbacks.add(callback); in addCallback() 63 if (mCallbacks.size() == 1) { in addCallback() 71 if (mCallbacks.remove(callback) && mCallbacks.size() == 0) { in removeCallback() 107 for (Callback callback : mCallbacks) { in notifyManagedProfileRemoved() 151 for (Callback callback : mCallbacks) { in onUserChanged() 159 for (Callback callback : mCallbacks) { in onProfilesChanged()
|