/system/core/logd/ |
D | LogKlog.cpp | 299 const char* cp = nullptr; in sniffTime() local 301 cp = now.strptime(buf, "[ %s.%q]"); // can index beyond buffer bounds in sniffTime() 302 if (cp && (cp > &buf[len - 1])) cp = nullptr; in sniffTime() 304 if (cp) { in sniffTime() 305 len -= cp - buf; in sniffTime() 306 if ((len > 0) && isspace(*cp)) { in sniffTime() 307 ++cp; in sniffTime() 310 buf = cp; in sniffTime() 315 if (((b = android::strnstr(cp, len, suspendStr))) && in sniffTime() 316 (((b += strlen(suspendStr)) - cp) < len)) { in sniffTime() [all …]
|
D | LogReader.cpp | 75 char* cp = strstr(buffer, _tail); in onDataAvailable() local 76 if (cp) { in onDataAvailable() 77 tail = atol(cp + sizeof(_tail) - 1); in onDataAvailable() 82 cp = strstr(buffer, _start); in onDataAvailable() 83 if (cp) { in onDataAvailable() 85 start.strptime(cp + sizeof(_start) - 1, "%s.%q"); in onDataAvailable() 90 cp = strstr(buffer, _timeout); in onDataAvailable() 91 if (cp) { in onDataAvailable() 92 timeout = atol(cp + sizeof(_timeout) - 1) * NS_PER_SEC + in onDataAvailable() 98 cp = strstr(buffer, _logIds); in onDataAvailable() [all …]
|
D | LogTags.cpp | 63 char* cp; in sniffUid() local 64 unsigned long Uid = strtoul(comment + 4, &cp, 10); in sniffUid() 65 if ((cp > endp) || (Uid >= INT_MAX)) return AID_ROOT; in sniffUid() 198 char* cp = (char*)content.c_str(); in ReadFileEventLogTags() local 199 char* endp = cp + content.length(); in ReadFileEventLogTags() 207 char* lineStart = cp; in ReadFileEventLogTags() 208 while (cp < endp) { in ReadFileEventLogTags() 209 if (*cp == '\n') { in ReadFileEventLogTags() 210 lineStart = cp; in ReadFileEventLogTags() 212 if (*cp == '#') { in ReadFileEventLogTags() [all …]
|
D | LogAudit.cpp | 190 char* cp; in logPrint() local 194 while ((cp = strchr(str, '\n'))) { in logPrint() 195 *cp = ' '; in logPrint() 198 while ((cp = strstr(str, " "))) { in logPrint() 199 memmove(cp, cp + 1, strlen(cp + 1) + 1); in logPrint() 207 cp = pidptr + sizeof(pid_str) - 1; in logPrint() 209 while (isdigit(*cp)) { in logPrint() 210 pid = (pid * 10) + (*cp - '0'); in logPrint() 211 ++cp; in logPrint() 217 memmove(pidptr, cp, strlen(cp) + 1); in logPrint() [all …]
|
D | main.cpp | 115 const char* cp = strcasestr(prop, flag); in check_flag() local 116 if (!cp) { in check_flag() 121 if ((cp != prop) && !strchr(sep, cp[-1])) { in check_flag() 124 cp += strlen(flag); in check_flag() 125 return !*cp || !!strchr(sep, *cp); in check_flag()
|
/system/core/liblog/ |
D | event_tag_map.cpp | 233 static const char* endOfTag(const char* cp) { in endOfTag() argument 234 while (*cp && (isalnum(*cp) || strchr("_.-@,", *cp))) ++cp; in endOfTag() 235 return cp; in endOfTag() 253 const char* cp = ep; in scanTagLine() local 254 if (cp == pData) { in scanTagLine() 271 while ((*++cp != '\n') && isspace(*cp)) { in scanTagLine() 274 if (*cp == '\n') { in scanTagLine() 282 const char* tag = cp; in scanTagLine() 283 cp = endOfTag(cp); in scanTagLine() 284 size_t tagLen = cp - tag; in scanTagLine() [all …]
|
D | logd_reader.cpp | 70 char* cp; in SendLogdControlMessage() local 84 cp = buf; in SendLogdControlMessage() 85 while ((ret = TEMP_FAILURE_RETRY(read(sock, cp, len))) > 0) { in SendLogdControlMessage() 93 cp += ret; in SendLogdControlMessage() 219 char* cp = buf; in android_logger_get_statistics() local 223 n = snprintf(cp, remaining, "getStatistics"); in android_logger_get_statistics() 226 cp += n; in android_logger_get_statistics() 230 n = snprintf(cp, remaining, " %zu", log_id); in android_logger_get_statistics() 233 cp += n; in android_logger_get_statistics() 238 snprintf(cp, remaining, " pid=%u", logger_list->pid); in android_logger_get_statistics() [all …]
|
D | pmsg_writer.cpp | 165 const char* cp = buf + len; in strnrchr() local 166 while ((--cp > buf) && (*cp != c)) in strnrchr() 168 if (cp <= buf) { in strnrchr() 171 return cp; in strnrchr() 179 char *cp, *slash; in __android_log_pmsg_file_write() local 193 cp = strdup(filename); in __android_log_pmsg_file_write() 194 if (!cp) { in __android_log_pmsg_file_write() 198 tag = cp; in __android_log_pmsg_file_write() 199 slash = strrchr(cp, '/'); in __android_log_pmsg_file_write() 202 slash = strrchr(cp, '/'); in __android_log_pmsg_file_write() [all …]
|
D | log_time.cpp | 52 char* cp; in strptime() local 53 for (char* f = cp = fmt;; ++cp) { in strptime() 54 if (!*cp) { in strptime() 55 if (f != cp) { in strptime() 60 if (*cp != '%') { in strptime() 63 char* e = cp; in strptime() 67 *cp = '\0'; in strptime() 96 *cp = '\0'; in strptime() 115 f = cp = e; in strptime()
|
D | logprint.cpp | 331 char* cp = getenv(tz); in android_log_formatFromString() local 332 if (cp) { in android_log_formatFromString() 333 cp = strdup(cp); in android_log_formatFromString() 345 if (cp) { in android_log_formatFromString() 346 setenv(tz, cp, 1); in android_log_formatFromString() 355 free(cp); in android_log_formatFromString() 579 static bool findChar(const char** cp, size_t* len, int c) { in findChar() argument 580 while ((*len) && isspace(*(*cp))) { in findChar() 581 ++(*cp); in findChar() 585 if ((*len) && (*(*cp) == c)) { in findChar() [all …]
|
D | pmsg_reader.cpp | 206 const char *prev = NULL, *last = NULL, *cp = prefix; in __android_log_pmsg_file_read() local 207 while ((cp = strpbrk(cp, "/:"))) { in __android_log_pmsg_file_read() 209 last = cp; in __android_log_pmsg_file_read() 210 cp = cp + 1; in __android_log_pmsg_file_read() 221 const char* cp; in __android_log_pmsg_file_read() local 239 for (cp = msg + sizeof(prio); *cp && isprint(*cp) && !isspace(*cp) && --len; ++cp) { in __android_log_pmsg_file_read() 240 if (*cp == ':') { in __android_log_pmsg_file_read() 244 split = cp; in __android_log_pmsg_file_read() 247 if (*cp || !split) { in __android_log_pmsg_file_read() 325 cp = strpbrk(names->name, numbers); in __android_log_pmsg_file_read() [all …]
|
D | properties.cpp | 418 const char* cp = strcasestr(prop, flag); in check_flag() local 419 if (!cp) { in check_flag() 424 if ((cp != prop) && !strchr(sep, cp[-1])) { in check_flag() 427 cp += strlen(flag); in check_flag() 428 return !*cp || !!strchr(sep, *cp); in check_flag() 570 char* cp; in property_get_size_from_cache() local 571 unsigned long value = strtoul(cache->property, &cp, 10); in property_get_size_from_cache() 573 switch (*cp) { in property_get_size_from_cache()
|
/system/extras/f2fs_utils/ |
D | f2fs_sparseblock.c | 77 static void dbg_print_raw_ckpt_struct(struct f2fs_checkpoint *cp) in dbg_print_raw_ckpt_struct() argument 84 D_DISP_u64(cp, checkpoint_ver); in dbg_print_raw_ckpt_struct() 85 D_DISP_u64(cp, user_block_count); in dbg_print_raw_ckpt_struct() 86 D_DISP_u64(cp, valid_block_count); in dbg_print_raw_ckpt_struct() 87 D_DISP_u32(cp, rsvd_segment_count); in dbg_print_raw_ckpt_struct() 88 D_DISP_u32(cp, overprov_segment_count); in dbg_print_raw_ckpt_struct() 89 D_DISP_u32(cp, free_segment_count); in dbg_print_raw_ckpt_struct() 91 D_DISP_u32(cp, alloc_type[CURSEG_HOT_NODE]); in dbg_print_raw_ckpt_struct() 92 D_DISP_u32(cp, alloc_type[CURSEG_WARM_NODE]); in dbg_print_raw_ckpt_struct() 93 D_DISP_u32(cp, alloc_type[CURSEG_COLD_NODE]); in dbg_print_raw_ckpt_struct() [all …]
|
/system/core/logd/tests/ |
D | logd_test.cpp | 103 static char* find_benchmark_spam(char* cp) { in find_benchmark_spam() argument 115 benchmark = strstr(cp, signature); in find_benchmark_spam() 119 cp = benchmark + sizeof(signature); in find_benchmark_spam() 120 while (isspace(*cp)) { in find_benchmark_spam() 121 ++cp; in find_benchmark_spam() 123 benchmark = cp; in find_benchmark_spam() 133 while (isdigit(*cp)) { in find_benchmark_spam() 134 ++cp; in find_benchmark_spam() 136 while (isspace(*cp)) { in find_benchmark_spam() 137 ++cp; in find_benchmark_spam() [all …]
|
/system/core/libcutils/ |
D | android_get_control_file.cpp | 56 char *cp = key; in __android_get_control_from_env() local 57 while (*cp) { in __android_get_control_from_env() 58 if (!isalnum(*cp)) *cp = '_'; in __android_get_control_from_env() 59 ++cp; in __android_get_control_from_env()
|
/system/core/libutils/ |
D | String8.cpp | 502 const char* cp; in getPathLeaf() local 505 cp = strrchr(buf, OS_PATH_SEPARATOR); in getPathLeaf() 506 if (cp == nullptr) in getPathLeaf() 509 return String8(cp+1); in getPathLeaf() 514 const char* cp; in getPathDir() local 517 cp = strrchr(str, OS_PATH_SEPARATOR); in getPathDir() 518 if (cp == nullptr) in getPathDir() 521 return String8(str, cp - str); in getPathDir() 526 const char* cp; in walkPath() local 530 cp = strchr(buf, OS_PATH_SEPARATOR); in walkPath() [all …]
|
/system/timezone/testing/data/ |
D | transform-distro-files.sh | 64 cp ${INPUT_TELEPHONYLOOKUP_FILE} ${OUTPUT_TELEPHONYLOOKUP_FILE} 67 cp ${REFERENCE_FILES_DIR}/${TZDATA_LICENSE_FILE} ${TEST_DATA_OUTPUT_DIR}/${TZDATA_LICENSE_FILE} 68 cp ${REFERENCE_FILES_DIR}/${ICU_LICENSE_FILE} ${TEST_DATA_OUTPUT_DIR}/${ICU_LICENSE_FILE}
|
/system/core/logcat/ |
D | logcat.cpp | 434 static char* parseTime(log_time& t, const char* cp) { in parseTime() argument 435 char* ep = t.strptime(cp, "%m-%d %H:%M:%S.%q"); in parseTime() 437 ep = t.strptime(cp, "%Y-%m-%d %H:%M:%S.%q"); in parseTime() 439 return t.strptime(cp, "%s.%q"); in parseTime() 661 char* cp = parseTime(tail_time, optarg); in Run() local 662 if (!cp) { in Run() 665 if (*cp) { in Run() 666 char ch = *cp; in Run() 667 *cp = '\0'; in Run() 669 cp + 1); in Run() [all …]
|
/system/nfc/src/adaptation/ |
D | CrcChecksum.cc | 74 const unsigned char* cp = buffer; in crcChecksumCompute() local 78 crc = ((crc >> 8) & 0xff) ^ crctab[(crc & 0xff) ^ *cp++]; in crcChecksumCompute()
|
/system/timezone/output_data/ |
D | Android.bp | 68 "cp $(location iana/tzdata) $(genDir)/usr/share/zoneinfo/ && " + 69 "cp $(location android/tzlookup.xml) $(genDir)/usr/share/zoneinfo/ && " + 70 "cp $(location android/telephonylookup.xml) $(genDir)/usr/share/zoneinfo/ && " +
|
/system/core/liblog/tests/ |
D | liblog_test.cpp | 340 const char* cp = message; in bswrite_test() local 341 while (*cp) { in bswrite_test() 342 if (*cp == '\n') { in bswrite_test() 343 if (cp[1]) { in bswrite_test() 349 ++cp; in bswrite_test() 356 while (*cp) { in bswrite_test() 357 ++cp; in bswrite_test() 446 const char* cp = message; in buf_write_test() local 447 while (*cp) { in buf_write_test() 448 if (*cp == '\n') { in buf_write_test() [all …]
|
/system/extras/cppreopts/ |
D | preloads_copy.sh | 29 cp -rn $file $dest_dir &
|
/system/extras/tests/bootloader/ |
D | Android.mk | 18 $(GEN) : PRIVATE_CUSTOM_TOOL = cp $< $@
|
/system/bt/gd/hci/ |
D | controller_test.cc | 216 CompletedPackets cp; in IncomingCredit() local 217 cp.host_num_of_completed_packets_ = kCredits1; in IncomingCredit() 218 cp.connection_handle_ = kHandle1; in IncomingCredit() 219 completed_packets.push_back(cp); in IncomingCredit() 220 cp.host_num_of_completed_packets_ = kCredits2; in IncomingCredit() 221 cp.connection_handle_ = kHandle2; in IncomingCredit() 222 completed_packets.push_back(cp); in IncomingCredit()
|
/system/libufdt/tests/ |
D | verify_dto_inc.sh | 56 cp "$BASE_DTS" "$BASE_DT_WITH_INC_DTS"
|