/system/core/libutils/include/utils/ |
D | FastStrcmp.h | 42 template <int (*cmp)(const char* l, const char* r, const size_t s)> 43 static inline int fastcmp(const char* l, const char* r, const size_t s) { in fastcmp() argument 46 ((*l != *r) || (__predict_true(n > 1) && cmp(l + 1, r + 1, n - 1))); in fastcmp() 49 template <int (*cmp)(const char* l, const char* r, const size_t s)> 50 static inline int fasticmp(const char* l, const char* r, const size_t s) { in fasticmp() argument 53 ((tolower(*l) != tolower(*r)) || (__predict_true(n > 1) && cmp(l + 1, r + 1, n - 1))); in fasticmp() 56 template <int (*cmp)(const void* l, const void* r, const size_t s)> 58 const char* l = static_cast<const char*>(lv); in fastcmp() local 62 ((*l != *r) || (__predict_true(n > 1) && cmp(l + 1, r + 1, n - 1))); in fastcmp() 65 template <int (*cmp)(const char* l, const char* r)> [all …]
|
D | ErrorsMacros.h | 169 bool operator==(const base::ResultError<StatusT, include_message>& l, const status_t& r) { 170 return (l.code() == r); 173 bool operator==(const status_t& l, const base::ResultError<StatusT, include_message>& r) { 174 return (l == r.code()); 178 bool operator!=(const base::ResultError<StatusT, include_message>& l, const status_t& r) { 179 return (l.code() != r); 182 bool operator!=(const status_t& l, const base::ResultError<StatusT, include_message>& r) { 183 return (l != r.code());
|
/system/libvintf/ |
D | FQName.cpp | 75 static const char* eatIdent(const char* l, const char* end) { in eatIdent() argument 76 if (!(l < end && isIdentStart(*l++))) return nullptr; in eatIdent() 77 while (l < end && isIdentBody(*l)) l++; in eatIdent() 78 return l; in eatIdent() 82 static const char* eatPackage(const char* l, const char* end) { in eatPackage() argument 83 if ((l = eatIdent(l, end)) == nullptr) return nullptr; in eatPackage() 85 while (l < end && *l == '.') { in eatPackage() 86 l++; in eatPackage() 87 if ((l = eatIdent(l, end)) == nullptr) return nullptr; in eatPackage() 89 return l; in eatPackage() [all …]
|
D | parse_string.cpp | 120 bool parse(const std::string& s, Level* l) { in parse() argument 122 *l = Level::UNSPECIFIED; in parse() 126 *l = Level::LEGACY; in parse() 133 *l = static_cast<Level>(value); in parse() 134 if (!IsValid(*l)) { in parse() 140 std::ostream& operator<<(std::ostream& os, Level l) { in operator <<() argument 141 if (l == Level::UNSPECIFIED) { in operator <<() 144 if (l == Level::LEGACY) { in operator <<() 147 return os << static_cast<size_t>(l); in operator <<()
|
/system/tools/hidl/utils/ |
D | FQName.cpp | 86 static const char* eatIdent(const char* l, const char* end) { in eatIdent() argument 87 if (!(l < end && isIdentStart(*l++))) return nullptr; in eatIdent() 88 while (l < end && isIdentBody(*l)) l++; in eatIdent() 89 return l; in eatIdent() 93 static const char* eatPackage(const char* l, const char* end) { in eatPackage() argument 94 if ((l = eatIdent(l, end)) == nullptr) return nullptr; in eatPackage() 96 while (l < end && *l == '.') { in eatPackage() 97 l++; in eatPackage() 98 if ((l = eatIdent(l, end)) == nullptr) return nullptr; in eatPackage() 100 return l; in eatPackage() [all …]
|
/system/keymint/common/src/tag/ |
D | legacy.rs | 525 (KeyParam::Purpose(l), KeyParam::Purpose(r)) => l.cmp(r), in param_compare() 526 (KeyParam::Algorithm(l), KeyParam::Algorithm(r)) => l.cmp(r), in param_compare() 527 (KeyParam::KeySize(l), KeyParam::KeySize(r)) => l.cmp(r), in param_compare() 528 (KeyParam::BlockMode(l), KeyParam::BlockMode(r)) => l.cmp(r), in param_compare() 529 (KeyParam::Digest(l), KeyParam::Digest(r)) => l.cmp(r), in param_compare() 530 (KeyParam::Padding(l), KeyParam::Padding(r)) => l.cmp(r), in param_compare() 532 (KeyParam::MinMacLength(l), KeyParam::MinMacLength(r)) => l.cmp(r), in param_compare() 533 (KeyParam::EcCurve(l), KeyParam::EcCurve(r)) => l.cmp(r), in param_compare() 534 (KeyParam::RsaPublicExponent(l), KeyParam::RsaPublicExponent(r)) => l.cmp(r), in param_compare() 536 (KeyParam::RsaOaepMgfDigest(l), KeyParam::RsaOaepMgfDigest(r)) => l.cmp(r), in param_compare() [all …]
|
/system/tools/aidl/ |
D | location.cpp | 22 std::ostream& operator<<(std::ostream& os, const AidlLocation& l) { in operator <<() argument 23 os << l.file_; in operator <<() 24 if (l.LocationKnown()) { in operator <<() 25 os << ":" << l.begin_.line << "." << l.begin_.column << "-"; in operator <<() 26 if (l.begin_.line != l.end_.line) { in operator <<() 27 os << l.end_.line << "."; in operator <<() 29 os << l.end_.column; in operator <<()
|
D | location.h | 47 friend std::ostream& operator<<(std::ostream& os, const AidlLocation& l); 63 std::ostream& operator<<(std::ostream& os, const AidlLocation& l);
|
D | ast_java.cpp | 167 Assignment::Assignment(std::shared_ptr<Variable> l, std::shared_ptr<Expression> r) in Assignment() argument 168 : lvalue(l), rvalue(r) {} in Assignment() 170 Assignment::Assignment(std::shared_ptr<Variable> l, std::shared_ptr<Expression> r, string c) in Assignment() argument 171 : lvalue(l), rvalue(r), cast(c) {} in Assignment() 212 Comparison::Comparison(std::shared_ptr<Expression> l, const string& o, in Comparison() argument 214 : lvalue(l), op(o), rvalue(r) {} in Comparison() 244 VariableDeclaration::VariableDeclaration(std::shared_ptr<Variable> l, std::shared_ptr<Expression> r) in VariableDeclaration() argument 245 : lvalue(l), rvalue(r) {} in VariableDeclaration() 247 VariableDeclaration::VariableDeclaration(std::shared_ptr<Variable> l) : lvalue(l) {} in VariableDeclaration() argument
|
/system/extras/boottime_tools/bootanalyze/ |
D | bootanalyze.sh | 90 for (( l=$START; l<=$LOOPS; l++ )); do 91 echo "Loop: $l" 93 mkdir $RESULTS_DIR/$l 96 -o "$RESULTS_DIR/$l" 1> "$RESULTS_DIR/$l/boot.txt" 103 cp $BOOTCHART_TGZ "$RESULTS_DIR/$l/bootchart.tgz"
|
/system/extras/boottime_tools/io_analysis/ |
D | check_io_trace.py | 70 def parse_bio_queue(self, l): argument 71 match = self.re_block_queue.match(l) 108 def parse_rq_complete(self, l): argument 109 words = string.split(l) 123 print "very bad latency:", latency, l 129 def parse_block_trace(self, l, match): argument 133 self.parse_bio_queue(l) 135 self.parse_rq_complete(l) 137 print "cannot parse:", l 186 for l in f: [all …]
|
D | check_verity.py | 27 def get_average_and_std_dev(l): argument 31 N = len(l) 33 for e in l: 44 for e in l: 108 def dump_list(self, msg, l): argument 109 io, verity, total, blocks = get_average_and_std_dev(l) 110 print msg, "counts:", len(l), "io latency:", io[0], io[1], io[2], "verity latency:", \ 134 for l in f: 135 trace.handle_line(l)
|
D | check_io_trace_all.py | 125 def parse(self, l): argument 126 match = self.re_block.match(l) 130 self.do_parse_bio_queue(l, match) 132 print "cannot parse:", l 136 def do_parse_bio_queue(self, l, match): argument 308 def parse(self, l): argument 310 match = self.re_switch.match(l) 312 match = self.re_reason.match(l) 318 self.do_handle_reason(l, match) 320 self.do_handle_switch(l, match) [all …]
|
/system/vold/ |
D | FileDeviceUtils.cpp | 53 auto l = strlen(mnt->mnt_dir); in BlockDeviceForPath() local 54 if (l > best_length && path.size() > l && path[l] == '/' && in BlockDeviceForPath() 55 path.compare(0, l, mnt->mnt_dir) == 0) { in BlockDeviceForPath() 57 best_length = l; in BlockDeviceForPath()
|
/system/core/storaged/ |
D | storaged_utils.cpp | 45 bool cmp_uid_info(const UidInfo& l, const UidInfo& r) { in cmp_uid_info() argument 48 uint64_t l_bytes = l.io[i].read_bytes + l.io[i].write_bytes; in cmp_uid_info() 50 uint64_t l_chars = l.io[i].rchar + l.io[i].wchar; in cmp_uid_info() 61 return l.name < r.name; in cmp_uid_info()
|
/system/logging/liblog/ |
D | logger_name.cpp | 65 const char* l = LOG_NAME[ret]; in android_name_to_log_id() local 66 if (l && !strcmp(b, l)) { in android_name_to_log_id()
|
D | pmsg_reader.cpp | 36 android_log_header_t l; in PmsgRead() member 81 (buf.p.len > (sizeof(buf) + LOGGER_ENTRY_MAX_PAYLOAD)) || (buf.l.id >= LOG_ID_MAX) || in PmsgRead() 82 (buf.l.realtime.tv_nsec >= NS_PER_SEC) || in PmsgRead() 83 ((buf.l.id != LOG_ID_EVENTS) && (buf.l.id != LOG_ID_SECURITY) && in PmsgRead() 93 if ((logger_list->log_mask & (1 << buf.l.id)) && in PmsgRead() 95 ((logger_list->start.tv_sec <= buf.l.realtime.tv_sec) && in PmsgRead() 96 ((logger_list->start.tv_sec != buf.l.realtime.tv_sec) || in PmsgRead() 97 (logger_list->start.tv_nsec <= buf.l.realtime.tv_nsec)))) && in PmsgRead() 116 log_msg->entry.tid = buf.l.tid; in PmsgRead() 117 log_msg->entry.sec = buf.l.realtime.tv_sec; in PmsgRead() [all …]
|
/system/tools/hidl/ |
D | DocComment.cpp | 36 for (size_t l = 0; l < lines.size(); l++) { in DocComment() local 37 const std::string& line = lines[l]; in DocComment()
|
/system/extras/tests/framebuffer/ |
D | refresh.c | 134 int l,t,w,h; in main() local 135 l=0; in main() 140 info.reserved[1] = (uint16_t)l | ((uint32_t)t << 16); in main() 141 info.reserved[2] = (uint16_t)(l+w) | ((uint32_t)(t+h) << 16); in main()
|
/system/authgraph/boringssl/src/ |
D | ec.rs | 339 .find_map(|(l, v)| match (l, v) { in nist_pkey_from_cose() 340 (Label::Int(l), Value::Bytes(data)) if *l == iana::Ec2KeyParameter::X as i64 => { in nist_pkey_from_cose() 349 .find_map(|(l, v)| match (l, v) { in nist_pkey_from_cose() 350 (Label::Int(l), Value::Bytes(data)) if *l == iana::Ec2KeyParameter::Y as i64 => { in nist_pkey_from_cose() 381 .find_map(|(l, v)| match (l, v) { in ed25519_ecdsa_pkey_from_cose() 382 (Label::Int(l), Value::Bytes(data)) if *l == iana::OkpKeyParameter::X as i64 => { in ed25519_ecdsa_pkey_from_cose()
|
/system/netd/server/ |
D | PppController.cpp | 81 char *l = strdup(inet_ntoa(local)); in attachPppd() local 88 asprintf(&lr, "%s:%s", l, r); in attachPppd() 89 free(l); in attachPppd()
|
/system/core/fs_mgr/liblp/ |
D | utility_test.cpp | 99 bool operator==(const LinearExtent& l, const LinearExtent& r) { in operator ==() argument 100 return l.device_index() == r.device_index() && l.physical_sector() == r.physical_sector() && in operator ==() 101 l.end_sector() == r.end_sector(); in operator ==()
|
/system/extras/tests/tcp_nuke_addr/ |
D | tcp_nuke_addr_test.cpp | 32 const struct linger l = { in setSoLinger() local 36 if (setsockopt(s, SOL_SOCKET, SO_LINGER, &l, sizeof(l)) == -1) { in setSoLinger()
|
/system/core/bootstat/ |
D | README.md | 11 -l, --log Log all metrics to logstorage 34 To log the persisted boot events, call `bootstat` with the `-l` option. 36 $ bootstat -l
|
/system/tools/sysprop/tests/ |
D | CppGenIntegrationTest.cpp | 47 std::vector<std::optional<T>> OptionalList(std::initializer_list<T> l) { in OptionalList() argument 49 for (auto& e : l) ret.push_back(std::make_optional(e)); in OptionalList()
|