Home
last modified time | relevance | path

Searched refs:bytesLeft (Results 1 – 11 of 11) sorted by relevance

/frameworks/av/media/libaaudio/src/utility/
DFixedBlockWriter.cpp40 int32_t bytesLeft = numBytes; in processVariableBlock() local
44 int32_t bytesWritten = writeToStorage(buffer, bytesLeft); in processVariableBlock()
46 bytesLeft -= bytesWritten; in processVariableBlock()
55 while(bytesLeft > mSize && result == 0) { in processVariableBlock()
58 bytesLeft -= mSize; in processVariableBlock()
62 if (bytesLeft > 0) { in processVariableBlock()
63 writeToStorage(buffer, bytesLeft); in processVariableBlock()
DFixedBlockReader.cpp49 int32_t bytesLeft = numBytes; in processVariableBlock() local
50 while(bytesLeft > 0 && result == 0) { in processVariableBlock()
53 int32_t bytesRead = readFromStorage(buffer, bytesLeft); in processVariableBlock()
55 bytesLeft -= bytesRead; in processVariableBlock()
56 } else if (bytesLeft >= mSize) { in processVariableBlock()
60 bytesLeft -= mSize; in processVariableBlock()
/frameworks/base/rs/java/android/renderscript/
DScriptC.java137 int bytesLeft = pgm.length - pgmLength; in internalCreate() local
138 if (bytesLeft == 0) { in internalCreate()
142 bytesLeft = pgm.length - pgmLength; in internalCreate()
144 int bytesRead = is.read(pgm, pgmLength, bytesLeft); in internalCreate()
DProgram.java273 int bytesLeft = str.length - strLength; in setShader() local
274 if (bytesLeft == 0) { in setShader()
278 bytesLeft = str.length - strLength; in setShader()
280 int bytesRead = is.read(str, strLength, bytesLeft); in setShader()
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptC.java119 int bytesLeft = pgm.length - pgmLength; in internalCreate() local
120 if (bytesLeft == 0) { in internalCreate()
124 bytesLeft = pgm.length - pgmLength; in internalCreate()
126 int bytesRead = is.read(pgm, pgmLength, bytesLeft); in internalCreate()
/frameworks/base/core/java/android/util/proto/
DProtoInputStream.java654 int bytesLeft = 4; in readFixed32() local
655 while (bytesLeft > 0) { in readFixed32()
658 int fragment = (mEnd - mOffset) < bytesLeft ? (mEnd - mOffset) : bytesLeft; in readFixed32()
666 bytesLeft -= fragment; in readFixed32()
700 int bytesLeft = 8;
701 while (bytesLeft > 0) {
704 int fragment = (mEnd - mOffset) < bytesLeft ? (mEnd - mOffset) : bytesLeft;
712 bytesLeft -= fragment;
/frameworks/base/media/java/android/media/
DMetadata.java299 private boolean scanAllRecords(Parcel parcel, int bytesLeft) { in scanAllRecords() argument
304 while (bytesLeft > kRecordHeaderSize) { in scanAllRecords()
350 bytesLeft -= size; in scanAllRecords()
354 if (0 != bytesLeft || error) { in scanAllRecords()
/frameworks/base/libs/androidfw/
DBackupHelpers.cpp224 int bytesLeft; in write_update_file() local
236 bytesLeft = fileSize + sizeof(metadata); in write_update_file()
237 err = dataStream->WriteEntityHeader(key, bytesLeft); in write_update_file()
252 bytesLeft -= sizeof(metadata); // bytesLeft should == fileSize now in write_update_file()
255 while ((amt = read(fd, buf, bufsize)) != 0 && bytesLeft > 0) { in write_update_file()
256 bytesLeft -= amt; in write_update_file()
257 if (bytesLeft < 0) { in write_update_file()
258 amt += bytesLeft; // Plus a negative is minus. Don't write more than we promised. in write_update_file()
266 if (bytesLeft != 0) { in write_update_file()
267 if (bytesLeft > 0) { in write_update_file()
[all …]
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/voiceinteraction/
DHotwordAudioStreamCopierTest.java281 int bytesLeft = totalBytesToWrite - bytesWritten; in writeToFakeAudioStreamPipe() local
282 System.arraycopy(bytesToRepeat, 0, fakeAudioData, bytesWritten, bytesLeft); in writeToFakeAudioStreamPipe()
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/
DLocalTransport.java568 int bytesLeft = numBytes; in sendBackupData() local
569 while (bytesLeft > 0) { in sendBackupData()
571 int nRead = mSocketInputStream.read(mFullBackupBuffer, 0, bytesLeft); in sendBackupData()
578 bytesLeft -= nRead; in sendBackupData()
/frameworks/av/media/libstagefright/
DMPEG4Writer.cpp3178 size_t bytesLeft = size; in parseAVCCodecSpecificData() local
3181 while (bytesLeft > 4 && !memcmp("\x00\x00\x00\x01", tmp, 4)) { in parseAVCCodecSpecificData()
3191 nextStartCode = parseParamSet(tmp + 4, bytesLeft - 4, type, &paramSetLen); in parseAVCCodecSpecificData()
3200 nextStartCode = parseParamSet(tmp + 4, bytesLeft - 4, type, &paramSetLen); in parseAVCCodecSpecificData()
3212 bytesLeft -= nextStartCode - tmp; in parseAVCCodecSpecificData()
3345 size_t bytesLeft = size; in parseHEVCCodecSpecificData() local
3346 while (bytesLeft > 4 && !memcmp("\x00\x00\x00\x01", tmp, 4)) { in parseHEVCCodecSpecificData()
3347 nextStartCode = findNextNalStartCode(tmp + 4, bytesLeft - 4); in parseHEVCCodecSpecificData()
3354 bytesLeft -= nextStartCode - tmp; in parseHEVCCodecSpecificData()