Home
last modified time | relevance | path

Searched refs:CLOUD_SYNC_LOCK (Results 1 – 3 of 3) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/sync/
DPickerSyncLockManagerTest.java20 import static com.android.providers.media.photopicker.sync.PickerSyncLockManager.CLOUD_SYNC_LOCK;
46 try (CloseableReentrantLock lock = mSyncLockManager.lock(CLOUD_SYNC_LOCK)) { in testLockIsCloseable()
51 try (CloseableReentrantLock lockInLock = mSyncLockManager.lock(CLOUD_SYNC_LOCK)) { in testLockIsCloseable()
62 assertThat(lock).isEqualTo(mSyncLockManager.getLock(CLOUD_SYNC_LOCK)); in testLockIsCloseable()
65 assertThat(mSyncLockManager.getLock(CLOUD_SYNC_LOCK).isHeldByCurrentThread()).isFalse(); in testLockIsCloseable()
/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})
43 public static final int CLOUD_SYNC_LOCK = 0; field in PickerSyncLockManager
102 case CLOUD_SYNC_LOCK: in getLock()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPickerSyncController.java312 mPickerSyncLockManager.tryLock(PickerSyncLockManager.CLOUD_SYNC_LOCK)) { in syncAllMediaFromCloudProvider()
381 .lock(PickerSyncLockManager.CLOUD_SYNC_LOCK)) { in resetAllMedia()