/system/core/adb/ |
D | adb.bash | 27 local where i cur serial 33 cur="${COMP_WORDS[i]}" 34 case "${cur}" in 47 serial=${cur} 65 COMPREPLY=( $(compgen -W "$OPTIONS $COMMAND" -- "$cur") ) 69 COMPREPLY=( $(compgen -W "${devices}" -- ${cur}) ) 73 COMPREPLY=( $(compgen -W "$COMMAND" -- "$cur") ) 76 case "${cur}" in 110 local serial i cur where 117 cur="${COMP_WORDS[i]}" [all …]
|
/system/core/fastboot/ |
D | fastboot.bash | 27 local where i cur serial 33 cur="${COMP_WORDS[i]}" 34 case "${cur}" in 47 serial=${cur} 67 COMPREPLY=( $(compgen -W "$OPTIONS $COMMAND" -- "$cur") ) 71 COMPREPLY=( $(compgen -W "${devices}" -- ${cur}) ) 75 COMPREPLY=( $(compgen -W "${slots}" -- ${cur}) ) 79 COMPREPLY=( $(compgen -W "$COMMAND" -- "$cur") ) 82 case "${cur}" in 104 local serial i cur [all …]
|
/system/memory/libmeminfo/tools/ |
D | wsstop.cpp | 78 static bool same_vma(const Vma& cur, const Vma& last) { in same_vma() argument 79 return (cur.start == last.start && cur.end == last.end && cur.name == last.name && in same_vma() 80 cur.flags == last.flags && cur.offset == last.offset); in same_vma() 83 static Vma diff_vma_params(const Vma& cur, const Vma& last) { in diff_vma_params() argument 85 res.usage.shared_clean = cur.usage.shared_clean > last.usage.shared_clean in diff_vma_params() 86 ? cur.usage.shared_clean - last.usage.shared_clean in diff_vma_params() 88 res.usage.shared_dirty = cur.usage.shared_dirty > last.usage.shared_dirty in diff_vma_params() 89 ? cur.usage.shared_dirty - last.usage.shared_dirty in diff_vma_params() 91 res.usage.private_clean = cur.usage.private_clean > last.usage.private_clean in diff_vma_params() 92 ? cur.usage.private_clean - last.usage.private_clean in diff_vma_params() [all …]
|
/system/core/init/ |
D | fscrypt_init_extensions.cpp | 63 FTSENT* cur; in delete_dir_contents() local 64 while ((cur = fts_read(fts)) != nullptr) { in delete_dir_contents() 65 if (cur->fts_info == FTS_ERR) { in delete_dir_contents() 69 if (dir == cur->fts_path) { in delete_dir_contents() 72 switch (cur->fts_info) { in delete_dir_contents() 76 if (rmdir(cur->fts_path) == -1) { in delete_dir_contents() 77 PLOG(ERROR) << "rmdir " << cur->fts_path; in delete_dir_contents() 81 PLOG(ERROR) << "FTS unexpected type " << cur->fts_info << " at " << cur->fts_path; in delete_dir_contents() 82 if (rmdir(cur->fts_path) != -1) break; in delete_dir_contents() 88 if (unlink(cur->fts_path) == -1) { in delete_dir_contents() [all …]
|
/system/core/libutils/ |
D | Unicode.cpp | 136 static inline int32_t utf32_at_internal(const char* cur, size_t *num_read) in utf32_at_internal() argument 138 const char first_char = *cur; in utf32_at_internal() 141 return *cur; in utf32_at_internal() 143 cur++; in utf32_at_internal() 151 utf32 = (utf32 << 6) + (*cur++ & 0x3F); in utf32_at_internal() 208 char *cur = dst; in utf32_to_utf8() local 212 utf32_codepoint_to_utf8((uint8_t *)cur, *cur_utf32++, len); in utf32_to_utf8() 213 cur += len; in utf32_to_utf8() 217 *cur = '\0'; in utf32_to_utf8() 336 char *cur = dst; in utf16_to_utf8() local [all …]
|
/system/extras/tests/workloads/ |
D | feedly-chrome.sh | 57 cur=1 58 while [ $cur -le $iterations ] 61 echo Iteration $cur of $iterations 106 ((cur=cur+1))
|
D | systemapps.sh | 137 cur=1 141 while [ $cur -le $iterations ] 145 echo Iteration $cur of $iterations 149 if [ $iterations -gt 1 -o $cur -eq 1 ]; then 166 startInstramentation "$app-$cur" 169 startInstramentation "$app-$cur" 0 240 ((cur=cur+1))
|
D | chromefling.sh | 87 cur=1 98 while [ $cur -le $iterations ] 114 ${ADB}atrace --async_dump -z -c -b 16000 freq gfx view idle sched > trace.${cur}.out
|
D | recentfling.sh | 92 cur=1 104 while [ $cur -le $iterations ] 120 ${ADB}atrace --async_dump -z -c -b 16000 freq gfx view idle sched > trace.${cur}.out
|
D | youtube.sh | 81 cur=1 92 while [ $cur -le $iterations ]
|
/system/sepolicy/tests/ |
D | sepol_wrap.cpp | 258 avtab_ptr_t cur; member 274 if (avtab_i->cur == nullptr) { in get_avtab_allow_rule() 275 avtab_i->cur = avtab_i->avtab->htable[avtab_i->i]; in get_avtab_allow_rule() 277 for (; avtab_i->cur; avtab_i->cur = (avtab_i->cur)->next) { in get_avtab_allow_rule() 278 if (!((avtab_i->cur)->key.specified & AVTAB_ALLOWED)) continue; in get_avtab_allow_rule() 281 db->p_type_val_to_name[(avtab_i->cur)->key.source_type - 1], in get_avtab_allow_rule() 282 db->p_type_val_to_name[(avtab_i->cur)->key.target_type - 1], in get_avtab_allow_rule() 283 db->p_class_val_to_name[(avtab_i->cur)->key.target_class - 1], in get_avtab_allow_rule() 284 … sepol_av_to_string(db, (avtab_i->cur)->key.target_class, (avtab_i->cur)->datum.data)); in get_avtab_allow_rule() 285 avtab_i->cur = (avtab_i->cur)->next; in get_avtab_allow_rule() [all …]
|
/system/netd/server/ |
D | MDnsSdListener.cpp | 676 Element *cur = *prevPtr; in rescan() local 677 *prevPtr = (cur)->mNext; // change our notion of this element and don't advance in rescan() 678 delete cur; in rescan() 703 Element *cur = mHead; in lookupServiceRef() local 704 while (cur != nullptr) { in lookupServiceRef() 705 if (cur->mId == id) { in lookupServiceRef() 706 DNSServiceRef *result = &(cur->mRef); in lookupServiceRef() 709 cur = cur->mNext; in lookupServiceRef() 717 for (Element* cur = mHead; cur != nullptr; cur = cur->mNext) { in startMonitoring() local 718 if (cur->mId == id) { in startMonitoring() [all …]
|
/system/sepolicy/tools/ |
D | sepolicy-check.c | 68 avtab_ptr_t cur; in expand_and_check() local 84 for (cur = exp_avtab.htable[i]; cur; cur = cur->next) { in expand_and_check() 86 match &= check(s_op, source_type, cur->key.source_type); in expand_and_check() 87 match &= check(t_op, target_type, cur->key.target_type); in expand_and_check() 88 match &= check(c_op, target_class, cur->key.target_class); in expand_and_check() 89 match &= check_perm(cur, perm); in expand_and_check()
|
/system/core/libcutils/ |
D | config_utils.cpp | 320 cnode *cur = root->first_child; in config_free() local 322 while (cur) { in config_free() 323 cnode *prev = cur; in config_free() 324 config_free(cur); in config_free() 325 cur = cur->next; in config_free()
|
/system/libufdt/ |
D | ufdt_node.c | 166 struct ufdt_node *cur = (struct ufdt_node *)node; in ufdt_node_get_node_by_path_len() local 170 if (path == end) return cur; in ufdt_node_get_node_by_path_len() 178 next = ufdt_node_get_subnode_by_name_len(cur, path, next_slash - path); in ufdt_node_get_node_by_path_len() 180 cur = next; in ufdt_node_get_node_by_path_len() 182 if (!cur) return cur; in ufdt_node_get_node_by_path_len() 185 return cur; in ufdt_node_get_node_by_path_len()
|
D | ufdt_convert.c | 251 int *cur) { in set_phandle_table_entry() argument 255 data[*cur].phandle = ph; in set_phandle_table_entry() 256 data[*cur].node = node; in set_phandle_table_entry() 257 (*cur)++; in set_phandle_table_entry() 260 for_each_node(it, node) set_phandle_table_entry(*it, data, cur); in set_phandle_table_entry() 279 int cur = 0; in build_phandle_table() local 280 set_phandle_table_entry(tree->root, res.data, &cur); in build_phandle_table()
|
/system/iorap/tests/src/inode2filename/ |
D | search_directories_test.cc | 813 SplitIterator cur; member 841 os << "cur:" << cur << ","; in PrintToStream() 868 DCHECK(cur != end); in operator ==() 869 return cur == other.cur; in operator ==() 871 DCHECK(cur != end); in operator ==() 872 return cur == other.cur; in operator ==() 874 DCHECK(cur == end); in operator ==() 875 DCHECK(cur == other.cur); in operator ==() 929 it.cur = end; in MakeBegin() 935 it.cur = begin; in MakeBegin() [all …]
|
/system/core/adb/fastdeploy/deploypatchgenerator/ |
D | patch_utils.cpp | 43 auto cur = cd.data(); in GetDeviceAPKMetaData() local 46 cur, size, &md5Hash, &localFileHeaderOffset, &dataSize)) { in GetDeviceAPKMetaData() 47 cur += consumed; in GetDeviceAPKMetaData()
|
/system/core/libunwindstack/ |
D | Maps.cpp | 50 const auto& cur = maps_[index]; in Find() local 51 if (pc >= cur->start && pc < cur->end) { in Find() 52 return cur.get(); in Find() 53 } else if (pc < cur->start) { in Find()
|
D | Memory.cpp | 58 uint64_t cur = remote_src; in ProcessVmRead() local 72 if (cur >= UINTPTR_MAX) { in ProcessVmRead() 77 src_iovs[iovecs_used].iov_base = reinterpret_cast<void*>(cur); in ProcessVmRead() 79 uintptr_t misalignment = cur & (getpagesize() - 1); in ProcessVmRead() 84 if (__builtin_add_overflow(cur, iov_len, &cur)) { in ProcessVmRead()
|
/system/extras/simpleperf/ |
D | record_lib_interface.cpp | 230 std::vector<Counter> cur; in StopCounters() local 231 if (!ReadRawCounters(&cur)) { in StopCounters() 235 SubCounter(cur[i], last_start_counters_[i]); in StopCounters() 236 AddCounter(accumulated_counters_[i], cur[i]); in StopCounters()
|
/system/bt/bta/hf_client/ |
D | bta_hf_client_at.cc | 107 tBTA_HF_CLIENT_AT_QCMD* cur = client_cb->at_cb.queued_cmd; in bta_hf_client_clear_queued_at() local 110 while (cur != NULL) { in bta_hf_client_clear_queued_at() 111 next = cur->next; in bta_hf_client_clear_queued_at() 112 osi_free(cur); in bta_hf_client_clear_queued_at() 113 cur = next; in bta_hf_client_clear_queued_at() 202 tBTA_HF_CLIENT_AT_QCMD* cur = client_cb->at_cb.queued_cmd; in bta_hf_client_send_queued_at() local 206 if (cur != NULL) { in bta_hf_client_send_queued_at() 207 client_cb->at_cb.queued_cmd = cur->next; in bta_hf_client_send_queued_at() 209 bta_hf_client_send_at(client_cb, cur->cmd, cur->buf, cur->buf_len); in bta_hf_client_send_queued_at() 211 osi_free(cur); in bta_hf_client_send_queued_at()
|
/system/vold/ |
D | Utils.cpp | 456 char cur = 0; in HexToStr() local 483 cur = val << 4; in HexToStr() 485 cur += val; in HexToStr() 486 str.push_back(cur); in HexToStr() 487 cur = 0; in HexToStr()
|
/system/incremental_delivery/incfs/incfsdump/ |
D | dump.cpp | 428 void skip(int64_t count) { mIn.seekg(count, std::ios_base::cur); } in skip()
|
/system/core/adb/client/ |
D | commandline.cpp | 1114 char* cur = buf; in adb_root() local 1117 ssize_t bytes_read = adb_read(fd, cur, bytes_left); in adb_root() 1124 cur += bytes_read; in adb_root() 1135 if (cur != buf && strstr(buf, "restarting") == nullptr) { in adb_root()
|