/system/logging/liblog/ |
D | event_tag_map.cpp | 130 static const char* endOfTag(const char* cp) { in endOfTag() argument 131 while (*cp && (isalnum(*cp) || strchr("_.-@,", *cp))) ++cp; in endOfTag() 132 return cp; in endOfTag() 145 const char* cp = ep; in scanTagLine() local 146 if (cp == pData) { in scanTagLine() 159 while ((*++cp != '\n') && isspace(*cp)) { in scanTagLine() 162 if (*cp == '\n') { in scanTagLine() 168 const char* tag = cp; in scanTagLine() 169 cp = endOfTag(cp); in scanTagLine() 170 size_t tagLen = cp - tag; in scanTagLine() [all …]
|
D | log_time.cpp | 48 char* cp; in strptime() local 49 for (char* f = cp = fmt;; ++cp) { in strptime() 50 if (!*cp) { in strptime() 51 if (f != cp) { in strptime() 56 if (*cp != '%') { in strptime() 59 char* e = cp; in strptime() 63 *cp = '\0'; in strptime() 92 *cp = '\0'; in strptime() 111 f = cp = e; in strptime()
|
D | logd_reader.cpp | 83 char* cp; in SendLogdControlMessage() local 97 cp = buf; in SendLogdControlMessage() 98 while ((ret = TEMP_FAILURE_RETRY(read(sock, cp, len))) > 0) { in SendLogdControlMessage() 106 cp += ret; in SendLogdControlMessage() 237 char* cp = buf; in android_logger_get_statistics() local 241 n = snprintf(cp, remaining, "getStatistics"); in android_logger_get_statistics() 244 cp += n; in android_logger_get_statistics() 248 n = snprintf(cp, remaining, " %zu", log_id); in android_logger_get_statistics() 251 cp += n; in android_logger_get_statistics() 256 snprintf(cp, remaining, " pid=%u", logger_list->pid); in android_logger_get_statistics() [all …]
|
D | pmsg_writer.cpp | 173 const char* cp = buf + len; in strnrchr() local 174 while ((--cp > buf) && (*cp != c)) in strnrchr() 176 if (cp <= buf) { in strnrchr() 179 return cp; in strnrchr() 187 char *cp, *slash; in __android_log_pmsg_file_write() local 201 cp = strdup(filename); in __android_log_pmsg_file_write() 202 if (!cp) { in __android_log_pmsg_file_write() 206 tag = cp; in __android_log_pmsg_file_write() 207 slash = strrchr(cp, '/'); in __android_log_pmsg_file_write() 210 slash = strrchr(cp, '/'); in __android_log_pmsg_file_write() [all …]
|
D | logprint.cpp | 332 char* cp = getenv(tz); in android_log_formatFromString() local 333 if (cp) { in android_log_formatFromString() 334 cp = strdup(cp); in android_log_formatFromString() 346 if (cp) { in android_log_formatFromString() 347 setenv(tz, cp, 1); in android_log_formatFromString() 356 free(cp); in android_log_formatFromString() 580 static bool findChar(const char** cp, size_t* len, int c) { in findChar() argument 581 while ((*len) && isspace(*(*cp))) { in findChar() 582 ++(*cp); in findChar() 586 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 …]
|
/system/logging/logd/ |
D | LogKlog.cpp | 298 const char* cp = nullptr; in sniffTime() local 300 cp = now.strptime(buf, "[ %s.%q]"); // can index beyond buffer bounds in sniffTime() 301 if (cp && (cp > &buf[len - 1])) cp = nullptr; in sniffTime() 303 if (cp) { in sniffTime() 304 len -= cp - buf; in sniffTime() 305 if ((len > 0) && isspace(*cp)) { in sniffTime() 306 ++cp; in sniffTime() 309 buf = cp; in sniffTime() 312 if (((b = android::strnstr(cp, len, suspendStr))) && in sniffTime() 313 (((b += strlen(suspendStr)) - cp) < len)) { in sniffTime() [all …]
|
D | logd_test.cpp | 108 static char* find_benchmark_spam(char* cp) { in find_benchmark_spam() argument 120 benchmark = strstr(cp, signature); in find_benchmark_spam() 124 cp = benchmark + sizeof(signature); in find_benchmark_spam() 125 while (isspace(*cp)) { in find_benchmark_spam() 126 ++cp; in find_benchmark_spam() 128 benchmark = cp; in find_benchmark_spam() 138 while (isdigit(*cp)) { in find_benchmark_spam() 139 ++cp; in find_benchmark_spam() 141 while (isspace(*cp)) { in find_benchmark_spam() 142 ++cp; in find_benchmark_spam() [all …]
|
D | LogReader.cpp | 104 char* cp = strstr(buffer, _tail); in onDataAvailable() local 105 if (cp) { in onDataAvailable() 106 tail = atol(cp + sizeof(_tail) - 1); in onDataAvailable() 111 cp = strstr(buffer, _start); in onDataAvailable() 112 if (cp) { in onDataAvailable() 114 start.strptime(cp + sizeof(_start) - 1, "%s.%q"); in onDataAvailable() 119 cp = strstr(buffer, _timeout); in onDataAvailable() 120 if (cp) { in onDataAvailable() 121 long timeout_seconds = atol(cp + sizeof(_timeout) - 1); in onDataAvailable() 127 cp = strstr(buffer, _logIds); in onDataAvailable() [all …]
|
D | LogTags.cpp | 68 char* cp; in sniffUid() local 69 unsigned long Uid = strtoul(comment + 4, &cp, 10); in sniffUid() 70 if ((cp > endp) || (Uid >= INT_MAX)) return AID_ROOT; in sniffUid() 201 char* cp = (char*)content.c_str(); in ReadFileEventLogTags() local 202 char* endp = cp + content.length(); in ReadFileEventLogTags() 210 char* lineStart = cp; in ReadFileEventLogTags() 211 while (cp < endp) { in ReadFileEventLogTags() 212 if (*cp == '\n') { in ReadFileEventLogTags() 213 lineStart = cp; in ReadFileEventLogTags() 215 if (*cp == '#') { in ReadFileEventLogTags() [all …]
|
D | LogAudit.cpp | 189 char* cp; in logPrint() local 193 while ((cp = strchr(str, '\n'))) { in logPrint() 194 *cp = ' '; in logPrint() 197 while ((cp = strstr(str, " "))) { in logPrint() 198 memmove(cp, cp + 1, strlen(cp + 1) + 1); in logPrint() 206 cp = pidptr + sizeof(pid_str) - 1; in logPrint() 208 while (isdigit(*cp)) { in logPrint() 209 pid = (pid * 10) + (*cp - '0'); in logPrint() 210 ++cp; in logPrint() 214 memmove(pidptr, cp, strlen(cp) + 1); in logPrint() [all …]
|
/system/extras/f2fs_utils/ |
D | f2fs_sparseblock.c | 78 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/bt/gd/cert/ |
D | run | 307 cp {$HOST_BIN,$DEST_DIR}/bluetooth_stack_with_facade 308 cp {$HOST_BIN,$DEST_DIR}/bluetooth_with_facades 309 cp {$HOST_BIN,$DEST_DIR}/root-canal 311 cp {$HOST_LIB,$DEST_DIR}/bluetooth_packets_python3.so 313 cp {$HOST_LIB,$DEST_LIB_DIR}/libbase.so 314 cp {$HOST_LIB,$DEST_LIB_DIR}/libbluetooth_gd.so 315 cp {$HOST_LIB,$DEST_LIB_DIR}/libc++.so 316 cp {$HOST_LIB,$DEST_LIB_DIR}/libchrome.so 317 cp {$HOST_LIB,$DEST_LIB_DIR}/libcrypto-host.so 318 cp {$HOST_LIB,$DEST_LIB_DIR}/libevent-host.so [all …]
|
/system/apex/apexer/ |
D | Android.bp | 190 "cp $(in) $$BIN && " + 191 "cp $(location apexer) $$BIN && " + 192 "cp $(location deapexer) $$BIN && " + 193 "cp $(location avbtool) $$BIN && " + 194 "cp $(location aapt2) $$BIN && " + 195 "cp $(location e2fsdroid) $$BIN && " + 196 "cp $(location merge_zips) $$BIN && " + 197 "cp $(location mke2fs) $$BIN && " + 198 "cp $(location resize2fs) $$BIN && " + 199 "cp $(location sefcontext_compile) $$BIN && " + [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/bt/build/dpkg/modp_b64/ |
D | gen-src-pkg.sh | 24 cp -a ../platform2/{common-mk,.gn} . 41 cp -aT "${scriptdir}/debian/" "${tmpdir}/${pkgdir}/debian/" 50 cp *.dsc *.orig.tar.gz *.debian.tar.xz "${outdir}/src" 51 cp *.deb "${outdir}"
|
/system/bt/build/dpkg/libchrome-822064/ |
D | gen-src-pkg.sh | 24 cp -a ../platform2/{common-mk,.gn} . 44 cp -aT "${scriptdir}/debian/" "${tmpdir}/${pkgdir}/debian/" 53 cp *.dsc *.orig.tar.gz *.debian.tar.xz "${outdir}/src" 54 cp *.deb "${outdir}"
|
/system/bt/build/dpkg/libchrome/ |
D | gen-src-pkg.sh | 24 cp -a ../platform2/{common-mk,.gn} . 44 cp -aT "${scriptdir}/debian/" "${tmpdir}/${pkgdir}/debian/" 53 cp *.dsc *.orig.tar.gz *.debian.tar.xz "${outdir}/src" 54 cp *.deb "${outdir}"
|
/system/core/libutils/ |
D | String8.cpp | 456 const char* cp; in getPathLeaf() local 459 cp = strrchr(buf, OS_PATH_SEPARATOR); in getPathLeaf() 460 if (cp == nullptr) in getPathLeaf() 463 return String8(cp+1); in getPathLeaf() 468 const char* cp; in getPathDir() local 471 cp = strrchr(str, OS_PATH_SEPARATOR); in getPathDir() 472 if (cp == nullptr) in getPathDir() 475 return String8(str, cp - str); in getPathDir() 480 const char* cp; in walkPath() local 484 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/logging/logcat/ |
D | logcat.cpp | 444 static char* parseTime(log_time& t, const char* cp) { in parseTime() argument 445 char* ep = t.strptime(cp, "%m-%d %H:%M:%S.%q"); in parseTime() 447 ep = t.strptime(cp, "%Y-%m-%d %H:%M:%S.%q"); in parseTime() 449 return t.strptime(cp, "%s.%q"); in parseTime() 681 char* cp = parseTime(tail_time, optarg); in Run() local 682 if (!cp) { in Run() 685 if (*cp) { in Run() 686 char ch = *cp; in Run() 687 *cp = '\0'; in Run() 689 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 | 78 "cp $(location iana/tzdata) $(genDir)/usr/share/zoneinfo/ && " + 79 "cp $(location android/tzlookup.xml) $(genDir)/usr/share/zoneinfo/ && " + 80 "cp $(location android/telephonylookup.xml) $(genDir)/usr/share/zoneinfo/ && " +
|
/system/linkerconfig/testdata/ |
D | prepare_root.sh | 94 cp -R $ROOT_IN/* $ROOT_OUT 112 cp -r $src $dst
|
/system/logging/liblog/tests/ |
D | liblog_test.cpp | 333 const char* cp = message; in bswrite_test() local 334 while (*cp) { in bswrite_test() 335 if (*cp == '\n') { in bswrite_test() 336 if (cp[1]) { in bswrite_test() 342 ++cp; in bswrite_test() 349 while (*cp) { in bswrite_test() 350 ++cp; in bswrite_test() 438 const char* cp = message; in buf_write_test() local 439 while (*cp) { in buf_write_test() 440 if (*cp == '\n') { in buf_write_test() [all …]
|