Searched defs:bytesLeft (Results 1 - 5 of 5) sorted by relevance

/frameworks/base/cmds/idmap/
H A Dcreate.cpp63 size_t bytesLeft = size; local
64 while (bytesLeft > 0) {
65 ssize_t w = TEMP_FAILURE_RETRY(write(fd, data + size - bytesLeft, bytesLeft));
70 bytesLeft -= static_cast<size_t>(w);
88 size_t bytesLeft = N; local
93 ssize_t r = TEMP_FAILURE_RETRY(read(idmap_fd, buf + N - bytesLeft, bytesLeft));
97 bytesLeft -= static_cast<size_t>(r);
98 if (bytesLeft
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/SampleCode/
H A DAAC_E_SAMPLES.c147 int bytesLeft, nRead; local
221 bytesLeft = ReadFile2Buf(infile,inData.Buffer,READ_SIZE);
227 inData.Length = bytesLeft;
262 bytesLeft = nRead;
/frameworks/base/media/java/android/media/
H A DMetadata.java290 * @param bytesLeft How many bytes in the parcel should be processed.
293 private boolean scanAllRecords(Parcel parcel, int bytesLeft) { argument
298 while (bytesLeft > kRecordHeaderSize) {
344 bytesLeft -= size;
348 if (0 != bytesLeft || error) {
/frameworks/base/libs/androidfw/
H A DBackupHelpers.cpp221 int bytesLeft; local
233 bytesLeft = fileSize + sizeof(metadata);
234 err = dataStream->WriteEntityHeader(key, bytesLeft);
249 bytesLeft -= sizeof(metadata); // bytesLeft should == fileSize now
252 while ((amt = read(fd, buf, bufsize)) != 0 && bytesLeft > 0) {
253 bytesLeft -= amt;
254 if (bytesLeft < 0) {
255 amt += bytesLeft; // Plus a negative is minus. Don't write more than we promised.
263 if (bytesLeft !
[all...]
/frameworks/av/media/libstagefright/
H A DMPEG4Writer.cpp2018 size_t bytesLeft = size; local
2021 while (bytesLeft > 4 && !memcmp("\x00\x00\x00\x01", tmp, 4)) {
2031 nextStartCode = parseParamSet(tmp + 4, bytesLeft - 4, type, &paramSetLen);
2040 nextStartCode = parseParamSet(tmp + 4, bytesLeft - 4, type, &paramSetLen);
2051 bytesLeft -= nextStartCode - tmp;
2184 size_t bytesLeft = size; local
2185 while (bytesLeft > 4 && !memcmp("\x00\x00\x00\x01", tmp, 4)) {
2186 nextStartCode = findNextNalStartCode(tmp + 4, bytesLeft - 4);
2193 bytesLeft -= nextStartCode - tmp;

Completed in 118 milliseconds