/frameworks/support/app-toolkit/runtime/src/main/java/android/arch/core/executor/ |
D | DefaultTaskExecutor.java | 36 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/ |
D | TestableInstrumentation.java | 76 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/ |
D | ApplicationsState.java | 132 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/ |
D | PluginInstanceManagerTest.java | 118 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/ |
D | WifiTracker.java | 100 @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/ |
D | PluginInstanceManager.java | 60 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/ |
D | TileServices.java | 60 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/ |
D | EmojiCompat.java | 169 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/ |
D | WifiTrackerTest.java | 377 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/ |
D | QSSecurityFooter.java | 62 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/ |
D | AccessibilityManagerService.java | 209 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/ |
D | AccountManager.java | 336 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;
|