Home
last modified time | relevance | path

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

/frameworks/base/cmds/idmap/
Dcreate.cpp63 size_t bytesLeft = size; in write_idmap() local
64 while (bytesLeft > 0) { in write_idmap()
65 ssize_t w = TEMP_FAILURE_RETRY(write(fd, data + size - bytesLeft, bytesLeft)); in write_idmap()
70 bytesLeft -= static_cast<size_t>(w); in write_idmap()
88 size_t bytesLeft = N; in is_idmap_stale_fd() local
93 ssize_t r = TEMP_FAILURE_RETRY(read(idmap_fd, buf + N - bytesLeft, bytesLeft)); in is_idmap_stale_fd()
97 bytesLeft -= static_cast<size_t>(r); in is_idmap_stale_fd()
98 if (bytesLeft == 0) { in is_idmap_stale_fd()
/frameworks/base/rs/java/android/renderscript/
DScriptC.java96 int bytesLeft = pgm.length - pgmLength; in internalCreate() local
97 if (bytesLeft == 0) { in internalCreate()
101 bytesLeft = pgm.length - pgmLength; in internalCreate()
103 int bytesRead = is.read(pgm, pgmLength, bytesLeft); in internalCreate()
DProgram.java257 int bytesLeft = str.length - strLength; in setShader() local
258 if (bytesLeft == 0) { in setShader()
262 bytesLeft = str.length - strLength; in setShader()
264 int bytesRead = is.read(str, strLength, bytesLeft); in setShader()
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScriptC.java97 int bytesLeft = pgm.length - pgmLength; in internalCreate() local
98 if (bytesLeft == 0) { in internalCreate()
102 bytesLeft = pgm.length - pgmLength; in internalCreate()
104 int bytesRead = is.read(pgm, pgmLength, bytesLeft); in internalCreate()
/frameworks/av/media/libstagefright/codecs/aacenc/SampleCode/
DAAC_E_SAMPLES.c147 int bytesLeft, nRead; in main() local
221 bytesLeft = ReadFile2Buf(infile,inData.Buffer,READ_SIZE); in main()
227 inData.Length = bytesLeft; in main()
262 bytesLeft = nRead; in main()
/frameworks/base/media/java/android/media/
DMetadata.java293 private boolean scanAllRecords(Parcel parcel, int bytesLeft) { in scanAllRecords() argument
298 while (bytesLeft > kRecordHeaderSize) { in scanAllRecords()
344 bytesLeft -= size; in scanAllRecords()
348 if (0 != bytesLeft || error) { in scanAllRecords()
/frameworks/base/libs/androidfw/
DBackupHelpers.cpp221 int bytesLeft; in write_update_file() local
233 bytesLeft = fileSize + sizeof(metadata); in write_update_file()
234 err = dataStream->WriteEntityHeader(key, bytesLeft); in write_update_file()
249 bytesLeft -= sizeof(metadata); // bytesLeft should == fileSize now in write_update_file()
252 while ((amt = read(fd, buf, bufsize)) != 0 && bytesLeft > 0) { in write_update_file()
253 bytesLeft -= amt; in write_update_file()
254 if (bytesLeft < 0) { in write_update_file()
255 amt += bytesLeft; // Plus a negative is minus. Don't write more than we promised. in write_update_file()
263 if (bytesLeft != 0) { in write_update_file()
264 if (bytesLeft > 0) { in write_update_file()
[all …]
/frameworks/base/core/java/com/android/internal/backup/
DLocalTransport.java388 int bytesLeft = numBytes; in sendBackupData() local
389 while (bytesLeft > 0) { in sendBackupData()
391 int nRead = mSocketInputStream.read(mFullBackupBuffer, 0, bytesLeft); in sendBackupData()
398 bytesLeft -= nRead; in sendBackupData()
/frameworks/av/media/libstagefright/
DMPEG4Writer.cpp2018 size_t bytesLeft = size; in parseAVCCodecSpecificData() local
2021 while (bytesLeft > 4 && !memcmp("\x00\x00\x00\x01", tmp, 4)) { in parseAVCCodecSpecificData()
2031 nextStartCode = parseParamSet(tmp + 4, bytesLeft - 4, type, &paramSetLen); in parseAVCCodecSpecificData()
2040 nextStartCode = parseParamSet(tmp + 4, bytesLeft - 4, type, &paramSetLen); in parseAVCCodecSpecificData()
2051 bytesLeft -= nextStartCode - tmp; in parseAVCCodecSpecificData()
2184 size_t bytesLeft = size; in parseHEVCCodecSpecificData() local
2185 while (bytesLeft > 4 && !memcmp("\x00\x00\x00\x01", tmp, 4)) { in parseHEVCCodecSpecificData()
2186 nextStartCode = findNextNalStartCode(tmp + 4, bytesLeft - 4); in parseHEVCCodecSpecificData()
2193 bytesLeft -= nextStartCode - tmp; in parseHEVCCodecSpecificData()