Home
last modified time | relevance | path

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

12

/dalvik/tools/dmtracedump/
DCreateTestTrace.c140 char *cp = buf; in parseInputFile() local
141 if (*cp == '#') in parseInputFile()
144 if (isdigit(*cp)) { in parseInputFile()
145 int time = strtoul(cp, &cp, 0); in parseInputFile()
146 while (isspace(*cp)) in parseInputFile()
147 cp += 1; in parseInputFile()
148 int threadId = strtoul(cp, &cp, 0); in parseInputFile()
152 indentEnd = cp; in parseInputFile()
155 if (indentEnd - cp + 1 > maxFrames) in parseInputFile()
156 maxFrames = indentEnd - cp + 1; in parseInputFile()
[all …]
/dalvik/libdex/
DOptInvocation.c52 char* cp; in dexOptGenerateCacheFileName() local
85 cp = absoluteFile + 1; in dexOptGenerateCacheFileName()
86 while (*cp != '\0') { in dexOptGenerateCacheFileName()
87 if (*cp == '/') { in dexOptGenerateCacheFileName()
88 *cp = '@'; in dexOptGenerateCacheFileName()
90 cp++; in dexOptGenerateCacheFileName()
DDexFile.c319 char* cp; in dexSHA1DigestToStr() local
322 cp = tmpBuf; in dexSHA1DigestToStr()
324 *cp++ = hexDigit[digest[i] >> 4]; in dexSHA1DigestToStr()
325 *cp++ = hexDigit[digest[i] & 0x0f]; in dexSHA1DigestToStr()
327 *cp++ = '\0'; in dexSHA1DigestToStr()
329 assert(cp == tmpBuf + kSHA1DigestOutputLen); in dexSHA1DigestToStr()
/dalvik/vm/
DStdioConverter.c247 char* cp = data->buf; in readAndLog() local
250 for (i = data->count; i > 0; i--, cp++) { in readAndLog()
251 if (*cp == '\n' || (*cp == '\r' && i != 0 && *(cp+1) != '\n')) { in readAndLog()
252 *cp = '\0'; in readAndLog()
255 start = cp+1; in readAndLog()
265 start = cp + kMaxLine; in readAndLog()
DDdm.c430 char* cp = lineBuf; in getThreadStats() local
432 cp += strcspn(cp, kWhitespace); // skip token in getThreadStats()
433 cp += strspn(cp, kWhitespace); // skip whitespace in getThreadStats()
440 *pUtime = strtoul(cp, &endp, 10); in getThreadStats()
441 if (endp == cp) in getThreadStats()
442 LOGI("Warning: strtoul failed on utime ('%.30s...')\n", cp); in getThreadStats()
444 cp += strcspn(cp, kWhitespace); in getThreadStats()
445 cp += strspn(cp, kWhitespace); in getThreadStats()
447 *pStime = strtoul(cp, &endp, 10); in getThreadStats()
448 if (endp == cp) in getThreadStats()
[all …]
DNative.c622 char* cp; in mangleString() local
628 for (i = 0, cp = mangle; i < charLen; i++) { in mangleString()
632 sprintf(cp, "_0%04x", ch); in mangleString()
633 cp += 6; in mangleString()
637 *cp++ = '_'; in mangleString()
638 *cp++ = '1'; in mangleString()
641 *cp++ = '_'; in mangleString()
642 *cp++ = '2'; in mangleString()
645 *cp++ = '_'; in mangleString()
646 *cp++ = '3'; in mangleString()
[all …]
DSync.c394 char *cp; in logContentionEvent() local
400 cp = eventBuffer; in logContentionEvent()
403 *cp++ = 9; in logContentionEvent()
411 cp = logWriteString(cp, procName, len); in logContentionEvent()
415 cp = logWriteInt(cp, isMainThread); in logContentionEvent()
419 cp = logWriteString(cp, selfName, strlen(selfName)); in logContentionEvent()
423 cp = logWriteInt(cp, waitMs); in logContentionEvent()
428 cp = logWriteString(cp, fileName, strlen(fileName)); in logContentionEvent()
432 cp = logWriteInt(cp, dvmLineNumFromPC(meth, relativePc)); in logContentionEvent()
441 cp = logWriteString(cp, ownerFileName, strlen(ownerFileName)); in logContentionEvent()
[all …]
DMisc.c393 char* cp = newStr; in dvmDotToSlash() local
398 while (*cp != '\0') { in dvmDotToSlash()
399 if (*cp == '/') { in dvmDotToSlash()
403 if (*cp == '.') in dvmDotToSlash()
404 *cp = '/'; in dvmDotToSlash()
405 cp++; in dvmDotToSlash()
/dalvik/vm/hprof/
DHprofString.c44 const char *cp; in computeUtf8Hash() local
47 cp = str; in computeUtf8Hash()
48 while ((c = *cp++) != '\0') { in computeUtf8Hash()
DHprofClass.c46 const char *cp; in computeClassHash() local
49 cp = clazz->descriptor; in computeClassHash()
51 while ((c = *cp++) != '\0') { in computeClassHash()
DHprofStackFrame.c115 const char *cp = (char *) &stackFrameEntry->frame; in computeStackFrameHash() local
119 hash = 31 * hash + cp[i]; in computeStackFrameHash()
DHprofStack.c89 const char *cp = (const char *) &stackTraceEntry->trace; in computeStackTraceHash() local
93 hash = hash * 31 + cp[i]; in computeStackTraceHash()
/dalvik/tests/
Drun-test185 cp -Rp "$test_dir" "$tmp_dir"
189 cp "${progdir}/etc/default-build" build
193 cp "${progdir}/etc/default-run" run
223 cp "$build_output" "$output"
/dalvik/vm/reflect/
DReflect.c244 char* cp; in convertSignatureToClassArray() local
252 cp = signature; in convertSignatureToClassArray()
253 while (*cp != ')') { in convertSignatureToClassArray()
256 if (*cp == '[') { in convertSignatureToClassArray()
257 while (*++cp == '[') in convertSignatureToClassArray()
260 if (*cp == 'L') { in convertSignatureToClassArray()
261 while (*++cp != ';') in convertSignatureToClassArray()
264 cp++; in convertSignatureToClassArray()
275 cp = signature; in convertSignatureToClassArray()
279 clazz = convertSignaturePartToClass(&cp, defClass); in convertSignatureToClassArray()
[all …]
/dalvik/dalvikvm/
DMain.c241 char* cp; in main() local
245 for (cp = slashClass; *cp != '\0'; cp++) in main()
246 if (*cp == '.') in main()
247 *cp = '/'; in main()
/dalvik/hit/test/
Dtestparser8 java -cp build com.android.hit.Main ../samples/android.hprof
/dalvik/dexopt/
DOptMain.c467 char* cp; in fromDex() local
476 cp = bootClassPath = (char*) malloc(bcpLen +1); in fromDex()
483 *cp++ = ':'; in fromDex()
484 memcpy(cp, *argp, strLen); in fromDex()
485 cp += strLen; in fromDex()
487 *cp = '\0'; in fromDex()
/dalvik/dexdump/
DDexDump.c183 char* cp; in descriptorClassToDot() local
194 for (cp = newStr; *cp != '\0'; cp++) { in descriptorClassToDot()
195 if (*cp == '$') in descriptorClassToDot()
196 *cp = '.'; in descriptorClassToDot()
324 char* cp; in createAccessFlagStr() local
332 cp = str = (char*) malloc(count * (kLongest+1) +1); in createAccessFlagStr()
338 if (cp != str) in createAccessFlagStr()
339 *cp++ = ' '; in createAccessFlagStr()
341 memcpy(cp, accessStr, len); in createAccessFlagStr()
342 cp += len; in createAccessFlagStr()
[all …]
/dalvik/dx/etc/
Dopcode-gen140 cp "$tmpfile" "$file"
/dalvik/tests/etc/
Dpush-and-run-test-jar129 $GC_OPTS -cp test.jar "-Xint:${INTERP}" -ea Main "$@"
Ddefault-build33 ${JAVAC} -d classes-ex -cp classes `find src-ex -name '*.java'`
Dlocal-run-test-jar153 -cp test.jar Main "$@"
/dalvik/dx/tests/
Drun-test107 cp -Rp "$testdir" "$tmpdir"
/dalvik/vm/analysis/
DDexVerify.c346 const char* cp = classDescriptor; in checkNewArray() local
347 while (*cp++ == '[') in checkNewArray()
/dalvik/vm/oo/
DClass.c544 char* cp; in processClassPath() local
560 for (cp = mangle; *cp != '\0'; cp++) { in processClassPath()
561 if (*cp == ':') { /* separates two entries */ in processClassPath()
563 *cp = '\0'; in processClassPath()
566 end = cp; in processClassPath()
581 cp = mangle; in processClassPath()
583 while (cp < end) { in processClassPath()
584 if (*cp == '\0') { in processClassPath()
588 dvmPathToAbsolutePortion(cp) == NULL) { in processClassPath()
589 LOGE("Non-absolute bootclasspath entry '%s'\n", cp); in processClassPath()
[all …]

12