Searched refs:mCounter (Results 1 – 4 of 4) sorted by relevance
30 private EntityTypeCounter mCounter; field in EntityTypeCounterTest34 mCounter = new EntityTypeCounter(); in setup()39 mCounter.increment(TextClassifier.TYPE_URL); in testIncrementAndGetCount()40 mCounter.increment(TextClassifier.TYPE_URL); in testIncrementAndGetCount()41 mCounter.increment(TextClassifier.TYPE_URL); in testIncrementAndGetCount()43 mCounter.increment(TextClassifier.TYPE_PHONE); in testIncrementAndGetCount()44 mCounter.increment(TextClassifier.TYPE_PHONE); in testIncrementAndGetCount()46 assertThat(mCounter.getCount(TextClassifier.TYPE_URL)).isEqualTo(3); in testIncrementAndGetCount()47 assertThat(mCounter.getCount(TextClassifier.TYPE_PHONE)).isEqualTo(2); in testIncrementAndGetCount()48 assertThat(mCounter.getCount(TextClassifier.TYPE_DATE_TIME)).isEqualTo(0); in testIncrementAndGetCount()[all …]
33 private ArrayMap<K, Integer> mCounter; field in ObjectCounter36 mCounter = new ArrayMap<>(); in ObjectCounter()43 mCounter.clear(); in clear()50 return mCounter.size(); in size()57 return mCounter.getOrDefault(key, 0); in getCount()72 mCounter.put(key, curCount + count); in add()81 return mCounter.toString(); in toString()89 return mCounter.entrySet().iterator(); in iterator()
222 private long mCounter; field in FallbackAssistant.RequestIdGenerator225 mCounter = 0; in RequestIdGenerator()229 return ++mCounter; in generateRequestId()
1153 private val mCounter: Int constant1162 if (mCounter == sCounter) { in onAnimationEnd()1179 mCounter = ++sCounter