Home
last modified time | relevance | path

Searched refs:mCallbackHandler (Results 1 – 17 of 17) 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.java1594 private EventHandler mCallbackHandler; field in MediaCodec
1781 mCallbackHandler = mEventHandler; in MediaCodec()
2063 if (mCallbackHandler != null) { in stop()
2064 mCallbackHandler.removeMessages(EVENT_SET_CALLBACK); in stop()
2065 mCallbackHandler.removeMessages(EVENT_CALLBACK); in stop()
3277 EventHandler newHandler = getEventHandlerOn(handler, mCallbackHandler); in setCallback()
3281 if (newHandler != mCallbackHandler) { in setCallback()
3282 mCallbackHandler.removeMessages(EVENT_SET_CALLBACK); in setCallback()
3283 mCallbackHandler.removeMessages(EVENT_CALLBACK); in setCallback()
3284 mCallbackHandler = newHandler; in setCallback()
[all …]
/frameworks/base/core/java/android/hardware/location/
DContextHubManager.java47 private Handler mCallbackHandler; field in ContextHubManager
304 mCallbackHandler = handler; in registerCallback()
327 mCallbackHandler = null; in unregisterCallback()
353 Handler handler = mCallbackHandler == null ?
354 new Handler(mMainLooper) : mCallbackHandler;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkControllerImpl.java137 private final CallbackHandler mCallbackHandler; field in NetworkControllerImpl
182 mCallbackHandler = callbackHandler; in NetworkControllerImpl()
206 mCallbackHandler.setMobileDataEnabled(enabled); in NetworkControllerImpl()
210 mCallbackHandler, this, mNetworkScoreManager); in NetworkControllerImpl()
212 mEthernetSignalController = new EthernetSignalController(mContext, mCallbackHandler, this); in NetworkControllerImpl()
290 mCallbackHandler.setListening(listener, true); in addEmergencyListener()
291 mCallbackHandler.setEmergencyCallsOnly(isEmergencyOnly()); in addEmergencyListener()
295 mCallbackHandler.setListening(listener, false); in removeEmergencyListener()
369 mCallbackHandler.setEmergencyCallsOnly(mIsEmergency); in recalculateEmergency()
383 mCallbackHandler.setListening(cb, true); in addCallback()
[all …]
DSignalController.java52 private final CallbackHandler mCallbackHandler; field in SignalController
65 mCallbackHandler = callbackHandler; in SignalController()
203 notifyListeners(mCallbackHandler); in notifyListeners()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerBaseTest.java85 protected CallbackHandler mCallbackHandler; field in NetworkControllerBaseTest
127 mCallbackHandler = mock(CallbackHandler.class); in setUp()
140 mConfig, Looper.getMainLooper(), mCallbackHandler, in setUp()
181 mMockWm, mMockSm, mConfig, mContext.getMainLooper(), mCallbackHandler, in setUpNoMobileData()
299 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setNoSims(hasNoSimsArg.capture()); in verifyHasNoSims()
310 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setMobileDataIndicators( in verifyLastQsMobileDataIndicators()
343 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setMobileDataIndicators( in verifyLastMobileDataIndicators()
367 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setMobileDataIndicators( in verifyLastMobileDataIndicators()
DNetworkControllerWifiTest.java121 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setWifiIndicators( in testBadgedWifiIcon()
267 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setWifiIndicators( in verifyLastQsDataDirection()
279 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setWifiIndicators( in verifyLastQsWifiIcon()
292 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setWifiIndicators( in verifyLastWifiIcon()
DNetworkControllerEthernetTest.java44 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setEthernetIndicators( in verifyLastEthernetIcon()
DNetworkControllerSignalTest.java59 mConfig, Looper.getMainLooper(), mCallbackHandler, in testNoIconWithoutMobile()
122 mConfig, Looper.getMainLooper(), mCallbackHandler, in testNoSimlessIconWithoutMobile()
574 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setEmergencyCallsOnly( in verifyEmergencyOnly()
DNetworkControllerDataTest.java96 mConfig, Looper.getMainLooper(), mCallbackHandler, in test4gDataIcon()
/frameworks/base/services/core/java/com/android/server/job/
DJobServiceContext.java91 private final Handler mCallbackHandler; field in JobServiceContext
179 mCallbackHandler = new JobServiceHandler(looper); in JobServiceContext()
768 Message m = mCallbackHandler.obtainMessage(MSG_TIMEOUT, mRunningCallback); in scheduleOpTimeOutLocked()
769 mCallbackHandler.sendMessageDelayed(m, timeoutMillis); in scheduleOpTimeOutLocked()
775 mCallbackHandler.removeMessages(MSG_TIMEOUT); in removeOpTimeOutLocked()
/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/support/v7/mediarouter/src/android/support/v7/media/
DMediaRouter.java1934 final CallbackHandler mCallbackHandler = new CallbackHandler(); field in MediaRouter.GlobalMediaRouter
2211 mCallbackHandler.post(CallbackHandler.MSG_PROVIDER_ADDED, provider); in addProvider()
2236 mCallbackHandler.post(CallbackHandler.MSG_PROVIDER_REMOVED, provider); in removeProvider()
2299 mCallbackHandler.post(CallbackHandler.MSG_ROUTE_ADDED, route); in updateProviderContents()
2331 mCallbackHandler.post(CallbackHandler.MSG_ROUTE_ADDED, route); in updateProviderContents()
2368 mCallbackHandler.post(CallbackHandler.MSG_ROUTE_REMOVED, route); in updateProviderContents()
2375 mCallbackHandler.post(CallbackHandler.MSG_PROVIDER_CHANGED, provider); in updateProviderContents()
2387 mCallbackHandler.post( in updateRouteDescriptorAndNotify()
2394 mCallbackHandler.post( in updateRouteDescriptorAndNotify()
2402 mCallbackHandler.post(CallbackHandler. in updateRouteDescriptorAndNotify()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DLauncherAppsService.java112 private final Handler mCallbackHandler; field in LauncherAppsService.LauncherAppsImpl
122 mCallbackHandler = BackgroundThread.getHandler(); in LauncherAppsImpl()
195 mPackageMonitor.register(mContext, UserHandle.ALL, true, mCallbackHandler); in startWatchingPackageBroadcasts()
722 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/support/media-compat/java/android/support/v4/media/session/
DMediaSessionCompat.java869 private CallbackHandler mCallbackHandler = null; field in MediaSessionCompat.Callback
886 if (mCallbackHandler != null) { in setSessionImpl()
887 mCallbackHandler.removeCallbacksAndMessages(null); in setSessionImpl()
889 mCallbackHandler = new CallbackHandler(handler.getLooper()); in setSessionImpl()
915 if (impl == null || mCallbackHandler == null) { in onMediaButtonEvent()
927 mCallbackHandler.removeMessages( in onMediaButtonEvent()
932 } else if (mCallbackHandler.hasMessages( in onMediaButtonEvent()
934 mCallbackHandler.removeMessages( in onMediaButtonEvent()
945 mCallbackHandler.sendEmptyMessageDelayed( in onMediaButtonEvent()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java227 private Handler mCallbackHandler; field in AppWidgetServiceImpl
250 mCallbackHandler = new CallbackHandler(mContext.getMainLooper()); in onStart()
1933 mCallbackHandler.obtainMessage( in scheduleNotifyAppWidgetViewDataChanged()
2006 mCallbackHandler.obtainMessage( in scheduleNotifyUpdateAppWidgetLocked()
2043 mCallbackHandler.obtainMessage( in scheduleNotifyProviderChangedLocked()
2090 mCallbackHandler.obtainMessage( in scheduleNotifyGroupHostsForProvidersChangedLocked()