/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | CommandQueueTest.java | 43 private Callbacks mCallbacks; field in CommandQueueTest 49 mCallbacks = mock(Callbacks.class); in setup() 50 mCommandQueue.addCallback(mCallbacks); in setup() 51 verify(mCallbacks).disable(anyInt(), eq(0), eq(0), eq(false)); in setup() 56 verifyNoMoreInteractions(mCallbacks); in tearDown() 65 verify(mCallbacks).setIcon(eq(slot), eq(icon)); in testIcon() 69 verify(mCallbacks).removeIcon(eq(slot)); in testIcon() 78 verify(mCallbacks).disable(eq(DEFAULT_DISPLAY), eq(state1), eq(state2), eq(true)); in testDisable() 87 verify(mCallbacks).disable(eq(SECONDARY_DISPLAY), eq(state1), eq(state2), eq(true)); in testDisableForSecondaryDisplay() 94 verify(mCallbacks).animateExpandNotificationsPanel(); in testExpandNotifications() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | MediaManager.java | 33 protected final Collection<MediaDeviceCallback> mCallbacks = new ArrayList<>(); field in MediaManager 45 synchronized (mCallbacks) { in registerCallback() 46 if (!mCallbacks.contains(callback)) { in registerCallback() 47 mCallbacks.add(callback); in registerCallback() 53 synchronized (mCallbacks) { in unregisterCallback() 54 if (mCallbacks.contains(callback)) { in unregisterCallback() 55 mCallbacks.remove(callback); in unregisterCallback() 81 synchronized (mCallbacks) { in dispatchDeviceAdded() 82 for (MediaDeviceCallback callback : mCallbacks) { in dispatchDeviceAdded() 89 synchronized (mCallbacks) { in dispatchDeviceRemoved() [all …]
|
D | LocalMediaManager.java | 55 private final Collection<DeviceCallback> mCallbacks = new ArrayList<>(); field in LocalMediaManager 74 synchronized (mCallbacks) { in registerCallback() 75 mCallbacks.add(callback); in registerCallback() 83 synchronized (mCallbacks) { in unregisterCallback() 84 mCallbacks.remove(callback); in unregisterCallback() 146 synchronized (mCallbacks) { in dispatchSelectedDeviceStateChanged() 147 for (DeviceCallback callback : mCallbacks) { in dispatchSelectedDeviceStateChanged() 180 synchronized (mCallbacks) { in dispatchDeviceListUpdate() 182 for (DeviceCallback callback : mCallbacks) { in dispatchDeviceListUpdate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | CommandQueue.java | 130 private ArrayList<Callbacks> mCallbacks = new ArrayList<>(); field in CommandQueue 314 for (int i = mCallbacks.size() - 1; i >= 0; i--) { in onDisplayRemoved() 315 mCallbacks.get(i).onDisplayRemoved(displayId); in onDisplayRemoved() 332 mCallbacks.add(callbacks); in addCallback() 343 mCallbacks.remove(callbacks); in removeCallback() 814 for (int i = 0; i < mCallbacks.size(); i++) { in handleShowImeButton() 815 mCallbacks.get(i).setImeWindowStatus(displayId, token, vis, backDisposition, in handleShowImeButton() 822 for (int i = 0; i < mCallbacks.size(); i++) { in sendImeInvisibleStatusForPrevNavBar() 823 mCallbacks.get(i).setImeWindowStatus(mLastUpdatedImeDisplayId, in sendImeInvisibleStatusForPrevNavBar() 841 for (int i = 0; i < mCallbacks.size(); i++) { in handleMessage() [all …]
|
/frameworks/base/core/java/android/os/ |
D | RemoteCallbackList.java | 58 /*package*/ ArrayMap<IBinder, Callback> mCallbacks field in RemoteCallbackList 75 synchronized (mCallbacks) { in binderDied() 76 mCallbacks.remove(mCallback.asBinder()); in binderDied() 117 synchronized (mCallbacks) { in register() 128 mCallbacks.put(binder, cb); in register() 154 synchronized (mCallbacks) { in unregister() 155 Callback cb = mCallbacks.remove(callback.asBinder()); in unregister() 173 synchronized (mCallbacks) { in kill() 174 for (int cbi=mCallbacks.size()-1; cbi>=0; cbi--) { in kill() 175 Callback cb = mCallbacks.valueAt(cbi); in kill() [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/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 …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | ExternalCallbackTracker.java | 113 private final Map<Integer, ExternalCallbackHolder<T>> mCallbacks; field in ExternalCallbackTracker 118 mCallbacks = new HashMap<>(); in ExternalCallbackTracker() 134 if (mCallbacks.containsKey(callbackIdentifier) && remove(callbackIdentifier)) { in add() 137 mCallbacks.put(callbackIdentifier, externalCallback); in add() 138 if (mCallbacks.size() > NUM_CALLBACKS_WTF_LIMIT) { in add() 139 Log.wtf(TAG, "Too many callbacks: " + mCallbacks.size()); in add() 140 } else if (mCallbacks.size() > NUM_CALLBACKS_WARN_LIMIT) { in add() 141 Log.w(TAG, "Too many callbacks: " + mCallbacks.size()); in add() 151 ExternalCallbackHolder<T> externalCallback = mCallbacks.remove(callbackIdentifier); in remove() 165 for (ExternalCallbackHolder<T> externalCallback : mCallbacks.values()) { in getCallbacks() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/whitebalance/ |
D | AmbientSensor.java | 230 private Callbacks mCallbacks; field in AmbientSensor.AmbientBrightnessSensor 255 mCallbacks = null; in AmbientBrightnessSensor() 267 if (mCallbacks == callbacks) { in setCallbacks() 270 mCallbacks = callbacks; in setCallbacks() 280 writer.println(" mCallbacks=" + mCallbacks); in dump() 289 if (mCallbacks != null) { in update() 290 mCallbacks.onAmbientBrightnessChanged(value); in update() 307 private Callbacks mCallbacks; field in AmbientSensor.AmbientColorTemperatureSensor 340 mCallbacks = null; in AmbientColorTemperatureSensor() 352 if (mCallbacks == callbacks) { in setCallbacks() [all …]
|
D | DisplayWhiteBalanceSettings.java | 55 private Callbacks mCallbacks; field in DisplayWhiteBalanceSettings 75 mCallbacks = null; in DisplayWhiteBalanceSettings() 92 if (mCallbacks == callbacks) { in setCallbacks() 95 mCallbacks = callbacks; in setCallbacks() 137 writer.println(" mCallbacks=" + mCallbacks); in dump() 159 if (mCallbacks != null) { in setEnabled() 160 mCallbacks.updateWhiteBalance(); in setEnabled() 172 if (mCallbacks != null) { in setActive() 173 mCallbacks.updateWhiteBalance(); in setActive()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | AssistDataRequesterTest.java | 90 private Callbacks mCallbacks; field in AssistDataRequesterTest 113 mCallbacks = new Callbacks(); in setUp() 114 mDataRequester = new AssistDataRequester(mContext, mWm, mAppOpsManager, mCallbacks, in setUp() 189 mCallbacks.mCanHandleReceivedData = false; in testProcessPendingData() 200 assertThat(mCallbacks.mReceivedData).isEmpty(); in testProcessPendingData() 201 assertThat(mCallbacks.mReceivedScreenshots).isEmpty(); in testProcessPendingData() 202 assertFalse(mCallbacks.mRequestCompleted); in testProcessPendingData() 204 mCallbacks.mCanHandleReceivedData = true; in testProcessPendingData() 209 assertEquals(5, mCallbacks.mReceivedData.size()); in testProcessPendingData() 210 assertEquals(1, mCallbacks.mReceivedScreenshots.size()); in testProcessPendingData() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardUpdateMonitor.java | 239 mCallbacks = Lists.newArrayList(); field in KeyguardUpdateMonitor 435 for (int i = 0; i < mCallbacks.size(); i++) { in onTrustChanged() 436 KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get(); in onTrustChanged() 478 for (int j = 0; j < mCallbacks.size(); j++) { in handleSimSubscriptionInfoChanged() 479 KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get(); in handleSimSubscriptionInfoChanged() 485 for (int j = 0; j < mCallbacks.size(); j++) { in handleSimSubscriptionInfoChanged() 486 KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get(); in handleSimSubscriptionInfoChanged() 494 for (int j = 0; j < mCallbacks.size(); j++) { in handleAirplaneModeChanged() 495 KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get(); in handleAirplaneModeChanged() 559 for (int i = 0; i < mCallbacks.size(); i++) { in onTrustManagedChanged() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | OsuNetworkConnection.java | 51 private Callbacks mCallbacks; field in OsuNetworkConnection 110 if (mCallbacks != null) mCallbacks.onWifiDisabled(); in init() 114 if (mCallbacks != null) mCallbacks.onWifiEnabled(); in init() 153 mCallbacks = callbacks; in setEventCallback() 266 if (mCallbacks != null) { in onLinkPropertiesChanged() 267 mCallbacks.onConnected(network); in onLinkPropertiesChanged() 277 if (mCallbacks != null) { in onUnavailable() 278 mCallbacks.onTimeOut(); in onUnavailable() 291 if (mCallbacks != null) { in onLost() 292 mCallbacks.onDisconnected(); in onLost()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
D | CurrentUserTracker.java | 67 private List<Consumer<Integer>> mCallbacks = new ArrayList<>(); field in CurrentUserTracker.UserReceiver 93 if (!mCallbacks.contains(callback)) { in addTracker() 94 mCallbacks.add(callback); in addTracker() 105 if (mCallbacks.contains(callback)) { in removeTracker() 106 mCallbacks.remove(callback); in removeTracker() 107 if (mCallbacks.size() == 0 && mReceiverRegistered) { in removeTracker() 117 List<Consumer<Integer>> callbacks = new ArrayList<>(mCallbacks); in notifyUserSwitched() 120 if (mCallbacks.contains(consumer)) { in notifyUserSwitched()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | HotspotControllerImpl.java | 49 private final ArrayList<Callback> mCallbacks = new ArrayList<>(); field in HotspotControllerImpl 107 synchronized (mCallbacks) { in addCallback() 108 if (callback == null || mCallbacks.contains(callback)) return; in addCallback() 110 mCallbacks.add(callback); in addCallback() 112 if (mCallbacks.size() == 1) { in addCallback() 132 synchronized (mCallbacks) { in removeCallback() 133 mCallbacks.remove(callback); in removeCallback() 134 if (mCallbacks.isEmpty() && mWifiManager != null) { in removeCallback() 184 synchronized (mCallbacks) { in fireHotspotChangedCallback() 185 for (Callback callback : mCallbacks) { in fireHotspotChangedCallback()
|
D | KeyguardMonitorImpl.java | 37 private final ArrayList<Callback> mCallbacks = new ArrayList<>(); field in KeyguardMonitorImpl 65 mCallbacks.add(callback); in addCallback() 66 if (mCallbacks.size() != 0 && !mListening) { in addCallback() 75 if (mCallbacks.remove(callback) && mCallbacks.size() == 0 && mListening) { in removeCallback() 115 new ArrayList<>(mCallbacks).forEach(Callback::onKeyguardShowingChanged); in notifyKeyguardChanged() 128 ArrayList<Callback> callbacks = new ArrayList<>(mCallbacks); in setKeyguardFadingAway()
|
D | AccessPointControllerImpl.java | 48 private final ArrayList<AccessPointCallback> mCallbacks = new ArrayList<AccessPointCallback>(); field in AccessPointControllerImpl 78 if (callback == null || mCallbacks.contains(callback)) return; in addAccessPointCallback() 80 mCallbacks.add(callback); in addAccessPointCallback() 81 if (mCallbacks.size() == 1) { in addAccessPointCallback() 90 mCallbacks.remove(callback); in removeAccessPointCallback() 91 if (mCallbacks.isEmpty()) { in removeAccessPointCallback() 129 for (AccessPointCallback callback : mCallbacks) { in fireSettingsIntentCallback() 135 for (AccessPointCallback callback : mCallbacks) { in fireAcccessPointsCallback()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SystemGesturesPointerEventListener.java | 57 private final Callbacks mCallbacks; field in SystemGesturesPointerEventListener 76 mCallbacks = checkNull("callbacks", callbacks); in SystemGesturesPointerEventListener() 137 mCallbacks.onMouseLeaveFromEdge(); in onPointerEvent() 139 mCallbacks.onDown(); in onPointerEvent() 147 mCallbacks.onDebug(); in onPointerEvent() 157 mCallbacks.onSwipeFromTop(); in onPointerEvent() 160 mCallbacks.onSwipeFromBottom(); in onPointerEvent() 163 mCallbacks.onSwipeFromRight(); in onPointerEvent() 166 mCallbacks.onSwipeFromLeft(); in onPointerEvent() 173 mCallbacks.onMouseHoverAtTop(); in onPointerEvent() [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 57 mCallbacks.add(callback); in addCallback() 58 if (mCallbacks.size() == 1) { in addCallback() 65 if (mCallbacks.remove(callback) && mCallbacks.size() == 0) { in removeCallback() 94 for (Callback callback : mCallbacks) { in reloadManagedProfiles() 142 for (Callback callback : mCallbacks) {
|
/frameworks/base/libs/hwui/ |
D | WebViewFunctorManager.cpp | 65 mCallbacks = callbacks; in WebViewFunctor() 73 mCallbacks.onDestroyed(mFunctor, mData); in ~WebViewFunctor() 78 mCallbacks.onSync(mFunctor, mData, syncData); in sync() 86 mCallbacks.gles.draw(mFunctor, mData, drawInfo); in drawGl() 96 mCallbacks.vk.initialize(mFunctor, mData, params); in initVk() 101 mCallbacks.vk.draw(mFunctor, mData, params); in drawVk() 106 mCallbacks.vk.postDraw(mFunctor, mData); in postDrawVk() 113 mCallbacks.onContextDestroyed(mFunctor, mData); in destroyContext()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AssistDataRequester.java | 60 private AssistDataRequesterCallbacks mCallbacks; field in AssistDataRequester 132 mCallbacks = callbacks; in AssistDataRequester() 238 if (mCallbacks.canHandleReceivedAssistDataLocked()) { in requestData() 252 if (mCallbacks.canHandleReceivedAssistDataLocked()) { in requestData() 272 if (mCallbacks.canHandleReceivedAssistDataLocked()) { in requestData() 335 if (mCallbacks.canHandleReceivedAssistDataLocked()) { in onHandleAssistData() 355 if (mCallbacks.canHandleReceivedAssistDataLocked()) { in onHandleAssistScreenshot() 376 mCallbacks.onAssistDataReceivedLocked(data, activityIndex, activityCount); in dispatchAssistDataReceived() 380 mCallbacks.onAssistScreenshotReceivedLocked(screenshot); in dispatchAssistScreenshotReceived() 386 mCallbacks.onAssistRequestCompleted(); in tryDispatchRequestComplete()
|
/frameworks/base/telephony/java/android/telephony/ims/stub/ |
D | ImsRegistrationImplBase.java | 98 private final RemoteCallbackListExt<IImsRegistrationCallback> mCallbacks = field in ImsRegistrationImplBase 122 mCallbacks.register(c); in addRegistrationCallback() 127 mCallbacks.unregister(c); in removeRegistrationCallback() 138 mCallbacks.broadcastAction((c) -> { in onRegistered() 156 mCallbacks.broadcastAction((c) -> { in onRegistering() 186 mCallbacks.broadcastAction((c) -> { in onDeregistered() 206 mCallbacks.broadcastAction((c) -> { in onTechnologyChangeFailed() 228 mCallbacks.broadcastAction((c) -> onSubscriberAssociatedUriChanged(c, uris)); in onSubscriberAssociatedUriChanged()
|
/frameworks/base/core/java/android/printservice/recommendation/ |
D | RecommendationService.java | 53 private IRecommendationServiceCallbacks mCallbacks; field in RecommendationService 114 mCallbacks = (IRecommendationServiceCallbacks) msg.obj; 119 mCallbacks = null; 122 if (mCallbacks != null) { 128 mCallbacks.onRecommendationsUpdated((List<RecommendationInfo>) msg.obj);
|
/frameworks/base/native/android/ |
D | choreographer.cpp | 80 std::priority_queue<FrameCallback> mCallbacks; member in android::Choreographer 117 mCallbacks.push(callback); in postFrameCallbackDelayed() 135 if (mCallbacks.top().dueTime <= now) { in scheduleCallbacks() 150 while (!mCallbacks.empty() && mCallbacks.top().dueTime < now) { in dispatchVsync() 151 callbacks.push_back(mCallbacks.top()); in dispatchVsync() 152 mCallbacks.pop(); in dispatchVsync()
|