Home
last modified time | relevance | path

Searched refs:mExecutorService (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/core/java/com/android/server/apphibernation/
DHibernationStateDiskStore.java53 private final ScheduledExecutorService mExecutorService; field in HibernationStateDiskStore
77 mExecutorService = executorService; in HibernationStateDiskStore()
90 if (mExecutorService.isShutdown()) { in scheduleWriteHibernationStates()
101 mFuture = mExecutorService.schedule(this::writeHibernationStates, DISK_WRITE_DELAY, in scheduleWriteHibernationStates()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DUiOffloadThread.java34 private final ExecutorService mExecutorService = Executors.newSingleThreadExecutor(); field in UiOffloadThread
41 return mExecutorService.submit(runnable); in execute()
/frameworks/base/services/core/java/com/android/server/pm/
DParallelPackageParser.java56 private final ExecutorService mExecutorService; field in ParallelPackageParser
60 mExecutorService = executorService; in ParallelPackageParser()
103 mExecutorService.submit(() -> { in submit()
DInitAppsHelper.java76 private final ExecutorService mExecutorService; field in InitAppsHelper
117 mExecutorService = ParallelPackageParser.makeExecutorService(); in InitAppsHelper()
160 mSystemParseFlags, mSystemScanFlags, packageParser, mExecutorService); in scanApexPackagesTraced()
178 scanSystemDirs(packageParser, mExecutorService); in initSystemApps()
262 mScanFlags | SCAN_REQUIRE_KNOWN, packageParser, mExecutorService, null); in initNonSystemApps() local
264 List<Runnable> unfinishedTasks = mExecutorService.shutdownNow(); in initNonSystemApps()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DEditUserPhotoController.java74 private final ListeningExecutorService mExecutorService; field in EditUserPhotoController
99 mExecutorService = ThreadUtils.getBackgroundExecutor(); in EditUserPhotoController()
145 ListenableFuture<Bitmap> future = mExecutorService.submit(() -> { in onDefaultIconSelected()
165 ListenableFuture<Bitmap> future = mExecutorService.submit(() -> { in onPhotoCropped()
200 var unused = mExecutorService.submit(() -> { in onPhotoProcessed()
/frameworks/base/services/core/java/com/android/server/wearable/
DWearableSensingSecureChannel.java330 private final ExecutorService mExecutorService; field in WearableSensingSecureChannel.SoftShutdownExecutor
333 mExecutorService = executorService; in SoftShutdownExecutor()
339 mExecutorService.execute(runnable); in execute()
347 mExecutorService.shutdown(); in shutdown()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryExternalStatsWorker.java88 private final ScheduledExecutorService mExecutorService = field in BatteryExternalStatsWorker
341 mExecutorService.schedule(() -> { in scheduleCleanupDueToRemovedUser()
349 return mExecutorService.schedule(() -> { in scheduleCleanupDueToRemovedUser()
373 if (mExecutorService.isShutdown()) {
388 return mExecutorService.schedule(syncRunnable, delayMillis, TimeUnit.MILLISECONDS);
395 if (mExecutorService.isShutdown()) {
403 return mExecutorService.submit(mWriteTask);
415 mExecutorService.submit(runnable);
422 mExecutorService.shutdownNow();
427 if (mExecutorService.isShutdown()) {
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DProcessRecordTests.java62 private ExecutorService mExecutorService; field in ProcessRecordTests
114 mExecutorService = mock(ExecutorService.class); in setUpProcess()
205 false /* aboveSystem */, timeoutRecord, mExecutorService, false /* onlyDumpSelf */, in appNotResponding()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DHotwordAudioStreamCopier.java77 private final ExecutorService mExecutorService = Executors.newCachedThreadPool(); field in HotwordAudioStreamCopier
169 mExecutorService.execute( in startCopyingAudioStreams()
197 private final ExecutorService mExecutorService = Executors.newCachedThreadPool(); field in HotwordAudioStreamCopier.HotwordDetectedResultCopyTask
251 mExecutorService.invokeAll(tasks); in run()
/frameworks/base/core/java/com/android/internal/app/
DIntentForwarderActivity.java111 protected ExecutorService mExecutorService; field in IntentForwarderActivity
116 mExecutorService.shutdown(); in onDestroy()
123 mExecutorService = Executors.newSingleThreadExecutor(); in onCreate()
200 }, mExecutorService) in buildAndExecute()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/analytics/
DTelephonyAnalytics.java78 private ExecutorService mExecutorService; field in TelephonyAnalytics
122 mExecutorService = Executors.newSingleThreadExecutor(); in TelephonyAnalytics()
293 mExecutorService.execute(() -> { in sendDataToProvider()
658 mExecutorService.execute(() -> { in onServiceStateChanged()
988 mExecutorService.execute(() -> { in sendDataToProvider()
/frameworks/base/services/musicrecognition/java/com/android/server/musicrecognition/
DMusicRecognitionManagerService.java59 final ExecutorService mExecutorService = Executors.newCachedThreadPool(); field in MusicRecognitionManagerService
DMusicRecognitionManagerPerUserService.java194 }, mMaster.mExecutorService); in beginRecognitionLocked()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyStoreManager.java113 private final ScheduledExecutorService mExecutorService; field in RecoverableKeyStoreManager
192 mExecutorService = executorService; in RecoverableKeyStoreManager()
952 mExecutorService.schedule(KeySyncTask.newInstance( in lockScreenSecretAvailable()
987 mExecutorService.schedule(KeySyncTask.newInstance( in lockScreenSecretChanged()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyStoreManagerTest.java174 @Mock private ScheduledExecutorService mExecutorService; field in RecoverableKeyStoreManagerTest
212 mExecutorService, in setUp()
1302 verify(mExecutorService).schedule(any(Runnable.class), anyLong(), any()); in lockScreenSecretAvailable_syncsKeysForUser()
1312 verify(mExecutorService).schedule(any(Runnable.class), anyLong(), any()); in lockScreenSecretChanged_syncsKeysForUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DDataManagerTest.java180 private ScheduledExecutorService mExecutorService; field in DataManagerTest
241 mExecutorService = new MockScheduledExecutorService(); in setUp()
1944 return mExecutorService; in createScheduledExecutor()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DIntentForwarderActivityTest.java718 mExecutorService.awaitTermination(/* timeout= */ 30, TimeUnit.SECONDS); in onCreate()