/frameworks/base/core/tests/coretests/src/android/widget/ |
D | RemoteViewsAdapterTest.java | 72 private Handler mMainHandler; field in RemoteViewsAdapterTest 81 mMainHandler = new Handler(Looper.getMainLooper()); in setup() 95 waitOnHandler(mMainHandler); in onRemoteAdapterConnected_after_metadata_loaded() 100 waitOnHandler(mMainHandler); in onRemoteAdapterConnected_after_metadata_loaded() 119 waitOnHandler(mMainHandler); in viewReplaced_after_mainView_loaded() 130 waitOnHandler(mMainHandler); in viewReplaced_after_mainView_loaded() 153 waitOnHandler(mMainHandler); in notifyDataSetChanged_deferred() 166 waitOnHandler(mMainHandler); in notifyDataSetChanged_deferred() 173 waitOnHandler(mMainHandler); in notifyDataSetChanged_deferred() 193 waitOnHandler(mMainHandler); in serviceDisconnected_before_getView() [all …]
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableInstrumentation.java | 81 private final Handler mMainHandler; field in TestableInstrumentation.MainLooperManager 85 mMainHandler = Handler.createAsync(Looper.getMainLooper()); in MainLooperManager() 157 mStopMessage = mMainHandler.obtainMessage(); in startManaging() 165 mMainHandler.post(this); in startManaging() 166 while (!mManager.hasMessages(mMainHandler, null, this)); in startManaging()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/carrier/ |
D | QSCarrierGroupController.java | 58 private final H mMainHandler; field in QSCarrierGroupController 91 mMainHandler.obtainMessage(H.MSG_UPDATE_STATE).sendToTarget(); 101 mMainHandler.obtainMessage(H.MSG_UPDATE_STATE).sendToTarget(); 140 mMainHandler = new H(mainLooper, this::handleUpdateCarrierInfo, this::handleUpdateState); in QSCarrierGroupController() 141 mCallback = new Callback(mMainHandler); in QSCarrierGroupController() 198 if (!mMainHandler.getLooper().isCurrentThread()) { in handleUpdateState() 199 mMainHandler.obtainMessage(H.MSG_UPDATE_STATE).sendToTarget(); in handleUpdateState() 219 if (!mMainHandler.getLooper().isCurrentThread()) { in handleUpdateCarrierInfo() 220 mMainHandler.obtainMessage(H.MSG_UPDATE_CARRIER_INFO, info).sendToTarget(); in handleUpdateCarrierInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationListener.java | 51 private final Handler mMainHandler; field in NotificationListener 64 mMainHandler = mainHandler; in NotificationListener() 90 mMainHandler.post(() -> { in onListenerConnected() 120 mMainHandler.post(() -> { in onNotificationPosted() 135 mMainHandler.post(() -> { in onNotificationRemoved() 153 mMainHandler.post(() -> { in onNotificationRankingUpdate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotifBindPipeline.java | 85 private final Handler mMainHandler; field in NotifBindPipeline 95 mMainHandler = new NotifBindPipelineHandler(mainLooper); in NotifBindPipeline() 169 if (!mMainHandler.hasMessages(START_PIPELINE_MSG, entry)) { in requestPipelineRun() 170 Message msg = Message.obtain(mMainHandler, START_PIPELINE_MSG, entry); in requestPipelineRun() 171 mMainHandler.sendMessage(msg); in requestPipelineRun() 225 mMainHandler.removeMessages(START_PIPELINE_MSG, entry);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | ApplicationsState.java | 152 final MainHandler mMainHandler = new MainHandler(Looper.getMainLooper()); field in ApplicationsState 618 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in addPackage() 619 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in addPackage() 659 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in removePackage() 660 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in removePackage() 684 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in addUser() 685 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in addUser() 700 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in removeUser() 701 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in removeUser() 953 if (!mMainHandler.hasMessages(MainHandler.MSG_REBUILD_COMPLETE, this)) { in handleRebuildList() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SystemUIService.java | 43 private final Handler mMainHandler; field in SystemUIService 55 mMainHandler = mainHandler; in SystemUIService() 88 }, mMainHandler); in onCreate()
|
D | ForegroundServiceController.java | 51 private final Handler mMainHandler; field in ForegroundServiceController 57 mMainHandler = mainHandler; in ForegroundServiceController() 59 mMainHandler.post(() -> { in ForegroundServiceController()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/ |
D | PluginInstanceManagerTest.java | 127 waitForIdleSync(mPluginInstanceManager.mMainHandler); in testNoPlugins() 149 waitForIdleSync(mPluginInstanceManager.mMainHandler); in testPluginDestroy() 166 waitForIdleSync(mPluginInstanceManager.mMainHandler); in testIncorrectVersion() 180 waitForIdleSync(mPluginInstanceManager.mMainHandler); in testReloadOnChange() 203 waitForIdleSync(mPluginInstanceManager.mMainHandler);; in testNonDebuggable() 220 waitForIdleSync(mPluginInstanceManager.mMainHandler); in testNonDebuggable_whitelist() 295 waitForIdleSync(mPluginInstanceManager.mMainHandler); in createPlugin()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | GestureNavigationSettingsObserver.java | 38 private Handler mMainHandler; field in GestureNavigationSettingsObserver 43 mMainHandler = handler; in GestureNavigationSettingsObserver() 72 runnable -> mMainHandler.post(runnable), in register()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/volume/ |
D | VolumeUI.java | 47 private final Handler mMainHandler; field in VolumeUI 65 mMainHandler.post(() -> { 88 mMainHandler = mainHandler; in VolumeUI()
|
/frameworks/base/core/java/android/service/autofill/ |
D | InlineSuggestionRenderService.java | 69 private final Handler mMainHandler = new Handler(Looper.getMainLooper(), null, true); field in InlineSuggestionRenderService 197 final InlineSuggestionUiImpl uiImpl = new InlineSuggestionUiImpl(host, mMainHandler, in handleRenderSuggestion() 205 mMainHandler.post(() -> { in handleRenderSuggestion() 346 mMainHandler.sendMessage( in onBind() 354 mMainHandler.sendMessage(obtainMessage( in onBind() 360 mMainHandler.sendMessage(obtainMessage( in onBind()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/ |
D | WifiPickerTracker.java | 393 final StandardWifiEntry newEntry = new StandardWifiEntry(mContext, mMainHandler, in updateStandardWifiEntryScans() 433 mSuggestedWifiEntryCache.put(key, new StandardWifiEntry(mContext, mMainHandler, key, in updateSuggestedWifiEntryScans() 476 mMainHandler, wifiConfig, mWifiManager, in updatePasspointWifiEntryScans() 480 mMainHandler, mPasspointConfigCache.get(key), mWifiManager, in updatePasspointWifiEntryScans() 513 OsuWifiEntry newEntry = new OsuWifiEntry(mContext, mMainHandler, provider, mWifiManager, in updateOsuWifiEntryScans() 707 mNetworkRequestEntry = new NetworkRequestEntry(mContext, mMainHandler, configKey, in updateNetworkRequestConfig() 780 new StandardWifiEntry(mContext, mMainHandler, in conditionallyCreateConnectedStandardWifiEntry() 809 new StandardWifiEntry(mContext, mMainHandler, in conditionallyCreateConnectedSuggestedWifiEntry() 842 connectedEntry = new PasspointWifiEntry(mContext, mMainHandler, in conditionallyCreateConnectedPasspointWifiEntry() 847 connectedEntry = new PasspointWifiEntry(mContext, mMainHandler, in conditionallyCreateConnectedPasspointWifiEntry() [all …]
|
D | SavedNetworkTracker.java | 312 new StandardWifiEntry(mContext, mMainHandler, key, config, mWifiManager, in updateStandardWifiEntryConfig() 340 new StandardWifiEntry(mContext, mMainHandler, key, wifiConfigsByKey.get(key), in updateStandardWifiEntryConfigs() 371 new PasspointWifiEntry(mContext, mMainHandler, passpointConfigsByKey.get(key), in updatePasspointWifiEntryConfigs() 382 mMainHandler.post(mListener::onSavedWifiEntriesChanged); in notifyOnSavedWifiEntriesChanged() 392 mMainHandler.post(mListener::onSubscriptionWifiEntriesChanged); in notifyOnSubscriptionWifiEntriesChanged()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/ |
D | PluginInstanceManager.java | 64 final MainHandler mMainHandler; field in PluginInstanceManager 82 mMainHandler = new MainHandler(Looper.getMainLooper()); in PluginInstanceManager() 101 mMainHandler.removeMessages(MainHandler.PLUGIN_CONNECTED); in getPlugin() 119 mMainHandler.obtainMessage(MainHandler.PLUGIN_DISCONNECTED, in destroy() 260 mMainHandler.obtainMessage( in handleMessage() 271 mMainHandler.obtainMessage(MainHandler.PLUGIN_DISCONNECTED, in handleMessage() 320 mMainHandler.obtainMessage(mMainHandler.PLUGIN_CONNECTED, t).sendToTarget(); in handleQueryPlugins()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | HotspotControllerImpl.java | 57 private final Handler mMainHandler; field in HotspotControllerImpl 97 mMainHandler = mainHandler; in HotspotControllerImpl() 153 mWifiManager.registerSoftApCallback(new HandlerExecutor(mMainHandler), this); in addCallback() 158 mMainHandler.post(() -> in addCallback()
|
D | BatteryControllerImpl.java | 66 private final Handler mMainHandler; field in BatteryControllerImpl 88 mMainHandler = mainHandler; in BatteryControllerImpl() 173 mMainHandler.post(new Runnable() { in onReceive() 200 mMainHandler.postDelayed(this, 200); in onReceive() 259 mMainHandler.post(this::notifyEstimateFetchCallbacks); in updateEstimateInBackground()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InlineSuggestion.java | 224 private final Handler mMainHandler = new Handler(Looper.getMainLooper()); field in InlineSuggestion.InlineContentCallbackImpl 283 mMainHandler.post(() -> handleOnContent(content, width, height)); in onContent() 380 mMainHandler.post( in getSurfacePackageUpdater() 387 mMainHandler.post( in getSurfacePackageUpdater() 395 mMainHandler.post(() -> { in onClick() 404 mMainHandler.post(() -> { in onLongClick()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/ |
D | ViewPreviewer.java | 41 private final Handler mMainHandler = new Handler(Looper.getMainLooper()); field in ViewPreviewer 77 mMainHandler.post(task); in createPreview()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | KeyguardCoordinator.java | 59 private final Handler mMainHandler; field in KeyguardCoordinator 78 mMainHandler = mainThreadHandler; in KeyguardCoordinator() 169 final ContentObserver settingsObserver = new ContentObserver(mMainHandler) { in setupInvalidateNotifListCallbacks()
|
/frameworks/base/core/java/android/widget/ |
D | RemoteViewsAdapter.java | 121 private final Handler mMainHandler; field in RemoteViewsAdapter 227 adapter.mMainHandler.sendEmptyMessage(MSG_MAIN_HANDLER_COMMIT_METADATA); in onServiceConnected() 228 adapter.mMainHandler.sendEmptyMessage(MSG_MAIN_HANDLER_REMOTE_ADAPTER_CONNECTED); in onServiceConnected() 237 adapter.mMainHandler.sendEmptyMessage(MSG_MAIN_HANDLER_REMOTE_ADAPTER_DISCONNECTED); in onServiceDisconnected() 307 adapter.mMainHandler.sendEmptyMessage(MSG_MAIN_HANDLER_COMMIT_METADATA); in handleMessage() 308 adapter.mMainHandler.sendEmptyMessage( in handleMessage() 851 mMainHandler = new Handler(Looper.myLooper(), this); in RemoteViewsAdapter() 983 mMainHandler.sendEmptyMessage(MSG_MAIN_HANDLER_SUPER_NOTIFY_DATA_SET_CHANGED); in updateTemporaryMetaData() 1039 Message.obtain(mMainHandler, MSG_MAIN_HANDLER_REMOTE_VIEWS_LOADED, position, 0, in updateRemoteViews()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/navigationbar/ |
D | CarNavigationBar.java | 86 private final Handler mMainHandler; field in CarNavigationBar 153 mMainHandler = mainHandler; in CarNavigationBar() 233 mMainHandler.post(() -> restartNavBarsIfNecessary()); in start() 238 mMainHandler.post(() -> restartNavBarsIfNecessary()); in start() 243 mMainHandler.post(() -> restartNavBarsIfNecessary()); in start() 257 mMainHandler.post(() -> { in start()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | CarrierTextController.java | 62 private final Handler mMainHandler; field in CarrierTextController 178 mMainHandler = Dependency.get(Dependency.MAIN_HANDLER); in CarrierTextController() 255 mMainHandler.post(() -> mKeyguardUpdateMonitor.registerCallback(mCallback)); in handleSetListening() 261 mMainHandler.post(() -> callback.updateCarrierInfo( in handleSetListening() 267 mMainHandler.post(() -> mKeyguardUpdateMonitor.removeCallback(mCallback)); in handleSetListening() 403 mMainHandler.post(() -> callback.updateCarrierInfo(info)); in postToCallback()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | UiAutomationManager.java | 224 private final Handler mMainHandler; field in UiAutomationManager.UiAutomationService 234 mMainHandler = mainHandler; in UiAutomationService() 239 mMainHandler.post(() -> { in connectServiceUnknownThread()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | TileServices.java | 62 private final Handler mMainHandler; field in TileServices 73 mMainHandler = new Handler(Looper.getMainLooper()); in TileServices() 119 mMainHandler.post(() -> mHost.getIconController() in freeService() 274 mMainHandler.post(new Runnable() { in updateStatusIcon()
|