Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/widget/
DRemoteViewsAdapterTest.java72 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/
DTestableInstrumentation.java81 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/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java150 final MainHandler mMainHandler = new MainHandler(Looper.getMainLooper()); field in ApplicationsState
603 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in addPackage()
604 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in addPackage()
644 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in removePackage()
645 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in removePackage()
669 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in addUser()
670 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in addUser()
685 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in removeUser()
686 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in removeUser()
934 if (!mMainHandler.hasMessages(MainHandler.MSG_REBUILD_COMPLETE, this)) { in handleRebuildList()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DHotspotControllerImpl.java48 private final Handler mMainHandler; field in HotspotControllerImpl
63 mMainHandler = mainHandler; in HotspotControllerImpl()
109 mWifiManager.registerSoftApCallback(this, mMainHandler); in addCallback()
114 mMainHandler.post(() -> in addCallback()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/
DPluginInstanceManagerTest.java128 waitForIdleSync(mPluginInstanceManager.mMainHandler); in testNoPlugins()
150 waitForIdleSync(mPluginInstanceManager.mMainHandler); in testPluginDestroy()
167 waitForIdleSync(mPluginInstanceManager.mMainHandler); in testIncorrectVersion()
182 waitForIdleSync(mPluginInstanceManager.mMainHandler); in testReloadOnChange()
205 waitForIdleSync(mPluginInstanceManager.mMainHandler);; in testNonDebuggable()
222 waitForIdleSync(mPluginInstanceManager.mMainHandler); in testNonDebuggable_whitelist()
297 waitForIdleSync(mPluginInstanceManager.mMainHandler); in createPlugin()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DViewPreviewer.java41 private final Handler mMainHandler = new Handler(Looper.getMainLooper()); field in ViewPreviewer
77 mMainHandler.post(task); in createPreview()
DClockManager.java67 private final Handler mMainHandler = new Handler(Looper.getMainLooper()); field in ClockManager
74 new ContentObserver(mMainHandler) {
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DPluginInstanceManager.java65 final MainHandler mMainHandler; field in PluginInstanceManager
83 mMainHandler = new MainHandler(Looper.getMainLooper()); in PluginInstanceManager()
102 mMainHandler.removeMessages(MainHandler.PLUGIN_CONNECTED); in getPlugin()
120 mMainHandler.obtainMessage(MainHandler.PLUGIN_DISCONNECTED, in destroy()
274 mMainHandler.obtainMessage(MainHandler.PLUGIN_DISCONNECTED, in handleMessage()
323 mMainHandler.obtainMessage(mMainHandler.PLUGIN_CONNECTED, t).sendToTarget(); in handleQueryPlugins()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingManagerProxy.java53 private final Handler mMainHandler; field in FalsingManagerProxy
58 mMainHandler = handler; in FalsingManagerProxy()
60 command -> mMainHandler.post(command), in FalsingManagerProxy()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DUiAutomationManager.java220 private final Handler mMainHandler; field in UiAutomationManager.UiAutomationService
229 mMainHandler = mainHandler; in UiAutomationService()
234 mMainHandler.post(() -> { in connectServiceUnknownThread()
DAccessibilityServiceConnection.java62 private final Handler mMainHandler; field in AccessibilityServiceConnection
77 mMainHandler = mainHandler; in AccessibilityServiceConnection()
163 mMainHandler.sendMessage(obtainMessage( in onServiceConnected()
DAccessibilityManagerService.java220 private final MainHandler mMainHandler; field in AccessibilityManagerService
308 mMainHandler = new MainHandler(mContext.getMainLooper()); in AccessibilityManagerService()
310 mA11yDisplayListener = new AccessibilityDisplayListener(mContext, mMainHandler); in AccessibilityManagerService()
313 new AccessibilityContentObserver(mMainHandler).register( in AccessibilityManagerService()
603 mMainHandler.sendMessage(obtainMessage( in sendAccessibilityEvent()
853 mContext, accessibilityServiceInfo, sIdCounter++, mMainHandler, in registerUiTestAutomationService()
1100 mMainHandler.sendMessage(obtainMessage( in switchUser()
1122 mMainHandler.sendMessageDelayed( in switchUser()
1248 mMainHandler.sendMessage(obtainMessage( in notifyAccessibilityButtonClickedLocked()
1266 mMainHandler.sendMessage(obtainMessage( in notifyAccessibilityButtonClickedLocked()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServices.java61 private final Handler mMainHandler; field in TileServices
72 mMainHandler = new Handler(Looper.getMainLooper()); in TileServices()
109 mMainHandler.post(() -> mHost.getIconController() in freeService()
264 mMainHandler.post(new Runnable() { in updateStatusIcon()
/frameworks/base/core/java/android/widget/
DRemoteViewsAdapter.java121 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/SystemUI/src/com/android/systemui/qs/customize/
DTileQueryHelper.java56 private final Handler mMainHandler; field in TileQueryHelper
66 mMainHandler = Dependency.get(Dependency.MAIN_HANDLER); in TileQueryHelper()
180 mMainHandler.post(() -> { in notifyTilesChanged()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DFileUpdaterTest.java96 private Handler mMainHandler; field in FileUpdaterTest
115 mMainHandler = new Handler(Looper.getMainLooper()); in setUp()
132 mMainHandler.post(() -> l.countDown()); in waitUntilMainHandlerDrain()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSSecurityFooter.java62 private final Handler mMainHandler; field in QSSecurityFooter
84 mMainHandler = new Handler(Looper.myLooper()); in QSSecurityFooter()
170 mMainHandler.post(mUpdateIcon); in handleRefreshState()
172 mMainHandler.post(mUpdateDisplayState); in handleRefreshState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockIcon.java73 private final Handler mMainHandler; field in LockIcon
161 mMainHandler = mainHandler; in LockIcon()
398 mMainHandler.post(() -> { in setPulsing()
DStatusBarRemoteInputCallback.java77 private Handler mMainHandler = new Handler(); field in StatusBarRemoteInputCallback
99 mMainHandler.post(mPendingRemoteInputView::callOnClick); in onStateChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationRemoteInputManager.java117 private final Handler mMainHandler; field in NotificationRemoteInputManager
268 mMainHandler = mainHandler; in NotificationRemoteInputManager()
313 mMainHandler.postDelayed(() -> { in setUpWithCallback()
/frameworks/base/core/java/android/accounts/
DAccountManager.java338 private final Handler mMainHandler; field in AccountManager
413 mMainHandler = new Handler(mContext.getMainLooper()); in AccountManager()
423 mMainHandler = handler; in AccountManager()
2181 handler = handler == null ? mMainHandler : handler;
2196 handler = (handler == null) ? mMainHandler : handler;
2389 Handler handler = (mHandler == null) ? mMainHandler : mHandler;
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDependency.java291 @Inject @Named(MAIN_HANDLER_NAME) Lazy<Handler> mMainHandler; field in Dependency
317 mProviders.put(MAIN_HANDLER, mMainHandler::get); in start()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java158 private Handler mMainHandler; field in AppStateTrackerTest
201 mMainHandler = new Handler(Looper.getMainLooper()); in setUp()
206 mMainHandler.post(() -> { in waitUntilMainHandlerDrain()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DApplicationsStateRoboTest.java254 Handler mainHandler = mApplicationsState.mMainHandler; in processAllMessages()