Home
last modified time | relevance | path

Searched refs:mWorkManager (Results 1 – 4 of 4) sorted by relevance

/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/sync/
DPickerSyncManager.java118 private final WorkManager mWorkManager; field in PickerSyncManager
126 mWorkManager = requireNonNull(workManager); in PickerSyncManager()
154 mWorkManager.cancelUniqueWork(PERIODIC_SYNC_WORK_NAME); in setUpPeriodicWork()
155 mWorkManager.cancelUniqueWork(PERIODIC_ALBUM_RESET_WORK_NAME); in setUpPeriodicWork()
175 mWorkManager.enqueueUniqueWork( in setUpEndlessWork()
190 final Operation enqueueOperation = mWorkManager in schedulePeriodicSyncs()
221 mWorkManager.enqueueUniquePeriodicWork( in schedulePeriodicAlbumReset()
252 mWorkManager.enqueueUniqueWork(workName, ExistingWorkPolicy.REPLACE, syncRequest); in syncMediaProactively()
282 final Operation enqueueOperation = mWorkManager in syncMediaImmediately()
333 mWorkManager in syncAlbumMediaForProviderImmediately()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/ui/
DActivityAllAppsContainerViewTest.java69 private WorkProfileManager mWorkManager; field in ActivityAllAppsContainerViewTest
85 mWorkManager = new WorkProfileManager(mUserManager, mActivityAllAppsContainerView, in setUp()
87 mActivityAllAppsContainerView.setWorkManager(mWorkManager); in setUp()
119 mWorkManager.setWorkProfileEnabled(true); in testWorkProfileEnabled_requestQuietModeCalledCorrectly()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DActivityAllAppsContainerView.java141 protected WorkProfileManager mWorkManager; field in ActivityAllAppsContainerView
214 mWorkManager = new WorkProfileManager( in ActivityAllAppsContainerView()
272 new AlphabeticalAppsList<>(mActivityContext, mAllAppsStore, mWorkManager, null))); in initContent()
405 mWorkManager.onActivePageChanged(SEARCH); in animateToSearchState()
493 mWorkManager.reset(); in reset()
570 mWorkManager.onActivePageChanged(currentActivePage); in onActivePageChanged()
605 mAH.get(AdapterHolder.WORK).setup(workRecyclerView, mWorkManager.getItemInfoMatcher()); in rebindAdapters()
610 mWorkManager.newScrollListener()); in rebindAdapters()
715 mWorkManager.reset(); in replaceAppsRVContainer()
719 mWorkManager.detachWorkModeSwitch(); in replaceAppsRVContainer()
[all …]
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/provision/worker/
DDeviceCheckInHelperTest.java128 private WorkManager mWorkManager; field in DeviceCheckInHelperTest
151 mWorkManager = WorkManager.getInstance(mTestApplication); in setUp()
232 assertThat(mWorkManager.getWorkInfosForUniqueWork(FCM_TOKEN_WORK_NAME).get()).isEmpty(); in handleGetDeviceCheckInStatusResponse_ready_nonEmptyFcmDoesNotStartFcmWork()
243 List<WorkInfo> actualWorks = Futures.getUnchecked(mWorkManager.getWorkInfosForUniqueWork( in handleGetDeviceCheckInStatusResponse_readyForProvisioning_emptyFcmStartsWork()
275 assertThat(mWorkManager.getWorkInfosForUniqueWork(FCM_TOKEN_WORK_NAME).get()).isEmpty(); in handleGetDeviceCheckInStatusResponse_retryCheckIn_nonEmptyFcmDoesNotStartFcmWork()
287 List<WorkInfo> actualWorks = Futures.getUnchecked(mWorkManager.getWorkInfosForUniqueWork( in handleGetDeviceCheckInStatusResponse_retryCheckIn_emptyFcmStartsWork()