Searched defs:res (Results 26 - 41 of 41) sorted by last modified time

12

/system/core/toolbox/
H A Dtop.c327 int res, idx; local
/system/extras/tests/bionic/libc/common/
H A Dtest_getaddrinfo.c19 struct addrinfo* res; local
23 ret = getaddrinfo( SERVER_NAME, PORT_NUMBER, NULL, &res);
29 freeaddrinfo(res);
37 ret = getaddrinfo( SERVER_NAME, PORT_NUMBER, &hints, &res );
/system/extras/tests/ext4/
H A Drand_emmc_perf.c46 struct timeval start, end, res; local
101 res.tv_sec = 0;
103 while (res.tv_sec < TEST_LEN) {
118 timersub(&end, &start, &res);
125 timersub(&end, &start, &res);
127 printf("%d iops/sec\n", iops / (int) res.tv_sec);
/system/extras/tests/fstest/
H A Dperm_checker.c161 int res; local
165 while ((res = fscanf(fp, "%s %lo %lo %s %s %s %s\n", spec,
169 if (res < 7) {
/system/extras/tests/iptables/qtaguid/
H A DsocketTag.cpp61 int res; local
68 res = write(ctrl, buff, strlen(buff));
69 testPrintI("cmd: '%s' res=%d %d/%s", buff, res, errno, strerror(errno));
73 return res;
79 int res; local
88 res = write(param_fd, data, strlen(data));
89 if (res < 0) {
93 return res;
136 int res; local
[all...]
/system/extras/tests/memtest/
H A Dmemtest.cpp162 struct result_t { int size; float res; }; member in struct:result_t
201 results[nbr].res = throughput;
208 printf("%9d %9ld %9ld\n", results[i].size, (long)results[i].res, (long)results[i+1].res);
288 struct result_t { int size; float res; }; member in struct:result_t
317 results[nbr].res = throughput;
324 printf("%9d %9ld %9ld\n", results[i].size, (long)results[i].res, (long)results[i+1].res);
426 struct result_t { int size; float res; }; member in struct:result_t
462 results[nbr].res
538 struct result_t { int size; float res; }; member in struct:result_t
675 struct timespec res; local
[all...]
/system/extras/tests/sdcard/
H A Dsdcard_perf_test.cpp566 bool res = false; local
594 res = true;
598 return res;
/system/media/camera/src/
H A Dcamera_metadata.c286 int res; local
292 res = append_camera_metadata(clone, src);
293 if (res != OK) {
/system/netd/
H A DBandwidthController.cpp152 int res = 0; local
155 res |= runIptablesCmd(cmd, rejectHandling, IptIpV4, failureHandling);
156 res |= runIptablesCmd(cmd, rejectHandling, IptIpV6, failureHandling);
157 return res;
174 int res; local
194 res = system_nosh(fullCmd.c_str());
211 res = logwrap(argc, argv);
213 if (res && failureHandling == IptFailShow) {
214 ALOGE("runIptablesCmd(): failed %s res=%d", fullCmd.c_str(), res);
235 int res; local
270 int res = 0; local
285 std::string res; local
385 std::string res; local
414 int res = 0, res1, res2; local
468 int res = 0; local
504 int res = 0; local
571 int res = 0; local
609 int res = 0; local
694 int res = 0; local
741 int res = 0; local
773 int res = 0; local
801 int res = 0; local
822 int res = 0; local
844 int res = 0; local
859 int res = 0; local
937 int res = 0; local
963 int res = 0; local
993 int res; local
1037 int res; local
[all...]
H A DCommandListener.cpp1365 int res = sFirewallCtrl->enableFirewall(); local
1366 return sendGenericOkFail(cli, res);
1369 int res = sFirewallCtrl->disableFirewall(); local
1370 return sendGenericOkFail(cli, res);
1373 int res = sFirewallCtrl->isFirewallEnabled(); local
1374 return sendGenericOkFail(cli, res);
1387 int res = sFirewallCtrl->setInterfaceRule(iface, rule); local
1388 return sendGenericOkFail(cli, res);
1402 int res = sFirewallCtrl->setEgressSourceRule(addr, rule); local
1403 return sendGenericOkFail(cli, res);
1418 int res = 0; local
1435 int res = sFirewallCtrl->setUidRule(uid, rule); local
[all...]
H A DFirewallController.cpp42 int res = 0; local
48 res |= execIptables(V4V6, "-A", LOCAL_INPUT, "-j", "DROP", NULL);
49 res |= execIptables(V4V6, "-A", LOCAL_OUTPUT, "-j", "REJECT", NULL);
50 res |= execIptables(V4V6, "-A", LOCAL_FORWARD, "-j", "REJECT", NULL);
52 return res;
56 int res = 0; local
59 res |= execIptables(V4V6, "-F", LOCAL_INPUT, NULL);
60 res |= execIptables(V4V6, "-F", LOCAL_OUTPUT, NULL);
61 res |= execIptables(V4V6, "-F", LOCAL_FORWARD, NULL);
63 return res;
79 int res = 0; local
98 int res = 0; local
124 int res = 0; local
143 int res = 0; local
[all...]
H A DIdletimerController.cpp128 int res; local
136 res = system_nosh(buffer);
137 ALOGV("%s #%d", buffer, res);
140 return res;
148 int res; local
151 res = runIpxtablesCmd(buffer);
154 if (res)
155 return res;
158 res = runIpxtablesCmd(buffer);
160 return res;
164 int res = setDefaults(); local
169 int res = setDefaults(); local
176 int res; local
[all...]
H A DNatController.cpp51 int res; local
60 res = system_nosh(buffer);
61 ALOGV("runCmd() buffer='%s' res=%d", buffer, res);
63 return res;
H A DNetdConstants.cpp33 static void logExecError(const char* argv[], int res) { argument
41 ALOGE("exec() res=%d for %s", res, args.c_str());
61 int res = 0; local
69 res |= localRes;
79 res |= localRes;
82 return res;
88 int res = execIptables(target, false, args); local
90 return res;
96 int res local
[all...]
H A DThrottleController.cpp46 int res; local
55 res = system_nosh(buffer);
57 return res;
H A Doem_iptables_hook.cpp35 int res; local
43 res = system_nosh(buffer);
45 return res;

Completed in 102 milliseconds

12