Home
last modified time | relevance | path

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

1234

/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, userId, 0, 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/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/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipBoundsController.java55 private final Handler mMainHandler; field in TvPipBoundsController
81 mMainHandler = mainHandler; in TvPipBoundsController()
150 mMainHandler.removeCallbacks(mApplyPendingPlacementRunnable); in schedulePinnedStackPlacement()
153 mMainHandler.postAtTime(mApplyPendingPlacementRunnable, in schedulePinnedStackPlacement()
159 mMainHandler.removeCallbacks(mUnstashRunnable); in scheduleUnstashIfNeeded()
168 mMainHandler.postAtTime(mUnstashRunnable, mClock.get() + mStashDurationMs); in scheduleUnstashIfNeeded()
200 mMainHandler.removeCallbacks(mApplyPendingPlacementRunnable); in cancelScheduledPlacement()
204 mMainHandler.removeCallbacks(mUnstashRunnable); in cancelScheduledPlacement()
DTvPipMenuEduTextDrawer.java67 private final Handler mMainHandler; field in TvPipMenuEduTextDrawer
75 mMainHandler = mainHandler; in TvPipMenuEduTextDrawer()
125 mMainHandler.postDelayed(mStartScrollEduTextRunnable, startScrollDelay); in scheduleLifecycleEvents()
127 mMainHandler.postDelayed(mCloseDrawerRunnable, startScrollDelay + getEduTextShowDuration()); in scheduleLifecycleEvents()
137 mMainHandler.removeCallbacks(mStartScrollEduTextRunnable); in scheduleLifecycleEvents()
138 mMainHandler.removeCallbacks(mCloseDrawerRunnable); in scheduleLifecycleEvents()
210 if (mMainHandler.hasCallbacks(mCloseDrawerRunnable)) { in closeIfNeeded()
213 mMainHandler.removeCallbacks(mCloseDrawerRunnable); in closeIfNeeded()
DTvPipMenuController.java58 private final Handler mMainHandler; field in TvPipMenuController
108 mMainHandler = mainHandler; in TvPipMenuController()
203 return new TvPipMenuView(mContext, mMainHandler, this, mTvPipActionsProvider); in createTvPipMenuView()
243 mMainHandler.post(() -> { in onPipTransitionFinished()
285 mMainHandler.removeCallbacks(mClosePipMenuRunnable); in closeMenu()
494 if (mMainHandler.hasCallbacks(mClosePipMenuRunnable)) { in requestMenuMode()
495 mMainHandler.removeCallbacks(mClosePipMenuRunnable); in requestMenuMode()
496 mMainHandler.postDelayed(mClosePipMenuRunnable, PIP_MENU_FORCE_CLOSE_DELAY_MS); in requestMenuMode()
502 mMainHandler.postDelayed(mClosePipMenuRunnable, PIP_MENU_FORCE_CLOSE_DELAY_MS); in requestMenuMode()
597 mMainHandler.removeCallbacks(mClosePipMenuRunnable); in onUserInteracting()
[all …]
/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/SystemUI/src/com/android/systemui/battery/
DBatteryMeterViewController.java54 private final Handler mMainHandler; field in BatteryMeterViewController
150 mMainHandler = mainHandler; in BatteryMeterViewController()
160 mSettingObserver = new SettingObserver(mMainHandler); in BatteryMeterViewController()
171 mUserTracker.addCallback(mUserChangedCallback, new HandlerExecutor(mMainHandler)); in onViewAttached()
251 private final @Main Handler mMainHandler; field in BatteryMeterViewController.Factory
269 mMainHandler = mainHandler; in Factory()
283 mMainHandler, in create()
/frameworks/base/core/java/android/companion/
DCompanionDeviceService.java308 final Handler mMainHandler = Handler.getMain(); field in CompanionDeviceService.Stub
313 mMainHandler.postAtFrontOfQueue(() -> mService.onDeviceAppeared(associationInfo)); in onDeviceAppeared()
318 mMainHandler.postAtFrontOfQueue(() -> mService.onDeviceDisappeared(associationInfo)); in onDeviceDisappeared()
324 mMainHandler.postAtFrontOfQueue(() -> mService.onDevicePresenceEvent(event)); in onDevicePresenceEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/
DBrightnessController.java172 new HandlerExecutor(mMainHandler));
180 mMainHandler.sendEmptyMessage(MSG_ATTACH_LISTENER);
204 mMainHandler.sendEmptyMessage(MSG_DETACH_LISTENER);
240 mMainHandler.obtainMessage(MSG_UPDATE_SLIDER, valueAsIntBits,
248 mMainHandler.obtainMessage(MSG_VR_MODE_CHANGED, enabled ? 1 : 0, 0)
282 private final Handler mMainHandler; field in BrightnessController
317 mMainHandler = new Handler(mainLooper, mHandlerCallback); in BrightnessController()
318 mBrightnessObserver = new BrightnessObserver(mMainHandler); in BrightnessController()
/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()
/frameworks/base/core/java/com/android/internal/policy/
DGestureNavigationSettingsObserver.java38 private Handler mMainHandler; field in GestureNavigationSettingsObserver
44 mMainHandler = mainHandler; in GestureNavigationSettingsObserver()
78 runnable -> mMainHandler.post(runnable), in register()
100 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.java167 final MainHandler mMainHandler = new MainHandler(Looper.getMainLooper()); field in ApplicationsState
658 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in addPackage()
659 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in addPackage()
699 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in removePackage()
700 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in removePackage()
724 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in addUser()
725 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in addUser()
740 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in removeUser()
741 mMainHandler.sendEmptyMessage(MainHandler.MSG_PACKAGE_LIST_CHANGED); in removeUser()
1042 if (!mMainHandler.hasMessages(MainHandler.MSG_REBUILD_COMPLETE, this)) { in handleRebuildList()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIService.java47 private final Handler mMainHandler; field in SystemUIService
66 mMainHandler = mainHandler; in SystemUIService()
112 }, mMainHandler); in onCreate()
/frameworks/base/core/java/android/service/autofill/
DInlineSuggestionRenderService.java68 private final Handler mMainHandler = new Handler(Looper.getMainLooper(), null, true); field in InlineSuggestionRenderService
196 final InlineSuggestionUiImpl uiImpl = new InlineSuggestionUiImpl(host, mMainHandler, in handleRenderSuggestion()
204 mMainHandler.post(() -> { in handleRenderSuggestion()
345 mMainHandler.sendMessage( in onBind()
353 mMainHandler.sendMessage(obtainMessage( in onBind()
359 mMainHandler.sendMessage(obtainMessage( in onBind()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/carrier/
DShadeCarrierGroupController.java80 private H mMainHandler; field in ShadeCarrierGroupController
121 mMainHandler.obtainMessage(H.MSG_UPDATE_STATE).sendToTarget();
131 mMainHandler.obtainMessage(H.MSG_UPDATE_STATE).sendToTarget();
186 mMainHandler = new H(mainLooper, this::handleUpdateCarrierInfo, this::handleUpdateState); in ShadeCarrierGroupController()
187 mCallback = new Callback(mMainHandler); in ShadeCarrierGroupController()
336 if (!mMainHandler.getLooper().isCurrentThread()) { in handleUpdateState()
337 mMainHandler.obtainMessage(H.MSG_UPDATE_STATE).sendToTarget(); in handleUpdateState()
376 if (!mMainHandler.getLooper().isCurrentThread()) { in handleUpdateCarrierInfo()
377 mMainHandler.obtainMessage(H.MSG_UPDATE_CARRIER_INFO, info).sendToTarget(); in handleUpdateCarrierInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationSettingsController.java54 private final Handler mMainHandler; field in NotificationSettingsController
67 mMainHandler = mainHandler; in NotificationSettingsController()
80 mMainHandler.post(() -> listener.onSettingChanged(uri, userId, value)); in NotificationSettingsController()
142 mMainHandler.post(() -> listener.onSettingChanged(uri, userId, value)); in addCallback()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/tv/
DTvSplitScreenController.java65 private final Handler mMainHandler; field in TvSplitScreenController
106 mMainHandler = mainHandler; in TvSplitScreenController()
119 mIconProvider, mMainExecutor, mMainHandler, in createStageCoordinator()
DTvSplitMenuController.java58 private final Handler mMainHandler; field in TvSplitMenuController
69 mMainHandler = mainHandler; in TvSplitMenuController()
198 mMainHandler); in register()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipTransitionState.java118 private final Handler mMainHandler; field in PipTransitionState
162 mMainHandler = handler; in PipTransitionState()
221 mMainHandler.post(() -> setState(state, extra)); in postState()
/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/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DRemoteInputCoordinator.kt70 @Main private val mMainHandler: Handler, constant
232 SelfTrackingLifetimeExtender(TAG, "RemoteInputHistory", DEBUG, mMainHandler) {
248 SelfTrackingLifetimeExtender(TAG, "SmartReplyHistory", DEBUG, mMainHandler) {
269 SelfTrackingLifetimeExtender(TAG, "RemoteInputActive", DEBUG, mMainHandler) {
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipMediaController.kt43 class PipMediaController(private val mContext: Context, private val mMainHandler: Handler) { in <lambda>() constant in com.android.wm.shell.common.pip.PipMediaController
74 private val mHandlerExecutor: HandlerExecutor = HandlerExecutor(mMainHandler) in <lambda>()
121 SYSTEMUI_PERMISSION, mMainHandler, Context.RECEIVER_EXPORTED in <lambda>()
314 controller?.registerCallback(mPlaybackChangedListener, mMainHandler) in <lambda>()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DWifiPickerTracker.java773 mMainHandler, entryKey, mStandardWifiConfigCache.get(entryKey), in updateStandardWifiEntryScans()
825 mMainHandler, entryKey, mSuggestedConfigCache.get(entryKey), in updateSuggestedWifiEntryScans()
858 mMainHandler, wifiConfig, mWifiManager, in updatePasspointWifiEntryScans()
862 mMainHandler, mPasspointConfigCache.get(key), mWifiManager, in updatePasspointWifiEntryScans()
896 OsuWifiEntry newEntry = new OsuWifiEntry(mInjector, mMainHandler, provider, in updateOsuWifiEntryScans()
985 mMainHandler, entryKey, null /* configs */, in updateKnownNetworkEntryScans()
1046 mMainHandler, mWifiManager, mSharedConnectivityManager, in updateHotspotNetworkEntries()
1252 mNetworkRequestEntry = new NetworkRequestEntry(mInjector, mMainHandler, in conditionallyCreateConnectedNetworkRequestEntry()
1286 new StandardWifiEntry(mInjector, mMainHandler, entryKey, configs, in conditionallyCreateConnectedStandardWifiEntry()
1315 new StandardWifiEntry(mInjector, mMainHandler, entryKey, configs, in conditionallyCreateConnectedSuggestedWifiEntry()
[all …]

1234