Home
last modified time | relevance | path

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

123

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
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()
130 mMainHandler.obtainMessage(ON_TASK_LIST_FROZEN_UNFROZEN, frozen ? 1 : 0, in onRecentTaskListFrozenChanged()
148 mMainHandler.removeMessages(ON_TASK_STACK_CHANGED); in onTaskStackChanged()
149 mMainHandler.sendEmptyMessage(ON_TASK_STACK_CHANGED); in onTaskStackChanged()
154 mMainHandler.obtainMessage(ON_TASK_PROFILE_LOCKED, taskInfo).sendToTarget(); in onTaskProfileLocked()
159 mMainHandler.obtainMessage(ON_TASK_DISPLAY_CHANGED, taskId, in onTaskDisplayChanged()
165 mMainHandler.obtainMessage(ON_TASK_CREATED, taskId, 0, componentName).sendToTarget(); in onTaskCreated()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipBoundsController.java56 private final Handler mMainHandler; field in TvPipBoundsController
82 mMainHandler = mainHandler; in TvPipBoundsController()
151 mMainHandler.removeCallbacks(mApplyPendingPlacementRunnable); in schedulePinnedStackPlacement()
154 mMainHandler.postAtTime(mApplyPendingPlacementRunnable, in schedulePinnedStackPlacement()
160 mMainHandler.removeCallbacks(mUnstashRunnable); in scheduleUnstashIfNeeded()
169 mMainHandler.postAtTime(mUnstashRunnable, mClock.get() + mStashDurationMs); in scheduleUnstashIfNeeded()
204 mMainHandler.removeCallbacks(mApplyPendingPlacementRunnable); in cancelScheduledPlacement()
208 mMainHandler.removeCallbacks(mUnstashRunnable); in cancelScheduledPlacement()
DTvPipMenuController.java63 private final Handler mMainHandler; field in TvPipMenuController
97 mMainHandler = mainHandler; in TvPipMenuController()
163 mMainHandler.postDelayed(mCloseEduTextRunnable, mPipEduTextShowDurationMs); in attachPipMenu()
251 if (mMainHandler.hasCallbacks(mCloseEduTextRunnable)) { in maybeCloseEduText()
252 mMainHandler.removeCallbacks(mCloseEduTextRunnable); in maybeCloseEduText()
354 mMainHandler.removeCallbacks(mCloseEduTextRunnable); in detach()
406 mPipMenuView.setAdditionalActions(mAppActions, mCloseAction, mMainHandler); in maybeUpdateMenuViewActions()
408 mPipMenuView.setAdditionalActions(mMediaActions, mCloseAction, mMainHandler); in maybeUpdateMenuViewActions()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/connectivity/
DConnectivitySubsystemsRecoveryManagerTest.java45 Handler mMainHandler = ApplicationProvider.getApplicationContext().getMainThreadHandler(); field in ConnectivitySubsystemsRecoveryManagerTest
62 new ConnectivitySubsystemsRecoveryManager(mContext, mMainHandler); in startTrackingWifiRestart_hasNoWifiFeature_shouldNotCrash()
71 new ConnectivitySubsystemsRecoveryManager(mContext, mMainHandler); in stopTrackingWifiRestart_hasNoWifiFeature_shouldNotCrash()
80 new ConnectivitySubsystemsRecoveryManager(mContext, mMainHandler); in startTrackingTelephonyRestart_hasNoTelephonyFeature_shouldNotCrash()
89 new ConnectivitySubsystemsRecoveryManager(mContext, mMainHandler); in stopTrackingTelephonyRestart_hasNoTelephonyFeature_shouldNotCrash()
/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/core/java/android/companion/
DCompanionDeviceService.java228 final Handler mMainHandler = Handler.getMain(); field in CompanionDeviceService.Stub
233 mMainHandler.postAtFrontOfQueue(() -> mService.onDeviceAppeared(associationInfo)); in onDeviceAppeared()
238 mMainHandler.postAtFrontOfQueue(() -> mService.onDeviceDisappeared(associationInfo)); in onDeviceDisappeared()
243 mMainHandler.postAtFrontOfQueue( in onDispatchMessage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotifBindPipeline.java85 private final Handler mMainHandler; field in NotifBindPipeline
95 mMainHandler = new NotifBindPipelineHandler(mainLooper); in NotifBindPipeline()
170 if (!mMainHandler.hasMessages(START_PIPELINE_MSG, entry)) { in requestPipelineRun()
171 Message msg = Message.obtain(mMainHandler, START_PIPELINE_MSG, entry); in requestPipelineRun()
172 mMainHandler.sendMessage(msg); in requestPipelineRun()
226 mMainHandler.removeMessages(START_PIPELINE_MSG, entry);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/carrier/
DQSCarrierGroupController.java69 private H mMainHandler; field in QSCarrierGroupController
105 mMainHandler.obtainMessage(H.MSG_UPDATE_STATE).sendToTarget();
115 mMainHandler.obtainMessage(H.MSG_UPDATE_STATE).sendToTarget();
157 mMainHandler = new H(mainLooper, this::handleUpdateCarrierInfo, this::handleUpdateState); in QSCarrierGroupController()
158 mCallback = new Callback(mMainHandler); in QSCarrierGroupController()
250 if (!mMainHandler.getLooper().isCurrentThread()) { in handleUpdateState()
251 mMainHandler.obtainMessage(H.MSG_UPDATE_STATE).sendToTarget(); in handleUpdateState()
288 if (!mMainHandler.getLooper().isCurrentThread()) { in handleUpdateCarrierInfo()
289 mMainHandler.obtainMessage(H.MSG_UPDATE_CARRIER_INFO, info).sendToTarget(); in handleUpdateCarrierInfo()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DPolicyWarningUIController.java83 private final Handler mMainHandler; field in PolicyWarningUIController
90 mMainHandler = handler; in PolicyWarningUIController()
99 Manifest.permission.MANAGE_ACCESSIBILITY, mMainHandler, Context.RECEIVER_EXPORTED); in PolicyWarningUIController()
109 mMainHandler.sendMessage( in onSwitchUser()
128 mMainHandler.sendMessage( in onEnabledServicesChanged()
137 mMainHandler.sendMessage( in onEnabledServicesChangedInternal()
150 mMainHandler.sendMessage(obtainMessage(this::setAlarm, userId, service)); in onNonA11yCategoryServiceBound()
161 mMainHandler.sendMessage(obtainMessage(this::cancelAlarm, userId, service)); in onNonA11yCategoryServiceUnbound()
198 mMainHandler.sendMessage( in enableSendingNonA11yToolNotification()
DAccessibilityManagerService.java248 private final MainHandler mMainHandler; field in AccessibilityManagerService
399 mMainHandler = new MainHandler(mContext.getMainLooper()); in AccessibilityManagerService()
427 mMainHandler = new MainHandler(mContext.getMainLooper()); in AccessibilityManagerService()
431 mMainHandler, context, in AccessibilityManagerService()
435 mA11yWindowManager = new AccessibilityWindowManager(mLock, mMainHandler, in AccessibilityManagerService()
437 mA11yDisplayListener = new AccessibilityDisplayListener(mContext, mMainHandler); in AccessibilityManagerService()
448 new AccessibilityContentObserver(mMainHandler).register( in init()
795 mContext.registerReceiverAsUser(receiver, UserHandle.ALL, filter, null, mMainHandler, in registerBroadcastReceivers()
947 mMainHandler.sendMessage(obtainMessage( in sendAccessibilityEvent()
1222 mContext, accessibilityServiceInfo, sIdCounter++, mMainHandler, in registerUiTestAutomationService()
[all …]
/frameworks/base/core/java/com/android/internal/policy/
DGestureNavigationSettingsObserver.java38 private Handler mMainHandler; field in GestureNavigationSettingsObserver
43 mMainHandler = handler; in GestureNavigationSettingsObserver()
75 runnable -> mMainHandler.post(runnable), in register()
95 runnable -> mMainHandler.post(runnable), in registerForCallingUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
DWifiStatusTrackerFactory.kt39 @Main private val mMainHandler: Handler constant in com.android.systemui.statusbar.connectivity.WifiStatusTrackerFactory
47 mMainHandler, in createTracker()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java153 final MainHandler mMainHandler = new MainHandler(Looper.getMainLooper()); field in ApplicationsState
622 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in addPackage()
623 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in addPackage()
663 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in removePackage()
664 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in removePackage()
688 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in addUser()
689 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in addUser()
704 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in removeUser()
705 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in removeUser()
995 if (!mMainHandler.hasMessages(MainHandler.MSG_REBUILD_COMPLETE, this)) { in handleRebuildList()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIService.java44 private final Handler mMainHandler; field in SystemUIService
58 mMainHandler = mainHandler; in SystemUIService()
98 }, mMainHandler); in onCreate()
DForegroundServiceController.java42 private final Handler mMainHandler; field in ForegroundServiceController
48 mMainHandler = mainHandler; in ForegroundServiceController()
50 mMainHandler.post(() -> { in ForegroundServiceController()
/frameworks/base/core/java/android/service/autofill/
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/
DBatteryMeterViewController.java49 private final Handler mMainHandler; field in BatteryMeterViewController
127 mMainHandler = mainHandler; in BatteryMeterViewController()
135 mSettingObserver = new SettingObserver(mMainHandler); in BatteryMeterViewController()
146 mUserTracker.addCallback(mUserChangedCallback, new HandlerExecutor(mMainHandler)); in onViewAttached()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DRemoteInputCoordinator.kt68 @Main private val mMainHandler: Handler, constant
182 SelfTrackingLifetimeExtender(TAG, "RemoteInputHistory", DEBUG, mMainHandler) {
198 SelfTrackingLifetimeExtender(TAG, "SmartReplyHistory", DEBUG, mMainHandler) {
219 SelfTrackingLifetimeExtender(TAG, "RemoteInputActive", DEBUG, mMainHandler) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DHotspotControllerImpl.java60 private final Handler mMainHandler; field in HotspotControllerImpl
107 mMainHandler = mainHandler; in HotspotControllerImpl()
170 mWifiManager.registerSoftApCallback(new HandlerExecutor(mMainHandler), this); in addCallback()
175 mMainHandler.post(() -> in addCallback()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DWifiPickerTracker.java519 mMainHandler, entryKey, mStandardWifiConfigCache.get(entryKey), in updateStandardWifiEntryScans()
571 mMainHandler, entryKey, mSuggestedConfigCache.get(entryKey), in updateSuggestedWifiEntryScans()
604 mMainHandler, wifiConfig, mWifiManager, in updatePasspointWifiEntryScans()
608 mMainHandler, mPasspointConfigCache.get(key), mWifiManager, in updatePasspointWifiEntryScans()
642 OsuWifiEntry newEntry = new OsuWifiEntry(mInjector, mContext, mMainHandler, provider, in updateOsuWifiEntryScans()
865 mNetworkRequestEntry = new NetworkRequestEntry(mInjector, mContext, mMainHandler, in updateNetworkRequestEntryConnectionInfo()
903 new StandardWifiEntry(mInjector, mContext, mMainHandler, entryKey, configs, in conditionallyCreateConnectedStandardWifiEntry()
938 new StandardWifiEntry(mInjector, mContext, mMainHandler, entryKey, configs, in conditionallyCreateConnectedSuggestedWifiEntry()
973 connectedEntry = new PasspointWifiEntry(mInjector, mContext, mMainHandler, in conditionallyCreateConnectedPasspointWifiEntry()
978 connectedEntry = new PasspointWifiEntry(mInjector, mContext, mMainHandler, in conditionallyCreateConnectedPasspointWifiEntry()
[all …]
/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()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDesktopModeWindowDecorViewModelTests.java73 @Mock private Handler mMainHandler; field in DesktopModeWindowDecorViewModelTests
96 mMainHandler, in setUp()
144 mMainHandler, in testDeleteCaptionOnChangeTransitionWhenNecessary()
177 mMainHandler, in testCreateCaptionOnChangeTransitionWhenNecessary()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipMediaController.java94 private final Handler mMainHandler; field in PipMediaController
151 mMainHandler = mainHandler; in PipMediaController()
152 mHandlerExecutor = new HandlerExecutor(mMainHandler); in PipMediaController()
330 controller.registerCallback(mPlaybackChangedListener, mMainHandler); in setActiveMediaController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServices.java69 private final Handler mMainHandler; field in TileServices
94 mMainHandler = mHandlerProvider.get(); in TileServices()
136 mMainHandler.post(() -> mStatusBarIconController.removeIconForTile(slot)); in freeService()
311 mMainHandler.post(new Runnable() { in updateStatusIcon()
383 mMainHandler.post(() -> requestListening(componentName));

123