Home
last modified time | relevance | path

Searched refs:l (Results 1 – 25 of 101) 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 …]
/system/core/adb/
Dadb_listeners.cpp127 for (auto& l : listener_list) { in format_listeners() local
129 if (l->connect_to[0] == '*') { in format_listeners()
136 !l->transport->serial.empty() ? l->transport->serial.c_str() : "(reverse)", in format_listeners()
137 l->local_name.c_str(), l->connect_to.c_str()); in format_listeners()
179 for (auto& l : listener_list) { in install_listener() local
180 if (local_name == l->local_name) { in install_listener()
182 if(l->connect_to[0] == '*') { in install_listener()
193 l->connect_to = connect_to; in install_listener()
194 if (l->transport != transport) { in install_listener()
195 l->transport->RemoveDisconnect(&l->disconnect); in install_listener()
[all …]
/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 …]
/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()
DCheckEncryption.cpp110 auto l = read(haystack_fd.get(), buf, wlen); in check_file() local
111 if (l < 1) { in check_file()
117 area.append(buf, l); in check_file()
118 toread -= l; in check_file()
/system/tools/hidl/
DDocComment.cpp35 for (size_t l = 0; l < lines.size(); l++) { in DocComment() local
36 const std::string& line = lines[l]; in DocComment()
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dutil.c61 static int procline(struct str *l, int);
287 procline(struct str *l, int nottext) in procline() argument
296 while (st <= l->len) { in procline()
298 pmatch.rm_eo = l->len; in procline()
308 (unsigned char *)l->dat, in procline()
309 l->len, &pmatch); in procline()
313 r = regexec(&r_pattern[i], l->dat, 1, in procline()
323 (size_t)pmatch.rm_eo != l->len)) in procline()
331 sscanf(&l->dat[pmatch.rm_so - 1], in procline()
334 if ((size_t)pmatch.rm_eo != l->len && in procline()
[all …]
/system/core/liblog/
Dlogger_name.cpp64 const char* l = LOG_NAME[ret]; in android_name_to_log_id() local
65 if (l && !strcmp(b, l)) { in android_name_to_log_id()
Dpmsg_reader.cpp138 android_log_header_t l; in pmsgRead() member
184 (buf.p.len > (sizeof(buf) + LOGGER_ENTRY_MAX_PAYLOAD)) || (buf.l.id >= LOG_ID_MAX) || in pmsgRead()
185 (buf.l.realtime.tv_nsec >= NS_PER_SEC) || in pmsgRead()
186 ((buf.l.id != LOG_ID_EVENTS) && (buf.l.id != LOG_ID_SECURITY) && in pmsgRead()
196 if ((transp->logMask & (1 << buf.l.id)) && in pmsgRead()
198 ((logger_list->start.tv_sec <= buf.l.realtime.tv_sec) && in pmsgRead()
199 ((logger_list->start.tv_sec != buf.l.realtime.tv_sec) || in pmsgRead()
200 (logger_list->start.tv_nsec <= buf.l.realtime.tv_nsec)))) && in pmsgRead()
223 log_msg->entry_v4.tid = buf.l.tid; in pmsgRead()
224 log_msg->entry_v4.sec = buf.l.realtime.tv_sec; in pmsgRead()
[all …]
/system/core/libpixelflinger/include/pixelflinger/
Dformat.h99 return ((1<<(c[i].h-c[i].l))-1)<<c[i].l; in mask()
102 return c[i].h - c[i].l; in bits()
120 uint8_t l; member
/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/core/libpixelflinger/
Dbuffer.cpp38 static uint32_t extract(uint32_t v, int h, int l, int bits);
129 pixel->s[i] = f->c[i].h - f->c[i].l; in read_pixel()
131 pixel->c[i] = extract(v, f->c[i].h, f->c[i].l, f->size*8); in read_pixel()
188 const int l = f->c[i].l; in write_pixel() local
191 mask |= (((1<<(h-l))-1)<<l); in write_pixel()
194 if (pixelSize < (h-l)) { in write_pixel()
195 u = expand(u, pixelSize, h-l); in write_pixel()
196 pixelSize = h-l; in write_pixel()
198 v = downshift_component(v, u, pixelSize, 0, h, l, 0, 0, dither); in write_pixel()
283 uint32_t extract(uint32_t v, int h, int l, int bits) in extract() argument
[all …]
Dclear.cpp51 uint32_t l, uint32_t t, uint32_t w, uint32_t h) in memset2d() argument
55 uint8_t* dst = (uint8_t*)s.data + (l + t*s.stride)*size; in memset2d()
99 const uint32_t l = c->state.scissor.left; in ggl_clear() local
101 uint32_t w = c->state.scissor.right - l; in ggl_clear()
131 memset2d(c, c->state.buffers.color, packed, l, t, w, h); in ggl_clear()
140 memset2d(c, c->state.buffers.depth, packed, l, t, w, h); in ggl_clear()
Dtrap.cpp48 static void recti_validate(void* c, GGLint l, GGLint t, GGLint r, GGLint b);
49 static void recti(void* c, GGLint l, GGLint t, GGLint r, GGLint b);
169 GGLint l = (xc - halfSize) >> TRI_FRACTION_BITS; in pointx() local
173 recti(c, l, t, r, b); in pointx()
210 GGLint l = (v[0] - rad) >> TRI_FRACTION_BITS; in aa_nice_pointx() local
214 GGLcoord xstart = TRI_FROM_INT(l) - v[0] + TRI_HALF; in aa_nice_pointx()
218 if (l < GGLint(c->state.scissor.left)) { in aa_nice_pointx()
219 xstart += TRI_FROM_INT(c->state.scissor.left-l); in aa_nice_pointx()
220 l = GGLint(c->state.scissor.left); in aa_nice_pointx()
233 int xc = r - l; in aa_nice_pointx()
[all …]
/system/core/libpixelflinger/codeflinger/
Dblending.cpp139 if (temp.l && (temp.flags & CORRUPTIBLE)) { in build_blending()
140 MOV(AL, 0, temp.reg, reg_imm(temp.reg, LSR, temp.l)); in build_blending()
141 temp.h -= temp.l; in build_blending()
142 temp.l = 0; in build_blending()
147 if (temp.l) { in build_blending()
150 MOV(AL, 0, fragment.reg, reg_imm(temp.reg, LSR, temp.l)); in build_blending()
559 d.l = 0; in mul_factor()
561 d.l = fs; in mul_factor()
630 d.l = a.l; in mul_factor_add()
632 d.l = fs>a.l ? fs : a.l; in mul_factor_add()
[all …]
Dload_store.cpp109 void GGLAssembler::extract(integer_t& d, int s, int h, int l, int bits) in extract() argument
111 const int maskLen = h-l; in extract()
121 const int mask = ((1<<maskLen)-1) << l; in extract()
128 l += 32-h; in extract()
134 if (l) { in extract()
135 MOV(AL, 0, d.reg, reg_imm(s, LSR, l)); // component = packed >> l; in extract()
150 s.format.c[component].l, in extract()
159 s.format.c[component].l, in extract()
167 if (s.l || (s.flags & CLEAR_HI)) { in expand()
168 extract(d, s.reg, s.h, s.l, 32); in expand()
[all …]
DGGLAssembler.h244 inline int low(int c) const { return format.c[c].l; } in low()
252 component_t() : reg_t(), h(0), l(0) { in component_t()
255 : reg_t(r, f), h(0), l(0) { in reg_t()
258 : reg_t(r, f), h(hi), l(lo) { in reg_t()
261 : reg_t(rhs.reg, rhs.flags), h(rhs.s), l(0) { in component_t()
265 rhs.format.c[component].l, in component_t()
270 reg_t::setTo(r, f); h=hi; l=lo;
273 int8_t l; member
274 inline int size() const { return h-l; } in size()
393 void extract(integer_t& d, int s, int h, int l, int bits=32);
/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.cpp80 char *l = strdup(inet_ntoa(local)); in attachPppd() local
87 asprintf(&lr, "%s:%s", l, r); in attachPppd()
88 free(l); in attachPppd()
/system/tools/aidl/
Daidl_language_y.yy12 AidlLocation loc(const yy::parser::location_type& l) {
13 CHECK(l.begin.filename == l.end.filename);
15 .line = l.begin.line,
16 .column = l.begin.column,
19 .line = l.end.line,
20 .column = l.end.column,
22 return AidlLocation(*l.begin.filename, begin, end);
428 void yy::parser::error(const yy::parser::location_type& l, const std::string& errstr) {
429 AIDL_ERROR(loc(l)) << errstr;
Dast_java.cpp166 Assignment::Assignment(Variable* l, Expression* r) : lvalue(l), rvalue(r) {} in Assignment() argument
168 Assignment::Assignment(Variable* l, Expression* r, string c) : lvalue(l), rvalue(r), cast(c) {} in Assignment() argument
227 Comparison::Comparison(Expression* l, const string& o, Expression* r) in Comparison() argument
228 : lvalue(l), op(o), rvalue(r) {} in Comparison()
276 VariableDeclaration::VariableDeclaration(Variable* l, Expression* r) : lvalue(l), rvalue(r) {} in VariableDeclaration() argument
278 VariableDeclaration::VariableDeclaration(Variable* l) : lvalue(l) {} in VariableDeclaration() argument
/system/hardware/interfaces/suspend/1.0/default/
DSystemSuspend.cpp157 auto l = std::lock_guard(mStatsLock); in acquireWakeLock() local
188 auto l = std::lock_guard(mStatsLock); in debug() local
197 auto l = std::lock_guard(mCounterLock); in incSuspendCounter() local
208 auto l = std::lock_guard(mCounterLock); in decSuspendCounter() local
221 auto l = std::lock_guard(mStatsLock); in deleteWakeLockStatsEntry() local
/system/iorap/tests/src/binder/
Dapp_launch_event_test.cc63 # define EQ_OR_RETURN(l, r, val) if (!(l.val == r.val)) { return false; } in operator ==() argument
64 # define PROTO_EQ_OR_RETURN(l, r, val) if (!ProtoPointersEqual(l.val, r.val)) { return false; } in operator ==() argument

12345