Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 25 of 61) sorted by relevance

123

/system/core/logd/
DLogKlog.cpp298 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 …]
Dlogd_test.cpp104 static char* find_benchmark_spam(char* cp) { in find_benchmark_spam() argument
116 benchmark = strstr(cp, signature); in find_benchmark_spam()
120 cp = benchmark + sizeof(signature); in find_benchmark_spam()
121 while (isspace(*cp)) { in find_benchmark_spam()
122 ++cp; in find_benchmark_spam()
124 benchmark = cp; in find_benchmark_spam()
134 while (isdigit(*cp)) { in find_benchmark_spam()
135 ++cp; in find_benchmark_spam()
137 while (isspace(*cp)) { in find_benchmark_spam()
138 ++cp; in find_benchmark_spam()
[all …]
DLogReader.cpp103 char* cp = strstr(buffer, _tail); in onDataAvailable() local
104 if (cp) { in onDataAvailable()
105 tail = atol(cp + sizeof(_tail) - 1); in onDataAvailable()
110 cp = strstr(buffer, _start); in onDataAvailable()
111 if (cp) { in onDataAvailable()
113 start.strptime(cp + sizeof(_start) - 1, "%s.%q"); in onDataAvailable()
118 cp = strstr(buffer, _timeout); in onDataAvailable()
119 if (cp) { in onDataAvailable()
120 long timeout_seconds = atol(cp + sizeof(_timeout) - 1); in onDataAvailable()
126 cp = strstr(buffer, _logIds); in onDataAvailable()
[all …]
DLogTags.cpp67 char* cp; in sniffUid() local
68 unsigned long Uid = strtoul(comment + 4, &cp, 10); in sniffUid()
69 if ((cp > endp) || (Uid >= INT_MAX)) return AID_ROOT; in sniffUid()
200 char* cp = (char*)content.c_str(); in ReadFileEventLogTags() local
201 char* endp = cp + content.length(); in ReadFileEventLogTags()
209 char* lineStart = cp; in ReadFileEventLogTags()
210 while (cp < endp) { in ReadFileEventLogTags()
211 if (*cp == '\n') { in ReadFileEventLogTags()
212 lineStart = cp; in ReadFileEventLogTags()
214 if (*cp == '#') { in ReadFileEventLogTags()
[all …]
DLogAudit.cpp189 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/core/liblog/
Devent_tag_map.cpp233 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 …]
Dlogd_reader.cpp70 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 …]
Dlog_time.cpp48 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()
Dpmsg_writer.cpp165 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 …]
Dlogprint.cpp332 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 …]
Dpmsg_reader.cpp206 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/extras/f2fs_utils/
Df2fs_sparseblock.c77 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/libcutils/
Dandroid_get_control_file.cpp56 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/
DString8.cpp483 const char* cp; in getPathLeaf() local
486 cp = strrchr(buf, OS_PATH_SEPARATOR); in getPathLeaf()
487 if (cp == nullptr) in getPathLeaf()
490 return String8(cp+1); in getPathLeaf()
495 const char* cp; in getPathDir() local
498 cp = strrchr(str, OS_PATH_SEPARATOR); in getPathDir()
499 if (cp == nullptr) in getPathDir()
502 return String8(str, cp - str); in getPathDir()
507 const char* cp; in walkPath() local
511 cp = strchr(buf, OS_PATH_SEPARATOR); in walkPath()
[all …]
/system/timezone/testing/data/
Dtransform-distro-files.sh64 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/
Dlogcat.cpp440 static char* parseTime(log_time& t, const char* cp) { in parseTime() argument
441 char* ep = t.strptime(cp, "%m-%d %H:%M:%S.%q"); in parseTime()
443 ep = t.strptime(cp, "%Y-%m-%d %H:%M:%S.%q"); in parseTime()
445 return t.strptime(cp, "%s.%q"); in parseTime()
678 char* cp = parseTime(tail_time, optarg); in Run() local
679 if (!cp) { in Run()
682 if (*cp) { in Run()
683 char ch = *cp; in Run()
684 *cp = '\0'; in Run()
686 cp + 1); in Run()
[all …]
/system/nfc/src/adaptation/
DCrcChecksum.cc74 const unsigned char* cp = buffer; in crcChecksumCompute() local
78 crc = ((crc >> 8) & 0xff) ^ crctab[(crc & 0xff) ^ *cp++]; in crcChecksumCompute()
/system/timezone/output_data/
DAndroid.bp68 "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/linkerconfig/testdata/
Dprepare_root.sh94 cp -R $ROOT_IN/* $ROOT_OUT
108 cp -r $src $dst
/system/core/liblog/tests/
Dliblog_test.cpp333 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 …]
Dliblog_benchmark.cpp628 static unsigned long long caught_convert(char* cp) { in caught_convert() argument
629 unsigned long long l = cp[0] & 0xFF; in caught_convert()
630 l |= (unsigned long long)(cp[1] & 0xFF) << 8; in caught_convert()
631 l |= (unsigned long long)(cp[2] & 0xFF) << 16; in caught_convert()
632 l |= (unsigned long long)(cp[3] & 0xFF) << 24; in caught_convert()
633 l |= (unsigned long long)(cp[4] & 0xFF) << 32; in caught_convert()
634 l |= (unsigned long long)(cp[5] & 0xFF) << 40; in caught_convert()
635 l |= (unsigned long long)(cp[6] & 0xFF) << 48; in caught_convert()
636 l |= (unsigned long long)(cp[7] & 0xFF) << 56; in caught_convert()
/system/extras/cppreopts/
Dpreloads_copy.sh29 cp -rn $file $dest_dir &
/system/extras/tests/bootloader/
DAndroid.mk18 $(GEN) : PRIVATE_CUSTOM_TOOL = cp $< $@
/system/bt/gd/hci/
Dcontroller_test.cc214 CompletedPackets cp; in IncomingCredit() local
215 cp.host_num_of_completed_packets_ = kCredits1; in IncomingCredit()
216 cp.connection_handle_ = kHandle1; in IncomingCredit()
217 completed_packets.push_back(cp); in IncomingCredit()
218 cp.host_num_of_completed_packets_ = kCredits2; in IncomingCredit()
219 cp.connection_handle_ = kHandle2; in IncomingCredit()
220 completed_packets.push_back(cp); in IncomingCredit()
/system/libufdt/tests/
Dverify_dto_inc.sh56 cp "$BASE_DTS" "$BASE_DT_WITH_INC_DTS"

123