Home
last modified time | relevance | path

Searched refs:rv (Results 1 – 10 of 10) 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/bionic/libc/other/
Dtest_system.c9 int rv; in main() local
14 rv = system(argv[1]); in main()
15 if (rv < 0) { in main()
22 if (WEXITSTATUS(rv) != 0) { in main()
24 WEXITSTATUS(rv)); in main()
/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/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()
Dhd.c17 int rv = 0; in hd_main() local
Ddd.c569 ssize_t rv; in bwrite() local
573 rv = write(fd, buf, len); in bwrite()
577 return (rv); in bwrite()
/system/core/libdiskconfig/
Ddiskconfig.c242 int rv; in sync_ptable() local
251 if (S_ISBLK(stat.st_mode) && ((rv = ioctl(fd, BLKRRPART, NULL)) < 0)) { in sync_ptable()
438 int rv; in apply_disk_config() local
445 if ((rv = wlist_commit(fd, wr_lst, test)) >= 0) in apply_disk_config()
446 rv = test ? 0 : sync_ptable(fd); in apply_disk_config()
450 return rv; in apply_disk_config()
/system/netd/
DDnsProxyListener.cpp78 uint32_t rv = getaddrinfo(mHost, mService, mHints, &result); in run() local
79 if (rv) { in run()
81 mClient->sendBinaryMsg(ResponseCode::DnsProxyOperationFailed, &rv, sizeof(rv)); in run()
/system/core/toolbox/cp/
Dcp.c320 int rv; in popdne() local
322 rv = dnestack[--dnesp]; in popdne()
324 return rv; in popdne()