Home
last modified time | relevance | path

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

/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
H A DJobStatus.java99 private static final ArrayMap<String, String> sNamespaceHashCache = new ArrayMap<>(); field in JobStatus
851 synchronized (sNamespaceHashCache) { in generateNamespaceHash()
852 final int idx = sNamespaceHashCache.indexOfKey(namespace); in generateNamespaceHash()
854 return sNamespaceHashCache.valueAt(idx); in generateNamespaceHash()
881 synchronized (sNamespaceHashCache) { in generateNamespaceHash()
882 if (sNamespaceHashCache.size() >= MAX_NAMESPACE_CACHE_SIZE) { in generateNamespaceHash()
885 sNamespaceHashCache.removeAt((new Random()).nextInt(MAX_NAMESPACE_CACHE_SIZE)); in generateNamespaceHash()
887 sNamespaceHashCache.put(namespace, hash); in generateNamespaceHash()