Home
last modified time | relevance | path

Searched refs:mMainHandler (Results 1 – 12 of 12) sorted by relevance

/frameworks/support/app-toolkit/runtime/src/main/java/android/arch/core/executor/
DDefaultTaskExecutor.java36 private volatile Handler mMainHandler; field in DefaultTaskExecutor
45 if (mMainHandler == null) { in postToMainThread()
47 if (mMainHandler == null) { in postToMainThread()
48 mMainHandler = new Handler(Looper.getMainLooper()); in postToMainThread()
53 mMainHandler.post(runnable); in postToMainThread()
/frameworks/base/tests/testables/src/android/testing/
DTestableInstrumentation.java76 private final Handler mMainHandler; field in TestableInstrumentation.MainLooperManager
80 mMainHandler = new Handler(Looper.getMainLooper()); in MainLooperManager()
152 mStopMessage = mMainHandler.obtainMessage(); in startManaging()
160 mMainHandler.post(this); in startManaging()
161 while (!mManager.hasMessages(mMainHandler, null, this)); in startManaging()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java132 final MainHandler mMainHandler = new MainHandler(Looper.getMainLooper()); field in ApplicationsState
437 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in addPackage()
438 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in addPackage()
478 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in removePackage()
479 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in removePackage()
503 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in addUser()
504 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in addUser()
519 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in removeUser()
520 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in removeUser()
726 if (!mMainHandler.hasMessages(MainHandler.MSG_REBUILD_COMPLETE, this)) { in handleRebuildList()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/plugins/
DPluginInstanceManagerTest.java118 waitForIdleSync(mPluginInstanceManager.mMainHandler); in testNoPlugins()
140 waitForIdleSync(mPluginInstanceManager.mMainHandler); in testPluginDestroy()
157 waitForIdleSync(mPluginInstanceManager.mMainHandler); in testIncorrectVersion()
172 waitForIdleSync(mPluginInstanceManager.mMainHandler); in testReloadOnChange()
195 waitForIdleSync(mPluginInstanceManager.mMainHandler);; in testNonDebuggable()
259 waitForIdleSync(mPluginInstanceManager.mMainHandler); in createPlugin()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiTracker.java100 @VisibleForTesting final MainHandler mMainHandler; field in WifiTracker
195 mMainHandler = new MainHandler(currentLooper); in WifiTracker()
258 mMainHandler.removeMessages(MainHandler.MSG_ACCESS_POINT_CHANGED); in forceUpdate()
259 mMainHandler.handleMessage( in forceUpdate()
260 Message.obtain(mMainHandler, MainHandler.MSG_ACCESS_POINT_CHANGED)); in forceUpdate()
376 mMainHandler.removePendingMessages(); in stopTracking()
642 mMainHandler.sendEmptyMessage(MainHandler.MSG_ACCESS_POINT_CHANGED); in updateAccessPointsLocked()
719 if (updated) mMainHandler.sendEmptyMessage(MainHandler.MSG_ACCESS_POINT_CHANGED); in updateNetworkInfo()
727 if (!mMainHandler.hasMessages(MainHandler.MSG_ACCESS_POINT_CHANGED)) { in clearAccessPointsAndConditionallyUpdate()
728 mMainHandler.sendEmptyMessage(MainHandler.MSG_ACCESS_POINT_CHANGED); in clearAccessPointsAndConditionallyUpdate()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/
DPluginInstanceManager.java60 final MainHandler mMainHandler; field in PluginInstanceManager
77 mMainHandler = new MainHandler(Looper.getMainLooper()); in PluginInstanceManager()
95 mMainHandler.removeMessages(MainHandler.PLUGIN_CONNECTED); in getPlugin()
113 mMainHandler.obtainMessage(MainHandler.PLUGIN_DISCONNECTED, in destroy()
243 mMainHandler.obtainMessage(MainHandler.PLUGIN_DISCONNECTED, in handleMessage()
283 mMainHandler.obtainMessage(mMainHandler.PLUGIN_CONNECTED, t).sendToTarget(); in handleQueryPlugins()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServices.java60 private final Handler mMainHandler; field in TileServices
71 mMainHandler = new Handler(Looper.getMainLooper()); in TileServices()
105 mMainHandler.post(() -> mHost.getIconController().removeIcon(slot)); in freeService()
247 mMainHandler.post(new Runnable() { in updateStatusIcon()
/frameworks/support/emoji/core/src/android/support/text/emoji/
DEmojiCompat.java169 private final Handler mMainHandler; field in EmojiCompat
207 mMainHandler = new Handler(Looper.getMainLooper()); in EmojiCompat()
313 mMainHandler.post(new ListenerDispatcher(initCallbacks, mLoadState));
326 mMainHandler.post(new ListenerDispatcher(initCallbacks, mLoadState, throwable));
348 mMainHandler.post(new ListenerDispatcher(initCallback, mLoadState));
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java377 tracker.mMainHandler.post(() -> { in waitForHandlersToProcessCurrentlyEnqueuedMessages()
783 tracker.mMainHandler.post(() -> { in stopTrackingShouldRemoveWifiListenerCallbacks()
793 tracker.mMainHandler.sendEmptyMessage( in stopTrackingShouldRemoveWifiListenerCallbacks()
795 tracker.mMainHandler.sendEmptyMessage( in stopTrackingShouldRemoveWifiListenerCallbacks()
797 tracker.mMainHandler.sendEmptyMessage( in stopTrackingShouldRemoveWifiListenerCallbacks()
809 assertThat(tracker.mMainHandler.hasMessages( in stopTrackingShouldRemoveWifiListenerCallbacks()
811 assertThat(tracker.mMainHandler.hasMessages( in stopTrackingShouldRemoveWifiListenerCallbacks()
813 assertThat(tracker.mMainHandler.hasMessages( in stopTrackingShouldRemoveWifiListenerCallbacks()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSSecurityFooter.java62 private final Handler mMainHandler; field in QSSecurityFooter
84 mMainHandler = new Handler(Looper.getMainLooper()); in QSSecurityFooter()
161 mMainHandler.post(mUpdateIcon); in handleRefreshState()
163 mMainHandler.post(mUpdateDisplayState); in handleRefreshState()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java209 private final MainHandler mMainHandler; field in AccessibilityManagerService
273 mMainHandler = new MainHandler(mContext.getMainLooper()); in AccessibilityManagerService()
275 new AccessibilityContentObserver(mMainHandler).register( in AccessibilityManagerService()
524 mMainHandler.obtainMessage( in sendAccessibilityEvent()
1048 mMainHandler.obtainMessage(MainHandler.MSG_SEND_CLEARED_STATE_TO_CLIENTS_FOR_USER, in switchUser()
1073 mMainHandler.sendEmptyMessageDelayed(MainHandler.MSG_ANNOUNCE_NEW_USER_IF_NEEDED, in switchUser()
1182 mMainHandler.obtainMessage( in notifyAccessibilityButtonClickedLocked()
1197 mMainHandler.obtainMessage( in notifyAccessibilityButtonClickedLocked()
1201 mMainHandler.obtainMessage( in notifyAccessibilityButtonClickedLocked()
1215 mMainHandler.obtainMessage( in notifyAccessibilityButtonClickedLocked()
[all …]
/frameworks/base/core/java/android/accounts/
DAccountManager.java336 private final Handler mMainHandler; field in AccountManager
410 mMainHandler = new Handler(mContext.getMainLooper()); in AccountManager()
419 mMainHandler = handler; in AccountManager()
2175 handler = handler == null ? mMainHandler : handler;
2190 handler = (handler == null) ? mMainHandler : handler;
2376 Handler handler = (mHandler == null) ? mMainHandler : mHandler;