Home
last modified time | relevance | path

Searched refs:l (Results 1 – 25 of 116) sorted by relevance

12345

/system/core/libutils/include/utils/
DFastStrcmp.h42 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 …]
DErrorsMacros.h169 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/
DFQName.cpp75 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 …]
/system/tools/hidl/utils/
DFQName.cpp86 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/
Dlegacy.rs515 (KeyParam::Purpose(l), KeyParam::Purpose(r)) => l.cmp(r), in param_compare()
516 (KeyParam::Algorithm(l), KeyParam::Algorithm(r)) => l.cmp(r), in param_compare()
517 (KeyParam::KeySize(l), KeyParam::KeySize(r)) => l.cmp(r), in param_compare()
518 (KeyParam::BlockMode(l), KeyParam::BlockMode(r)) => l.cmp(r), in param_compare()
519 (KeyParam::Digest(l), KeyParam::Digest(r)) => l.cmp(r), in param_compare()
520 (KeyParam::Padding(l), KeyParam::Padding(r)) => l.cmp(r), in param_compare()
522 (KeyParam::MinMacLength(l), KeyParam::MinMacLength(r)) => l.cmp(r), in param_compare()
523 (KeyParam::EcCurve(l), KeyParam::EcCurve(r)) => l.cmp(r), in param_compare()
524 (KeyParam::RsaPublicExponent(l), KeyParam::RsaPublicExponent(r)) => l.cmp(r), in param_compare()
526 (KeyParam::RsaOaepMgfDigest(l), KeyParam::RsaOaepMgfDigest(r)) => l.cmp(r), in param_compare()
[all …]
/system/tools/aidl/
Dlocation.cpp22 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 <<()
Dlocation.h47 friend std::ostream& operator<<(std::ostream& os, const AidlLocation& l);
63 std::ostream& operator<<(std::ostream& os, const AidlLocation& l);
Dast_java.cpp167 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/
Dbootanalyze.sh90 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/
Dcheck_io_trace.py70 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 …]
Dcheck_verity.py27 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)
Dcheck_io_trace_all.py125 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 …]
Dcheck_file_read.py292 l = int(match.group(8))
301 print "ext4", pblk, l, inode, process_name
317 pending_access = PendingAccess(process_name, pid, time, dev, inode, lblk, pblk, l,\
337 l = int(match.group(7))
348 print "issue", address, l, is_read, access
350 if (address >= access_addr) and (address + l) > access_addr:
353 offset, valid_access_size = pending.get_valid_access(address - access_addr, l)
436 for l in f:
437 trace.handle_line(l)
/system/vold/
DFileDeviceUtils.cpp53 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/
Dstoraged_utils.cpp45 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/
Dlogger_name.cpp65 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()
Dpmsg_reader.cpp36 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/
DDocComment.cpp36 for (size_t l = 0; l < lines.size(); l++) { in DocComment() local
37 const std::string& line = lines[l]; in DocComment()
/system/security/keystore2/test_utils/
Dauthorizations.rs153 pub fn mac_length(mut self, l: i32) -> Self { in mac_length()
154 self.0.push(KeyParameter { tag: Tag::MAC_LENGTH, value: KeyParameterValue::Integer(l) }); in mac_length()
159 pub fn min_mac_length(mut self, l: i32) -> Self { in min_mac_length()
161 .push(KeyParameter { tag: Tag::MIN_MAC_LENGTH, value: KeyParameterValue::Integer(l) }); in min_mac_length()
/system/extras/tests/framebuffer/
Drefresh.c134 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/netd/server/
DPppController.cpp81 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/
Dutility_test.cpp99 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/core/bootstat/
DREADME.md11 -l, --log Log all metrics to logstorage
34 To log the persisted boot events, call `bootstat` with the `-l` option.
36 $ bootstat -l
/system/extras/tests/tcp_nuke_addr/
Dtcp_nuke_addr_test.cpp32 const struct linger l = { in setSoLinger() local
36 if (setsockopt(s, SOL_SOCKET, SO_LINGER, &l, sizeof(l)) == -1) { in setSoLinger()
/system/tools/sysprop/tests/
DCppGenIntegrationTest.cpp47 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()

12345