Home
last modified time | relevance | path

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

/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioVolumeGroupChangeHandlerTest.java113 final int readIndex = mAudioManager.getVolumeIndexForAttributes(aa); in testCallbackReceived() local
114 assertEquals(readIndex, indexForAa); in testCallbackReceived()
171 int readIndex = mAudioManager.getVolumeIndexForAttributes(aa); in testMultipleCallbackReceived() local
172 assertEquals(readIndex, indexForAa); in testMultipleCallbackReceived()
DAudioManagerTest.java292 int readIndex = mAudioManager.getVolumeIndexForAttributes(aa); in testVolumeGroupCallback() local
293 assertEquals(readIndex, index); in testVolumeGroupCallback()
320 int readIndex = mAudioManager.getStreamVolume(avgStreamType); in testVolumeGroupCallback() local
321 assertEquals(index, readIndex); in testVolumeGroupCallback()
/frameworks/base/core/java/android/util/proto/
DEncodedBuffer.java471 int readIndex = srcOffset % mChunkSize;
476 if (readIndex >= mChunkSize) {
479 readIndex = 0;
482 final int availableInReadBuffer = mChunkSize - readIndex;
484 System.arraycopy(readBuffer, readIndex, mWriteBuffer, mWriteIndex, amt);
486 readIndex += amt;
/frameworks/base/services/core/java/com/android/server/power/
DWakeLockLog.java911 int readIndex = mStart; in removeTagIndex() local
914 while (readIndex != mEnd) { in removeTagIndex()
915 LogEntry entry = readEntryAt(readIndex, timeReference, reusableEntryInstance); in removeTagIndex()
917 Slog.d(TAG, "Searching to remove tags @ " + readIndex + ": " + entry); in removeTagIndex()
920 Slog.w(TAG, "Entry is unreadable - Unexpected @ " + readIndex); in removeTagIndex()
927 writeEntryAt(readIndex, entry, timeReference); in removeTagIndex()
929 Slog.d(TAG, "Remove tag index: " + tagIndex + " @ " + readIndex); in removeTagIndex()
934 readIndex = (readIndex + entryByteSize) % mBuffer.length; in removeTagIndex()