/system/netd/libnetdutils/ |
D | Syscalls.cpp | 30 auto rv = fn(std::forward<Params>(params)...); in syscallRetry() local 31 while ((rv == -1) && (errno == EINTR)) { in syscallRetry() 32 rv = fn(std::forward<Params>(params)...); in syscallRetry() 34 return rv; in syscallRetry() 61 auto rv = ::getsockname(sock.get(), addr, addrlen); in getsockname() local 62 if (rv == -1) { in getsockname() 70 auto rv = ::getsockopt(sock.get(), level, optname, optval, optlen); in getsockopt() local 71 if (rv == -1) { in getsockopt() 79 auto rv = ::setsockopt(sock.get(), level, optname, optval, optlen); in setsockopt() local 80 if (rv == -1) { in setsockopt() [all …]
|
D | Socket.cpp | 27 auto* rv = inet_ntop(AF_INET6, &addr, out.data(), out.size()); in toString() local 28 if (rv == nullptr) { in toString()
|
/system/extras/tests/lib/testUtil/ |
D | testUtil.c | 46 double rv; in ts2double() local 48 rv = val->tv_sec; in ts2double() 49 rv += (double) val->tv_nsec / nSecsPerSec; in ts2double() 51 return rv; in ts2double() 57 double rv; in tv2double() local 59 rv = val->tv_sec; in tv2double() 60 rv += (double) val->tv_usec / uSecsPerSec; in tv2double() 62 return rv; in tv2double() 68 struct timespec rv; in double2ts() local 70 rv.tv_sec = floor(amt); in double2ts() [all …]
|
/system/extras/tests/binder/benchmarks/ |
D | binderAddInts.cpp | 89 int rv; in server() local 94 if ((rv = sm->addService(serviceName, in server() 96 cerr << "addService " << serviceName << " failed, rv: " << rv in server() 108 int rv; in BM_addInts() local 145 if ((rv = binder->transact(AddIntsService::ADD_INTS, in BM_addInts() 147 cerr << "binder->transact failed, rv: " << rv in BM_addInts() 175 status_t rv(0); in onTransact() local 202 return rv; in onTransact() 207 int rv; in bindCPU() local 212 rv = sched_setaffinity(0, sizeof(cpuset), &cpuset); in bindCPU() [all …]
|
/system/netd/server/ |
D | ClatUtils.cpp | 85 int rv; in openNetlinkSocket() local 88 rv = setsockopt(fd, SOL_NETLINK, NETLINK_CAP_ACK, &on, sizeof(on)); in openNetlinkSocket() 89 if (rv) ALOGE("setsockopt(fd, SOL_NETLINK, NETLINK_CAP_ACK, %d)", on); in openNetlinkSocket() 92 rv = bind(fd, (const struct sockaddr*)&KERNEL_NLADDR, sizeof(KERNEL_NLADDR)); in openNetlinkSocket() 93 if (rv) { in openNetlinkSocket() 100 rv = connect(fd, (const struct sockaddr*)&KERNEL_NLADDR, sizeof(KERNEL_NLADDR)); in openNetlinkSocket() 101 if (rv) { in openNetlinkSocket() 118 const int rv = recv(fd, &resp, sizeof(resp), MSG_TRUNC); in processNetlinkResponse() local 120 if (rv == -1) { in processNetlinkResponse() 126 if (rv < (int)NLMSG_SPACE(sizeof(struct nlmsgerr))) { in processNetlinkResponse() [all …]
|
D | ClatdController.cpp | 101 int rv = openNetlinkSocket(); in init() local 102 if (rv < 0) { in init() 103 ALOGE("openNetlinkSocket() failure: %s", strerror(-rv)); in init() 107 mNetlinkFd.reset(rv); in init() 109 rv = getClatIngressMapFd(); in init() 110 if (rv < 0) { in init() 111 ALOGE("getClatIngressMapFd() failure: %s", strerror(-rv)); in init() 116 mClatIngressMap.reset(rv); in init() 124 int rv = tcQdiscDelDevClsact(netlinkFd, key.iif); in init() local 125 if (rv < 0) ALOGE("tcQdiscDelDevClsact() failure: %s", strerror(-rv)); in init() [all …]
|
D | WakeupController.cpp | 218 auto rv = mIptables->execute(V4V6, cmd, &out); in execIptables() local 219 if (rv != 0) { in execIptables() 220 auto s = Status(rv, "Failed to execute iptables cmd: " + cmd + ", out: " + out); in execIptables()
|
D | InterfaceController.cpp | 172 int rv = writeValueToPath(prefix.c_str(), iface.c_str(), "accept_ra_rt_info_min_plen", in setAcceptIPv6RIO() local 174 if (rv != 0) { in setAcceptIPv6RIO() 382 int rv = 0; in disableIcmpRedirects() local 383 rv |= writeValueToPath(ipv4_proc_path, "all", "accept_redirects", "0"); in disableIcmpRedirects() 384 rv |= writeValueToPath(ipv6_proc_path, "all", "accept_redirects", "0"); in disableIcmpRedirects() 387 return rv; in disableIcmpRedirects()
|
/system/netd/resolv/ |
D | libnetd_resolv_test.cpp | 68 int rv = getnameinfo(aip->ai_addr, aip->ai_addrlen, host, sizeof(host), nullptr, 0, in ToString() local 70 if (rv != 0) return gai_strerror(rv); in ToString() 115 int rv = android_getaddrinfofornetcontext(nullptr /*hostname*/, nullptr /*servname*/, in TEST_F() local 117 EXPECT_EQ(EAI_NONAME, rv); in TEST_F() 170 rv = android_getaddrinfofornetcontext("localhost", nullptr /*servname*/, &hints, in TEST_F() 172 EXPECT_EQ(config.expected_errorno, rv); in TEST_F() 193 int rv = android_getaddrinfofornetcontext("localhost", nullptr /*servname*/, &hints, in TEST_F() local 195 EXPECT_EQ(EAI_FAMILY, rv); in TEST_F() 240 int rv = android_getaddrinfofornetcontext("localhost", nullptr /*servname*/, &hints, in TEST_F() local 242 EXPECT_EQ(EAI_BADHINTS, rv); in TEST_F() [all …]
|
D | DnsProxyListener.cpp | 593 void DnsProxyListener::GetAddrInfoHandler::doDns64Synthesis(int32_t* rv, addrinfo** res) { in doDns64Synthesis() argument 596 const bool ipv6WantedButNoData = (mHints && mHints->ai_family == AF_INET6 && *rv == EAI_NODATA); in doDns64Synthesis() 598 ((!mHints || mHints->ai_family == AF_UNSPEC) && *rv == 0 && onlyIPv4Answers(*res)); in doDns64Synthesis() 616 *rv = android_getaddrinfofornetcontext(mHost, mService, mHints, &mNetContext, res); in doDns64Synthesis() 618 if (*rv) { in doDns64Synthesis() 619 *rv = EAI_NODATA; // return original error code in doDns64Synthesis() 632 *rv = EAI_NODATA; // return original error code in doDns64Synthesis() 650 int32_t rv = 0; in run() local 653 rv = android_getaddrinfofornetcontext(mHost, mService, mHints, &mNetContext, &result); in run() 658 rv = EAI_MEMORY; in run() [all …]
|
D | DnsProxyListener.h | 57 void doDns64Synthesis(int32_t* rv, addrinfo** res); 83 void doDns64Synthesis(int32_t* rv, hostent** hpp);
|
D | ResolverController.cpp | 148 int rv = in getDnsInfo() local 152 if (rv == 0) { in getDnsInfo() 155 LOG(ERROR) << "getnameinfo() failed for server #" << i << ": " << gai_strerror(rv); in getDnsInfo() 311 int rv = getDnsInfo(netId, &servers, &domains, ¶ms, &stats, in dump() local 314 if (rv != 0) { in dump()
|
/system/extras/kexec_tools/ |
D | kexecload.c | 37 int rv; in test_kexeccall() local 39 rv = kexec_load(0, 0, NULL, KEXEC_ARCH_DEFAULT); in test_kexeccall() 41 if (rv != 0) { in test_kexeccall() 67 int rv; in main() local 151 rv = kexec_load(((uintptr_t) start_address + KEXEC_ARM_ZIMAGE_OFFSET), in main() 154 if (rv != 0) { in main() 155 fprintf(stderr, "Kexec_load returned non-zero exit code: %d with errno %d\n", rv, errno); in main()
|
/system/extras/verity/fec/ |
D | main.cpp | 62 int j, rv; in decode_rs() local 74 rv = decode_rs_char(ctx->rs, data, nullptr, 0); in decode_rs() 76 if (rv < 0) { in decode_rs() 79 } else if (rv > 0) { in decode_rs() 85 ctx->rv += rv; in decode_rs() 255 if (ctx.rv) { in decode() 256 INFO("corrected %" PRIu64 " errors\n", ctx.rv); in decode()
|
D | image.h | 60 uint64_t rv; member 73 uint64_t rv; member
|
/system/netd/resolv/dns_responder/ |
D | dns_responder_client.cpp | 88 const auto rv = mDnsResolvSrv->setResolverConfiguration(resolverParams); in SetResolversForNetwork() local 89 return rv.isOk(); in SetResolversForNetwork() 98 const auto rv = mDnsResolvSrv->setResolverConfiguration(resolverParams); in SetResolversWithTls() local 99 if (!rv.isOk()) ALOGI("SetResolversWithTls() -> %s", rv.toString8().c_str()); in SetResolversWithTls() 100 return rv.isOk(); in SetResolversWithTls()
|
D | dns_tls_frontend.cpp | 72 int rv = getnameinfo(sa, sa_len, host_str, sizeof(host_str), nullptr, 0, in addr2str() local 74 if (rv == 0) return std::string(host_str); in addr2str() 198 int rv = getaddrinfo(listen_address_.c_str(), listen_service_.c_str(), in startServer() local 201 if (rv) { in startServer() 203 listen_service_.c_str(), gai_strerror(rv)); in startServer() 236 rv = getaddrinfo(backend_address_.c_str(), backend_service_.c_str(), in startServer() 239 if (rv) { in startServer() 241 listen_service_.c_str(), gai_strerror(rv)); in startServer()
|
/system/core/fs_mgr/libfs_avb/ |
D | util.cpp | 91 int rv = access(filename.c_str(), F_OK); in WaitForFile() local 93 if (!rv || errno != ENOENT) return true; in WaitForFile() 95 if (rv && errno == ENOENT) return true; in WaitForFile()
|
/system/core/fs_mgr/liblp/ |
D | images.cpp | 354 int rv = sparse_file_add_fd(output_device, fd, pos, read_size, output_block); in AddPartitionImage() local 355 if (rv) { in AddPartitionImage() 356 LERROR << "sparse_file_add_fd failed with code: " << rv; in AddPartitionImage() 360 int rv = sparse_file_add_fill(output_device, buffer[0], read_size, output_block); in AddPartitionImage() local 361 if (rv) { in AddPartitionImage() 362 LERROR << "sparse_file_add_fill failed with code: " << rv; in AddPartitionImage() 432 int rv = sparse_file_write(source.get(), tf.fd, false, false, false); in OpenImageFile() local 433 if (rv) { in OpenImageFile() 434 LERROR << "sparse_file_write failed with code: " << rv; in OpenImageFile()
|
/system/core/libutils/include/utils/ |
D | FastStrcmp.h | 57 static inline int fastcmp(const void* lv, const void* rv, const size_t s) { in fastcmp() argument 59 const char* r = static_cast<const char*>(rv); in fastcmp()
|
/system/core/libdiskconfig/ |
D | diskconfig.c | 241 int rv; in sync_ptable() local 250 if (S_ISBLK(stat.st_mode) && ((rv = ioctl(fd, BLKRRPART, NULL)) < 0)) { in sync_ptable() 437 int rv; in apply_disk_config() local 444 if ((rv = wlist_commit(fd, wr_lst, test)) >= 0) in apply_disk_config() 445 rv = test ? 0 : sync_ptable(fd); in apply_disk_config() 449 return rv; in apply_disk_config()
|
/system/core/libmemunreachable/tests/ |
D | Binder_test.cpp | 150 status_t rv = service->transact(0, send, &reply); in TEST_F() local 151 ASSERT_EQ(static_cast<status_t>(OK), rv); in TEST_F()
|
/system/gsid/ |
D | gsi_tool.cpp | 227 int rv, index; in Install() local 228 while ((rv = getopt_long_only(argc, argv, "", options, &index)) != -1) { in Install() 229 switch (rv) { in Install() 427 int rv, index; in Enable() local 428 while ((rv = getopt_long_only(argc, argv, "", options, &index)) != -1) { in Enable() 429 switch (rv) { in Enable()
|
/system/extras/partition_tools/ |
D | lpmake.cc | 116 int rv; in main() local 118 while ((rv = getopt_long_only(argc, argv, "d:m:s:p:o:h", options, &index)) != -1) { in main() 119 switch (rv) { in main()
|
D | lpunpack.cc | 104 int rv, index; in main() local 105 while ((rv = getopt_long_only(argc, argv, "+p:sh", options, &index)) != -1) { in main() 106 switch (rv) { in main()
|