/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 …]
|
/system/tools/hidl/utils/ |
D | FQName.cpp | 94 static const char* eatIdent(const char* l, const char* end) { in eatIdent() argument 95 if (!(l < end && isIdentStart(*l++))) return nullptr; in eatIdent() 96 while (l < end && isIdentBody(*l)) l++; in eatIdent() 97 return l; in eatIdent() 101 static const char* eatPackage(const char* l, const char* end) { in eatPackage() argument 102 if ((l = eatIdent(l, end)) == nullptr) return nullptr; in eatPackage() 104 while (l < end && *l == '.') { in eatPackage() 105 l++; in eatPackage() 106 if ((l = eatIdent(l, end)) == nullptr) return nullptr; in eatPackage() 108 return l; in eatPackage() [all …]
|
/system/core/adb/ |
D | adb_listeners.cpp | 129 for (auto& l : listener_list) { in format_listeners() local 131 if (l->connect_to[0] == '*') { in format_listeners() 138 !l->transport->serial.empty() ? l->transport->serial.c_str() : "(reverse)", in format_listeners() 139 l->local_name.c_str(), l->connect_to.c_str()); in format_listeners() 171 for (auto& l : listener_list) { in enable_server_sockets() local 172 if (l->connect_to == "*smartsocket*") { in enable_server_sockets() 173 fdevent_set(l->fde, FDE_READ); in enable_server_sockets() 192 for (auto& l : listener_list) { in install_listener() local 193 if (local_name == l->local_name) { in install_listener() 195 if (l->connect_to[0] == '*') { in install_listener() [all …]
|
/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/libpixelflinger/include/pixelflinger/ |
D | format.h | 99 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/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/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/core/libpixelflinger/ |
D | buffer.cpp | 38 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 …]
|
D | clear.cpp | 51 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()
|
D | trap.cpp | 48 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/bt/gd/hci/ |
D | address.cc | 41 Address::Address(std::initializer_list<uint8_t> l) { in Address() argument 42 std::copy(l.begin(), std::min(l.begin() + kLength, l.end()), data()); in Address()
|
/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/core/libpixelflinger/codeflinger/ |
D | blending.cpp | 139 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 …]
|
D | load_store.cpp | 109 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 …]
|
D | GGLAssembler.h | 244 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/bt/gd/os/ |
D | log.h | 58 …auto l = std::strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", std::localtime(&now_t)); … 59 …snprintf(buf + l, sizeof(buf) - l, ".%03u", static_cast<unsigned int>(now_ms.time_since_epoch().co…
|
/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/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/tools/aidl/ |
D | ast_java.cpp | 164 Assignment::Assignment(std::shared_ptr<Variable> l, std::shared_ptr<Expression> r) in Assignment() argument 165 : lvalue(l), rvalue(r) {} in Assignment() 167 Assignment::Assignment(std::shared_ptr<Variable> l, std::shared_ptr<Expression> r, string c) in Assignment() argument 168 : lvalue(l), rvalue(r), cast(c) {} in Assignment() 209 Comparison::Comparison(std::shared_ptr<Expression> l, const string& o, in Comparison() argument 211 : lvalue(l), op(o), rvalue(r) {} in Comparison() 250 VariableDeclaration::VariableDeclaration(std::shared_ptr<Variable> l, std::shared_ptr<Expression> r) in VariableDeclaration() argument 251 : lvalue(l), rvalue(r) {} in VariableDeclaration() 253 VariableDeclaration::VariableDeclaration(std::shared_ptr<Variable> l) : lvalue(l) {} in VariableDeclaration() argument
|
/system/iorap/tests/src/binder/ |
D | app_launch_event_test.cc | 63 # 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
|
/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 ==()
|