Home
last modified time | relevance | path

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

/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DJobStatus.java100 private static final ArrayMap<String, String> sNamespaceHashCache = new ArrayMap<>(); field in JobStatus
860 synchronized (sNamespaceHashCache) { in generateNamespaceHash()
861 final int idx = sNamespaceHashCache.indexOfKey(namespace); in generateNamespaceHash()
863 return sNamespaceHashCache.valueAt(idx); in generateNamespaceHash()
890 synchronized (sNamespaceHashCache) { in generateNamespaceHash()
891 if (sNamespaceHashCache.size() >= MAX_NAMESPACE_CACHE_SIZE) { in generateNamespaceHash()
894 sNamespaceHashCache.removeAt((new Random()).nextInt(MAX_NAMESPACE_CACHE_SIZE)); in generateNamespaceHash()
896 sNamespaceHashCache.put(namespace, hash); in generateNamespaceHash()