Home
last modified time | relevance | path

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

/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/sync/
DPickerSyncLockManagerTest.java19 …rt static com.android.providers.media.photopicker.sync.PickerSyncLockManager.CLOUD_ALBUM_SYNC_LOCK;
70 try (CloseableReentrantLock lock = mSyncLockManager.tryLock(CLOUD_ALBUM_SYNC_LOCK)) { in testLockWithTimeoutIsCloseable()
76 mSyncLockManager.tryLock(CLOUD_ALBUM_SYNC_LOCK)) { in testLockWithTimeoutIsCloseable()
87 assertThat(lock).isEqualTo(mSyncLockManager.getLock(CLOUD_ALBUM_SYNC_LOCK)); in testLockWithTimeoutIsCloseable()
90 assertThat(mSyncLockManager.getLock(CLOUD_ALBUM_SYNC_LOCK).isHeldByCurrentThread()) in testLockWithTimeoutIsCloseable()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/sync/
DPickerSyncLockManager.java40 @IntDef(value = {CLOUD_SYNC_LOCK, CLOUD_ALBUM_SYNC_LOCK, CLOUD_PROVIDER_LOCK, DB_CLOUD_LOCK})
44 public static final int CLOUD_ALBUM_SYNC_LOCK = 1; field in PickerSyncLockManager
104 case CLOUD_ALBUM_SYNC_LOCK: in getLock()
DMediaResetWorker.java126 .tryLock(PickerSyncLockManager.CLOUD_ALBUM_SYNC_LOCK)) { in doWork()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPickerSyncController.java342 .tryLock(PickerSyncLockManager.CLOUD_ALBUM_SYNC_LOCK)) { in syncAlbumMedia()
364 .tryLock(PickerSyncLockManager.CLOUD_ALBUM_SYNC_LOCK)) { in syncAlbumMediaFromCloudProvider()