Home
last modified time | relevance | path

Searched refs:mCallbackHandler (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/core/java/com/android/server/job/
DJobServiceContext.java101 private final Handler mCallbackHandler; field in JobServiceContext
152 mCallbackHandler = new JobServiceHandler(looper); in JobServiceContext()
235 mCallbackHandler.obtainMessage(MSG_CANCEL, reason, 0 /* unused */).sendToTarget(); in cancelExecutingJob()
239 Message m = mCallbackHandler.obtainMessage(MSG_CANCEL); in preemptExecutingJob()
265 mCallbackHandler.obtainMessage(MSG_CALLBACK, jobId, reschedule ? 1 : 0) in jobFinished()
274 mCallbackHandler.obtainMessage(MSG_CALLBACK, jobId, reschedule ? 1 : 0) in acknowledgeStopMessage()
283 mCallbackHandler.obtainMessage(MSG_CALLBACK, jobId, ongoing ? 1 : 0).sendToTarget(); in acknowledgeStartMessage()
303 mCallbackHandler.obtainMessage(MSG_SHUTDOWN_EXECUTION).sendToTarget(); in onServiceConnected()
313 mCallbackHandler.obtainMessage(MSG_SERVICE_BOUND).sendToTarget(); in onServiceConnected()
319 mCallbackHandler.obtainMessage(MSG_SHUTDOWN_EXECUTION).sendToTarget(); in onServiceDisconnected()
[all …]
/frameworks/base/media/java/android/media/
DMediaSync.java186 private Handler mCallbackHandler = null; field in MediaSync
256 mCallbackHandler = handler; in setCallback()
263 mCallbackHandler = null; in setCallback()
265 mCallbackHandler = new Handler(looper); in setCallback()
444 mCallbackHandler.removeCallbacksAndMessages(null); in flush()
581 if (mCallbackHandler != null) { in postReturnByteBuffer()
583 mCallbackHandler.post(new Runnable() { in postReturnByteBuffer()
588 if (mCallbackHandler == null in postReturnByteBuffer()
589 || mCallbackHandler.getLooper().getThread() in postReturnByteBuffer()
DMediaCodec.java1582 private EventHandler mCallbackHandler; field in MediaCodec
1769 mCallbackHandler = mEventHandler; in MediaCodec()
2009 if (mCallbackHandler != null) { in stop()
2010 mCallbackHandler.removeMessages(EVENT_SET_CALLBACK); in stop()
2011 mCallbackHandler.removeMessages(EVENT_CALLBACK); in stop()
3206 EventHandler newHandler = getEventHandlerOn(handler, mCallbackHandler); in setCallback()
3210 if (newHandler != mCallbackHandler) { in setCallback()
3211 mCallbackHandler.removeMessages(EVENT_SET_CALLBACK); in setCallback()
3212 mCallbackHandler.removeMessages(EVENT_CALLBACK); in setCallback()
3213 mCallbackHandler = newHandler; in setCallback()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkControllerImpl.java126 private final CallbackHandler mCallbackHandler; field in NetworkControllerImpl
161 mCallbackHandler = callbackHandler; in NetworkControllerImpl()
184 mCallbackHandler.setMobileDataEnabled(enabled); in NetworkControllerImpl()
188 mCallbackHandler, this); in NetworkControllerImpl()
190 mEthernetSignalController = new EthernetSignalController(mContext, mCallbackHandler, this); in NetworkControllerImpl()
252 mCallbackHandler.setListening(listener, true); in addEmergencyListener()
253 mCallbackHandler.setEmergencyCallsOnly(isEmergencyOnly()); in addEmergencyListener()
257 mCallbackHandler.setListening(listener, false); in removeEmergencyListener()
322 mCallbackHandler.setEmergencyCallsOnly(mIsEmergency); in recalculateEmergency()
335 mCallbackHandler.setListening(cb, true); in addSignalCallback()
[all …]
DSignalController.java52 private final CallbackHandler mCallbackHandler; field in SignalController
65 mCallbackHandler = callbackHandler; in SignalController()
203 notifyListeners(mCallbackHandler); in notifyListeners()
/frameworks/base/core/java/android/hardware/location/
DContextHubManager.java43 private Handler mCallbackHandler; field in ContextHubManager
280 mCallbackHandler = handler; in registerCallback()
302 mCallbackHandler = null; in unregisterCallback()
327 Handler handler = mCallbackHandler == null ?
328 new Handler(mMainLooper) : mCallbackHandler;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerBaseTest.java69 protected CallbackHandler mCallbackHandler; field in NetworkControllerBaseTest
95 mCallbackHandler = mock(CallbackHandler.class); in setUp()
97 mConfig, Looper.getMainLooper(), mCallbackHandler, in setUp()
139 mConfig, Looper.getMainLooper(), mCallbackHandler, in setUpNoMobileData()
266 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setNoSims(hasNoSimsArg.capture()); in verifyHasNoSims()
277 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setMobileDataIndicators( in verifyLastQsMobileDataIndicators()
301 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setMobileDataIndicators( in verifyLastMobileDataIndicators()
DNetworkControllerWifiTest.java140 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setWifiIndicators( in verifyLastQsDataDirection()
153 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setWifiIndicators( in verifyLastQsWifiIcon()
168 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setWifiIndicators( in verifyLastWifiIcon()
DNetworkControllerSignalTest.java49 mConfig, Looper.getMainLooper(), mCallbackHandler, in testNoIconWithoutMobile()
98 mConfig, Looper.getMainLooper(), mCallbackHandler, in testNoSimlessIconWithoutMobile()
459 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setEmergencyCallsOnly( in verifyEmergencyOnly()
DNetworkControllerEthernetTest.java37 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setEthernetIndicators( in verifyLastEthernetIcon()
DNetworkControllerDataTest.java89 mConfig, Looper.getMainLooper(), mCallbackHandler, in test4gDataIcon()
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DMediaRouter.java1895 private final CallbackHandler mCallbackHandler = new CallbackHandler(); field in MediaRouter.GlobalMediaRouter
2168 mCallbackHandler.post(CallbackHandler.MSG_PROVIDER_ADDED, provider); in addProvider()
2193 mCallbackHandler.post(CallbackHandler.MSG_PROVIDER_REMOVED, provider); in removeProvider()
2256 mCallbackHandler.post(CallbackHandler.MSG_ROUTE_ADDED, route); in updateProviderContents()
2288 mCallbackHandler.post(CallbackHandler.MSG_ROUTE_ADDED, route); in updateProviderContents()
2325 mCallbackHandler.post(CallbackHandler.MSG_ROUTE_REMOVED, route); in updateProviderContents()
2332 mCallbackHandler.post(CallbackHandler.MSG_PROVIDER_CHANGED, provider); in updateProviderContents()
2344 mCallbackHandler.post( in updateRouteDescriptorAndNotify()
2351 mCallbackHandler.post( in updateRouteDescriptorAndNotify()
2359 mCallbackHandler.post(CallbackHandler. in updateRouteDescriptorAndNotify()
[all …]
/frameworks/base/services/core/java/com/android/server/
DNativeDaemonConnector.java71 private Handler mCallbackHandler; field in NativeDaemonConnector
132 mCallbackHandler = new Handler(mLooper, this); in run()
235 Message msg = mCallbackHandler.obtainMessage( in listenToSocket()
237 if (mCallbackHandler.sendMessage(msg)) { in listenToSocket()
358 mCallbackHandler.post(new Runnable() { in waitForCallbacks()
/frameworks/base/services/core/java/com/android/server/pm/
DLauncherAppsService.java107 private final Handler mCallbackHandler; field in LauncherAppsService.LauncherAppsImpl
116 mCallbackHandler = BackgroundThread.getHandler(); in LauncherAppsImpl()
189 mPackageMonitor.register(mContext, UserHandle.ALL, true, mCallbackHandler); in startWatchingPackageBroadcasts()
605 mCallbackHandler.post(r); in postToPackageMonitorHandler()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyCameraDevice.java75 private final Handler mCallbackHandler; field in LegacyCameraDevice
305 mCallbackHandler = new Handler(mCallbackHandlerThread.getLooper()); in LegacyCameraDevice()
306 mDeviceState.setCameraDeviceCallbacks(mCallbackHandler, mStateListener); in LegacyCameraDevice()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java215 private final Handler mCallbackHandler; field in AppWidgetServiceImpl
235 mCallbackHandler = new CallbackHandler(mContext.getMainLooper()); in AppWidgetServiceImpl()
1825 mCallbackHandler.obtainMessage( in scheduleNotifyAppWidgetViewDataChanged()
1897 mCallbackHandler.obtainMessage( in scheduleNotifyUpdateAppWidgetLocked()
1927 mCallbackHandler.obtainMessage( in scheduleNotifyProviderChangedLocked()
1973 mCallbackHandler.obtainMessage( in scheduleNotifyGroupHostsForProvidersChangedLocked()