Searched defs:remaining (Results 1 - 6 of 6) sorted by relevance

/system/core/libcutils/
H A Dbuffer.h43 size_t remaining; member in union:__anon388::__anon389
61 #define bufferWriteComplete(buffer) (buffer->remaining == 0)
101 * of an error. Updates buffer->remaining and returns the number of remaining
104 * Precondition: buffer->remaining > 0
/system/core/libnl_2/
H A Dmsg.c105 struct nlmsghdr *nlmsg_next(struct nlmsghdr *nlh, int *remaining) argument
111 if (*remaining > 0 &&
112 len <= *remaining &&
115 *remaining -= len;
138 /* Check if the netlink message fits into the remaining bytes */
H A Dattr.c97 struct nlattr *nla_next(const struct nlattr *nla, int *remaining) argument
101 nla->nla_len <= *remaining){
104 *remaining = *remaining - NLA_ALIGN(nla->nla_len);
112 int nla_ok(const struct nlattr *nla, int remaining) argument
114 return remaining > 0 &&
116 sizeof(struct nlattr) <= (unsigned int) remaining &&
117 nla->nla_len <= remaining;
/system/extras/tests/lib/testUtil/
H A DtestUtil.c266 struct timespec remaining; local
279 // Request to sleep for the remaining time
280 remaining = double2ts(amt - ts2double(&delta));
281 (void) nanosleep(&remaining, NULL);
/system/core/adb/
H A Dtransport.c928 size_t len, remaining = bufsize; local
930 len = snprintf(buf, remaining, "%-22s %s", serial, statename(t));
931 remaining -= len;
934 add_qual(&buf, &remaining, " ", t->devpath, 0);
935 add_qual(&buf, &remaining, " product:", t->product, 0);
936 add_qual(&buf, &remaining, " model:", t->model, 1);
937 add_qual(&buf, &remaining, " device:", t->device, 0);
939 len = snprintf(buf, remaining, "\n");
940 remaining -= len;
942 return bufsize - remaining;
[all...]
/system/security/keystore/
H A Dkeystore.cpp202 size_t remaining = size; local
203 while (remaining > 0) {
206 return size-remaining;
209 remaining -= n;
215 size_t remaining = size; local
216 while (remaining > 0) {
219 return size-remaining;
222 remaining -= n;

Completed in 53 milliseconds