/system/core/libcutils/ |
D | qtaguid.c | 62 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() 79 ALOGV("Failed write_ctrl(%s) res=%d errno=%d", cmd, res, savedErrno); in write_ctrl() 87 int res; in write_param() local 93 res = TEMP_FAILURE_RETRY(write(param_fd, value, strlen(value))); in write_param() 94 if (res < 0) { in write_param() 103 int res; in qtaguid_tagSocket() local 112 res = write_ctrl(lineBuf); in qtaguid_tagSocket() [all …]
|
D | fs.c | 190 int res = 0; in fs_mkdirs() local 197 res = -EINVAL; in fs_mkdirs() 203 res = -errno; in fs_mkdirs() 215 res = -EINVAL; in fs_mkdirs() 227 res = -errno; in fs_mkdirs() 233 res = -errno; in fs_mkdirs() 239 res = -ELOOP; in fs_mkdirs() 244 res = -ENOTDIR; in fs_mkdirs() 253 res = -errno; in fs_mkdirs() 270 return res; in fs_mkdirs()
|
/system/netd/server/ |
D | NetdConstants.cpp | 44 static void logExecError(const char* argv[], int res, int status) { in logExecError() argument 52 ALOGE("exec() res=%d, status=%d for %s", res, status, args.c_str()); in logExecError() 56 int res; in execIptablesCommand() local 59 res = android_fork_execvp(argc, (char **)argv, &status, false, in execIptablesCommand() 61 if (res || !WIFEXITED(status) || WEXITSTATUS(status)) { in execIptablesCommand() 63 logExecError(argv, res, status); in execIptablesCommand() 65 if (res) in execIptablesCommand() 66 return res; in execIptablesCommand() 94 int res = 0; in execIptables() local 97 res |= execIptablesCommand(argsList.size(), argv, silent); in execIptables() [all …]
|
D | FirewallController.cpp | 65 int res = 0; in setupIptablesHooks() local 68 res |= createChain(LOCAL_DOZABLE, LOCAL_INPUT, firewallType); in setupIptablesHooks() 71 res |= createChain(LOCAL_STANDBY, LOCAL_INPUT, firewallType); in setupIptablesHooks() 74 res |= createChain(LOCAL_POWERSAVE, LOCAL_INPUT, firewallType); in setupIptablesHooks() 76 return res; in setupIptablesHooks() 80 int res = 0; in enableFirewall() local 87 res |= execIptables(V4V6, "-A", LOCAL_INPUT, "-j", "DROP", NULL); in enableFirewall() 88 res |= execIptables(V4V6, "-A", LOCAL_OUTPUT, "-j", "REJECT", NULL); in enableFirewall() 89 res |= execIptables(V4V6, "-A", LOCAL_FORWARD, "-j", "REJECT", NULL); in enableFirewall() 95 return res; in enableFirewall() [all …]
|
D | IdletimerController.cpp | 154 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 …]
|
D | BandwidthController.cpp | 197 int res = 0; in runIpxtablesCmd() local 200 res |= runIptablesCmd(cmd, jumpHandling, IptIpV4, failureHandling); in runIpxtablesCmd() 201 res |= runIptablesCmd(cmd, jumpHandling, IptIpV6, failureHandling); in runIpxtablesCmd() 202 return res; in runIpxtablesCmd() 219 int res; in runIptablesCmd() local 258 res = execFunction(argc, (char **)argv, &status, false, in runIptablesCmd() 260 res = res || !WIFEXITED(status) || WEXITSTATUS(status); in runIptablesCmd() 261 if (res && failureHandling == IptFailShow) { in runIptablesCmd() 262 ALOGE("runIptablesCmd(): res=%d status=%d failed %s", res, status, in runIptablesCmd() 265 return res; in runIptablesCmd() [all …]
|
D | ndc.c | 80 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()
|
D | StrictController.cpp | 66 int res = 0; in enableStrict() local 132 res |= execIptablesRestore(V4, android::base::Join(v4, '\n')); in enableStrict() 133 res |= execIptablesRestore(V6, android::base::Join(v6, '\n')); in enableStrict() 139 return res; in enableStrict() 163 int res = 0; in setUidCleartextPenalty() local 178 res |= execIptables(V4V6, "-I", LOCAL_OUTPUT, in setUidCleartextPenalty() 183 res |= execIptables(V4V6, "-I", LOCAL_CLEAR_CAUGHT, in setUidCleartextPenalty() 187 res |= execIptables(V4V6, "-I", LOCAL_CLEAR_CAUGHT, in setUidCleartextPenalty() 193 return res; in setUidCleartextPenalty()
|
D | NatController.cpp | 56 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()
|
D | oem_iptables_hook.cpp | 31 int res; in runIptablesCmd() local 33 res = android_fork_execvp(argc, (char **)argv, NULL, false, false); in runIptablesCmd() 34 return res; in runIptablesCmd()
|
D | SockDiag.cpp | 135 addrinfo *res; in sendDumpRequest() local 141 if ((ret = getaddrinfo(addrstr, nullptr, &hints, &res)) != 0) { in sendDumpRequest() 146 ScopedAddrinfo resP(res); in sendDumpRequest() 150 if (res->ai_family == AF_INET && family == AF_INET) { in sendDumpRequest() 151 in_addr& ina = reinterpret_cast<sockaddr_in*>(res->ai_addr)->sin_addr; in sendDumpRequest() 154 } else if (res->ai_family == AF_INET && family == AF_INET6) { in sendDumpRequest() 155 in_addr& ina = reinterpret_cast<sockaddr_in*>(res->ai_addr)->sin_addr; in sendDumpRequest() 159 } else if (res->ai_family == AF_INET6 && family == AF_INET6) { in sendDumpRequest() 160 in6_addr& in6a = reinterpret_cast<sockaddr_in6*>(res->ai_addr)->sin6_addr; in sendDumpRequest()
|
/system/core/debuggerd/ |
D | getevent.cpp | 106 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/ |
D | LinearTransform.cpp | 46 uint64_t* res, in scale_u64_to_u64() argument 51 assert(res); in scale_u64_to_u64() 80 *res = UINT64_MAX; in scale_u64_to_u64() 113 *res = (tmp2 << 32) | tmp1; in scale_u64_to_u64() 115 ++(*res); in scale_u64_to_u64() 116 if (!(*res)) { in scale_u64_to_u64() 117 *res = UINT64_MAX; in scale_u64_to_u64() 135 uint64_t scaled, res; in linear_transform_s64_to_s64() local 191 res = scaled + basis2; in linear_transform_s64_to_s64() 193 if ((scaled ^ basis2 ^ INT64_MIN) & (scaled ^ res) & INT64_MIN) in linear_transform_s64_to_s64() [all …]
|
/system/core/toolbox/ |
D | getevent.c | 66 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 …]
|
D | ioctl.c | 158 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/ |
D | VolumeBase.cpp | 167 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 …]
|
D | BenchmarkGen.h | 4058 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 …]
|
D | PrivateVolume.cpp | 56 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()
|
D | secdiscard.cpp | 170 std::unique_ptr<struct fiemap> res(new (::operator new (allocsize)) struct fiemap); in alloc_fiemap() local 171 memset(res.get(), 0, allocsize); in alloc_fiemap() 172 res->fm_start = 0; in alloc_fiemap() 173 res->fm_length = UINT64_MAX; in alloc_fiemap() 174 res->fm_flags = 0; in alloc_fiemap() 175 res->fm_extent_count = extent_count; in alloc_fiemap() 176 res->fm_mapped_extents = 0; in alloc_fiemap() 177 return res; in alloc_fiemap()
|
/system/vold/fs/ |
D | F2fs.cpp | 58 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/core/libpixelflinger/include/private/pixelflinger/ |
D | ggl_fixed.h | 184 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/bt/bta/hf_client/ |
D | bta_hf_client_at.c | 634 int res; in bta_hf_client_parse_uint32() local 637 res = sscanf(buffer, "%u%n", &value, &offset); in bta_hf_client_parse_uint32() 638 if (res < 1) in bta_hf_client_parse_uint32() 665 int res; in bta_hf_client_parse_cind_values() local 667 while((res = sscanf(buffer, "%u%n", &value, &offset)) > 0) in bta_hf_client_parse_cind_values() 684 if (res > 0) in bta_hf_client_parse_cind_values() 699 int res; in bta_hf_client_parse_cind_list() local 701 while ((res = sscanf(buffer, "(\"%128[^\"]\",(%u%*[-,]%u))%n", name, &min, &max, &offset)) > 2) in bta_hf_client_parse_cind_list() 721 if (res > 2) in bta_hf_client_parse_cind_list() 816 int res; in bta_hf_client_parse_ciev() local [all …]
|
/system/bt/stack/smp/ |
D | smp_api.c | 260 void SMP_SecurityGrant(BD_ADDR bd_addr, UINT8 res) in SMP_SecurityGrant() argument 276 smp_br_state_machine_event(&smp_cb, SMP_BR_API_SEC_GRANT_EVT, &res); in SMP_SecurityGrant() 287 smp_sm_event(&smp_cb, SMP_API_SEC_GRANT_EVT, &res); in SMP_SecurityGrant() 303 void SMP_PasskeyReply (BD_ADDR bd_addr, UINT8 res, UINT32 passkey) in SMP_PasskeyReply() argument 309 passkey, res); in SMP_PasskeyReply() 330 if (passkey > BTM_MAX_PASSKEY_VAL || res != SMP_SUCCESS) in SMP_PasskeyReply() 361 void SMP_ConfirmReply (BD_ADDR bd_addr, UINT8 res) in SMP_ConfirmReply() argument 366 SMP_TRACE_EVENT ("%s: Result:%d", __FUNCTION__, res); in SMP_ConfirmReply() 387 if (res != SMP_SUCCESS) in SMP_ConfirmReply() 411 void SMP_OobDataReply(BD_ADDR bd_addr, tSMP_STATUS res, UINT8 len, UINT8 *p_data) in SMP_OobDataReply() argument [all …]
|
/system/extras/tests/ext4/ |
D | rand_emmc_perf.c | 148 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/extras/tests/iptables/qtaguid/ |
D | socketTag.cpp | 65 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 …]
|