Searched refs:res (Results 1 - 25 of 76) sorted by relevance

1234

/system/netd/server/
H A DStrictController.cpp54 int res = 0; local
59 res |= execIptables(V4V6, "-N", LOCAL_PENALTY_LOG, NULL);
60 res |= execIptables(V4V6, "-A", LOCAL_PENALTY_LOG,
62 res |= execIptables(V4V6, "-A", LOCAL_PENALTY_LOG,
66 res |= execIptables(V4V6, "-N", LOCAL_PENALTY_REJECT, NULL);
67 res |= execIptables(V4V6, "-A", LOCAL_PENALTY_REJECT,
69 res |= execIptables(V4V6, "-A", LOCAL_PENALTY_REJECT,
71 res |= execIptables(V4V6, "-A", LOCAL_PENALTY_REJECT,
76 res |= execIptables(V4V6, "-N", LOCAL_CLEAR_DETECT, NULL);
77 res |
134 int res = 0; local
156 int res = 0; local
[all...]
H A DFirewallController.cpp58 int res = 0; local
61 res |= createChain(LOCAL_DOZABLE, LOCAL_INPUT, firewallType);
64 res |= createChain(LOCAL_STANDBY, LOCAL_INPUT, firewallType);
66 return res;
70 int res = 0; local
77 res |= execIptables(V4V6, "-A", LOCAL_INPUT, "-j", "DROP", NULL);
78 res |= execIptables(V4V6, "-A", LOCAL_OUTPUT, "-j", "REJECT", NULL);
79 res |= execIptables(V4V6, "-A", LOCAL_FORWARD, "-j", "REJECT", NULL);
85 return res;
89 int res local
102 int res = 0; local
148 int res = 0; local
172 int res = 0; local
203 int res = 0; local
239 int res = 0; local
276 int res = 0; local
[all...]
H A DNetdConstants.cpp42 static void logExecError(const char* argv[], int res, int status) { argument
50 ALOGE("exec() res=%d, status=%d for %s", res, status, args.c_str());
54 int res; local
57 res = android_fork_execvp(argc, (char **)argv, &status, false,
59 if (res || !WIFEXITED(status) || WEXITSTATUS(status)) {
61 logExecError(argv, res, status);
63 if (res)
64 return res;
92 int res local
107 int res = execIptables(target, false, args); local
115 int res = execIptables(target, true, args); local
171 addrinfo *res; local
[all...]
H A DIdletimerController.cpp154 int res; local
163 res = runIpxtablesCmd(ARRAY_SIZE(cmd1), cmd1);
165 if (res)
166 return res;
176 res = runIpxtablesCmd(ARRAY_SIZE(cmd2), cmd2);
178 return res;
182 int res = setDefaults(); local
183 return res;
187 int res = setDefaults(); local
188 return res;
194 int res; local
[all...]
H A DBandwidthController.cpp159 int res = 0; local
162 res |= runIptablesCmd(cmd, jumpHandling, IptIpV4, failureHandling);
163 res |= runIptablesCmd(cmd, jumpHandling, IptIpV6, failureHandling);
164 return res;
181 int res; local
220 res = android_fork_execvp(argc, (char **)argv, &status, false,
222 res = res || !WIFEXITED(status) || WEXITSTATUS(status);
223 if (res && failureHandling == IptFailShow) {
224 ALOGE("runIptablesCmd(): res
255 int res; local
289 int res = 0; local
304 std::string res; local
333 int res = 0; local
477 std::string res; local
509 int res = 0, res1, res2; local
563 int res = 0; local
598 int res = 0; local
667 int res = 0; local
707 int res = 0; local
804 int res = 0; local
858 int res = 0; local
890 int res = 0; local
919 int res = 0; local
940 int res = 0; local
962 int res = 0; local
977 int res = 0; local
1065 int res = 0; local
1096 int res = 0; local
1133 int res; local
1240 int res; local
1285 int res; local
[all...]
H A Doem_iptables_hook.cpp31 int res; local
33 res = android_fork_execvp(argc, (char **)argv, NULL, false, false);
34 return res;
H A Dndc.c80 int res = errno; local
82 return res;
97 int res = errno; local
100 return res;
107 int res = errno; local
110 return res;
135 int res = errno; local
138 return res;
146 int res = errno; local
154 return res;
[all...]
H A DNatController.cpp56 int res; local
58 res = android_fork_execvp(argc, (char **)argv, NULL, false, false);
73 ALOGV("runCmd(%s) res=%d", full_cmd.c_str(), res);
75 return res;
79 int res; local
80 res = setDefaults();
81 if (res < 0) {
82 return res;
/system/core/libcutils/
H A Dqtaguid.c62 int fd, res, savedErrno; local
71 res = TEMP_FAILURE_RETRY(write(fd, cmd, strlen(cmd)));
72 if (res < 0) {
77 if (res < 0) {
78 ALOGI("Failed write_ctrl(%s) res=%d errno=%d", cmd, res, savedErrno);
86 int res; local
92 res = TEMP_FAILURE_RETRY(write(param_fd, value, strlen(value)));
93 if (res < 0) {
102 int res; local
122 int res; local
137 int res; local
148 int cnt = 0, res = 0; local
[all...]
H A Dfs.c154 int res = 0; local
161 res = -EINVAL;
167 res = -errno;
179 res = -EINVAL;
191 res = -errno;
197 res = -errno;
203 res = -ELOOP;
208 res = -ENOTDIR;
217 res = -errno;
234 return res;
[all...]
/system/vold/fs/
H A DF2fs.cpp58 int res = mount(c_source, c_target, "f2fs", flags, NULL); local
59 if (res != 0) {
62 res = mount(c_source, c_target, "f2fs", flags | MS_RDONLY, NULL);
63 if (res != 0) {
69 return res;
/system/core/libutils/
H A DLinearTransform.cpp33 uint64_t* res,
38 assert(res);
67 *res = UINT64_MAX;
100 *res = (tmp2 << 32) | tmp1;
102 ++(*res);
103 if (!(*res)) {
104 *res = UINT64_MAX;
120 uint64_t scaled, res; local
176 res = scaled + basis2;
178 if ((scaled ^ basis2 ^ INT64_MIN) & (scaled ^ res)
29 scale_u64_to_u64( uint64_t val, uint32_t N, uint32_t D, uint64_t* res, bool round_up_not_down) argument
[all...]
/system/vold/
H A DPrivateVolume.cpp56 status_t res = ReadMetadata(mDmDevPath, mFsType, mFsUuid, mFsLabel); local
60 return res;
75 int res = cryptfs_setup_ext_volume(getId().c_str(), mRawDevPath.c_str(), local
78 if (res != 0) {
108 int res = ext4::Check(mDmDevPath, mPath); local
109 if (res == 0 || res == 1) {
122 int res = f2fs::Check(mDmDevPath); local
123 if (res == 0) {
H A DVolumeBase.cpp167 status_t res = doCreate(); local
171 return res;
189 status_t res = doDestroy(); local
191 return res;
205 status_t res = doMount(); local
206 if (res == OK) {
212 return res;
230 status_t res = doUnmount(); local
232 return res;
246 status_t res local
[all...]
H A DBenchmarkGen.h4058 status_t res = 0; local
4059 res |= CreateFile("stub", 0);
4061 res |= CreateFile("file115", 0);
4062 res |= CreateFile("file125", 0);
4063 res |= CreateFile("file43", 49152);
4064 res |= CreateFile("file2", 57016320);
4065 res |= CreateFile("file17", 176128);
4066 res |= CreateFile("file126", 0);
4067 res |= CreateFile("file4", 0);
4068 res |
4246 status_t res = 0; local
[all...]
/system/core/toolbox/
H A Dioctl.c158 int res; local
160 res = ioctl(fd, ioctl_nr, *(uint32_t*)ioctl_args);
162 res = ioctl(fd, ioctl_nr, ioctl_args);
164 res = ioctl(fd, ioctl_nr, 0);
165 if (res < 0) {
167 error(1, errno, "ioctl 0x%x failed (returned %d)", ioctl_nr, res);
H A Dgetevent.c66 int res; local
71 res = ioctl(fd, EVIOCGPROP(sizeof(bits)), bits);
72 if(res < 0) {
77 for(i = 0; i < res; i++) {
100 int res, res2; local
108 res = ioctl(fd, EVIOCGBIT(i, bits_size), bits);
109 if(res < bits_size)
111 bits_size = res + 16;
121 res2 = ioctl(fd, EVIOCGKEY(res), bits + bits_size);
138 res2 = ioctl(fd, EVIOCGLED(res), bit
434 int res; local
519 int res; local
[all...]
H A Dmount.c104 int res, no = s[0] == 'n' && s[1] == 'o'; local
120 for (i = 0, res = 1; i < ARRAY_SIZE(options); i++) {
121 res = strcmp(s, options[i].str);
123 if (res == 0) {
130 if (res <= 0)
134 if (res != 0 && s[0])
/system/core/debuggerd/
H A Dgetevent.cpp106 int res; local
114 res = read(nfd, event_buf, sizeof(event_buf));
115 if (res < (int)sizeof(*event)) {
126 while (res >= (int)sizeof(*event)) {
137 res -= event_size;
166 int res; local
174 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE);
175 if (res < 0) {
178 res = scan_dir(device_path);
179 if (res <
196 int res; local
[all...]
/system/bt/stack/smp/
H A Dsmp_api.c240 ** res - result of the operation SMP_SUCCESS if success.
246 void SMP_SecurityGrant(BD_ADDR bd_addr, UINT8 res) argument
262 smp_br_state_machine_event(&smp_cb, SMP_BR_API_SEC_GRANT_EVT, &res);
273 smp_sm_event(&smp_cb, SMP_API_SEC_GRANT_EVT, &res);
284 ** res - result of the operation SMP_SUCCESS if success
289 void SMP_PasskeyReply (BD_ADDR bd_addr, UINT8 res, UINT32 passkey) argument
295 passkey, res);
316 if (passkey > BTM_MAX_PASSKEY_VAL || res != SMP_SUCCESS)
344 ** res - comparison result SMP_SUCCESS if success
347 void SMP_ConfirmReply (BD_ADDR bd_addr, UINT8 res) argument
397 SMP_OobDataReply(BD_ADDR bd_addr, tSMP_STATUS res, UINT8 len, UINT8 *p_data) argument
[all...]
/system/core/adb/
H A Dusb_linux.cpp320 int res; local
335 res = -1;
339 res = ioctl(h->desc, USBDEVFS_SUBMITURB, urb);
340 } while((res < 0) && (errno == EINTR));
342 if(res < 0) {
346 res = -1;
353 res = pthread_cond_timedwait(&h->notify, &h->lock, &ts);
354 if(res < 0 || h->dead) {
359 res = urb->actual_length;
367 return res;
374 int res; local
[all...]
/system/bt/bta/hf_client/
H A Dbta_hf_client_at.c656 int res; local
659 res = sscanf(buffer, "%u%n", &value, &offset);
660 if (res < 1)
687 int res; local
689 while((res = sscanf(buffer, "%u%n", &value, &offset)) > 0)
706 if (res > 0)
721 int res; local
723 while ((res = sscanf(buffer, "(\"%128[^\"]\",(%u%*[-,]%u))%n", name, &min, &max, &offset)) > 2)
737 if (res > 2)
832 int res; local
912 int res; local
940 int res ; local
967 int res; local
994 int res; local
1021 int res; local
1089 int res; local
1141 int res; local
[all...]
/system/core/libpixelflinger/include/private/pixelflinger/
H A Dggl_fixed.h184 int64_t res; member in union:__anon1475
191 return res;
203 "mflo %[res] \t\n"
204 : [res]"=&r"(result),[tmp]"=&r"(tmp)
213 "mflo %[res] \t\n"
214 "addu %[tmp1],%[tmp],%[res] \t\n"
217 "mfhi %[res] \t\n"
218 "addu %[res],%[res],%[tmp]\t\n"
219 "addu %[res],
448 int64_t res; member in union:__anon1477
514 int64_t res; local
[all...]
/system/extras/tests/ext4/
H A Drand_emmc_perf.c148 struct timeval start, end, res; local
153 res.tv_sec = 0;
155 while (res.tv_sec < TEST_LEN) {
170 timersub(&end, &start, &res);
177 timersub(&end, &start, &res);
179 msecs = (res.tv_sec * 1000) + (res.tv_usec / 1000);
/system/extras/tests/iptables/qtaguid/
H A DsocketTag.cpp65 int res; local
72 res = write(ctrl, buff, strlen(buff));
73 testPrintI("cmd: '%s' res=%d %d/%s", buff, res, errno, strerror(errno));
77 return res;
83 int res; local
92 res = write(param_fd, data, strlen(data));
93 if (res < 0) {
97 return res;
140 int res; local
[all...]

Completed in 410 milliseconds

1234