/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/ |
D | LongSamplingCounterTest.java | 57 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/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | MotionSensorWTime.java | 44 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/ |
D | AAudioUtilities.h | 231 int index = mCounter.load() & 1; in write() 233 mCounter++; // Increment AFTER updating storage, OK if it wraps. in write() 241 mCounter.store(0); in clear() 251 before = mCounter.load(); in read() 254 after = mCounter.load(); in read() 263 return mCounter.load() > 0; in isValid() 268 std::atomic<int> mCounter{0};
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/ |
D | PluginInstanceTest.java | 58 private RefCounter mCounter; field in PluginInstanceTest 71 mCounter = new RefCounter(); in setup() 95 TestPluginImpl plugin = new TestPluginImpl(mCounter); in setup() 193 mCounter.assertInstances(allocated, created); in assertInstances() 212 public final RefCounter mCounter; field in PluginInstanceTest.TestPluginImpl 214 mCounter = counter; in TestPluginImpl() 215 mCounter.mAllocatedInstances.getAndIncrement(); in TestPluginImpl() 220 mCounter.mAllocatedInstances.getAndDecrement(); in finalize() 225 mCounter.mCreatedInstances.getAndIncrement(); in onCreate() 230 mCounter.mCreatedInstances.getAndDecrement(); in onDestroy()
|
/frameworks/wilhelm/tests/sandbox/ |
D | multithread.c | 32 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/ |
D | VCardEntryCommitter.java | 45 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/utils/src/com/android/systemui/util/concurrency/ |
D | FakeExecutor.java | 199 private int mCounter; field in FakeExecutor.QueuedRunnable 209 mCounter = sCounter.incrementAndGet(); in QueuedRunnable() 217 return mCounter - other.mCounter; in compareTo()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | EventResultPersister.java | 69 private int mCounter; field in EventResultPersister 82 if (mCounter == Integer.MAX_VALUE) { in getNewId() 86 mCounter++; in getNewId() 89 return mCounter - 1; in getNewId() 142 mCounter = GENERATE_NEW_ID + 1; in EventResultPersister() 152 mCounter = readIntAttribute(parser, "counter"); in EventResultPersister() 237 counter = mCounter; in writeState()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseLockTest.java | 42 private AtomicInteger mCounter = new AtomicInteger(); field in DatabaseLockTest 77 int val = mCounter.get(); in testLockFairness() 104 mCounter.incrementAndGet(); in run()
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | LongArrayMultiStateCounterPerfTest.java | 52 private long[] mCounter; field in LongArrayMultiStateCounterPerfTest.TestLongArrayMultiStateCounter.State 65 mStates[i].mCounter = new long[mArrayLength]; in TestLongArrayMultiStateCounter() 96 add(mStates[i].mCounter, mDelta, timeInState, timeSinceUpdate); in updateValue()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | LetterboxConfigurationPersisterTest.java | 284 private final AtomicInteger mCounter = new AtomicInteger(0); field in LetterboxConfigurationPersisterTest.QueueState 288 mCounter.decrementAndGet(); in accept() 292 mCounter.incrementAndGet(); in onItemAdded() 296 return mCounter.get() == 0; in isEmpty()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardSliceProviderTest.java | 266 private int mCounter; field in KeyguardSliceProviderTest.TestableKeyguardSliceProvider 309 return super.getFormattedDateLocked() + mCounter++; in getFormattedDateLocked()
|
/frameworks/av/media/module/foundation/tests/ |
D | AData_test.cpp | 41 EventCounter(int *counter, int magic=1234) : mCounter(counter), mMagic(magic) { } in EventCounter() 42 virtual ~EventCounter() { ++*mCounter; mMagic = 0; } in ~EventCounter() 45 int *mCounter; member
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | BatteryStatsImpl.java | 2215 private final LongMultiStateCounter mCounter; field in BatteryStatsImpl.TimeMultiStateCounter 2224 mCounter = counter; in TimeMultiStateCounter() 2225 mCounter.setEnabled(mTimeBase.isRunning(), timestampMs); in TimeMultiStateCounter() 2240 mCounter.writeToParcel(out, 0); in writeToParcel() 2245 mCounter.setEnabled(true, elapsedRealtimeUs / 1000); in onTimeStarted() 2250 mCounter.setEnabled(false, elapsedRealtimeUs / 1000); in onTimeStopped() 2254 return mCounter.getStateCount(); in getStateCount() 2259 mCounter.setState(processState, elapsedRealtimeMs); in setState() 2263 return mCounter.updateValue(value, timestampMs); in update() 2267 mCounter.incrementValue(increment, timestampMs); in increment() [all …]
|