Home
last modified time | relevance | path

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

/packages/modules/ExtServices/java/tests/src/android/ext/services/notification/
DEntityTypeCounterTest.java30 private EntityTypeCounter mCounter; field in EntityTypeCounterTest
34 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 …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DObjectCounter.java33 private ArrayMap<K, Integer> mCounter; field in ObjectCounter
36 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()
/packages/apps/Car/systemlibs/car-assist-client-lib/src/com/android/car/assist/client/
DFallbackAssistant.java222 private long mCounter; field in FallbackAssistant.RequestIdGenerator
225 mCounter = 0; in RequestIdGenerator()
229 return ++mCounter; in generateRequestId()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.kt1153 private val mCounter: Int constant
1162 if (mCounter == sCounter) { in onAnimationEnd()
1179 mCounter = ++sCounter