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.java143 final int readIndex = mAudioManager.getVolumeIndexForAttributes(aa); in testCallbackReceived() local
144 assertEquals(readIndex, indexForAa); in testCallbackReceived()
202 int readIndex = mAudioManager.getVolumeIndexForAttributes(aa); in testMultipleCallbackReceived() local
203 assertEquals(readIndex, indexForAa); in testMultipleCallbackReceived()
DAudioManagerTest.java325 int readIndex = mAudioManager.getVolumeIndexForAttributes(aa); in testVolumeGroupCallback() local
326 assertEquals(readIndex, index); in testVolumeGroupCallback()
353 int readIndex = mAudioManager.getStreamVolume(avgStreamType); in testVolumeGroupCallback() local
354 assertEquals(index, readIndex); in testVolumeGroupCallback()
/frameworks/base/core/java/android/util/proto/
DEncodedBuffer.java472 int readIndex = srcOffset % mChunkSize;
477 if (readIndex >= mChunkSize) {
480 readIndex = 0;
483 final int availableInReadBuffer = mChunkSize - readIndex;
485 System.arraycopy(readBuffer, readIndex, mWriteBuffer, mWriteIndex, amt);
487 readIndex += amt;
/frameworks/base/services/core/java/com/android/server/power/
DWakeLockLog.java990 int readIndex = mStart; in removeTagIndex() local
993 while (readIndex != mEnd) { in removeTagIndex()
994 LogEntry entry = readEntryAt(readIndex, timeReference, reusableEntryInstance); in removeTagIndex()
996 Slog.d(TAG, "Searching to remove tags @ " + readIndex + ": " + entry); in removeTagIndex()
999 Slog.w(TAG, "Entry is unreadable - Unexpected @ " + readIndex); in removeTagIndex()
1006 writeEntryAt(readIndex, entry, timeReference); in removeTagIndex()
1008 Slog.d(TAG, "Remove tag index: " + tagIndex + " @ " + readIndex); in removeTagIndex()
1013 readIndex = (readIndex + entryByteSize) % mBuffer.length; in removeTagIndex()