Searched refs:countMap (Results 1 – 4 of 4) sorted by relevance
/external/guava/guava/src/com/google/common/collect/ |
D | ConcurrentHashMultiset.java | 70 private final transient ConcurrentMap<E, AtomicInteger> countMap; field in ConcurrentHashMultiset 140 @VisibleForTesting ConcurrentHashMultiset(ConcurrentMap<E, AtomicInteger> countMap) { in ConcurrentHashMultiset() argument 141 checkArgument(countMap.isEmpty()); in ConcurrentHashMultiset() 142 this.countMap = countMap; in ConcurrentHashMultiset() 154 AtomicInteger existingCounter = Maps.safeGet(countMap, element); in count() 166 for (AtomicInteger value : countMap.values()) { in size() 219 AtomicInteger existingCounter = Maps.safeGet(countMap, element); in add() 221 existingCounter = countMap.putIfAbsent(element, new AtomicInteger(occurrences)); in add() 246 if ((countMap.putIfAbsent(element, newCounter) == null) in add() 247 || countMap.replace(element, existingCounter, newCounter)) { in add() [all …]
|
/external/guava/guava-tests/benchmark/com/google/common/collect/ |
D | ConcurrentHashMultisetBenchmark.java | 160 private final transient ConcurrentMap<E, Integer> countMap; 170 @VisibleForTesting OldConcurrentHashMultiset(ConcurrentMap<E, Integer> countMap) { 171 checkArgument(countMap.isEmpty()); 172 this.countMap = countMap; 185 return unbox(countMap.get(element)); 202 for (Integer value : countMap.values()) { 257 if (countMap.putIfAbsent(element, occurrences) == null) { 265 if (countMap.replace(element, current, next)) { 295 if (countMap.remove(element, current)) { 303 if (countMap.replace(casted, current, current - occurrences)) { [all …]
|
/external/emma/core/java12/com/vladium/emma/report/ |
D | AbstractReportGenerator.java | 143 … final ObjectIntMap /* packageVMName:String -> count:int */ countMap = new ObjectIntMap (); in initialize() local 154 final int count = countMap.get (packageVMName, _count) in initialize() 161 countMap.put (packageVMName, count + 1); in initialize()
|
/external/v8/src/inspector/ |
D | v8-console.cc | 365 v8::Local<v8::Map> countMap; in countCallback() local 366 if (!helper.privateMap("V8Console#countMap").ToLocal(&countMap)) return; in countCallback() 367 int32_t count = helper.getIntFromMap(countMap, identifier, 0) + 1; in countCallback() 368 helper.setIntOnMap(countMap, identifier, count); in countCallback()
|