Home
last modified time | relevance | path

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

1234

/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
H A DTaskStackListenerImpl.java72 private Handler mMainHandler; field in TaskStackListenerImpl
76 mMainHandler = new Handler(mainHandler.getLooper(), this); in TaskStackListenerImpl()
86 mMainHandler = mainHandler; in setHandler()
125 mMainHandler.obtainMessage(ON_TASK_LIST_UPDATED).sendToTarget(); in onRecentTaskListUpdated()
148 mMainHandler.removeMessages(ON_TASK_STACK_CHANGED); in onTaskStackChanged()
149 mMainHandler.sendEmptyMessage(ON_TASK_STACK_CHANGED); in onTaskStackChanged()
159 mMainHandler.obtainMessage(ON_TASK_DISPLAY_CHANGED, taskId, in onTaskDisplayChanged()
201 mMainHandler.removeMessages(ON_ACTIVITY_PINNED); in onActivityPinned()
207 mMainHandler.removeMessages(ON_ACTIVITY_UNPINNED); in onActivityUnpinned()
208 mMainHandler.sendEmptyMessage(ON_ACTIVITY_UNPINNED); in onActivityUnpinned()
[all …]
/aosp12/packages/apps/Camera2/src/com/android/camera/session/
H A DCaptureSessionManagerImpl.java70 mMainHandler.execute(new Runnable() { in notifyTaskQueued()
88 mMainHandler.execute(new Runnable() { in notifyTaskDone()
108 mMainHandler.execute(new Runnable() { in notifyTaskFailed()
123 mMainHandler.execute(new Runnable() { in notifyTaskCanceled()
142 mMainHandler.execute(new Runnable() { in notifyTaskProgress()
160 mMainHandler.execute(new Runnable() { in notifyTaskProgressText()
178 mMainHandler.execute(new Runnable() { in notifySessionUpdated()
201 mMainHandler.execute(new Runnable() { in notifySessionCaptureIndicatorAvailable()
251 private final MainThread mMainHandler; field in CaptureSessionManagerImpl
275 mMainHandler = mainHandler; in CaptureSessionManagerImpl()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/
H A DRemoteViewsAdapterTest.java72 private Handler mMainHandler; field in RemoteViewsAdapterTest
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()
215 waitOnHandler(mMainHandler); in serviceDisconnected_before_getView()
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationListener.java53 private final Handler mMainHandler; field in NotificationListener
66 mMainHandler = mainHandler; in NotificationListener()
92 mMainHandler.post(() -> { in onListenerConnected()
122 mMainHandler.post(() -> { in onNotificationPosted()
137 mMainHandler.post(() -> { in onNotificationRemoved()
155 mMainHandler.post(() -> { in onNotificationRankingUpdate()
168 mMainHandler.post(() -> { in onNotificationChannelModified()
/aosp12/frameworks/base/tests/testables/src/android/testing/
H A 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()
/aosp12/packages/apps/Camera2/src/com/android/camera/util/
H A DQuickActivity.java65 private Handler mMainHandler; field in QuickActivity
113 mMainHandler = new Handler(getMainLooper()); in onCreate()
140 mMainHandler.removeCallbacks(mOnResumeTasks); in onResume()
147 mMainHandler.postDelayed(mOnResumeTasks, delay); in onResume()
161 mMainHandler.removeCallbacks(mOnResumeTasks); in onPause()
/aosp12/packages/apps/DevCamera/src/com/android/devcamera/
H A DDevCameraActivity.java82 private Handler mMainHandler; field in DevCameraActivity
292 mMainHandler.removeCallbacks(mReturnToCafRunnable); in doAFScan()
375 mMainHandler.removeCallbacks(mReturnToCafRunnable); in onStop()
388 mMainHandler.post(new Runnable() { in setNoiseEdgeText()
399 mMainHandler.post(new Runnable() { in setNoiseEdgeTextForReprocessing()
423 mMainHandler.post(new Runnable() { in jpegAvailable()
433 mMainHandler.post(new Runnable() { in jpegAvailable()
444 mMainHandler.post(new Runnable() { in receivedFirstFrame()
465 mMainHandler.post(new Runnable() { in frameDataAvailable()
490 mMainHandler.post(new Runnable() { in frameDataAvailable()
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/carrier/
H A DQSCarrierGroupController.java70 private H mMainHandler; field in QSCarrierGroupController
110 mMainHandler.obtainMessage(H.MSG_UPDATE_STATE).sendToTarget();
161 mMainHandler.obtainMessage(H.MSG_UPDATE_STATE).sendToTarget();
186 mMainHandler.obtainMessage(H.MSG_UPDATE_STATE).sendToTarget();
198 mMainHandler.obtainMessage(H.MSG_UPDATE_STATE).sendToTarget();
246 mMainHandler = new H(mainLooper, this::handleUpdateCarrierInfo, this::handleUpdateState); in QSCarrierGroupController()
247 mCallback = new Callback(mMainHandler); in QSCarrierGroupController()
339 if (!mMainHandler.getLooper().isCurrentThread()) { in handleUpdateState()
340 mMainHandler.obtainMessage(H.MSG_UPDATE_STATE).sendToTarget(); in handleUpdateState()
378 if (!mMainHandler.getLooper().isCurrentThread()) { in handleUpdateCarrierInfo()
[all …]
/aosp12/packages/services/Car/service/src/com/android/car/user/
H A DCarUserNoticeService.java88 private final Handler mMainHandler; field in CarUserNoticeService
124 CarUserNoticeService.this.mMainHandler.post(() -> {
139 mMainHandler.post(() -> stopUi(/* clearUiShown= */ true));
142 mMainHandler.post(() -> startNoticeUiIfNecessary());
172 mMainHandler.post(() -> stopUi(/* clearUiShown= */ false));
222 mMainHandler = handler; in CarUserNoticeService()
243 mMainHandler.removeCallbacks(mKeyguardPollingRunnable); in checkKeyguardLockedWithPolling()
254 mMainHandler.postDelayed(mKeyguardPollingRunnable, KEYGUARD_POLLING_INTERVAL_MS); in checkKeyguardLockedWithPolling()
370 mMainHandler.removeCallbacks(mKeyguardPollingRunnable); in stopUi()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DNotifBindPipeline.java85 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);
/aosp12/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
H A DNsdResolveQueue.java35 private final Handler mMainHandler; field in NsdResolveQueue
42 mMainHandler = new Handler(context.getMainLooper()); in NsdResolveQueue()
115 mMainHandler.post(() -> { in onResolveFailed()
128 mMainHandler.post(() -> { in onServiceResolved()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
H A DApplicationsState.java152 final MainHandler mMainHandler = new MainHandler(Looper.getMainLooper()); field in ApplicationsState
954 Message msg = mMainHandler.obtainMessage( in handleRebuildList()
956 mMainHandler.sendMessage(msg); in handleRebuildList()
1109 Message m = mMainHandler.obtainMessage( in handleMessage()
1111 mMainHandler.sendMessage(m); in handleMessage()
1240 mMainHandler.sendMessage(m); in handleMessage()
1284 mMainHandler.sendMessage(m); in handleMessage()
1331 Message m = mMainHandler.obtainMessage( in handleMessage()
1333 mMainHandler.sendMessage(m); in handleMessage()
1406 Message msg = mMainHandler.obtainMessage(
[all …]
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
H A DAppEntryListManager.java125 private final MainHandler mMainHandler; field in AppEntryListManager
146 mMainHandler = new MainHandler(new WeakReference<>(this)); in AppEntryListManager()
225 mMainHandler.removeMessages(MainHandler.MSG_INFO_UPDATED); in clearHandlers()
257 outer.mMainHandler.sendEmptyMessage(MainHandler.MSG_INFO_UPDATED); in handleMessage()
262 outer.mMainHandler.sendEmptyMessage(MainHandler.MSG_INFO_UPDATED); in handleMessage()
/aosp12/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
H A DAppStateBaseBridge.java37 protected final MainHandler mMainHandler; field in AppStateBaseBridge
48 mMainHandler = new MainHandler(); in AppStateBaseBridge()
137 mMainHandler.sendEmptyMessage(MainHandler.MSG_INFO_UPDATED); in handleMessage()
150 mMainHandler.sendEmptyMessage(MainHandler.MSG_INFO_UPDATED); in handleMessage()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/
H A DAppStateBaseBridge.java37 protected final MainHandler mMainHandler; field in AppStateBaseBridge
48 mMainHandler = new MainHandler(Looper.getMainLooper()); in AppStateBaseBridge()
142 mMainHandler.sendEmptyMessage(MainHandler.MSG_INFO_UPDATED); in handleMessage()
155 mMainHandler.sendEmptyMessage(MainHandler.MSG_INFO_UPDATED); in handleMessage()
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DPolicyWarningUIController.java79 private final Handler mMainHandler; field in PolicyWarningUIController
86 mMainHandler = handler; in PolicyWarningUIController()
95 Manifest.permission.MANAGE_ACCESSIBILITY, mMainHandler); in PolicyWarningUIController()
113 mMainHandler.sendMessage(obtainMessage(mNotificationController::onSwitchUser, userId)); in onSwitchUserLocked()
130 mMainHandler.sendMessage( in onEnabledServicesChangedLocked()
143 mMainHandler.sendMessage(obtainMessage(this::setAlarm, userId, service)); in onNonA11yCategoryServiceBound()
154 mMainHandler.sendMessage(obtainMessage(this::cancelAlarm, userId, service)); in onNonA11yCategoryServiceUnbound()
/aosp12/frameworks/base/core/java/android/service/autofill/
H A DInlineSuggestionRenderService.java67 private final Handler mMainHandler = new Handler(Looper.getMainLooper(), null, true); field in InlineSuggestionRenderService
195 final InlineSuggestionUiImpl uiImpl = new InlineSuggestionUiImpl(host, mMainHandler, in handleRenderSuggestion()
203 mMainHandler.post(() -> { in handleRenderSuggestion()
344 mMainHandler.sendMessage( in onBind()
352 mMainHandler.sendMessage(obtainMessage( in onBind()
358 mMainHandler.sendMessage(obtainMessage( in onBind()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
H A DTvPipMenuController.java51 private final Handler mMainHandler; field in TvPipMenuController
66 mMainHandler = mainHandler; in TvPipMenuController()
207 mMenuView.setAdditionalActions(mAppActions, mMainHandler); in maybeUpdateMenuViewActions()
209 mMenuView.setAdditionalActions(mMediaActions, mMainHandler); in maybeUpdateMenuViewActions()
/aosp12/packages/apps/LegacyCamera/src/com/android/camera/panorama/
H A DPanoramaActivity.java161 private Handler mMainHandler; field in PanoramaActivity
298 mMainHandler = new Handler() { in onCreate()
628 mMainHandler.sendMessage(mMainHandler.obtainMessage( in stopCapture()
631 mMainHandler.sendMessage(mMainHandler.obtainMessage( in stopCapture()
848 mMainHandler.sendEmptyMessage(MSG_RESET_TO_PREVIEW); in saveHighResMosaic()
850 mMainHandler.sendEmptyMessage(MSG_GENERATE_FINAL_MOSAIC_ERROR); in saveHighResMosaic()
873 mMainHandler.sendMessage( in saveHighResMosaic()
1152 mMainHandler.removeMessages(MSG_CLEAR_SCREEN_DELAY); in resetScreenOn()
1157 mMainHandler.removeMessages(MSG_CLEAR_SCREEN_DELAY); in keepScreenOnAwhile()
1159 mMainHandler.sendEmptyMessageDelayed(MSG_CLEAR_SCREEN_DELAY, SCREEN_DELAY); in keepScreenOnAwhile()
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSystemUIService.java44 private final Handler mMainHandler; field in SystemUIService
58 mMainHandler = mainHandler; in SystemUIService()
97 }, mMainHandler); in onCreate()
/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/
H A DCarDeviceProvisionedControllerImpl.java52 private final Handler mMainHandler; field in CarDeviceProvisionedControllerImpl
68 mMainHandler = mainHandler; in CarDeviceProvisionedControllerImpl()
72 mCarSettingsObserver = new ContentObserver(mMainHandler) { in CarDeviceProvisionedControllerImpl()
/aosp12/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
H A DWifiPickerTracker.java503 mMainHandler, entryKey, mStandardWifiConfigCache.get(entryKey), in updateStandardWifiEntryScans()
555 mMainHandler, entryKey, mSuggestedConfigCache.get(entryKey), in updateSuggestedWifiEntryScans()
588 mMainHandler, wifiConfig, mWifiManager, in updatePasspointWifiEntryScans()
592 mMainHandler, mPasspointConfigCache.get(key), mWifiManager, in updatePasspointWifiEntryScans()
847 mNetworkRequestEntry = new NetworkRequestEntry(mInjector, mContext, mMainHandler, in updateNetworkRequestEntryConnectionInfo()
886 new StandardWifiEntry(mInjector, mContext, mMainHandler, entryKey, configs, in conditionallyCreateConnectedStandardWifiEntry()
958 connectedEntry = new PasspointWifiEntry(mInjector, mContext, mMainHandler, in conditionallyCreateConnectedPasspointWifiEntry()
963 connectedEntry = new PasspointWifiEntry(mInjector, mContext, mMainHandler, in conditionallyCreateConnectedPasspointWifiEntry()
977 mMainHandler.post(mListener::onWifiEntriesChanged); in notifyOnWifiEntriesChanged()
987 mMainHandler.post(mListener::onNumSavedNetworksChanged); in notifyOnNumSavedNetworksChanged()
[all …]
/aosp12/packages/services/BuiltInPrintService/src/com/android/bips/
H A DBuiltInPrintService.java89 private Handler mMainHandler; field in BuiltInPrintService
141 mMainHandler = new Handler(getMainLooper()); in onCreate()
155 mMainHandler.removeCallbacksAndMessages(null); in onDestroy()
251 return mMainHandler; in getMainHandler()
256 mMainHandler.postDelayed(toRun, delay); in delay()
257 return () -> mMainHandler.removeCallbacks(toRun); in delay()
/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/volume/
H A DVolumeUI.java47 private final Handler mMainHandler; field in VolumeUI
65 mMainHandler.post(() -> {
88 mMainHandler = mainHandler; in VolumeUI()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
H A DRemoteInputCoordinator.kt69 @Main private val mMainHandler: Handler,
183 SelfTrackingLifetimeExtender(TAG, "RemoteInputHistory", DEBUG, mMainHandler) {
199 SelfTrackingLifetimeExtender(TAG, "SmartReplyHistory", DEBUG, mMainHandler) {
220 SelfTrackingLifetimeExtender(TAG, "RemoteInputActive", DEBUG, mMainHandler) {

1234