Home
last modified time | relevance | path

Searched refs:rval (Results 1 – 23 of 23) sorted by relevance

/system/extras/multinetwork/
Ddnschk.cpp33 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 …]
Dhttpurl.cpp104 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/
DThreadUtil.h65 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()
DLog.h83 LogEntry& returns(const std::string& rval);
85 LogEntry& returns(bool rval);
/system/core/liblog/
Devent_tag_map.cpp60 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/
DPerfTest.cpp66 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()
DBenchmark_throughput.cpp58 Pipe(Pipe&& rval) noexcept { in Pipe() argument
59 m_readFd = rval.m_readFd; in Pipe()
60 m_writeFd = rval.m_writeFd; in Pipe()
61 rval.m_readFd = 0; in Pipe()
62 rval.m_writeFd = 0; in Pipe()
DPerfTest.h37 Pipe(Pipe&& rval) noexcept;
/system/core/init/
Dkeychords.cpp93 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 |=()
Dkeychords.h57 Mask operator&(const Mask& rval) const;
58 void operator|=(const Mask& rval);
Dkeychords_test.cpp66 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/
Daidl_const_expressions.cpp47 *out = lval __op__ rval; \
96 bool handleBinaryCommon(const AidlConstantValue& context, T lval, const string& op, T rval, in handleBinaryCommon() argument
114 AIDL_FATAL(context) << "Could not handleBinaryCommon for " << lval << " " << op << " " << rval; in handleBinaryCommon()
119 bool handleShift(const AidlConstantValue& context, T lval, const string& op, int64_t rval, in handleShift() argument
125 AIDL_FATAL(context) << "Could not handleShift for " << lval << " " << op << " " << rval; in handleShift()
129 bool handleLogical(const AidlConstantValue& context, bool lval, const string& op, bool rval, in handleLogical() argument
134 AIDL_FATAL(context) << "Could not handleLogical for " << lval << " " << op << " " << rval; in handleLogical()
870 std::unique_ptr<AidlConstantValue> rval) in AidlUnaryConstExpression() argument
871 : AidlConstantValue(location, Type::UNARY, op + rval->value_), in AidlUnaryConstExpression()
872 unary_(std::move(rval)), in AidlUnaryConstExpression()
[all …]
Daidl_language.h501 std::unique_ptr<AidlConstantValue> rval);
515 const string& op, std::unique_ptr<AidlConstantValue> rval);
/system/extras/alloc-stress/
Dalloc-stress.cpp46 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/
DProcess.cpp111 const auto rval = sys.write(pidFd, makeSlice(pid_buf)); in writePidFile() local
112 if (!isOk(rval.status()) || rval.value() != pid_buf.size()) { in writePidFile()
DMDnsSdListener.cpp530 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/
DInternetAddresses.cpp71 bool rval = true; in forString() local
84 rval = false; in forString()
88 return rval; in forString()
DLog.cpp142 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/
Dadb-remount-test.sh626 local rval="${2}"
635 if ! ( echo X"${rval}" | grep '^X'"${lval}"'$' >/dev/null 2>/dev/null ); then
636 if [ `echo ${lval}${rval}${*} | wc -c` -gt 50 -o "${rval}" != "${rval%
639 echo "${prefix} got \"${rval}\"" |
648 echo "${prefix} expected \"${lval}\" got \"${rval}\" ${*}"
654 if [ X"${lval}" != X"${rval}" ]; then # we were supplied a regex?
655 if [ `echo ${lval}${rval}${*} | wc -c` -gt 60 -o "${rval}" != "${rval% *}" ]; then
657 echo " = \"${rval}\"" |
666 echo "${prefix} ok \"${lval}\" = \"${rval}\" ${*}"
680 local rval="${2}"
[all …]
/system/core/bootstat/
Dboot_reason_test.sh262 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/
DConstantExpression.cpp35 #define COMPUTE_BINARY(__op__) if (op == std::string(#__op__)) return lval __op__ rval;
118 T handleBinaryCommon(T lval, const std::string& op, T rval) { in handleBinaryCommon() argument
136 << lval << " " << op << " " << rval; in handleBinaryCommon()
141 T handleShift(T lval, const std::string& op, int64_t rval) { in handleShift() argument
147 << lval << " " << op << " " << rval; in handleShift()
151 bool handleLogical(bool lval, const std::string& op, bool rval) { in handleLogical() argument
156 << lval << " " << op << " " << rval; in handleLogical()
699 ConstantExpression* rval) in BinaryConstantExpression() argument
700 : ConstantExpression(lval->mExpr + " " + op + " " + rval->mExpr), in BinaryConstantExpression()
702 mRval(rval), in BinaryConstantExpression()
DConstantExpression.h194 ConstantExpression* rval);
/system/keymaster/key_blob_utils/
Docb.c199 } 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 …]