Home
last modified time | relevance | path

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

/system/media/audio_utils/
Dtinysndfile.c34 size_t remaining; // frames unread for SFM_READ, frames written for SFM_WRITE member
109 size_t remaining = riffSize - 4; in sf_open_read() local
113 while (remaining >= 8) { in sf_open_read()
122 remaining -= 8; in sf_open_read()
124 if (chunkSize > remaining) { in sf_open_read()
126 fprintf(stderr, "chunkSize %u > remaining %zu\n", chunkSize, remaining); in sf_open_read()
243 handle->remaining = chunkSize / handle->bytesPerFrame; in sf_open_read()
244 handle->info.frames = handle->remaining; in sf_open_read()
265 remaining -= chunkSize; in sf_open_read()
267 if (remaining > 0) { in sf_open_read()
[all …]
/system/core/base/
Dfile.cpp125 size_t remaining = byte_count; in ReadFully() local
126 while (remaining > 0) { in ReadFully()
127 ssize_t n = TEMP_FAILURE_RETRY(read(fd, p, remaining)); in ReadFully()
130 remaining -= n; in ReadFully()
137 size_t remaining = byte_count; in WriteFully() local
138 while (remaining > 0) { in WriteFully()
139 ssize_t n = TEMP_FAILURE_RETRY(write(fd, p, remaining)); in WriteFully()
142 remaining -= n; in WriteFully()
/system/core/liblog/
Dlog_read.c489 size_t remaining = len; in android_logger_get_statistics() local
492 n = snprintf(cp, remaining, "getStatistics"); in android_logger_get_statistics()
493 n = min(n, remaining); in android_logger_get_statistics()
494 remaining -= n; in android_logger_get_statistics()
498 n = snprintf(cp, remaining, " %d", logger->id); in android_logger_get_statistics()
499 n = min(n, remaining); in android_logger_get_statistics()
500 remaining -= n; in android_logger_get_statistics()
783 int remaining = sizeof(buffer) - (cp - buffer); in android_logger_list_read() local
785 ret = snprintf(cp, remaining, "%c%u", c, logger->id); in android_logger_list_read()
786 ret = min(ret, remaining); in android_logger_list_read()
[all …]
/system/keymaster/
Docb.c796 unsigned i, k, tz, remaining; in process_ad() local
850 remaining = ((unsigned)ad_len) % (BPI * 16); in process_ad()
851 if (remaining) { in process_ad()
854 if (remaining >= 64) { in process_ad()
863 remaining -= 64; in process_ad()
867 if (remaining >= 32) { in process_ad()
872 remaining -= 32; in process_ad()
875 if (remaining >= 16) { in process_ad()
878 remaining = remaining - 16; in process_ad()
881 if (remaining) { in process_ad()
[all …]
/system/extras/taskstats/
Dtaskstats.c74 int remaining = genlmsg_attrlen(gnlh, 0); in parse_family_id() local
81 } while ((attr = nla_next(attr, &remaining))); in parse_family_id()
129 int remaining = genlmsg_attrlen(gnlh, 0); in parse_task_stats() local
141 } while ((attr = nla_next(attr, &remaining))); in parse_task_stats()
/system/extras/tests/lib/testUtil/
DtestUtil.c267 struct timespec remaining; in testDelay() local
281 remaining = double2ts(amt - ts2double(&delta)); in testDelay()
282 (void) nanosleep(&remaining, NULL); in testDelay()
/system/core/fastboot/
Dfastboot_protocol.txt32 a. INFO -> the remaining 60 bytes are an informative message
36 b. FAIL -> the requested command failed. The remaining 60 bytes
57 a. INFO -> display the remaining 60 bytes and return to #4
59 b. FAIL -> display the remaining 60 bytes (if present) as a failure
/system/core/adb/
Dadb.cpp303 size_t remaining = bufsize; in fill_connect_data()
306 len = snprintf(buf, remaining, "%s::", adb_device_banner); in fill_connect_data()
307 remaining -= len; in fill_connect_data()
312 len = snprintf(buf, remaining, "%s=%s;", cnxn_props[i], value); in fill_connect_data()
313 remaining -= len; in fill_connect_data()
317 return bufsize - remaining + 1; in fill_connect_data()
/system/security/keystore/
Dkeystore.cpp407 size_t remaining = size; in readFully() local
408 while (remaining > 0) { in readFully()
409 ssize_t n = TEMP_FAILURE_RETRY(read(fd, data, remaining)); in readFully()
411 return size - remaining; in readFully()
414 remaining -= n; in readFully()
420 size_t remaining = size; in writeFully() local
421 while (remaining > 0) { in writeFully()
422 ssize_t n = TEMP_FAILURE_RETRY(write(fd, data, remaining)); in writeFully()
425 return size - remaining; in writeFully()
428 remaining -= n; in writeFully()
/system/core/libziparchive/
Dzip_archive.cc1198 uint32_t remaining = length - count; in CopyEntryToWriter() local
1202 const ssize_t block_size = (remaining > kBufSize) ? kBufSize : remaining; in CopyEntryToWriter()
/system/core/rootdir/
Dinit.rc346 # Create all remaining /data root dirs so that they are made through init