Home
last modified time | relevance | path

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

/system/extras/multinetwork/
Ddnschk.cpp34 int rval = -1; in main() local
37 if (!args.parseArguments(argc, argv)) { return rval; } in main()
62 rval = android_getaddrinfofornetwork(args.nethandle, name.c_str(), nullptr, &hints, in main()
67 rval = android_setprocnetwork(args.nethandle); in main()
68 if (rval != 0) { in main()
69 std::cerr << "android_setprocnetwork returned " << rval << std::endl; in main()
70 return rval; in main()
73 rval = getaddrinfo(name.c_str(), nullptr, &hints, &result); in main()
81 if (rval != 0) { in main()
82 std::cerr << "DNS resolution failure; gaierror=" << rval << " [" << gai_strerror(rval) in main()
[all …]
Dhttpurl.cpp116 int rval = -1; in resolveHostname() local
119 rval = android_getaddrinfofornetwork(args.nethandle, in resolveHostname()
125 rval = getaddrinfo(parameters->hostname.c_str(), in resolveHostname()
135 if (rval != 0) { in resolveHostname()
136 std::cerr << "DNS resolution failure; gaierror=" << rval in resolveHostname()
137 << " [" << gai_strerror(rval) << "]" in resolveHostname()
139 return rval; in resolveHostname()
179 int rval = -1; in doHttpQuery() local
209 rval = recv(fd, buf, sizeof(buf), 0); in doHttpQuery()
211 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/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/extras/alloc-stress/
Dalloc-stress.cpp48 Pipe(Pipe&& rval) noexcept { in Pipe() argument
49 m_readFd = rval.m_readFd; in Pipe()
50 m_writeFd = rval.m_writeFd; in Pipe()
51 rval.m_readFd = 0; in Pipe()
52 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.sh633 local rval="${2}"
642 if ! ( echo X"${rval}" | grep '^X'"${lval}"'$' >/dev/null 2>/dev/null ); then
643 if [ `echo ${lval}${rval}${*} | wc -c` -gt 50 -o "${rval}" != "${rval%
646 echo "${prefix} got \"${rval}\"" |
655 echo "${prefix} expected \"${lval}\" got \"${rval}\" ${*}"
661 if [ X"${lval}" != X"${rval}" ]; then # we were supplied a regex?
662 if [ `echo ${lval}${rval}${*} | wc -c` -gt 60 -o "${rval}" != "${rval% *}" ]; then
664 echo " = \"${rval}\"" |
673 echo "${prefix} ok \"${lval}\" = \"${rval}\" ${*}"
687 local rval="${2}"
[all …]
/system/tools/aidl/
Daidl_const_expressions.cpp155 *out = guard __op__ rval; \
204 bool handleBinaryCommon(const AidlConstantValue& context, T lval, const string& op, T rval, in handleBinaryCommon() argument
222 AIDL_FATAL(context) << "Could not handleBinaryCommon for " << lval << " " << op << " " << rval; in handleBinaryCommon()
227 bool handleShift(const AidlConstantValue& context, T lval, const string& op, T rval, int64_t* out) { in handleShift() argument
232 AIDL_FATAL(context) << "Could not handleShift for " << lval << " " << op << " " << rval; in handleShift()
236 bool handleLogical(const AidlConstantValue& context, bool lval, const string& op, bool rval, in handleLogical() argument
241 AIDL_FATAL(context) << "Could not handleLogical for " << lval << " " << op << " " << rval; in handleLogical()
1054 std::unique_ptr<AidlConstantValue> rval) in AidlUnaryConstExpression() argument
1055 : AidlConstantValue(location, Type::UNARY, op + rval->value_), in AidlUnaryConstExpression()
1056 unary_(std::move(rval)), in AidlUnaryConstExpression()
[all …]
Daidl_language.h720 std::unique_ptr<AidlConstantValue> rval);
739 const string& op, std::unique_ptr<AidlConstantValue> rval);
/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 …]