Home
last modified time | relevance | path

Searched refs:mCallbacks (Results 1 – 25 of 165) sorted by relevance

1234567

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DCommandQueueTest.java54 private Callbacks mCallbacks; field in CommandQueueTest
60 mCallbacks = mock(Callbacks.class); in setup()
61 mCommandQueue.addCallback(mCallbacks); in setup()
62 verify(mCallbacks).disable(anyInt(), eq(0), eq(0), eq(false)); in setup()
67 verifyNoMoreInteractions(mCallbacks); in tearDown()
76 verify(mCallbacks).setIcon(eq(slot), eq(icon)); in testIcon()
80 verify(mCallbacks).removeIcon(eq(slot)); in testIcon()
89 verify(mCallbacks).disable(eq(DEFAULT_DISPLAY), eq(state1), eq(state2), eq(true)); in testDisable()
98 verify(mCallbacks).disable(eq(SECONDARY_DISPLAY), eq(state1), eq(state2), eq(true)); in testDisableForSecondaryDisplay()
105 verify(mCallbacks).animateExpandNotificationsPanel(); in testExpandNotifications()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/listeners/
DListenerMultiplexerTest.java72 Callbacks mCallbacks; field in ListenerMultiplexerTest
78 mCallbacks = mock(Callbacks.class); in setUp()
79 mMultiplexer = new TestMultiplexer(mCallbacks); in setUp()
80 mInOrder = inOrder(mCallbacks); in setUp()
88 mInOrder.verify(mCallbacks).onRegister(); in testAdd()
89 mInOrder.verify(mCallbacks).onRegistrationAdded(eq(consumer), in testAdd()
91 mInOrder.verify(mCallbacks).onActive(); in testAdd()
96 mInOrder.verify(mCallbacks).onRegistrationRemoved(eq(consumer), in testAdd()
98 mInOrder.verify(mCallbacks).onRegistrationReplaced(eq(consumer), in testAdd()
113 mInOrder.verify(mCallbacks).onRegister(); in testReplace()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DCommandQueue.java161 private ArrayList<Callbacks> mCallbacks = new ArrayList<>(); field in CommandQueue
427 for (int i = mCallbacks.size() - 1; i >= 0; i--) { in onDisplayRemoved()
428 mCallbacks.get(i).onDisplayRemoved(displayId); in onDisplayRemoved()
446 mCallbacks.add(callbacks); in addCallback()
458 mCallbacks.remove(callbacks); in removeCallback()
981 for (int i = 0; i < mCallbacks.size(); i++) { in handleShowImeButton()
982 mCallbacks.get(i).setImeWindowStatus(displayId, token, vis, backDisposition, in handleShowImeButton()
989 for (int i = 0; i < mCallbacks.size(); i++) { in sendImeInvisibleStatusForPrevNavBar()
990 mCallbacks.get(i).setImeWindowStatus(mLastUpdatedImeDisplayId, in sendImeInvisibleStatusForPrevNavBar()
1118 for (int i = 0; i < mCallbacks.size(); i++) { in handleMessage()
[all …]
/frameworks/base/core/java/android/os/
DRemoteCallbackList.java59 /*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/core/java/com/android/internal/util/
DCallbackRegistry.java46 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/
DAccessibilityButtonController.java58 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/base/services/core/java/com/android/server/display/whitebalance/
DAmbientSensor.java231 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 …]
DDisplayWhiteBalanceSettings.java56 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/
DAssistDataRequesterTest.java92 private Callbacks mCallbacks; field in AssistDataRequesterTest
115 mCallbacks = new Callbacks(); in setUp()
117 mAppOpsManager, mCallbacks, mCallbacksLock, OP_ASSIST_STRUCTURE, in setUp()
192 mCallbacks.mCanHandleReceivedData = false; in testProcessPendingData()
203 assertThat(mCallbacks.mReceivedData).isEmpty(); in testProcessPendingData()
204 assertThat(mCallbacks.mReceivedScreenshots).isEmpty(); in testProcessPendingData()
205 assertFalse(mCallbacks.mRequestCompleted); in testProcessPendingData()
207 mCallbacks.mCanHandleReceivedData = true; in testProcessPendingData()
212 assertEquals(5, mCallbacks.mReceivedData.size()); in testProcessPendingData()
213 assertEquals(1, mCallbacks.mReceivedScreenshots.size()); in testProcessPendingData()
[all …]
/frameworks/av/media/libmediatranscoding/transcoder/tests/
DMediaTranscoderTests.cpp70 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/base/services/people/java/com/android/server/people/
DSessionInfo.java40 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/opt/telephony/src/java/com/android/internal/telephony/
DGbaManager.java83 private final SparseArray<IBootstrapAuthenticationCallback> mCallbacks = new SparseArray<>(); field in GbaManager
264 synchronized (mCallbacks) {
265 cb = mCallbacks.get(token);
273 synchronized (mCallbacks) {
274 mCallbacks.remove(token);
275 if (mCallbacks.size() == 0) {
288 synchronized (mCallbacks) {
289 cb = mCallbacks.get(token);
297 synchronized (mCallbacks) {
298 mCallbacks.remove(token);
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DCurrentUserTracker.java69 private List<Consumer<Integer>> mCallbacks = new ArrayList<>(); field in CurrentUserTracker.UserReceiver
95 if (!mCallbacks.contains(callback)) { in addTracker()
96 mCallbacks.add(callback); in addTracker()
108 if (mCallbacks.contains(callback)) { in removeTracker()
109 mCallbacks.remove(callback); in removeTracker()
110 if (mCallbacks.size() == 0 && mReceiverRegistered) { in removeTracker()
120 List<Consumer<Integer>> callbacks = new ArrayList<>(mCallbacks); in notifyUserSwitched()
123 if (mCallbacks.contains(consumer)) { in notifyUserSwitched()
/frameworks/base/telephony/java/android/telephony/gba/
DGbaService.java78 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/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DHotspotControllerImpl.java56 private final ArrayList<Callback> mCallbacks = new ArrayList<>(); field in HotspotControllerImpl
149 synchronized (mCallbacks) { in addCallback()
150 if (callback == null || mCallbacks.contains(callback)) return; in addCallback()
152 mCallbacks.add(callback); in addCallback()
154 if (mCallbacks.size() == 1) { in addCallback()
171 synchronized (mCallbacks) { in removeCallback()
172 mCallbacks.remove(callback); in removeCallback()
173 if (mCallbacks.isEmpty() && mWifiManager != null) { in removeCallback()
226 synchronized (mCallbacks) { in fireHotspotChangedCallback()
227 list = new ArrayList<>(mCallbacks); in fireHotspotChangedCallback()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DBaseSurfaceHolder.java34 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/keyguard/
DKeyguardUpdateMonitor.java258 for (int i = 0; i < mCallbacks.size(); i++) {
259 KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get();
301 mCallbacks = Lists.newArrayList(); field in KeyguardUpdateMonitor
441 for (int i = 0; i < mCallbacks.size(); i++) { in onTrustChanged()
442 KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get(); in onTrustChanged()
498 for (int j = 0; j < mCallbacks.size(); j++) { in handleSimSubscriptionInfoChanged()
499 KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get(); in handleSimSubscriptionInfoChanged()
509 for (int j = 0; j < mCallbacks.size(); j++) { in handleSimSubscriptionInfoChanged()
510 KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get(); in handleSimSubscriptionInfoChanged()
525 for (int i = 0; i < mCallbacks.size(); i++) { in callbacksRefreshCarrierInfo()
[all …]
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/util/
DBaseDataProducer.java31 private final Set<Runnable> mCallbacks = new LinkedHashSet<>(); field in BaseDataProducer
35 mCallbacks.add(callback); in addDataChangedCallback()
40 mCallbacks.remove(callback); in removeDataChangedCallback()
48 for (Runnable callback : mCallbacks) { in notifyDataChanged()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/splitscreen/
DStageTaskListenerTests.java56 @Mock private StageTaskListener.StageListenerCallbacks mCallbacks; field in StageTaskListenerTests
69 mCallbacks, in setup()
90 verify(mCallbacks).onRootTaskAppeared(); in testRootTaskAppeared()
91 verify(mCallbacks).onStatusChanged(eq(mRootTask.isVisible), eq(false)); in testRootTaskAppeared()
102 verify(mCallbacks).onStatusChanged(eq(mRootTask.isVisible), eq(true)); in testChildTaskAppeared()
119 verify(mCallbacks, times(2)).onStatusChanged(eq(mRootTask.isVisible), eq(false)); in testTaskVanished()
122 verify(mCallbacks).onRootTaskVanished(); in testTaskVanished()
132 verify(mCallbacks).onNoLongerSupportMultiWindow(); in testTaskInfoChanged_notSupportsMultiWindow()
/frameworks/base/services/core/java/com/android/server/wm/
DSystemGesturesPointerEventListener.java59 private final Callbacks mCallbacks; field in SystemGesturesPointerEventListener
79 mCallbacks = checkNull("callbacks", callbacks); in SystemGesturesPointerEventListener()
157 mCallbacks.onMouseLeaveFromEdge(); in onPointerEvent()
159 mCallbacks.onDown(); in onPointerEvent()
167 mCallbacks.onDebug(); in onPointerEvent()
177 mCallbacks.onSwipeFromTop(); in onPointerEvent()
180 mCallbacks.onSwipeFromBottom(); in onPointerEvent()
183 mCallbacks.onSwipeFromRight(); in onPointerEvent()
186 mCallbacks.onSwipeFromLeft(); in onPointerEvent()
193 mCallbacks.onMouseHoverAtTop(); in onPointerEvent()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DMediaManager.java34 protected final Collection<MediaDeviceCallback> mCallbacks = new CopyOnWriteArrayList<>(); field in MediaManager
46 if (!mCallbacks.contains(callback)) { in registerCallback()
47 mCallbacks.add(callback); in registerCallback()
52 if (mCallbacks.contains(callback)) { in unregisterCallback()
53 mCallbacks.remove(callback); in unregisterCallback()
120 return new CopyOnWriteArrayList<>(mCallbacks); in getCallbacks()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DManagedProfileControllerImpl.java43 private final List<Callback> mCallbacks = new ArrayList<>(); field in ManagedProfileControllerImpl
64 mCallbacks.add(callback); in addCallback()
65 if (mCallbacks.size() == 1) { in addCallback()
73 if (mCallbacks.remove(callback) && mCallbacks.size() == 0) { in removeCallback()
102 for (Callback callback : mCallbacks) { in reloadManagedProfiles()
151 for (Callback callback : mCallbacks) {
/frameworks/base/core/java/android/widget/
DToast.java133 private final List<Callback> mCallbacks; field in Toast
169 mCallbacks = new ArrayList<>(); in Toast()
171 mCallbacks, looper); in Toast()
212 new CallbackBinder(mCallbacks, mHandler); in show()
438 synchronized (mCallbacks) { in addCallback()
439 mCallbacks.add(callback); in addCallback()
447 synchronized (mCallbacks) { in removeCallback()
448 mCallbacks.remove(callback); in removeCallback()
606 private final List<Callback> mCallbacks; field in Toast.TN
623 mCallbacks = callbacks; in TN()
[all …]
/frameworks/base/core/java/android/printservice/recommendation/
DRecommendationService.java53 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/services/core/java/com/android/server/am/
DAssistDataRequester.java61 private AssistDataRequesterCallbacks mCallbacks; field in AssistDataRequester
133 mCallbacks = callbacks; in AssistDataRequester()
270 if (mCallbacks.canHandleReceivedAssistDataLocked()) { in requestData()
284 if (mCallbacks.canHandleReceivedAssistDataLocked()) { in requestData()
304 if (mCallbacks.canHandleReceivedAssistDataLocked()) { in requestData()
367 if (mCallbacks.canHandleReceivedAssistDataLocked()) { in onHandleAssistData()
387 if (mCallbacks.canHandleReceivedAssistDataLocked()) { in onHandleAssistScreenshot()
408 mCallbacks.onAssistDataReceivedLocked(data, activityIndex, activityCount); in dispatchAssistDataReceived()
412 mCallbacks.onAssistScreenshotReceivedLocked(screenshot); in dispatchAssistScreenshotReceived()
418 mCallbacks.onAssistRequestCompleted(); in tryDispatchRequestComplete()

1234567