Home
last modified time | relevance | path

Searched refs:sLocks (Results 1 – 2 of 2) sorted by relevance

/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DClipStorageReader.java42 private static final Map<String, FileLockEntry> sLocks = new HashMap<>(); field in ClipStorageReader
52 synchronized (sLocks) { in ClipStorageReader()
53 if (sLocks.containsKey(mCanonicalPath)) { in ClipStorageReader()
56 sLocks.get(mCanonicalPath).mCount++; in ClipStorageReader()
61 sLocks.put(mCanonicalPath, new FileLockEntry(1, lock, mScanner)); in ClipStorageReader()
74 synchronized (sLocks) { in close()
75 ref = sLocks.get(mCanonicalPath); in close()
83 sLocks.remove(mCanonicalPath); in close()
/packages/modules/HealthFitness/framework/java/android/health/connect/ratelimiter/
DRateLimiter.java55 private static final ConcurrentMap<Integer, Integer> sLocks = new ConcurrentHashMap<>(); field in RateLimiter
255 sLocks.putIfAbsent(uid, uid); in getLockObject()
256 return sLocks.get(uid); in getLockObject()