Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLongSamplingCounterTest.java57 private LongSamplingCounter mCounter; field in LongSamplingCounterTest
62 mCounter = new LongSamplingCounter(mTimeBase); in setUp()
69 mCounter.addCountLocked(COUNT, true); in testReadWriteParcel()
71 mCounter.writeToParcel(parcel); in testReadWriteParcel()
75 mCounter.addCountLocked(7 * COUNT, true); in testReadWriteParcel()
78 mCounter = new LongSamplingCounter(mTimeBase, parcel); in testReadWriteParcel()
86 mCounter.addCountLocked(COUNT, true); in testReadWriteSummaryParcel()
88 mCounter.writeSummaryFromParcelLocked(parcel); in testReadWriteSummaryParcel()
92 mCounter.addCountLocked(7 * COUNT, true); in testReadWriteSummaryParcel()
95 mCounter.readSummaryFromParcelLocked(parcel); in testReadWriteSummaryParcel()
[all …]
/frameworks/opt/net/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()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DMotionSensorWTime.java44 private int mCounter = 0; field in MotionSensorWTime
92 if (mCounter < 3 && mCounter >= 0) { in onProcess()
93 mTemp[0][mCounter] = mValues[0]; in onProcess()
94 mTemp[1][mCounter] = mValues[1]; in onProcess()
95 mTemp[2][mCounter] = mValues[2]; in onProcess()
98 mCounter = (mCounter + 1) % 3; in onProcess()
/frameworks/av/media/libaaudio/src/utility/
DAAudioUtilities.h230 int index = mCounter.load() & 1; in write()
232 mCounter++; // Increment AFTER updating storage, OK if it wraps. in write()
240 mCounter.store(0); in clear()
250 before = mCounter.load(); in read()
253 after = mCounter.load(); in read()
262 return mCounter.load() > 0; in isValid()
267 std::atomic<int> mCounter{0};
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcFailBringUp.java41 int mCounter; field in DcFailBringUp
57 mCounter = intent.getIntExtra(COUNTER, DEFAULT_COUNTER); in saveParameters()
69 mCounter = counter; in saveParameters()
76 return "{mCounter=" + mCounter + in toString()
DDataConnection.java662 if (mDcTesterFailBringUpAll.getDcFailBringUp().mCounter > 0) { in connect()
678 mDcTesterFailBringUpAll.getDcFailBringUp().mCounter -= 1; in connect()
/frameworks/wilhelm/tests/sandbox/
Dmultithread.c32 SLuint32 mCounter; member
51 ++ta->mCounter; in thread_start()
141 ta->mCounter = 0; in main()
150 ta->mCounter = 0; in main()
166 printf("[%d]=%u ", j, ta->mCounter); in main()
178 printf("[%d]=%u ", j, ta->mCounter); in main()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardEntryCommitter.java45 private int mCounter; field in VCardEntryCommitter
72 mCounter++; in onEntryCreated()
73 if (mCounter >= 20) { in onEntryCreated()
75 mCounter = 0; in onEntryCreated()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/concurrency/
DFakeExecutor.java192 private int mCounter; field in FakeExecutor.QueuedRunnable
202 mCounter = sCounter.incrementAndGet(); in QueuedRunnable()
210 return mCounter - other.mCounter; in compareTo()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DEventResultPersister.java67 private int mCounter; field in EventResultPersister
80 if (mCounter == Integer.MAX_VALUE) { in getNewId()
84 mCounter++; in getNewId()
87 return mCounter - 1; in getNewId()
140 mCounter = GENERATE_NEW_ID + 1; in EventResultPersister()
150 mCounter = readIntAttribute(parser, "counter"); in EventResultPersister()
232 counter = mCounter; in writeState()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseLockTest.java42 private AtomicInteger mCounter = new AtomicInteger(); field in DatabaseLockTest
77 int val = mCounter.get(); in testLockFairness()
104 mCounter.incrementAndGet(); in run()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardSliceProviderTest.java255 private int mCounter; field in KeyguardSliceProviderTest.TestableKeyguardSliceProvider
287 return super.getFormattedDateLocked() + mCounter++; in getFormattedDateLocked()
/frameworks/native/services/surfaceflinger/
DBufferStateLayer.h202 uint64_t mCounter = 0; variable
DBufferStateLayer.cpp630 counter = mCounter++; in getHwcCacheSlot()
644 mCachedBuffers[clientCacheId] = {hwcCacheSlot, mCounter++}; in addCachedBuffer()
/frameworks/av/media/libstagefright/foundation/tests/
DAData_test.cpp41 EventCounter(int *counter, int magic=1234) : mCounter(counter), mMagic(magic) { } in EventCounter()
42 virtual ~EventCounter() { ++*mCounter; mMagic = 0; } in ~EventCounter()
45 int *mCounter; member