Searched refs:CLOUD_SYNC_LOCK (Results 1 – 3 of 3) sorted by relevance
20 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()
40 @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 PickerSyncLockManager102 case CLOUD_SYNC_LOCK: in getLock()
312 mPickerSyncLockManager.tryLock(PickerSyncLockManager.CLOUD_SYNC_LOCK)) { in syncAllMediaFromCloudProvider()381 .lock(PickerSyncLockManager.CLOUD_SYNC_LOCK)) { in resetAllMedia()