Home
last modified time | relevance | path

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

/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.java1584 private EventHandler mCallbackHandler; field in MediaCodec
1771 mCallbackHandler = mEventHandler; in MediaCodec()
2011 if (mCallbackHandler != null) { in stop()
2012 mCallbackHandler.removeMessages(EVENT_SET_CALLBACK); in stop()
2013 mCallbackHandler.removeMessages(EVENT_CALLBACK); in stop()
3208 EventHandler newHandler = getEventHandlerOn(handler, mCallbackHandler); in setCallback()
3212 if (newHandler != mCallbackHandler) { in setCallback()
3213 mCallbackHandler.removeMessages(EVENT_SET_CALLBACK); in setCallback()
3214 mCallbackHandler.removeMessages(EVENT_CALLBACK); in setCallback()
3215 mCallbackHandler = newHandler; in setCallback()
[all …]
/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()
244 mCallbackHandler.obtainMessage(MSG_CANCEL, reason, 0 /* unused */).sendToTarget(); in cancelExecutingJob()
248 Message m = mCallbackHandler.obtainMessage(MSG_CANCEL); in preemptExecutingJob()
274 mCallbackHandler.obtainMessage(MSG_CALLBACK, jobId, reschedule ? 1 : 0) in jobFinished()
283 mCallbackHandler.obtainMessage(MSG_CALLBACK, jobId, reschedule ? 1 : 0) in acknowledgeStopMessage()
292 mCallbackHandler.obtainMessage(MSG_CALLBACK, jobId, ongoing ? 1 : 0).sendToTarget(); in acknowledgeStartMessage()
312 mCallbackHandler.obtainMessage(MSG_SHUTDOWN_EXECUTION).sendToTarget(); in onServiceConnected()
336 mCallbackHandler.obtainMessage(MSG_SERVICE_BOUND).sendToTarget(); in onServiceConnected()
342 mCallbackHandler.obtainMessage(MSG_SHUTDOWN_EXECUTION).sendToTarget(); in onServiceDisconnected()
[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
322 mCallbackHandler = handler; in registerCallback()
344 mCallbackHandler = null; in unregisterCallback()
369 Handler handler = mCallbackHandler == null ?
370 new Handler(mMainLooper) : mCallbackHandler;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerBaseTest.java76 protected CallbackHandler mCallbackHandler; field in NetworkControllerBaseTest
102 mCallbackHandler = mock(CallbackHandler.class); in setUp()
104 mConfig, Looper.getMainLooper(), mCallbackHandler, in setUp()
146 mConfig, Looper.getMainLooper(), mCallbackHandler, in setUpNoMobileData()
273 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setNoSims(hasNoSimsArg.capture()); in verifyHasNoSims()
284 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setMobileDataIndicators( in verifyLastQsMobileDataIndicators()
310 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setMobileDataIndicators( in verifyLastMobileDataIndicators()
332 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setMobileDataIndicators( in verifyLastMobileDataIndicators()
DNetworkControllerWifiTest.java141 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setWifiIndicators( in verifyLastQsDataDirection()
154 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setWifiIndicators( in verifyLastQsWifiIcon()
169 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setWifiIndicators( in verifyLastWifiIcon()
DNetworkControllerEthernetTest.java37 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setEthernetIndicators( in verifyLastEthernetIcon()
DNetworkControllerSignalTest.java49 mConfig, Looper.getMainLooper(), mCallbackHandler, in testNoIconWithoutMobile()
98 mConfig, Looper.getMainLooper(), mCallbackHandler, in testNoSimlessIconWithoutMobile()
458 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setEmergencyCallsOnly( in verifyEmergencyOnly()
DNetworkControllerDataTest.java77 mConfig, Looper.getMainLooper(), mCallbackHandler, in test4gDataIcon()
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DMediaRouter.java1900 final CallbackHandler mCallbackHandler = new CallbackHandler(); field in MediaRouter.GlobalMediaRouter
2173 mCallbackHandler.post(CallbackHandler.MSG_PROVIDER_ADDED, provider); in addProvider()
2198 mCallbackHandler.post(CallbackHandler.MSG_PROVIDER_REMOVED, provider); in removeProvider()
2261 mCallbackHandler.post(CallbackHandler.MSG_ROUTE_ADDED, route); in updateProviderContents()
2293 mCallbackHandler.post(CallbackHandler.MSG_ROUTE_ADDED, route); in updateProviderContents()
2330 mCallbackHandler.post(CallbackHandler.MSG_ROUTE_REMOVED, route); in updateProviderContents()
2337 mCallbackHandler.post(CallbackHandler.MSG_PROVIDER_CHANGED, provider); in updateProviderContents()
2349 mCallbackHandler.post( in updateRouteDescriptorAndNotify()
2356 mCallbackHandler.post( in updateRouteDescriptorAndNotify()
2364 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.java109 private final Handler mCallbackHandler; field in LauncherAppsService.LauncherAppsImpl
120 mCallbackHandler = BackgroundThread.getHandler(); in LauncherAppsImpl()
193 mPackageMonitor.register(mContext, UserHandle.ALL, true, mCallbackHandler); in startWatchingPackageBroadcasts()
623 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.java221 private final Handler mCallbackHandler; field in AppWidgetServiceImpl
241 mCallbackHandler = new CallbackHandler(mContext.getMainLooper()); in AppWidgetServiceImpl()
1844 mCallbackHandler.obtainMessage( in scheduleNotifyAppWidgetViewDataChanged()
1917 mCallbackHandler.obtainMessage( in scheduleNotifyUpdateAppWidgetLocked()
1954 mCallbackHandler.obtainMessage( in scheduleNotifyProviderChangedLocked()
2001 mCallbackHandler.obtainMessage( in scheduleNotifyGroupHostsForProvidersChangedLocked()