Home
last modified time | relevance | path

Searched refs:left (Results 1 – 25 of 54) sorted by relevance

123

/system/libhidl/transport/
DHidlTransportSupport.cpp122 bool interfacesEqual(const sp<IBase>& left, const sp<IBase>& right) { in interfacesEqual() argument
123 if (left == nullptr || right == nullptr || !left->isRemote() || !right->isRemote()) { in interfacesEqual()
124 return left == right; in interfacesEqual()
126 return getOrCreateCachedBinder(left.get()) == getOrCreateCachedBinder(right.get()); in interfacesEqual()
/system/extras/libfec/
Dfec_process.cpp72 size_t left = count; in process() local
85 check(left > 0); in process()
96 if (info[i].count > left) { in process()
97 info[i].count = left; in process()
111 left -= info[i].count; in process()
114 check(left == 0); in process()
Dfec_read.cpp254 size_t left = count; in ecc_read() local
258 while (left > 0) { in ecc_read()
267 if (copy > left) { in ecc_read()
268 copy = left; in ecc_read()
274 left -= copy; in ecc_read()
306 size_t left = count; in verity_read() local
313 while (left > 0) { in verity_read()
387 if (copy > left) { in verity_read()
388 copy = left; in verity_read()
394 left -= copy; in verity_read()
/system/hardware/interfaces/suspend/1.0/default/
DWakeLockEntryList.cpp38 << std::left << std::setw(30) << entry.name << sep in operator <<()
41 << std::left << std::setw(6) << ((kernelWakelock) ? "Kernel" : "Native") << sep in operator <<()
42 << std::left << std::setw(8) << ((entry.isActive) ? "Active" : "Inactive") << sep in operator <<()
82 << std::left << std::setw(30) << "NAME" << sep in operator <<()
83 << std::left << std::setw(6) << "PID" << sep in operator <<()
84 << std::left << std::setw(6) << "TYPE" << sep in operator <<()
85 << std::left << std::setw(8) << "STATUS" << sep in operator <<()
86 << std::left << std::setw(12) << "ACTIVE COUNT" << sep in operator <<()
87 << std::left << std::setw(12) << "TOTAL TIME" << sep in operator <<()
88 << std::left << std::setw(12) << "MAX TIME" << sep in operator <<()
[all …]
/system/core/libnetutils/
Dchecksum.c36 int left = len; in ip_checksum_add() local
39 while (left > 1) { in ip_checksum_add()
42 left -= 2; in ip_checksum_add()
44 if (left) { in ip_checksum_add()
/system/media/audio_utils/include/audio_utils/
Dminifloat.h41 static inline gain_minifloat_packed_t gain_minifloat_pack(gain_minifloat_t left, in gain_minifloat_pack() argument
44 return (right << 16) | left; in gain_minifloat_pack()
Dprimitives.h1211 int32_t mulAddRL(int left, uint32_t inRL, uint32_t vRL, int32_t a) in mulAddRL() argument
1215 if (left) { in mulAddRL()
1228 if (left) { in mulAddRL()
1240 int32_t mulRL(int left, uint32_t inRL, uint32_t vRL) in mulRL() argument
1244 if (left) { in mulRL()
1257 if (left) { in mulRL()
DTimestampVerifier.h304 static constexpr auto sub(const FrameTime &left, const FrameTime &right) { in sub() argument
307 left.mFrames - right.mFrames, left.mTimeNs - right.mTimeNs); in sub()
DBalance.h136 void computeStereoBalance(float balance, float *left, float *right) const;
/system/libhwbinder/vts/performance/
DPerfTest.cpp44 using std::left;
155 cout << std::setprecision(DUMP_PRICISION) << "{ \"avg\":" << setw(W) << left << average in dump()
156 << ", \"wst\":" << setw(W) << left << worst << ", \"bst\":" << setw(W) << left << best in dump()
157 << ", \"miss\":" << left << miss_ << ", \"meetR\":" << setprecision(DUMP_PRICISION + 3) in dump()
158 << left << (1.0 - (double)miss_ / transactions_) << "}"; in dump()
DLatency.cpp50 using std::left;
95 cout << setw(12) << left << prefix << " pid: " << getpid() << " tid: " << gettid() in threadDumpPri()
102 cout << setw(12) << left << s << param.sched_priority << endl; in threadDumpPri()
/system/media/audio_utils/
DBalance.cpp120 void Balance::computeStereoBalance(float balance, float *left, float *right) const in computeStereoBalance() argument
123 *left = mCurve(1.f - balance); in computeStereoBalance()
126 *left = 1.f; in computeStereoBalance()
129 *left = 1.f; in computeStereoBalance()
/system/extras/simpleperf/scripts/purgatorio/templates/
Dstyles.css35 div.left {
38 left: 0;
104 left: 0;
117 padding-left: 0.5em;
/system/chre/util/tests/
Dpriority_queue_test.cc30 bool compareFunction(const FakeElement &left, const FakeElement &right) { in compareFunction() argument
31 return left.getValue() > right.getValue(); in compareFunction()
36 bool operator()(const FakeElement &left, const FakeElement &right) const { in operator ()() argument
37 return left.getValue() > right.getValue(); in operator ()()
170 auto cmp = [](const FakeElement &left, const FakeElement &right) { in TEST() argument
171 return left.getValue() > right.getValue(); in TEST()
/system/bt/embdrv/g722/fuzzer/
Dg722_enc_fuzzer.cc54 int16_t left = (int16_t)((*(sample + 1) << 8) + *sample) >> 1; in LLVMFuzzerTestOneInput() local
59 uint16_t mono_data = (int16_t)(((uint32_t)left + (uint32_t)right) >> 1); in LLVMFuzzerTestOneInput()
/system/tools/hidl/c2hal/
Dc2hal_y.yy106 %left ','
108 %left '|'
109 %left '^'
110 %left '&'
111 %left RSHIFT LSHIFT
112 %left '+' '-'
113 %left '*' '/' '%'
115 %left ARRAY_SUBSCRIPT FUNCTION_CALL
/system/libbase/include/android-base/
Dunique_fd.h222 inline bool Socketpair(int domain, int type, int protocol, unique_fd_impl<Closer>* left, in Socketpair() argument
228 left->reset(sockfd[0]); in Socketpair()
234 inline bool Socketpair(int type, unique_fd_impl<Closer>* left, unique_fd_impl<Closer>* right) { in Socketpair() argument
235 return Socketpair(AF_UNIX, type, 0, left, right); in Socketpair()
/system/core/fs_mgr/tools/
Ddmctl.cpp312 std::cout << std::left << std::setw(20) << target.name() << " : " << target.version() in DmListTargets()
333 std::cout << std::left << std::setw(20) << dev.name() << " : " << dev.Major() << ":" in DmListDevices()
432 std::cout << std::left << std::setw(spacing) << "device" in InfoCmdHandler()
434 std::cout << std::left << std::setw(spacing) << "active" in InfoCmdHandler()
436 std::cout << std::left << std::setw(spacing) << "access" in InfoCmdHandler()
444 std::cout << std::left << std::setw(spacing) << "activeTable" in InfoCmdHandler()
446 std::cout << std::left << std::setw(spacing) << "inactiveTable" in InfoCmdHandler()
448 std::cout << std::left << std::setw(spacing) << "bufferFull" in InfoCmdHandler()
/system/bt/bta/hearing_aid/
Dhearing_aid.cc1144 HearingDevice* left = nullptr; in OnAudioDataReady() local
1150 left = &device; in OnAudioDataReady()
1155 if (left == nullptr && right == nullptr) { in OnAudioDataReady()
1164 if (left == nullptr || right == nullptr) { in OnAudioDataReady()
1168 int16_t left = (int16_t)((*(sample + 1) << 8) + *sample) >> 1; in OnAudioDataReady() local
1173 uint16_t mono_data = (int16_t)(((uint32_t)left + (uint32_t)right) >> 1); in OnAudioDataReady()
1181 uint16_t left = (int16_t)((*(sample + 1) << 8) + *sample) >> 1; in OnAudioDataReady() local
1182 chan_left.push_back(left); in OnAudioDataReady()
1198 if (left) { in OnAudioDataReady()
1207 uint16_t cid = GAP_ConnGetL2CAPCid(left->gap_handle); in OnAudioDataReady()
[all …]
/system/tools/hidl/c2hal/test/
Dsimple.h54 int left, int top, int width, int height);
/system/tools/aidl/
Daidl_language_y.yy132 %left LOGICAL_OR
133 %left LOGICAL_AND
135 %left '|'
136 %left '^'
137 %left '&'
139 %left EQUALITY NEQ
141 %left '<' '>' LEQ GEQ
143 %left LSHIFT RSHIFT
145 %left '+' '-'
147 %left '*' '/' '%'
[all …]
Daidl_const_expressions.cpp310 AidlConstantValue::Type AidlBinaryConstExpression::UsualArithmeticConversion(Type left, in UsualArithmeticConversion() argument
313 AIDL_FATAL_IF(left == Type::STRING || right == Type::STRING, AIDL_LOCATION_HERE); in UsualArithmeticConversion()
314 AIDL_FATAL_IF(left == Type::FLOATING || right == Type::FLOATING, AIDL_LOCATION_HERE); in UsualArithmeticConversion()
317 if (left == right) return left; // easy case in UsualArithmeticConversion()
318 if (left == Type::BOOLEAN) return right; in UsualArithmeticConversion()
319 if (right == Type::BOOLEAN) return left; in UsualArithmeticConversion()
321 return left < right ? right : left; in UsualArithmeticConversion()
/system/tools/hidl/
Dhidl-gen_y.yy261 %left LOGICAL_OR
262 %left LOGICAL_AND
264 %left '|'
265 %left '^'
266 %left '&'
268 %left EQUALITY NEQ
270 %left '<' '>' LEQ GEQ
272 %left LSHIFT RSHIFT
274 %left '+' '-'
276 %left '*' '/' '%'
[all …]
/system/libbase/
Dfile.cpp249 size_t left = content.size(); in WriteStringToFd() local
250 while (left > 0) { in WriteStringToFd()
251 ssize_t n = TEMP_FAILURE_RETRY(write(fd.get(), p, left)); in WriteStringToFd()
256 left -= n; in WriteStringToFd()
/system/logging/liblog/
Dlogprint.cpp1169 static struct timespec* sumTimespec(struct timespec* left, struct timespec* right) { in sumTimespec() argument
1170 left->tv_nsec += right->tv_nsec; in sumTimespec()
1171 left->tv_sec += right->tv_sec; in sumTimespec()
1172 if (left->tv_nsec >= (long)NS_PER_SEC) { in sumTimespec()
1173 left->tv_nsec -= NS_PER_SEC; in sumTimespec()
1174 left->tv_sec += 1; in sumTimespec()
1176 return left; in sumTimespec()
1179 static struct timespec* subTimespec(struct timespec* result, struct timespec* left, in subTimespec() argument
1181 result->tv_nsec = left->tv_nsec - right->tv_nsec; in subTimespec()
1182 result->tv_sec = left->tv_sec - right->tv_sec; in subTimespec()

123