Home
last modified time | relevance | path

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

/system/core/libcutils/
Dbuffer.c93 buffer->remaining = buffer->size; in bufferPrepareForWrite()
97 assert(buffer->remaining > 0); in bufferWrite()
98 assert(buffer->remaining <= buffer->size); in bufferWrite()
101 buffer->data + buffer->size - buffer->remaining, in bufferWrite()
102 buffer->remaining); in bufferWrite()
105 buffer->remaining -= bytesWritten; in bufferWrite()
109 ALOGD("Buffer remaining: %d", (int) buffer->remaining); in bufferWrite()
111 return buffer->remaining; in bufferWrite()
Dbuffer.h43 size_t remaining; member
61 #define bufferWriteComplete(buffer) (buffer->remaining == 0)
/system/core/libnl_2/
Dattr.c97 struct nlattr *nla_next(const struct nlattr *nla, int *remaining) in nla_next() argument
101 nla->nla_len <= *remaining){ in nla_next()
104 *remaining = *remaining - NLA_ALIGN(nla->nla_len); in nla_next()
112 int nla_ok(const struct nlattr *nla, int remaining) in nla_ok() argument
114 return remaining > 0 && in nla_ok()
116 sizeof(struct nlattr) <= (unsigned int) remaining && in nla_ok()
117 nla->nla_len <= remaining; in nla_ok()
Dmsg.c105 struct nlmsghdr *nlmsg_next(struct nlmsghdr *nlh, int *remaining) in nlmsg_next() argument
111 if (*remaining > 0 && in nlmsg_next()
112 len <= *remaining && in nlmsg_next()
115 *remaining -= len; in nlmsg_next()
/system/media/audio_utils/
Dtinysndfile.c27 size_t remaining; // frames unread for SFM_READ, frames written for SFM_WRITE member
102 handle->remaining = dataSize / bytesPerFrame; in sf_open_read()
103 handle->info.frames = handle->remaining; in sf_open_read()
160 handle->remaining = 0; in sf_open_write()
189 unsigned dataSize = handle->remaining * handle->bytesPerFrame; in sf_close()
201 if (handle == NULL || handle->mode != SFM_READ || ptr == NULL || !handle->remaining || in sf_readf_short()
205 if (handle->remaining < (size_t) desiredFrames) in sf_readf_short()
206 desiredFrames = handle->remaining; in sf_readf_short()
211 handle->remaining -= actualFrames; in sf_readf_short()
249 handle->remaining += actualFrames; in sf_writef_short()
/system/core/adb/
Dtransport.c935 size_t len, remaining = bufsize; in format_transport() local
937 len = snprintf(buf, remaining, "%-22s %s", serial, statename(t)); in format_transport()
938 remaining -= len; in format_transport()
941 add_qual(&buf, &remaining, " ", t->devpath, 0); in format_transport()
942 add_qual(&buf, &remaining, " product:", t->product, 0); in format_transport()
943 add_qual(&buf, &remaining, " model:", t->model, 1); in format_transport()
944 add_qual(&buf, &remaining, " device:", t->device, 0); in format_transport()
946 len = snprintf(buf, remaining, "\n"); in format_transport()
947 remaining -= len; in format_transport()
949 return bufsize - remaining; in format_transport()
Dadb.c299 size_t remaining = bufsize; in fill_connect_data()
302 len = snprintf(buf, remaining, "%s::", adb_device_banner); in fill_connect_data()
303 remaining -= len; in fill_connect_data()
308 len = snprintf(buf, remaining, "%s=%s;", cnxn_props[i], value); in fill_connect_data()
309 remaining -= len; in fill_connect_data()
313 return bufsize - remaining + 1; in fill_connect_data()
/system/extras/tests/lib/testUtil/
DtestUtil.c266 struct timespec remaining; in testDelay() local
280 remaining = double2ts(amt - ts2double(&delta)); in testDelay()
281 (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/libcutils/tests/memset_mips/
Dmemset_omips.S71 beq t0, zero, .Llast8 # word remaining after the loop
/system/security/keystore/
Dkeystore.cpp309 size_t remaining = size; in readFully() local
310 while (remaining > 0) { in readFully()
311 ssize_t n = TEMP_FAILURE_RETRY(read(fd, data, remaining)); in readFully()
313 return size - remaining; in readFully()
316 remaining -= n; in readFully()
322 size_t remaining = size; in writeFully() local
323 while (remaining > 0) { in writeFully()
324 ssize_t n = TEMP_FAILURE_RETRY(write(fd, data, remaining)); in writeFully()
327 return size - remaining; in writeFully()
330 remaining -= n; in writeFully()