Home
last modified time | relevance | path

Searched refs:rv (Results 1 – 12 of 12) sorted by relevance

/system/extras/tests/lib/testUtil/
DtestUtil.c48 double rv; in ts2double() local
50 rv = val->tv_sec; in ts2double()
51 rv += (double) val->tv_nsec / nSecsPerSec; in ts2double()
53 return rv; in ts2double()
59 double rv; in tv2double() local
61 rv = val->tv_sec; in tv2double()
62 rv += (double) val->tv_usec / uSecsPerSec; in tv2double()
64 return rv; in tv2double()
70 struct timespec rv; in double2ts() local
72 rv.tv_sec = floor(amt); in double2ts()
[all …]
/system/extras/tests/wifi/stress/
DwifiLoadScanAssoc.c128 int rv, opt; in main() local
279 if ((rv = wifi_load_driver()) != 0) { in main()
281 cpu, rv); in main()
288 if ((rv = wifi_start_supplicant(false)) != 0) { in main()
290 cpu, rv); in main()
304 rv = snprintf(cmd, sizeof(cmd), "%s", CMD_STATUS); in main()
305 if (rv >= (signed) sizeof(cmd) - 1) { in main()
314 if ((rv = wifi_stop_supplicant(false)) != 0) { in main()
316 cpu, rv); in main()
323 if ((rv = wifi_unload_driver()) != 0) { in main()
[all …]
/system/extras/tests/binder/benchmarks/
DbinderAddInts.cpp100 int rv; in main() local
106 if ((rv = sched_getaffinity(0, sizeof(availCPUs), &availCPUs)) != 0) { in main()
107 cerr << "sched_getaffinity failure, rv: " << rv in main()
204 rv = wait(&stat); in main()
205 if ((rv == -1) && (errno == ECHILD)) { break; } in main()
206 if (rv == -1) { in main()
207 cerr << "wait failed, rv: " << rv << " errno: " in main()
224 int rv; in server() local
229 if ((rv = sm->addService(serviceName, in server()
231 cerr << "addService " << serviceName << " failed, rv: " << rv in server()
[all …]
/system/extras/kexec_tools/
Dkexecload.c36 int rv; in test_kexeccall() local
38 rv = kexec_load(0, 0, NULL, KEXEC_ARCH_DEFAULT); in test_kexeccall()
40 if (rv != 0) { in test_kexeccall()
66 int rv; in main() local
152 rv = kexec_load(((uintptr_t) start_address + KEXEC_ARM_ZIMAGE_OFFSET), in main()
155 if (rv != 0) { in main()
156 fprintf(stderr, "Kexec_load returned non-zero exit code: %d with errno %d\n", rv, errno); in main()
/system/core/toolbox/
Dcmp.c16 int rv = 0; in cmp_main() local
67 return rv; in cmp_main()
77 rv = 1; in cmp_main()
82 return rv; in cmp_main()
/system/core/toolbox/upstream-netbsd/bin/sleep/
Dsleep.c74 int ch, fracflag, rv; in main() local
128 while ((rv = nanosleep(&ntime, &ntime)) != 0) { in main()
138 if (rv == -1) in main()
/system/core/libdiskconfig/
Ddiskconfig.c243 int rv; in sync_ptable() local
252 if (S_ISBLK(stat.st_mode) && ((rv = ioctl(fd, BLKRRPART, NULL)) < 0)) { in sync_ptable()
439 int rv; in apply_disk_config() local
446 if ((rv = wlist_commit(fd, wr_lst, test)) >= 0) in apply_disk_config()
447 rv = test ? 0 : sync_ptable(fd); in apply_disk_config()
451 return rv; in apply_disk_config()
/system/core/fastbootd/commands/
Dboot.c99 int rv; in prepare_boot_linux() local
137 rv = kexec_load(entry, segment_count, segment, KEXEC_ARCH_DEFAULT); in prepare_boot_linux()
139 if (rv != 0) { in prepare_boot_linux()
/system/core/fastbootd/
Dcommands.c57 int rv; in cmd_boot() local
133 rv = prepare_boot_linux(hdr->kernel_addr, kernel_ptr, kernel_actual, in cmd_boot()
137 if (rv < 0) { in cmd_boot()
/system/netd/server/
DDnsProxyListener.cpp128 uint32_t rv = android_getaddrinfofornet(mHost, mService, mHints, mNetId, mMark, &result); in run() local
129 if (rv) { in run()
131 mClient->sendBinaryMsg(ResponseCode::DnsProxyOperationFailed, &rv, sizeof(rv)); in run()
/system/core/toolbox/upstream-netbsd/bin/cp/
Dcp.c316 int rv; in popdne() local
318 rv = dnestack[--dnesp]; in popdne()
320 return rv; in popdne()
/system/core/toolbox/upstream-netbsd/bin/dd/
Ddd.c589 ssize_t rv; in bwrite() local
593 rv = io->ops->op_write(io->fd, buf, len); in bwrite()
597 return (rv); in bwrite()