/system/extras/multinetwork/ |
D | dnschk.cpp | 33 int rval = -1; in main() local 36 if (!args.parseArguments(argc, argv)) { return rval; } in main() 50 rval = android_getaddrinfofornetwork(args.nethandle, in main() 55 rval = android_setprocnetwork(args.nethandle); in main() 56 if (rval != 0) { in main() 57 std::cerr << "android_setprocnetwork returned " << rval in main() 59 return rval; in main() 62 rval = getaddrinfo(args.arg1, nullptr, &hints, &result); in main() 70 if (rval != 0) { in main() 71 std::cerr << "DNS resolution failure; gaierror=" << rval in main() [all …]
|
D | httpurl.cpp | 104 int rval = -1; in parseUrl() local 107 rval = android_getaddrinfofornetwork(args.nethandle, in parseUrl() 113 rval = getaddrinfo(parameters->hostname.c_str(), in parseUrl() 123 if (rval != 0) { in parseUrl() 124 std::cerr << "DNS resolution failure; gaierror=" << rval in parseUrl() 125 << " [" << gai_strerror(rval) << "]" in parseUrl() 127 return rval; in parseUrl() 168 int rval = -1; in doHttpQuery() local 198 rval = recv(fd, buf, sizeof(buf), 0); in doHttpQuery() 200 if (rval < 0) { in doHttpQuery() [all …]
|
/system/netd/libnetdutils/include/netdutils/ |
D | ThreadUtil.h | 65 int rval = scoped_attr.detach(); in threadLaunch() local 66 if (rval != 0) { in threadLaunch() 67 return rval; in threadLaunch() 71 rval = pthread_create(&thread, &scoped_attr.attr, &runAndDelete<T>, obj); in threadLaunch() 72 if (rval != 0) { in threadLaunch() 73 LOG(WARNING) << __func__ << ": pthread_create failed: " << rval; in threadLaunch() 74 return -rval; in threadLaunch() 77 return rval; in threadLaunch()
|
D | Log.h | 83 LogEntry& returns(const std::string& rval); 85 LogEntry& returns(bool rval);
|
/system/core/liblog/ |
D | event_tag_map.cpp | 60 bool operator==(const MapString& rval) const { in operator ==() 61 if (length() != rval.length()) return false; in operator ==() 63 return fastcmp<strncmp>(data(), rval.data(), length()) == 0; in operator ==() 65 bool operator!=(const MapString& rval) const { in operator !=() 66 return !(*this == rval); in operator !=() 74 MapString(MapString&& rval) noexcept in MapString() argument 75 : alloc(rval.alloc), str(rval.data(), rval.length()) { in MapString() 76 rval.alloc = NULL; in MapString() 78 explicit MapString(const MapString& rval) in MapString() argument 79 : alloc(rval.alloc ? new std::string(*rval.alloc) : NULL), in MapString() [all …]
|
/system/libhwbinder/vts/performance/ |
D | PerfTest.cpp | 66 Pipe::Pipe(Pipe&& rval) noexcept { in Pipe() argument 67 fd_read_ = rval.fd_read_; in Pipe() 68 fd_write_ = rval.fd_write_; in Pipe() 69 rval.fd_read_ = 0; in Pipe() 70 rval.fd_write_ = 0; in Pipe()
|
D | Benchmark_throughput.cpp | 57 Pipe(Pipe&& rval) noexcept { in Pipe() argument 58 m_readFd = rval.m_readFd; in Pipe() 59 m_writeFd = rval.m_writeFd; in Pipe() 60 rval.m_readFd = 0; in Pipe() 61 rval.m_writeFd = 0; in Pipe()
|
D | PerfTest.h | 37 Pipe(Pipe&& rval) noexcept;
|
/system/core/logd/ |
D | LogStatistics.h | 531 explicit TagNameKey(TagNameKey&& rval) noexcept in TagNameKey() 532 : alloc(rval.alloc), name(rval.name.data(), rval.name.length()) { in TagNameKey() 533 rval.alloc = nullptr; in TagNameKey() 536 explicit TagNameKey(const TagNameKey& rval) in TagNameKey() 537 : alloc(rval.alloc ? new std::string(*rval.alloc) : nullptr), in TagNameKey() 538 name(alloc ? alloc->data() : rval.name.data(), rval.name.length()) { in TagNameKey() 556 bool operator==(const TagNameKey& rval) const { 557 if (length() != rval.length()) return false; 559 return fastcmp<strncmp>(data(), rval.data(), length()) == 0; 561 bool operator!=(const TagNameKey& rval) const { [all …]
|
/system/core/init/ |
D | keychords.cpp | 93 Keychords::Mask Keychords::Mask::operator&(const Keychords::Mask& rval) const { in operator &() 94 auto len = std::min(bits_.size(), rval.bits_.size()); in operator &() 98 ret.bits_[i] = bits_[i] & rval.bits_[i]; in operator &() 103 void Keychords::Mask::operator|=(const Keychords::Mask& rval) { in operator |=() argument 104 auto len = rval.bits_.size(); in operator |=() 107 bits_[i] |= rval.bits_[i]; in operator |=()
|
D | keychords.h | 57 Mask operator&(const Mask& rval) const; 58 void operator|=(const Mask& rval);
|
D | keychords_test.cpp | 66 EventHandler::EventHandler(EventHandler&& rval) noexcept : fd_(rval.fd_) { in EventHandler() argument 67 rval.fd_ = -1; in EventHandler() 70 EventHandler& EventHandler::operator=(EventHandler&& rval) noexcept { in operator =() argument 71 fd_ = rval.fd_; in operator =() 72 rval.fd_ = -1; in operator =()
|
/system/tools/aidl/ |
D | aidl_const_expressions.cpp | 41 if (op == string(#__op__)) return lval __op__ rval; 76 T handleBinaryCommon(T lval, const string& op, T rval) { in handleBinaryCommon() argument 93 SHOULD_NOT_REACH() << "Could not handleBinaryCommon for " << lval << " " << op << " " << rval; in handleBinaryCommon() 98 T handleShift(T lval, const string& op, int64_t rval) { in handleShift() argument 103 SHOULD_NOT_REACH() << "Could not handleShift for " << lval << " " << op << " " << rval; in handleShift() 107 bool handleLogical(bool lval, const string& op, bool rval) { in handleLogical() argument 111 SHOULD_NOT_REACH() << "Could not handleLogical for " << lval << " " << op << " " << rval; in handleLogical() 827 std::unique_ptr<AidlConstantValue> rval) in AidlUnaryConstExpression() argument 828 : AidlConstantValue(location, Type::UNARY, op + rval->value_), in AidlUnaryConstExpression() 829 unary_(std::move(rval)), in AidlUnaryConstExpression() [all …]
|
D | aidl_language.h | 481 std::unique_ptr<AidlConstantValue> rval); 495 const string& op, std::unique_ptr<AidlConstantValue> rval);
|
/system/extras/alloc-stress/ |
D | alloc-stress.cpp | 46 Pipe(Pipe&& rval) noexcept { in Pipe() argument 47 m_readFd = rval.m_readFd; in Pipe() 48 m_writeFd = rval.m_writeFd; in Pipe() 49 rval.m_readFd = 0; in Pipe() 50 rval.m_writeFd = 0; in Pipe()
|
/system/netd/server/ |
D | Process.cpp | 111 const auto rval = sys.write(pidFd, makeSlice(pid_buf)); in writePidFile() local 112 if (!isOk(rval.status()) || rval.value() != pid_buf.size()) { in writePidFile()
|
D | MDnsSdListener.cpp | 530 const int rval = ::android::netdutils::threadLaunch(this); in Monitor() local 531 if (rval != 0) { in Monitor() 532 ALOGW("Error spawning monitor thread: %s (%d)", strerror(-rval), -rval); in Monitor()
|
/system/netd/libnetdutils/ |
D | InternetAddresses.cpp | 71 bool rval = true; in forString() local 84 rval = false; in forString() 88 return rval; in forString()
|
D | Log.cpp | 142 LogEntry& LogEntry::returns(const std::string& rval) { in returns() argument 143 mReturns.push_back(rval); in returns() 147 LogEntry& LogEntry::returns(bool rval) { in returns() argument 148 mReturns.push_back(rval ? "true" : "false"); in returns()
|
/system/core/fs_mgr/tests/ |
D | adb-remount-test.sh | 618 local rval="${2}" 627 if ! ( echo X"${rval}" | grep '^X'"${lval}"'$' >/dev/null 2>/dev/null ); then 628 if [ `echo ${lval}${rval}${*} | wc -c` -gt 50 -o "${rval}" != "${rval% 631 echo "${prefix} got \"${rval}\"" | 640 echo "${prefix} expected \"${lval}\" got \"${rval}\" ${*}" 646 if [ X"${lval}" != X"${rval}" ]; then # we were supplied a regex? 647 if [ `echo ${lval}${rval}${*} | wc -c` -gt 60 -o "${rval}" != "${rval% *}" ]; then 649 echo " = \"${rval}\"" | 658 echo "${prefix} ok \"${lval}\" = \"${rval}\" ${*}" 672 local rval="${2}" [all …]
|
/system/core/bootstat/ |
D | boot_reason_test.sh | 262 rval="${2}" 264 if ! ( echo X"${rval}" | grep '^X'"${lval}"'$' >/dev/null 2>/dev/null ); then 265 if [ `echo ${lval}${rval}${*} | wc -c` -gt 50 -o "${rval}" != "${rval% 268 echo " got \"${rval}\"" | 277 echo "ERROR: expected \"${lval}\" got \"${rval}\" ${*}" >&2 282 if [ X"${lval}" != X"${rval}" ]; then 283 if [ `echo ${lval}${rval}${*} | wc -c` -gt 60 -o "${rval}" != "${rval% 286 echo " = \"${rval}\"" | 295 echo "INFO: ok \"${lval}\" = \"${rval}\" ${*}" >&2
|
/system/tools/hidl/ |
D | ConstantExpression.cpp | 35 #define COMPUTE_BINARY(__op__) if (op == std::string(#__op__)) return lval __op__ rval; 112 T handleBinaryCommon(T lval, const std::string& op, T rval) { in handleBinaryCommon() argument 130 << lval << " " << op << " " << rval; in handleBinaryCommon() 135 T handleShift(T lval, const std::string& op, int64_t rval) { in handleShift() argument 141 << lval << " " << op << " " << rval; in handleShift() 145 bool handleLogical(bool lval, const std::string& op, bool rval) { in handleLogical() argument 150 << lval << " " << op << " " << rval; in handleLogical() 693 ConstantExpression* rval) in BinaryConstantExpression() argument 694 : ConstantExpression(lval->mExpr + " " + op + " " + rval->mExpr), in BinaryConstantExpression() 696 mRval(rval), in BinaryConstantExpression()
|
D | ConstantExpression.h | 194 ConstantExpression* rval);
|
/system/keymaster/key_blob_utils/ |
D | ocb.c | 199 } rval; in gen_offset() local 200 rval.u64[0] = (KtopStr[0] << bot) | (KtopStr[1] >> (64 - bot)); in gen_offset() 201 rval.u64[1] = (KtopStr[1] << bot) | (KtopStr[2] >> (64 - bot)); in gen_offset() 202 return rval.bl; in gen_offset() 263 block rval = (block)veorq_u64(vshlq_u64(hi, ls), vshlq_u64(lo, rs)); in gen_offset() local 265 rval = vrev64q_s8(rval); in gen_offset() 266 return rval; in gen_offset() 304 block rval; in gen_offset() local 306 rval.l = (KtopStr[0] << bot) | (KtopStr[1] >> (64 - bot)); in gen_offset() 307 rval.r = (KtopStr[1] << bot) | (KtopStr[2] >> (64 - bot)); in gen_offset() [all …]
|