Home
last modified time | relevance | path

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

/frameworks/base/cmds/idmap/
Dcreate.cpp62 size_t bytesLeft = size; in write_idmap() local
63 while (bytesLeft > 0) { in write_idmap()
64 ssize_t w = TEMP_FAILURE_RETRY(write(fd, data + size - bytesLeft, bytesLeft)); in write_idmap()
69 bytesLeft -= w; in write_idmap()
87 ssize_t bytesLeft = N; in is_idmap_stale_fd() local
92 ssize_t r = TEMP_FAILURE_RETRY(read(idmap_fd, buf + N - bytesLeft, bytesLeft)); in is_idmap_stale_fd()
96 bytesLeft -= r; in is_idmap_stale_fd()
97 if (bytesLeft == 0) { in is_idmap_stale_fd()
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScriptC.java84 int bytesLeft = pgm.length - pgmLength; in internalCreate() local
85 if (bytesLeft == 0) { in internalCreate()
89 bytesLeft = pgm.length - pgmLength; in internalCreate()
91 int bytesRead = is.read(pgm, pgmLength, bytesLeft); in internalCreate()
/frameworks/base/rs/java/android/renderscript/
DScriptC.java103 int bytesLeft = pgm.length - pgmLength; in internalCreate() local
104 if (bytesLeft == 0) { in internalCreate()
108 bytesLeft = pgm.length - pgmLength; in internalCreate()
110 int bytesRead = is.read(pgm, pgmLength, bytesLeft); in internalCreate()
DProgram.java256 int bytesLeft = str.length - strLength; in setShader() local
257 if (bytesLeft == 0) { in setShader()
261 bytesLeft = str.length - strLength; in setShader()
263 int bytesRead = is.read(str, strLength, bytesLeft); in setShader()
/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.java292 private boolean scanAllRecords(Parcel parcel, int bytesLeft) { in scanAllRecords() argument
297 while (bytesLeft > kRecordHeaderSize) { in scanAllRecords()
336 bytesLeft -= size; in scanAllRecords()
340 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/av/media/libstagefright/
DMPEG4Writer.cpp1827 size_t bytesLeft = length; in findNextStartCode() local
1828 while (bytesLeft > 4 && in findNextStartCode()
1829 memcmp("\x00\x00\x00\x01", &data[length - bytesLeft], 4)) { in findNextStartCode()
1830 --bytesLeft; in findNextStartCode()
1832 if (bytesLeft <= 4) { in findNextStartCode()
1833 bytesLeft = 0; // Last parameter set in findNextStartCode()
1835 return &data[length - bytesLeft]; in findNextStartCode()
1906 size_t bytesLeft = size; in parseAVCCodecSpecificData() local
1909 while (bytesLeft > 4 && !memcmp("\x00\x00\x00\x01", tmp, 4)) { in parseAVCCodecSpecificData()
1919 nextStartCode = parseParamSet(tmp + 4, bytesLeft - 4, type, &paramSetLen); in parseAVCCodecSpecificData()
[all …]