Home
last modified time | relevance | path

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

123

/packages/apps/Car/Hvac/src/com/android/car/hvac/
DHvacController.java113 private List<Callback> mCallbacks = new ArrayList<>(); field in HvacController
147 synchronized (mCallbacks) { in registerCallback()
148 mCallbacks.add(callback); in registerCallback()
153 synchronized (mCallbacks) { in unregisterCallback()
154 mCallbacks.remove(callback); in unregisterCallback()
251 synchronized (mCallbacks) { in handleHvacPowerOn()
252 for (int i = 0; i < mCallbacks.size(); i++) { in handleHvacPowerOn()
253 mCallbacks.get(i).onHvacPowerChange(isOn); in handleHvacPowerOn()
266 synchronized (mCallbacks) { in handleSeatWarmerUpdate()
267 for (int i = 0; i < mCallbacks.size(); i++) { in handleSeatWarmerUpdate()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskAnimationManager.java49 private RecentsAnimationCallbacks mCallbacks; field in TaskAnimationManager
109 if (mCallbacks != null) { in startRecentsAnimation()
118 mCallbacks = new RecentsAnimationCallbacks(activityInterface.allowMinimizeSplitScreen()); in startRecentsAnimation()
119 mCallbacks.addListener(new RecentsAnimationCallbacks.RecentsAnimationListener() { in startRecentsAnimation()
123 if (mCallbacks == null) { in startRecentsAnimation()
174 mCallbacks.addListener(gestureState); in startRecentsAnimation()
175 mCallbacks.addListener(listener); in startRecentsAnimation()
178 RemoteTransitionCompat transition = new RemoteTransitionCompat(mCallbacks, in startRecentsAnimation()
185 .startRecentsActivity(intent, eventTime, mCallbacks, null, null)); in startRecentsAnimation()
188 return mCallbacks; in startRecentsAnimation()
[all …]
DMultiStateCallback.java40 private final SparseArray<LinkedList<Runnable>> mCallbacks = new SparseArray<>(); field in MultiStateCallback
76 int count = mCallbacks.size(); in setState()
78 int state = mCallbacks.keyAt(i); in setState()
81 LinkedList<Runnable> callbacks = mCallbacks.valueAt(i); in setState()
131 if (mCallbacks.indexOfKey(stateMask) >= 0) { in runOnceAtState()
132 callbacks = mCallbacks.get(stateMask); in runOnceAtState()
138 mCallbacks.put(stateMask, callbacks); in runOnceAtState()
DTaskThumbnailCache.java48 private ArrayList<HighResLoadingStateChangedCallback> mCallbacks = new ArrayList<>(); field in TaskThumbnailCache.HighResLoadingState
61 mCallbacks.add(callback); in addCallback()
65 mCallbacks.remove(callback); in removeCallback()
86 for (int i = mCallbacks.size() - 1; i >= 0; i--) { in updateState()
87 mCallbacks.get(i).onHighResLoadingStateChanged(mHighResLoadingEnabled); in updateState()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DOsuNetworkConnection.java52 private Callbacks mCallbacks; field in OsuNetworkConnection
111 if (mCallbacks != null) mCallbacks.onWifiDisabled(); in init()
115 if (mCallbacks != null) mCallbacks.onWifiEnabled(); in init()
154 mCallbacks = callbacks; in setEventCallback()
269 if (mCallbacks != null) { in onLinkPropertiesChanged()
270 mCallbacks.onConnected(network); in onLinkPropertiesChanged()
280 if (mCallbacks != null) { in onUnavailable()
281 mCallbacks.onTimeOut(); in onUnavailable()
294 if (mCallbacks != null) { in onLost()
295 mCallbacks.onDisconnected(); in onLost()
DPasspointEventHandler.java38 private final Callbacks mCallbacks; field in PasspointEventHandler
71 mCallbacks = callbacks; in PasspointEventHandler()
124 mCallbacks.onANQPResponse(anqpEvent.getBssid(), anqpEvent.getElements()); in notifyANQPDone()
135 mCallbacks.onIconResponse( in notifyIconDone()
145 mCallbacks.onWnmFrameReceived(data); in notifyWnmFrameReceived()
/packages/services/Telecomm/src/com/android/server/telecom/
DServiceBinder.java76 synchronized (mCallbacks) { in bind()
77 if (!mCallbacks.isEmpty()) { in bind()
79 mCallbacks.add(callback); in bind()
82 mCallbacks.add(callback); in bind()
222 private final Set<BindCallback> mCallbacks = new ArraySet<>(); field in ServiceBinder
366 synchronized (mCallbacks) { in handleSuccessfulConnection()
367 callbacksCopy.addAll(mCallbacks); in handleSuccessfulConnection()
368 mCallbacks.clear(); in handleSuccessfulConnection()
383 synchronized (mCallbacks) { in handleFailedConnection()
384 callbacksCopy.addAll(mCallbacks); in handleFailedConnection()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientContentTest.java102 private MapClientContent.Callbacks mCallbacks; field in MapClientContentTest
151 mMapClientContent = new MapClientContent(mMockContext, mCallbacks, mTestDevice); in testCreateMapClientContent()
162 mMapClientContent = new MapClientContent(mMockContext, mCallbacks, mTestDevice); in testCleanDirtyDatabase()
167 mMapClientContent = new MapClientContent(mMockContext, mCallbacks, mTestDevice); in testCleanDirtyDatabase()
176 mMapClientContent = new MapClientContent(mMockContext, mCallbacks, mTestDevice); in testStoreTwoSMS()
196 mMapClientContent = new MapClientContent(mMockContext, mCallbacks, mTestDevice); in testStoreTwoMMS()
214 mMapClientContent = new MapClientContent(mMockContext, mCallbacks, mTestDevice); in testStoreOneSMSOneMMS()
232 mMapClientContent = new MapClientContent(mMockContext, mCallbacks, mTestDevice); in testReadStatusChanged()
256 mMapClientContent = new MapClientContent(mMockContext, mCallbacks, mTestDevice); in testLocalReadStatusChanged()
260 verify(mCallbacks).onMessageStatusChanged(eq(mTestMessage1Handle), in testLocalReadStatusChanged()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/
DCarVendorExtensionManager.java53 private final ArraySet<CarVendorExtensionCallback> mCallbacks = new ArraySet<>(); field in CarVendorExtensionManager
62 callbacks = new ArrayList<>(mCallbacks); in handleOnChangeEvent()
72 listeners = new ArrayList<>(mCallbacks); in handleOnErrorEvent()
110 if (mCallbacks.isEmpty()) { in registerCallback()
118 mCallbacks.add(callback); in registerCallback()
125 mCallbacks.remove(callback); in unregisterCallback()
131 if (mCallbacks.isEmpty()) { in unregisterCallback()
210 mCallbacks.clear(); in onCarDisconnected()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DCachingWidgetPreviewLoader.java138 if (updated.mCallbacks.isEmpty()) { in loadPreview()
180 ((CacheResult.Loading) prev).mCallbacks in loadPreview()
244 @NonNull final Set<WidgetPreviewLoadedCallback> mCallbacks; field in CachingWidgetPreviewLoader.CacheResult.Loading
249 mCallbacks = callbacks; in Loading()
254 if (mCallbacks.contains(callback)) return this; in withCallback()
256 new ArraySet<>(mCallbacks.size() + 1); in withCallback()
257 newCallbacks.addAll(mCallbacks); in withCallback()
264 if (!mCallbacks.contains(callback)) return this; in withoutCallback()
266 new ArraySet<>(mCallbacks.size() - 1); in withoutCallback()
267 for (WidgetPreviewLoadedCallback existingCallback : mCallbacks) { in withoutCallback()
/packages/services/Car/car-lib/src/android/car/cluster/
DClusterHomeManager.java107 private final CopyOnWriteArrayList<CallbackRecord> mCallbacks = new CopyOnWriteArrayList<>(); field in ClusterHomeManager
126 if (!mCallbacks.addIfAbsent(callbackRecord)) { in registerClusterHomeCallback()
129 if (mCallbacks.size() == 1) { in registerClusterHomeCallback()
144 if (!mCallbacks.remove(new CallbackRecord(/* executor= */ null, callback))) { in unregisterClusterHomeCallback()
147 if (mCallbacks.isEmpty()) { in unregisterClusterHomeCallback()
167 for (CallbackRecord cb : manager.mCallbacks) { in onClusterStateChanged()
178 for (CallbackRecord cb : manager.mCallbacks) { in onNavigationStateChanged()
270 mCallbacks.clear(); in onCarDisconnected()
/packages/services/Car/car-lib/src/android/car/hardware/hvac/
DCarHvacManager.java58 private final ArraySet<CarHvacEventCallback> mCallbacks = new ArraySet<>(); field in CarHvacManager
284 callbacks = new ArraySet<>(mCallbacks); in handleOnChangeEvent()
296 callbacks = new ArraySet<>(mCallbacks); in handleOnErrorEvent()
325 if (mCallbacks.isEmpty()) { in registerCallback()
333 mCallbacks.add(callback); in registerCallback()
344 mCallbacks.remove(callback); in unregisterCallback()
355 if (mCallbacks.isEmpty()) { in unregisterCallback()
447 mCallbacks.clear(); in onCarDisconnected()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DProvisioningManagerHelper.java43 private List<ProvisioningManagerCallback> mCallbacks = new ArrayList<>(); field in ProvisioningManagerHelper
67 mCallbacks.add(callback); in registerListener()
74 mCallbacks.remove(callback); in unregisterListener()
80 for (ProvisioningManagerCallback callback : mCallbacks) { in error()
120 for (ProvisioningManagerCallback callback : mCallbacks) { in notifyPreFinalizationCompleted()
155 return mCallbacks.contains(callback); in isCallbackStillRequired()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DFakeTvInputManager.java34 private final Map<TvInputManager.TvInputCallback, Handler> mCallbacks = new HashMap<>(); field in FakeTvInputManager
43 for (final Map.Entry<TvInputManager.TvInputCallback, Handler> e : mCallbacks.entrySet()) { in add()
60 for (final Map.Entry<TvInputManager.TvInputCallback, Handler> e : mCallbacks.entrySet()) { in setInputState()
75 for (final Map.Entry<TvInputManager.TvInputCallback, Handler> e : mCallbacks.entrySet()) { in remove()
99 mCallbacks.put(internalCallback, handler); in registerCallback()
104 mCallbacks.remove(internalCallback); in unregisterCallback()
/packages/apps/Car/Dialer/framework/fake/src/com/android/car/dialer/framework/
DMockCallManager.java73 private Map<Call, List<Call.Callback>> mCallbacks = new HashMap<>(); field in MockCallManager
137 List<Call.Callback> callbacks = mCallbacks.get(call); in hold()
151 List<Call.Callback> callbacks = mCallbacks.get(call); in unhold()
176 mCallbacks.remove(child); in disconnect()
190 List<Call.Callback> callbacks = mCallbacks.get(call); in disconnect()
196 mCallbacks.remove(call); in disconnect()
257 List<Call.Callback> callbacks = mCallbacks.get(mPrimaryCall); in mergeCalls()
264 List<Call.Callback> callbacks = mCallbacks.get(mSecondaryCall); in mergeCalls()
287 List<Call.Callback> callbacks = mCallbacks.get(call); in answerCall()
354 List<Call.Callback> callbacks = mCallbacks.get(call); in registerCallback()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DViewAutoScroller.java34 private ScrollerCallbacks mCallbacks; field in ViewAutoScroller
41 mCallbacks = callbacks; in ViewAutoScroller()
81 mCallbacks.scrollBy(numPixels); in run()
84 mCallbacks.removeCallback(this); in run()
85 mCallbacks.runAtNextFrame(this); in run()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpLeaseRepositoryTest.java103 private IDhcpEventCallbacks mCallbacks; field in DhcpLeaseRepositoryTest
117 reset(mCallbacks, mClock); in initDhcpLeaseRepositoryWithOption()
121 when(mCallbacks.asBinder()).thenReturn(mCallbacksBinder); in initDhcpLeaseRepositoryWithOption()
124 mRepo.addLeaseCallbacks(mCallbacks); in initDhcpLeaseRepositoryWithOption()
125 verify(mCallbacks, atLeastOnce()).asBinder(); in initDhcpLeaseRepositoryWithOption()
160 verify(mCallbacks, times(11)).onLeasesChanged(any()); in testAddressExhaustion()
169 verifyNoMoreInteractions(mCallbacks); in testAddressExhaustion()
206 verifyNoMoreInteractions(mCallbacks); in testUpdateParams_LeaseCleanup()
291 verify(mCallbacks, never()).onLeasesChanged(any()); in testGetOffer_RequestedAddress()
380 verifyNoMoreInteractions(mCallbacks); in testRequestLease_SelectingTwice()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/cabin/
DCarCabinManager.java65 private final ArraySet<CarCabinEventCallback> mCallbacks = new ArraySet<>(); field in CarCabinManager
446 callbacks = new ArraySet<>(mCallbacks); in handleOnChangeEvent()
456 listeners = new ArraySet<>(mCallbacks); in handleOnErrorEvent()
503 mCallbacks.add(callback); in registerCallback()
514 mCallbacks.remove(callback); in unregisterCallback()
520 if (mCallbacks.isEmpty()) { in unregisterCallback()
604 mCallbacks.clear(); in onCarDisconnected()
/packages/services/Car/tools/keventreader/server/
Deventprovider.cpp31 for (auto&& cb : mCallbacks) { in startLoop()
44 mCallbacks.push_back(cb); in registerCallback()
50 std::remove(mCallbacks.begin(), mCallbacks.end(), cb); in unregisterCallback()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java243 private INetworkMonitorCallbacks mCallbacks = spy( field in NetworkMonitorTest
593 reset(mCallbacks); in resetCallbacks()
595 doReturn(interfaceVersion).when(mCallbacks).getInterfaceVersion(); in resetCallbacks()
615 super(mContext, mCallbacks, mNetwork, mLogger, mValidationLogger, mServiceManager, in WrappedNetworkMonitor()
1091 verify(mCallbacks, never()).showProvisioningNotification(any(), any()); in testIsCaptivePortal_Http200EmptyResponse()
1100 verify(mCallbacks, timeout(HANDLER_TIMEOUT_MS)).showProvisioningNotification(any(), any()); in doCaptivePortal200ResponseTest()
1251 verify(mCallbacks, never()).notifyCaptivePortalDataChanged(any());
1275 verify(mCallbacks).notifyCaptivePortalDataChanged(capportDataCaptor.capture());
1301 verify(mCallbacks).notifyCaptivePortalDataChanged(capportCaptor.capture());
1347 verify(mCallbacks).notifyCaptivePortalDataChanged(capportCaptor.capture());
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DActivityTracker.java34 private CopyOnWriteArrayList<SchedulerCallback<T>> mCallbacks = new CopyOnWriteArrayList<>(); field in ActivityTracker
58 mCallbacks.add(callback); in registerCallback()
70 mCallbacks.remove(callback); in unregisterCallback()
84 for (SchedulerCallback<T> cb : mCallbacks) { in handleIntent()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DKeyInputHandler.java38 private final Callbacks<DocumentItemDetails> mCallbacks; field in KeyInputHandler
47 mCallbacks = callbacks; in KeyInputHandler()
73 if (mCallbacks.onFocusItem(details, keyCode, event)) { in onKey()
95 return mCallbacks.onItemActivated(details, event); in onKey()
/packages/apps/Settings/src/com/android/settings/utils/
DSensorPrivacyManagerHelper.java48 private final ArraySet<CallbackInfo> mCallbacks = new ArraySet<>(); field in SensorPrivacyManagerHelper
205 mCallbacks.add(new CallbackInfo(callback, executor, sensor, CallbackInfo.CURRENT_USER)); in addSensorBlockedListener()
218 mCallbacks.add(new CallbackInfo(callback, executor, sensor, userId)); in addSensorBlockedListener()
228 mCallbacks.removeIf(callbackInfo -> callbackInfo.mCallback == callback); in removeBlockedListener()
264 for (CallbackInfo callbackInfo : mCallbacks) { in dispatchStateChangedLocked()
/packages/apps/Car/Media/src/com/android/car/media/
DBrowseViewController.java65 private final Callbacks mCallbacks; field in BrowseViewController
90 mCallbacks.onPlayableItemClicked(item);
95 mCallbacks.onBrowsableItemClicked(item);
126 return mCallbacks.getActivity(); in getActivity()
161 mCallbacks = callbacks; in BrowseViewController()
256 mCallbacks.getActivity().getLifecycle().removeObserver(mUxrContentLimiter); in destroy()
358 mCallbacks.onChildrenNodesRemoved(this, removedNodes); in onItemsUpdate()
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/views/
DGoOverviewActionsView.java71 if (mCallbacks == null) { in onClick()
76 mCallbacks.onListen(); in onClick()
78 mCallbacks.onTranslate(); in onClick()
80 mCallbacks.onSearch(); in onClick()

123