Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 77) sorted by relevance

1234

/system/netd/server/
DStrictController.cpp54 int res = 0; in enableStrict() local
59 res |= execIptables(V4V6, "-N", LOCAL_PENALTY_LOG, NULL); in enableStrict()
60 res |= execIptables(V4V6, "-A", LOCAL_PENALTY_LOG, in enableStrict()
62 res |= execIptables(V4V6, "-A", LOCAL_PENALTY_LOG, in enableStrict()
66 res |= execIptables(V4V6, "-N", LOCAL_PENALTY_REJECT, NULL); in enableStrict()
67 res |= execIptables(V4V6, "-A", LOCAL_PENALTY_REJECT, in enableStrict()
69 res |= execIptables(V4V6, "-A", LOCAL_PENALTY_REJECT, in enableStrict()
71 res |= execIptables(V4V6, "-A", LOCAL_PENALTY_REJECT, in enableStrict()
76 res |= execIptables(V4V6, "-N", LOCAL_CLEAR_DETECT, NULL); in enableStrict()
77 res |= execIptables(V4V6, "-N", LOCAL_CLEAR_CAUGHT, NULL); in enableStrict()
[all …]
DFirewallController.cpp58 int res = 0; in setupIptablesHooks() local
61 res |= createChain(LOCAL_DOZABLE, LOCAL_INPUT, firewallType); in setupIptablesHooks()
64 res |= createChain(LOCAL_STANDBY, LOCAL_INPUT, firewallType); in setupIptablesHooks()
66 return res; in setupIptablesHooks()
70 int res = 0; in enableFirewall() local
77 res |= execIptables(V4V6, "-A", LOCAL_INPUT, "-j", "DROP", NULL); in enableFirewall()
78 res |= execIptables(V4V6, "-A", LOCAL_OUTPUT, "-j", "REJECT", NULL); in enableFirewall()
79 res |= execIptables(V4V6, "-A", LOCAL_FORWARD, "-j", "REJECT", NULL); in enableFirewall()
85 return res; in enableFirewall()
89 int res = 0; in disableFirewall() local
[all …]
DNetdConstants.cpp42 static void logExecError(const char* argv[], int res, int status) { in logExecError() argument
50 ALOGE("exec() res=%d, status=%d for %s", res, status, args.c_str()); in logExecError()
54 int res; in execIptablesCommand() local
57 res = android_fork_execvp(argc, (char **)argv, &status, false, in execIptablesCommand()
59 if (res || !WIFEXITED(status) || WEXITSTATUS(status)) { in execIptablesCommand()
61 logExecError(argv, res, status); in execIptablesCommand()
63 if (res) in execIptablesCommand()
64 return res; in execIptablesCommand()
92 int res = 0; in execIptables() local
95 res |= execIptablesCommand(argsList.size(), argv, silent); in execIptables()
[all …]
DBandwidthController.cpp159 int res = 0; in runIpxtablesCmd() local
162 res |= runIptablesCmd(cmd, jumpHandling, IptIpV4, failureHandling); in runIpxtablesCmd()
163 res |= runIptablesCmd(cmd, jumpHandling, IptIpV6, failureHandling); in runIpxtablesCmd()
164 return res; in runIpxtablesCmd()
181 int res; in runIptablesCmd() local
220 res = android_fork_execvp(argc, (char **)argv, &status, false, in runIptablesCmd()
222 res = res || !WIFEXITED(status) || WEXITSTATUS(status); in runIptablesCmd()
223 if (res && failureHandling == IptFailShow) { in runIptablesCmd()
224 ALOGE("runIptablesCmd(): res=%d status=%d failed %s", res, status, in runIptablesCmd()
227 return res; in runIptablesCmd()
[all …]
DIdletimerController.cpp154 int res; in setDefaults() local
163 res = runIpxtablesCmd(ARRAY_SIZE(cmd1), cmd1); in setDefaults()
165 if (res) in setDefaults()
166 return res; in setDefaults()
176 res = runIpxtablesCmd(ARRAY_SIZE(cmd2), cmd2); in setDefaults()
178 return res; in setDefaults()
182 int res = setDefaults(); in enableIdletimerControl() local
183 return res; in enableIdletimerControl()
187 int res = setDefaults(); in disableIdletimerControl() local
188 return res; in disableIdletimerControl()
[all …]
Dndc.c80 int res = errno; in do_cmd() local
82 return res; in do_cmd()
97 int res = errno; in do_cmd() local
100 return res; in do_cmd()
107 int res = errno; in do_cmd() local
110 return res; in do_cmd()
135 int res = errno; in do_monitor() local
138 return res; in do_monitor()
146 int res = errno; in do_monitor() local
154 return res; in do_monitor()
DNatController.cpp56 int res; in runCmd() local
58 res = android_fork_execvp(argc, (char **)argv, NULL, false, false); in runCmd()
73 ALOGV("runCmd(%s) res=%d", full_cmd.c_str(), res); in runCmd()
75 return res; in runCmd()
79 int res; in setupIptablesHooks() local
80 res = setDefaults(); in setupIptablesHooks()
81 if (res < 0) { in setupIptablesHooks()
82 return res; in setupIptablesHooks()
Doem_iptables_hook.cpp31 int res; in runIptablesCmd() local
33 res = android_fork_execvp(argc, (char **)argv, NULL, false, false); in runIptablesCmd()
34 return res; in runIptablesCmd()
/system/core/libcutils/
Dqtaguid.c62 int fd, res, savedErrno; in write_ctrl() local
71 res = TEMP_FAILURE_RETRY(write(fd, cmd, strlen(cmd))); in write_ctrl()
72 if (res < 0) { in write_ctrl()
77 if (res < 0) { in write_ctrl()
78 ALOGI("Failed write_ctrl(%s) res=%d errno=%d", cmd, res, savedErrno); in write_ctrl()
86 int res; in write_param() local
92 res = TEMP_FAILURE_RETRY(write(param_fd, value, strlen(value))); in write_param()
93 if (res < 0) { in write_param()
102 int res; in qtaguid_tagSocket() local
111 res = write_ctrl(lineBuf); in qtaguid_tagSocket()
[all …]
Dfs.c154 int res = 0; in fs_mkdirs() local
161 res = -EINVAL; in fs_mkdirs()
167 res = -errno; in fs_mkdirs()
179 res = -EINVAL; in fs_mkdirs()
191 res = -errno; in fs_mkdirs()
197 res = -errno; in fs_mkdirs()
203 res = -ELOOP; in fs_mkdirs()
208 res = -ENOTDIR; in fs_mkdirs()
217 res = -errno; in fs_mkdirs()
234 return res; in fs_mkdirs()
/system/core/debuggerd/
Dgetevent.cpp106 int res; in read_notify() local
114 res = read(nfd, event_buf, sizeof(event_buf)); in read_notify()
115 if (res < (int)sizeof(*event)) { in read_notify()
126 while (res >= (int)sizeof(*event)) { in read_notify()
137 res -= event_size; in read_notify()
166 int res; in init_getevent() local
174 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE); in init_getevent()
175 if (res < 0) { in init_getevent()
178 res = scan_dir(device_path); in init_getevent()
179 if (res < 0) { in init_getevent()
[all …]
/system/core/libutils/
DLinearTransform.cpp33 uint64_t* res, in scale_u64_to_u64() argument
38 assert(res); in scale_u64_to_u64()
67 *res = UINT64_MAX; in scale_u64_to_u64()
100 *res = (tmp2 << 32) | tmp1; in scale_u64_to_u64()
102 ++(*res); in scale_u64_to_u64()
103 if (!(*res)) { in scale_u64_to_u64()
104 *res = UINT64_MAX; in scale_u64_to_u64()
120 uint64_t scaled, res; in linear_transform_s64_to_s64() local
176 res = scaled + basis2; in linear_transform_s64_to_s64()
178 if ((scaled ^ basis2 ^ INT64_MIN) & (scaled ^ res) & INT64_MIN) in linear_transform_s64_to_s64()
[all …]
/system/core/toolbox/
Dgetevent.c66 int res; in print_input_props() local
71 res = ioctl(fd, EVIOCGPROP(sizeof(bits)), bits); in print_input_props()
72 if(res < 0) { in print_input_props()
77 for(i = 0; i < res; i++) { in print_input_props()
100 int res, res2; in print_possible_events() local
108 res = ioctl(fd, EVIOCGBIT(i, bits_size), bits); in print_possible_events()
109 if(res < bits_size) in print_possible_events()
111 bits_size = res + 16; in print_possible_events()
121 res2 = ioctl(fd, EVIOCGKEY(res), bits + bits_size); in print_possible_events()
138 res2 = ioctl(fd, EVIOCGLED(res), bits + bits_size); in print_possible_events()
[all …]
Dioctl.c158 int res; in ioctl_main() local
160 res = ioctl(fd, ioctl_nr, *(uint32_t*)ioctl_args); in ioctl_main()
162 res = ioctl(fd, ioctl_nr, ioctl_args); in ioctl_main()
164 res = ioctl(fd, ioctl_nr, 0); in ioctl_main()
165 if (res < 0) { in ioctl_main()
167 error(1, errno, "ioctl 0x%x failed (returned %d)", ioctl_nr, res); in ioctl_main()
/system/vold/
DVolumeBase.cpp167 status_t res = doCreate(); in create() local
171 return res; in create()
189 status_t res = doDestroy(); in destroy() local
191 return res; in destroy()
205 status_t res = doMount(); in mount() local
206 if (res == OK) { in mount()
212 return res; in mount()
230 status_t res = doUnmount(); in unmount() local
232 return res; in unmount()
246 status_t res = doFormat(fsType); in format() local
[all …]
DBenchmarkGen.h4058 status_t res = 0; in BenchmarkCreate() local
4059 res |= CreateFile("stub", 0); in BenchmarkCreate()
4061 res |= CreateFile("file115", 0); in BenchmarkCreate()
4062 res |= CreateFile("file125", 0); in BenchmarkCreate()
4063 res |= CreateFile("file43", 49152); in BenchmarkCreate()
4064 res |= CreateFile("file2", 57016320); in BenchmarkCreate()
4065 res |= CreateFile("file17", 176128); in BenchmarkCreate()
4066 res |= CreateFile("file126", 0); in BenchmarkCreate()
4067 res |= CreateFile("file4", 0); in BenchmarkCreate()
4068 res |= CreateFile("file175", 9); in BenchmarkCreate()
[all …]
DPrivateVolume.cpp56 status_t res = ReadMetadata(mDmDevPath, mFsType, mFsUuid, mFsLabel); in readMetadata() local
60 return res; in readMetadata()
75 int res = cryptfs_setup_ext_volume(getId().c_str(), mRawDevPath.c_str(), in doCreate() local
78 if (res != 0) { in doCreate()
108 int res = ext4::Check(mDmDevPath, mPath); in doMount() local
109 if (res == 0 || res == 1) { in doMount()
122 int res = f2fs::Check(mDmDevPath); in doMount() local
123 if (res == 0) { in doMount()
DUtils.cpp62 status_t res = 0; in CreateDeviceNode() local
76 res = -errno; in CreateDeviceNode()
85 return res; in CreateDeviceNode()
107 int res = fs_prepare_dir(cpath, mode, uid, gid); in PrepareDir() local
114 if (res == 0) { in PrepareDir()
182 status_t res = ForkExecvp(cmd, output, untrusted ? sBlkidUntrustedContext : sBlkidContext); in readMetadata() local
183 if (res != OK) { in readMetadata()
185 return res; in readMetadata()
241 status_t res = android_fork_execvp(argc, argv, NULL, false, true); in ForkExecvp() local
248 return res; in ForkExecvp()
[all …]
/system/vold/fs/
DF2fs.cpp58 int res = mount(c_source, c_target, "f2fs", flags, NULL); in Mount() local
59 if (res != 0) { in Mount()
62 res = mount(c_source, c_target, "f2fs", flags | MS_RDONLY, NULL); in Mount()
63 if (res != 0) { in Mount()
69 return res; in Mount()
/system/bt/bta/hf_client/
Dbta_hf_client_at.c656 int res; in bta_hf_client_parse_uint32() local
659 res = sscanf(buffer, "%u%n", &value, &offset); in bta_hf_client_parse_uint32()
660 if (res < 1) in bta_hf_client_parse_uint32()
687 int res; in bta_hf_client_parse_cind_values() local
689 while((res = sscanf(buffer, "%u%n", &value, &offset)) > 0) in bta_hf_client_parse_cind_values()
706 if (res > 0) in bta_hf_client_parse_cind_values()
721 int res; in bta_hf_client_parse_cind_list() local
723 while ((res = sscanf(buffer, "(\"%128[^\"]\",(%u%*[-,]%u))%n", name, &min, &max, &offset)) > 2) in bta_hf_client_parse_cind_list()
737 if (res > 2) in bta_hf_client_parse_cind_list()
832 int res; in bta_hf_client_parse_ciev() local
[all …]
/system/core/adb/
Dusb_linux.cpp320 int res; in usb_bulk_write() local
335 res = -1; in usb_bulk_write()
339 res = ioctl(h->desc, USBDEVFS_SUBMITURB, urb); in usb_bulk_write()
340 } while((res < 0) && (errno == EINTR)); in usb_bulk_write()
342 if(res < 0) { in usb_bulk_write()
346 res = -1; in usb_bulk_write()
353 res = pthread_cond_timedwait(&h->notify, &h->lock, &ts); in usb_bulk_write()
354 if(res < 0 || h->dead) { in usb_bulk_write()
359 res = urb->actual_length; in usb_bulk_write()
367 return res; in usb_bulk_write()
[all …]
/system/bt/stack/smp/
Dsmp_api.c246 void SMP_SecurityGrant(BD_ADDR bd_addr, UINT8 res) in SMP_SecurityGrant() argument
262 smp_br_state_machine_event(&smp_cb, SMP_BR_API_SEC_GRANT_EVT, &res); in SMP_SecurityGrant()
273 smp_sm_event(&smp_cb, SMP_API_SEC_GRANT_EVT, &res); in SMP_SecurityGrant()
289 void SMP_PasskeyReply (BD_ADDR bd_addr, UINT8 res, UINT32 passkey) in SMP_PasskeyReply() argument
295 passkey, res); in SMP_PasskeyReply()
316 if (passkey > BTM_MAX_PASSKEY_VAL || res != SMP_SUCCESS) in SMP_PasskeyReply()
347 void SMP_ConfirmReply (BD_ADDR bd_addr, UINT8 res) in SMP_ConfirmReply() argument
352 SMP_TRACE_EVENT ("%s: Result:%d", __FUNCTION__, res); in SMP_ConfirmReply()
373 if (res != SMP_SUCCESS) in SMP_ConfirmReply()
397 void SMP_OobDataReply(BD_ADDR bd_addr, tSMP_STATUS res, UINT8 len, UINT8 *p_data) in SMP_OobDataReply() argument
[all …]
/system/extras/tests/ext4/
Drand_emmc_perf.c148 struct timeval start, end, res; in perf_test() local
153 res.tv_sec = 0; in perf_test()
155 while (res.tv_sec < TEST_LEN) { in perf_test()
170 timersub(&end, &start, &res); in perf_test()
177 timersub(&end, &start, &res); in perf_test()
179 msecs = (res.tv_sec * 1000) + (res.tv_usec / 1000); in perf_test()
/system/core/libpixelflinger/include/private/pixelflinger/
Dggl_fixed.h184 int64_t res; in gglMulii() member
191 return res; in gglMulii()
204 : [res]"=&r"(result),[tmp]"=&r"(tmp) in gglMulx()
220 : [res]"=&r"(result),[tmp]"=&r"(tmp),[tmp1]"=&r"(tmp1) in gglMulx()
238 : [res]"=&r"(result),[tmp]"=&r"(tmp),[tmp1]"=&r"(tmp1),[tmp2]"=&r"(tmp2) in gglMulx()
260 : [res]"=&r"(result),[tmp]"=&r"(tmp),[tmp1]"=&r"(tmp1),[tmp2]"=&r"(tmp2) in gglMulx()
283 : [res]"=&r"(result),[tmp]"=&r"(tmp),[tmp1]"=&r"(tmp1),[tmp2]"=&r"(tmp2) in gglMulx()
321 : [res]"=&r"(result),[t]"=&r"(t) in gglMulAddx()
338 : [res]"=&r"(result),[t]"=&r"(t),[tmp1]"=&r"(tmp1),[tmp2]"=&r"(tmp2) in gglMulAddx()
356 : [res]"=&r"(result),[t]"=&r"(t),[tmp1]"=&r"(tmp1),[tmp2]"=&r"(tmp2) in gglMulAddx()
[all …]
/system/extras/tests/iptables/qtaguid/
DsocketTag.cpp65 int res; in doCtrlCommand() local
72 res = write(ctrl, buff, strlen(buff)); in doCtrlCommand()
73 testPrintI("cmd: '%s' res=%d %d/%s", buff, res, errno, strerror(errno)); in doCtrlCommand()
77 return res; in doCtrlCommand()
83 int res; in writeModuleParam() local
92 res = write(param_fd, data, strlen(data)); in writeModuleParam()
93 if (res < 0) { in writeModuleParam()
97 return res; in writeModuleParam()
140 int res; in checkTag() local
173 res = sscanf(pos - strlen("sock=1234abcd"), in checkTag()
[all …]

1234