Home
last modified time | relevance | path

Searched refs:bytesLeft (Results 1 – 10 of 10) 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.java101 int bytesLeft = pgm.length - pgmLength; in internalCreate() local
102 if (bytesLeft == 0) { in internalCreate()
106 bytesLeft = pgm.length - pgmLength; in internalCreate()
108 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.java102 int bytesLeft = pgm.length - pgmLength; in internalCreate() local
103 if (bytesLeft == 0) { in internalCreate()
107 bytesLeft = pgm.length - pgmLength; in internalCreate()
109 int bytesRead = is.read(pgm, pgmLength, bytesLeft); in internalCreate()
/frameworks/base/core/java/android/util/proto/
DProtoInputStream.java651 int bytesLeft = 4; in readFixed32() local
652 while (bytesLeft > 0) { in readFixed32()
655 int fragment = (mEnd - mOffset) < bytesLeft ? (mEnd - mOffset) : bytesLeft; in readFixed32()
663 bytesLeft -= fragment; in readFixed32()
697 int bytesLeft = 8;
698 while (bytesLeft > 0) {
701 int fragment = (mEnd - mOffset) < bytesLeft ? (mEnd - mOffset) : bytesLeft;
709 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.cpp220 int bytesLeft; in write_update_file() local
232 bytesLeft = fileSize + sizeof(metadata); in write_update_file()
233 err = dataStream->WriteEntityHeader(key, bytesLeft); in write_update_file()
248 bytesLeft -= sizeof(metadata); // bytesLeft should == fileSize now in write_update_file()
251 while ((amt = read(fd, buf, bufsize)) != 0 && bytesLeft > 0) { in write_update_file()
252 bytesLeft -= amt; in write_update_file()
253 if (bytesLeft < 0) { in write_update_file()
254 amt += bytesLeft; // Plus a negative is minus. Don't write more than we promised. in write_update_file()
262 if (bytesLeft != 0) { in write_update_file()
263 if (bytesLeft > 0) { in write_update_file()
[all …]
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/
DLocalTransport.java554 int bytesLeft = numBytes; in sendBackupData() local
555 while (bytesLeft > 0) { in sendBackupData()
557 int nRead = mSocketInputStream.read(mFullBackupBuffer, 0, bytesLeft); in sendBackupData()
564 bytesLeft -= nRead; in sendBackupData()
/frameworks/av/media/libstagefright/
DMPEG4Writer.cpp3083 size_t bytesLeft = size; in parseAVCCodecSpecificData() local
3086 while (bytesLeft > 4 && !memcmp("\x00\x00\x00\x01", tmp, 4)) { in parseAVCCodecSpecificData()
3096 nextStartCode = parseParamSet(tmp + 4, bytesLeft - 4, type, &paramSetLen); in parseAVCCodecSpecificData()
3105 nextStartCode = parseParamSet(tmp + 4, bytesLeft - 4, type, &paramSetLen); in parseAVCCodecSpecificData()
3117 bytesLeft -= nextStartCode - tmp; in parseAVCCodecSpecificData()
3250 size_t bytesLeft = size; in parseHEVCCodecSpecificData() local
3251 while (bytesLeft > 4 && !memcmp("\x00\x00\x00\x01", tmp, 4)) { in parseHEVCCodecSpecificData()
3252 nextStartCode = findNextNalStartCode(tmp + 4, bytesLeft - 4); in parseHEVCCodecSpecificData()
3259 bytesLeft -= nextStartCode - tmp; in parseHEVCCodecSpecificData()