/system/core/logd/tests/ |
D | logd_test.cpp | 93 static char *find_benchmark_spam(char *cp) in find_benchmark_spam() argument 107 char *benchmark = strstr(cp, " 0/"); in find_benchmark_spam() 108 char *benchmark_newline = strstr(cp, "\n0/"); in find_benchmark_spam() 115 cp = benchmark; in find_benchmark_spam() 116 if (!cp) { in find_benchmark_spam() 119 cp += 3; in find_benchmark_spam() 120 while (isdigit(*cp) || (*cp == 'g') || (*cp == 'o') || (*cp == 'n')) { in find_benchmark_spam() 121 ++cp; in find_benchmark_spam() 125 if ((*cp == '?') || (*cp == 'e')) { in find_benchmark_spam() 126 while (*++cp == ' '); in find_benchmark_spam() [all …]
|
/system/core/liblog/ |
D | event_tag_map.c | 226 const char* cp; in countMapLines() local 229 cp = (const char*) map->mapAddr; in countMapLines() 230 endp = cp + map->mapLen; in countMapLines() 234 while (cp < endp) { in countMapLines() 235 if (*cp == '\n') { in countMapLines() 238 if (isCharDigit(*cp)) { in countMapLines() 242 } else if (isCharWhitespace(*cp)) { in countMapLines() 251 cp++; in countMapLines() 263 char* cp; in parseMapLines() local 266 cp = (char*) map->mapAddr; in parseMapLines() [all …]
|
D | log_time.cpp | 53 char *cp; in strptime() local 54 for (char *f = cp = fmt; ; ++cp) { in strptime() 55 if (!*cp) { in strptime() 56 if (f != cp) { in strptime() 61 if (*cp != '%') { in strptime() 64 char *e = cp; in strptime() 68 *cp = '\0'; in strptime() 97 *cp = '\0'; in strptime() 116 f = cp = e; in strptime()
|
D | log_read.c | 280 char *cp; in send_log_msg() local 299 cp = buf; in send_log_msg() 300 while ((ret = TEMP_FAILURE_RETRY(read(sock, cp, len))) > 0) { in send_log_msg() 308 cp += ret; in send_log_msg() 426 char *cp = buf; in android_logger_get_statistics() local 430 n = snprintf(cp, remaining, "getStatistics"); in android_logger_get_statistics() 433 cp += n; in android_logger_get_statistics() 436 n = snprintf(cp, remaining, " %d", logger->id); in android_logger_get_statistics() 439 cp += n; in android_logger_get_statistics() 588 char buffer[256], *cp, c; in android_logger_list_read() local [all …]
|
/system/core/logd/ |
D | LogAudit.cpp | 73 char *cp; in logPrint() local 74 while ((cp = strstr(str, " "))) { in logPrint() 75 memmove(cp, cp + 1, strlen(cp + 1) + 1); in logPrint() 97 && ((cp = now.strptime(timeptr + sizeof(audit_str) - 1, "%s.%q"))) in logPrint() 98 && (*cp == ':')) { in logPrint() 100 memmove(timeptr + sizeof(audit_str) - 1 + 3, cp, strlen(cp) + 1); in logPrint() 108 cp = pidptr + sizeof(pid_str) - 1; in logPrint() 110 while (isdigit(*cp)) { in logPrint() 111 pid = (pid * 10) + (*cp - '0'); in logPrint() 112 ++cp; in logPrint() [all …]
|
D | LogReader.cpp | 53 char *cp = strstr(buffer, _tail); in onDataAvailable() local 54 if (cp) { in onDataAvailable() 55 tail = atol(cp + sizeof(_tail) - 1); in onDataAvailable() 60 cp = strstr(buffer, _start); in onDataAvailable() 61 if (cp) { in onDataAvailable() 63 start.strptime(cp + sizeof(_start) - 1, "%s.%q"); in onDataAvailable() 68 cp = strstr(buffer, _logIds); in onDataAvailable() 69 if (cp) { in onDataAvailable() 71 cp += sizeof(_logIds) - 1; in onDataAvailable() 72 while (*cp && *cp != '\0') { in onDataAvailable() [all …]
|
D | CommandListener.cpp | 274 char *cp = NULL; in runCommand() local 276 char *p = cp; in runCommand() 278 cp = NULL; in runCommand() 279 asprintf(&cp, "%s %s", p, argv[i]); in runCommand() 282 asprintf(&cp, "%s", argv[i]); in runCommand() 286 int ret = mBuf.initPrune(cp); in runCommand() 287 free(cp); in runCommand()
|
D | LogBuffer.h | 72 int initPrune(char *cp) { return mPrune.init(cp); } in initPrune() argument
|
D | LogBuffer.cpp | 69 char *cp; in property_get_size() local 70 unsigned long value = strtoul(property, &cp, 10); in property_get_size() 72 switch(*cp) { in property_get_size()
|
/system/extras/f2fs_utils/ |
D | f2fs_sparseblock.c | 72 static void dbg_print_raw_ckpt_struct(struct f2fs_checkpoint *cp) in dbg_print_raw_ckpt_struct() argument 79 D_DISP_u64(cp, checkpoint_ver); in dbg_print_raw_ckpt_struct() 80 D_DISP_u64(cp, user_block_count); in dbg_print_raw_ckpt_struct() 81 D_DISP_u64(cp, valid_block_count); in dbg_print_raw_ckpt_struct() 82 D_DISP_u32(cp, rsvd_segment_count); in dbg_print_raw_ckpt_struct() 83 D_DISP_u32(cp, overprov_segment_count); in dbg_print_raw_ckpt_struct() 84 D_DISP_u32(cp, free_segment_count); in dbg_print_raw_ckpt_struct() 86 D_DISP_u32(cp, alloc_type[CURSEG_HOT_NODE]); in dbg_print_raw_ckpt_struct() 87 D_DISP_u32(cp, alloc_type[CURSEG_WARM_NODE]); in dbg_print_raw_ckpt_struct() 88 D_DISP_u32(cp, alloc_type[CURSEG_COLD_NODE]); in dbg_print_raw_ckpt_struct() [all …]
|
/system/core/toolbox/upstream-netbsd/usr.bin/printenv/ |
D | printenv.c | 63 char *cp, **ep; in main() local 88 cp = *ep + len; in main() 89 if (!*cp || *cp == '=') { in main() 90 (void)printf("%s\n", *cp ? cp + 1 : cp); in main()
|
/system/core/liblog/tests/ |
D | liblog_benchmark.cpp | 109 static unsigned long long caught_convert(char *cp) in caught_convert() argument 111 unsigned long long l = cp[0] & 0xFF; in caught_convert() 112 l |= (unsigned long long) (cp[1] & 0xFF) << 8; in caught_convert() 113 l |= (unsigned long long) (cp[2] & 0xFF) << 16; in caught_convert() 114 l |= (unsigned long long) (cp[3] & 0xFF) << 24; in caught_convert() 115 l |= (unsigned long long) (cp[4] & 0xFF) << 32; in caught_convert() 116 l |= (unsigned long long) (cp[5] & 0xFF) << 40; in caught_convert() 117 l |= (unsigned long long) (cp[6] & 0xFF) << 48; in caught_convert() 118 l |= (unsigned long long) (cp[7] & 0xFF) << 56; in caught_convert()
|
/system/core/logcat/ |
D | logcat.cpp | 368 char *cp = tail_time.strptime(optarg, in main() local 370 if (!cp) { in main() 376 if (*cp) { in main() 377 char c = *cp; in main() 378 *cp = '\0'; in main() 381 ret, optarg, c, cp + 1); in main() 382 *cp = c; in main() 401 char *cp = optarg; in main() local 403 while (('0' <= *cp) && (*cp <= '9')) { in main() 405 setLogSize += *cp - '0'; in main() [all …]
|
/system/core/toolbox/upstream-netbsd/sbin/chown/ |
D | chown.c | 86 char *cp, *reference; in main() local 163 if ((cp = strchr(*argv, ':')) != NULL) { in main() 164 *cp++ = '\0'; in main() 165 a_gid(cp); in main() 168 else if ((cp = strrchr(*argv, '.')) != NULL) { in main() 170 *cp++ = '\0'; in main() 171 a_gid(cp); in main()
|
/system/core/lmkd/ |
D | lmkd.c | 441 static int zoneinfo_parse_protection(char *cp) { in zoneinfo_parse_protection() argument 446 for (cp = strtok_r(cp, "(), ", &save_ptr); cp; cp = strtok_r(NULL, "), ", &save_ptr)) { in zoneinfo_parse_protection() 447 zoneval = strtol(cp, &cp, 0); in zoneinfo_parse_protection() 456 char *cp = line; in zoneinfo_parse_line() local 460 cp = strtok_r(line, " ", &save_ptr); in zoneinfo_parse_line() 461 if (!cp) in zoneinfo_parse_line() 468 if (!strcmp(cp, "nr_free_pages")) in zoneinfo_parse_line() 470 else if (!strcmp(cp, "nr_file_pages")) in zoneinfo_parse_line() 472 else if (!strcmp(cp, "nr_shmem")) in zoneinfo_parse_line() 474 else if (!strcmp(cp, "high")) in zoneinfo_parse_line() [all …]
|
/system/core/libutils/ |
D | String8.cpp | 523 const char* cp; in getPathLeaf() local 526 cp = strrchr(buf, OS_PATH_SEPARATOR); in getPathLeaf() 527 if (cp == NULL) in getPathLeaf() 530 return String8(cp+1); in getPathLeaf() 535 const char* cp; in getPathDir() local 538 cp = strrchr(str, OS_PATH_SEPARATOR); in getPathDir() 539 if (cp == NULL) in getPathDir() 542 return String8(str, cp - str); in getPathDir() 547 const char* cp; in walkPath() local 551 cp = strchr(buf, OS_PATH_SEPARATOR); in walkPath() [all …]
|
/system/core/toolbox/upstream-netbsd/bin/dd/ |
D | args.c | 363 struct conv *cp, tmp; in f_conv() local 367 if (!(cp = bsearch(&tmp, clist, in f_conv() 372 if (ddflags & cp->noset) { in f_conv() 377 ddflags |= cp->set; in f_conv() 378 if (cp->ctab) in f_conv() 379 ctab = cp->ctab; in f_conv()
|
/system/extras/ext4_utils/ |
D | test_ext4fixup | 30 cp "$ORIG_FS_IMAGE" "$FIXED_FS_IMAGE" 51 cp "$ORIG_FS_IMAGE" "$NEW_FS_IMAGE"
|
/system/core/healthd/ |
D | healthd.cpp | 211 char *cp; in uevent_event() local 222 cp = msg; in uevent_event() 224 while (*cp) { in uevent_event() 225 if (!strcmp(cp, "SUBSYSTEM=" POWER_SUPPLY_SUBSYSTEM)) { in uevent_event() 231 while (*cp++) in uevent_event()
|
D | BatteryMonitor.cpp | 100 char *cp = NULL; in readFromFile() local 112 cp = (char *)memrchr(buf, '\n', count); in readFromFile() 114 if (cp) in readFromFile() 115 *cp = '\0'; in readFromFile()
|
/system/core/adb/ |
D | adb.c | 344 apacket *cp = get_apacket(); in send_connect() local 345 cp->msg.command = A_CNXN; in send_connect() 346 cp->msg.arg0 = A_VERSION; in send_connect() 347 cp->msg.arg1 = MAX_PAYLOAD; in send_connect() 348 cp->msg.data_length = fill_connect_data((char *)cp->data, in send_connect() 349 sizeof(cp->data)); in send_connect() 350 send_packet(cp, t); in send_connect() 463 char *cp; in parse_banner() local 468 cp = strchr(type, ':'); in parse_banner() 469 if (cp) { in parse_banner() [all …]
|
/system/core/init/ |
D | grab-bootchart.sh | 21 cp -f $TMPDIR/$TARBALL ./$TARBALL
|
/system/core/toolbox/ |
D | Android.mk | 27 upstream-netbsd/bin/cp/cp.c \ 28 upstream-netbsd/bin/cp/utils.c 128 cp \
|
/system/core/libnetutils/ |
D | dhcpclient.c | 242 char *cp = buf; in hex2str() local 245 cp += sprintf(cp, " %02x ", array[i]); in hex2str()
|
/system/media/camera/docs/ |
D | metadata-generate | 170 cp -R "$src" "$dst"
|