Home
last modified time | relevance | path

Searched refs:mCounts (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLongSamplingCounterArrayTest.java89 assertArrayEquals(COUNTS, mCounterArray.mCounts, "Unexpected counts"); in testReadWriteParcel()
106 assertArrayEquals(COUNTS, mCounterArray.mCounts, "Unexpected counts"); in testReadWriteSummaryParcel()
116 assertArrayEquals(COUNTS, mCounterArray.mCounts, "Unexpected counts"); in testOnTimeStarted()
126 assertArrayEquals(COUNTS, mCounterArray.mCounts, "Unexpected counts"); in testOnTimeStopped()
169 assertArrayEquals(deltas, mCounterArray.mCounts, "Unexpected counts"); in testAddCountLocked()
175 assertArrayEquals(null, mCounterArray.mCounts, "Unexpected counts"); in testAddCountLocked()
179 assertArrayEquals(deltas, mCounterArray.mCounts, "Unexpected counts"); in testAddCountLocked()
189 assertArrayEquals(newCounts, mCounterArray.mCounts, "Unexpected counts"); in testAddCountLocked()
196 assertArrayEquals(COUNTS, mCounterArray.mCounts, "Unexpected counts"); in testAddCountLocked()
201 assertArrayEquals(newCounts, mCounterArray.mCounts, "Unexpected counts"); in testAddCountLocked()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java1403 public long[] mCounts; field in BatteryStatsImpl.LongSamplingCounterArray
1409 mCounts = in.createLongArray(); in LongSamplingCounterArray()
1421 out.writeLongArray(mCounts); in writeToParcel()
1428 mUnpluggedCounts = copyArray(mCounts, mUnpluggedCounts); in onTimeStarted()
1437 long[] val = copyArray(mCounts, null); in getCountsLocked()
1448 pw.println(prefix + "mCounts=" + Arrays.toString(mCounts) in logState()
1462 if (mCounts == null) { in addCountLocked()
1463 mCounts = new long[counts.length]; in addCountLocked()
1466 mCounts[i] += counts[i]; in addCountLocked()
1472 return mCounts == null ? 0 : mCounts.length; in getSize()
[all …]