Home
last modified time | relevance | path

Searched refs:mBackgroundExecutor (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DSliceBroadcastRelayHandlerTest.java66 private final FakeExecutor mBackgroundExecutor = new FakeExecutor(new FakeSystemClock()); field in SliceBroadcastRelayHandlerTest
84 mBackgroundExecutor); in setup()
104 mBackgroundExecutor.runAllReady(); in testRegister()
124 mBackgroundExecutor.runAllReady(); in testUnregister()
131 mBackgroundExecutor.runAllReady(); in testUnregister()
146 mBackgroundExecutor.runAllReady(); in testUnregisterWithoutRegister()
166 mBackgroundExecutor.runAllReady(); in testRelay()
178 mBackgroundExecutor.runAllReady(); in testRegisteredWithDispatcher_onMainThread()
190 mBackgroundExecutor.runAllReady(); in testRegisteredWithDispatcher_onBackgroundThread()
194 eq(mBackgroundExecutor)); in testRegisteredWithDispatcher_onBackgroundThread()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DFgsManagerControllerTest.java83 FakeExecutor mBackgroundExecutor; field in FgsManagerControllerTest
122 mBackgroundExecutor = new FakeExecutor(mSystemClock); in setUp()
238 mBackgroundExecutor.advanceClockToLast(); in testNumPackagesListener()
239 mBackgroundExecutor.runAllReady(); in testNumPackagesListener()
243 mBackgroundExecutor.advanceClockToLast(); in testNumPackagesListener()
244 mBackgroundExecutor.runAllReady(); in testNumPackagesListener()
248 mBackgroundExecutor.advanceClockToLast(); in testNumPackagesListener()
249 mBackgroundExecutor.runAllReady(); in testNumPackagesListener()
253 mBackgroundExecutor.advanceClockToLast(); in testNumPackagesListener()
254 mBackgroundExecutor.runAllReady(); in testNumPackagesListener()
[all …]
/frameworks/base/services/core/java/com/android/server/app/
DGameServiceController.java48 private final Executor mBackgroundExecutor; field in GameServiceController
75 mBackgroundExecutor = backgroundExecutor; in GameServiceController()
85 mBackgroundExecutor.execute(this::evaluateActiveGameServiceProvider); in onBootComplete()
112 mBackgroundExecutor.execute(this::evaluateActiveGameServiceProvider); in notifyUserUnlocking()
133 mBackgroundExecutor.execute(this::evaluateActiveGameServiceProvider); in setGameServiceProvider()
145 mBackgroundExecutor.execute(this::evaluateActiveGameServiceProvider); in setCurrentForegroundUserAndEvaluateProvider()
239 mBackgroundExecutor.execute( in onReceive()
DGameServiceProviderInstanceImpl.java97 mBackgroundExecutor.execute(() -> {
127 mBackgroundExecutor.execute(() -> {
134 mBackgroundExecutor.execute(() -> {
141 mBackgroundExecutor.execute(() -> {
167 mBackgroundExecutor.execute(() -> {
174 mBackgroundExecutor.execute(() -> {
196 mBackgroundExecutor.execute(() -> {
210 mBackgroundExecutor.execute(() -> {
221 mBackgroundExecutor.execute(() -> {
229 private final Executor mBackgroundExecutor; field in GameServiceProviderInstanceImpl
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSystemBarsListenerController.java33 private final Executor mBackgroundExecutor; field in TaskSystemBarsListenerController
36 this.mBackgroundExecutor = BackgroundThread.getExecutor(); in TaskSystemBarsListenerController()
54 mBackgroundExecutor.execute(() -> { in dispatchTransientSystemBarVisibilityChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/
DWifiStateWorker.java52 private DelayableExecutor mBackgroundExecutor; field in WifiStateWorker
62 mBackgroundExecutor = backgroundExecutor; in WifiStateWorker()
65 mBackgroundExecutor.execute(() -> { in WifiStateWorker()
80 mBackgroundExecutor.execute(() -> { in setWifiEnabled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/
DWifiStateWorkerTest.java69 private FakeExecutor mBackgroundExecutor = new FakeExecutor(new FakeSystemClock()); field in WifiStateWorkerTest
78 mWifiStateWorker = new WifiStateWorker(mBroadcastDispatcher, mBackgroundExecutor, in setup()
80 mBackgroundExecutor.runAllReady(); in setup()
90 mWifiStateWorker = new WifiStateWorker(mBroadcastDispatcher, mBackgroundExecutor, in setWifiEnabled_wifiManagerIsNull_shouldNotSetWifiEnabled()
94 mBackgroundExecutor.runAllReady(); in setWifiEnabled_wifiManagerIsNull_shouldNotSetWifiEnabled()
102 mBackgroundExecutor.runAllReady(); in setWifiEnabled_enabledIsTrue_shouldSetWifiEnabled()
110 mBackgroundExecutor.runAllReady(); in setWifiEnabled_enabledIsFalse_shouldSetWifiDisabled()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DEmergencyButtonController.java68 private final Executor mBackgroundExecutor; field in EmergencyButtonController
113 mBackgroundExecutor = backgroundExecutor; in EmergencyButtonController()
145 mBackgroundExecutor.execute(() -> { in updateEmergencyCallButton()
174 mBackgroundExecutor.execute(() -> { in takeEmergencyCallAction()
222 private final Executor mBackgroundExecutor; field in EmergencyButtonController.Factory
247 mBackgroundExecutor = backgroundExecutor; in Factory()
256 mBackgroundExecutor, mSelectedUserInteractor); in create()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesDialogManagerTest.java55 private final FakeExecutor mBackgroundExecutor = new FakeExecutor(new FakeSystemClock()); field in HearingDevicesDialogManagerTest
80 mBackgroundExecutor, in setUp()
90 mBackgroundExecutor.runAllReady(); in showDialog_existHearingDevice_showPairNewDeviceFalse()
101 mBackgroundExecutor.runAllReady(); in showDialog_noHearingDevice_showPairNewDeviceTrue()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryControllerStartable.java43 private final Executor mBackgroundExecutor; field in BatteryControllerStartable
55 mBackgroundExecutor = backgroundExecutor; in BatteryControllerStartable()
71 mBackgroundExecutor.execute(() -> registerReceiver()); in start()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java78 private FakeExecutor mBackgroundExecutor; field in BluetoothControllerImplTest
96 mBackgroundExecutor = new FakeExecutor(new FakeSystemClock()); in setup()
107 mBackgroundExecutor, in setup()
212 mBackgroundExecutor.runAllReady(); in testOnActiveDeviceChanged_updatesAudioActive()
298 mBackgroundExecutor.runAllReady(); in isBluetoothAudioProfileOnly_onlyLeAudioConnected_true()
309 mBackgroundExecutor.runAllReady(); in isBluetoothAudioProfileOnly_onlyHeadsetConnected_true()
320 mBackgroundExecutor.runAllReady(); in isBluetoothAudioProfileOnly_onlyA2dpConnected_true()
331 mBackgroundExecutor.runAllReady(); in isBluetoothAudioProfileOnly_onlyHearingAidConnected_true()
349 mBackgroundExecutor.runAllReady(); in isBluetoothAudioProfileOnly_multipleAudioOnlyProfilesConnected_true()
363 mBackgroundExecutor.runAllReady(); in isBluetoothAudioProfileOnly_leAudioAndOtherProfileConnected_false()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesDialogManager.java52 private final Executor mBackgroundExecutor; field in HearingDevicesDialogManager
65 mBackgroundExecutor = backgroundExecutor; in HearingDevicesDialogManager()
84 mBackgroundExecutor.execute( in showDialog()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/navigationbar/
DRegionSamplingHelper.java64 private final Executor mBackgroundExecutor; field in RegionSamplingHelper
114 mBackgroundExecutor = backgroundExecutor; in RegionSamplingHelper()
167 mBackgroundExecutor.execute(mSamplingListener::destroy); in stopAndDestroy()
225 mBackgroundExecutor.execute(() -> { in updateSamplingListener()
255 mBackgroundExecutor.execute(() -> { in unregisterSamplingListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationMediaManager.java88 private final Executor mBackgroundExecutor; field in NotificationMediaManager
120 mBackgroundExecutor.execute(() -> setMediaMetadata(metadata));
152 mBackgroundExecutor = backgroundExecutor; in NotificationMediaManager()
287 mBackgroundExecutor.execute(() -> updateMediaMetaData(callback)); in addCallback()
311 mBackgroundExecutor.execute(() -> findPlayingMediaNotification(statusBarNotifications)); in findAndUpdateMediaNotifications()
418 mBackgroundExecutor.execute(this::clearMediaNotification); in clearCurrentMediaNotification()
432 mBackgroundExecutor.execute(() -> updateMediaMetaData(callbacks)); in dispatchUpdateMediaMetaData()
DNotificationLockscreenUserManagerImpl.java216 mBackgroundExecutor.execute(() -> {
279 private final Executor mBackgroundExecutor; field in NotificationLockscreenUserManagerImpl
311 mBackgroundExecutor = backgroundExecutor; in NotificationLockscreenUserManagerImpl()
348 mLockscreenSettingsObserver = new ExecutorContentObserver(mBackgroundExecutor) { in init()
409 mBackgroundExecutor, UserHandle.ALL); in init()
413 mBackgroundExecutor, UserHandle.ALL); in init()
440 mBackgroundExecutor.execute(() -> { in init()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSliceBroadcastRelayHandler.java57 private final Executor mBackgroundExecutor; field in SliceBroadcastRelayHandler
64 mBackgroundExecutor = backgroundExecutor; in SliceBroadcastRelayHandler()
74 mBroadcastDispatcher.registerReceiver(mReceiver, filter, mBackgroundExecutor); in start()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DUserWakeupStore.java107 private Executor mBackgroundExecutor; field in UserWakeupStore
116 mBackgroundExecutor = BackgroundThread.getExecutor(); in init()
117 mBackgroundExecutor.execute(this::readUserIdList); in init()
166 mBackgroundExecutor.execute(() -> { in updateUserListFile()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/
DNotificationLockscreenUserManagerTest.java168 private final FakeExecutor mBackgroundExecutor = new FakeExecutor(mFakeSystemClock); field in NotificationLockscreenUserManagerTest
241 mBackgroundExecutor.runAllReady(); in setUp()
247 assertEquals(0, mBackgroundExecutor.numPending()); in tearDown()
264 mBackgroundExecutor.runAllReady(); in testInit()
506 mBackgroundExecutor.runAllReady(); in testUpdateIsPublicMode()
513 mBackgroundExecutor.runAllReady(); in testUpdateIsPublicMode()
520 mBackgroundExecutor.runAllReady(); in testUpdateIsPublicMode()
527 mBackgroundExecutor.runAllReady(); in testUpdateIsPublicMode()
620 mBackgroundExecutor.runAllReady(); in testEarlyUserSwitch()
887 assertEquals(1, mBackgroundExecutor.runAllReady()); in testNewUserAdded()
[all …]
/frameworks/base/services/core/java/com/android/server/apphibernation/
DAppHibernationService.java127 private final Executor mBackgroundExecutor; field in AppHibernationService
156 mBackgroundExecutor = injector.getBackgroundExecutor(); in AppHibernationService()
179 mBackgroundExecutor.execute(() -> { in onBootPhase()
198 mBackgroundExecutor, in onBootPhase()
203 mBackgroundExecutor, in onBootPhase()
314 mBackgroundExecutor.execute( in setHibernatingForUser()
317 mBackgroundExecutor.execute( in setHibernatingForUser()
324 mBackgroundExecutor.execute(() -> { in setHibernatingForUser()
362 mBackgroundExecutor.execute(() -> hibernatePackageGlobally(packageName, state)); in setHibernatingGlobally()
682 mBackgroundExecutor.execute(() -> { in onUserUnlocking()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardDisplayManagerTest.java69 private Executor mBackgroundExecutor = Runnable::run; field in KeyguardDisplayManagerTest
83 mDisplayTracker, mMainExecutor, mBackgroundExecutor, mDeviceStateHelper, in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/
DTouchMonitor.java77 private final Executor mBackgroundExecutor; field in TouchMonitor
270 mBackgroundExecutor.execute(() -> {
302 mBackgroundExecutor.execute(() -> {
537 mBackgroundExecutor = backgroundExecutor;
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerServiceInjector.java91 private final Executor mBackgroundExecutor; field in PackageManagerServiceInjector
191 mBackgroundExecutor = new HandlerExecutor(backgroundHandler); in PackageManagerServiceInjector()
338 return mBackgroundExecutor; in getBackgroundExecutor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DEdgeBackGestureHandler.java160 mBackgroundExecutor.execute(() -> mGestureBlockingActivityRunning.set(
218 private final Executor mBackgroundExecutor; field in EdgeBackGestureHandler
430 mBackgroundExecutor = backgroundExecutor; in EdgeBackGestureHandler()
644 mBackgroundExecutor.execute(mGestureNavigationSettingsObserver::unregister); in updateIsEnabledInner()
662 mBackgroundExecutor.execute(mGestureNavigationSettingsObserver::register); in updateIsEnabledInner()
788 mBackgroundExecutor.execute(() -> loadMLModel()); in updateMLModelState()
1321 private final Executor mBackgroundExecutor; field in EdgeBackGestureHandler.Factory
1361 mBackgroundExecutor = backgroundExecutor; in Factory()
1386 mBackgroundExecutor, in create()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/
DWallpaperLocalColorExtractorTest.java81 private Executor mBackgroundExecutor; field in WallpaperLocalColorExtractorTest
96 }).when(mBackgroundExecutor).execute(any(Runnable.class)); in setUp()
117 mBackgroundExecutor, in getSpyWallpaperLocalColorExtractor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/scroll/
DLongScreenshotActivity.java86 private final Executor mBackgroundExecutor; field in LongScreenshotActivity
123 mBackgroundExecutor = bgExecutor; in LongScreenshotActivity()
264 mCacheSaveFuture = mImageExporter.exportToRawFile(mBackgroundExecutor, in onLongScreenshotReceived()
423 mBackgroundExecutor, UUID.randomUUID(), mOutputBitmap, ZonedDateTime.now(), in startExport()

12