/dalvik/vm/ |
H A D | Bits.h | 234 INLINE int readUtf8String(unsigned char const** ppSrc, char* buf, size_t bufLen) argument 237 size_t copyLen = (length < bufLen) ? length : bufLen-1;
|
H A D | JarFile.c | 49 size_t bufLen = fileNameLen + suffixLen + 1; local 52 buf = malloc(bufLen);
|
H A D | Ddm.c | 354 int bufLen = 4 + 4 + (stringLen * 2); local 355 u1 buf[bufLen]; 363 dvmDbgDdmSendChunk(CHUNK_TYPE("THNM"), bufLen, buf); 496 int bufLen = kHeaderLen + threadCount * kBytesPerEntry; local 497 u1 tmpBuf[bufLen]; 536 ArrayObject* arrayObj = dvmAllocPrimitiveArray('B', bufLen, ALLOC_DEFAULT); 538 memcpy(arrayObj->contents, tmpBuf, bufLen);
|
H A D | Thread.c | 3402 * "bufLen", the string will be truncated. 3407 static int getSchedulerGroup(int tid, char* buf, size_t bufLen) argument 3416 snprintf(buf, bufLen, "[fopen-error:%d]", errno); 3445 if (bufLen <= len) { 3446 len = bufLen - 1; 3454 snprintf(buf, bufLen, "[no-cpu-subsys]"); 3460 snprintf(buf, bufLen, "[data-parse-failed]"); 3465 snprintf(buf, bufLen, "[n/a]");
|
H A D | CheckJni.c | 1290 const jbyte* buf, jsize bufLen) 1297 result = BASE_ENV(env)->DefineClass(env, name, loader, buf, bufLen); 1289 Check_DefineClass(JNIEnv* env, const char* name, jobject loader, const jbyte* buf, jsize bufLen) argument
|
H A D | Jni.c | 1872 const jbyte* buf, jsize bufLen) 1877 UNUSED_PARAMETER(bufLen); 4366 jint JNI_GetCreatedJavaVMs(JavaVM** vmBuf, jsize bufLen, jsize* nVMs) argument 4371 if (bufLen > 0) 1871 DefineClass(JNIEnv* env, const char *name, jobject loader, const jbyte* buf, jsize bufLen) argument
|
/dalvik/libnativehelper/ |
H A D | JNIHelp.c | 59 static void getExceptionSummary(JNIEnv* env, jthrowable exception, char* buf, size_t bufLen) argument 82 snprintf(buf, bufLen, "%s: %s", classNameChars, messageChars); 86 snprintf(buf, bufLen, "%s: <error getting message>", classNameChars); 90 strncpy(buf, classNameChars, bufLen); 91 buf[bufLen - 1] = '\0'; 104 snprintf(buf, bufLen, "%s", "<error getting class name>"); 111 static void printStackTrace(JNIEnv* env, jthrowable exception, char* buf, size_t bufLen) argument 143 if (messageStrLength >= (jsize) bufLen) { 144 messageStrLength = bufLen - 1; 164 getExceptionSummary(env, exception, buf, bufLen); [all...] |
/dalvik/vm/alloc/ |
H A D | DdmHeap.c | 181 size_t bufLen; member in struct:HeapChunkContext 228 size_t bytesLeft = ctx->bufLen - (size_t)(ctx->p - ctx->buf); 233 bytesLeft = ctx->bufLen - (size_t)(ctx->p - ctx->buf); 368 ctx.bufLen = HPSx_CHUNK_SIZE; 369 ctx.buf = (u1 *)malloc(ctx.bufLen);
|
/dalvik/vm/analysis/ |
H A D | DexPrepare.c | 1248 ssize_t bufLen; local 1256 bufLen = 0; 1265 bufLen += strlen(cacheFileName) +1; 1268 bufLen += 4*4 + numDeps * (4+kSHA1DigestLen); 1270 buf = malloc(bufLen); 1290 if (ptr + 4 + len + kSHA1DigestLen > buf + bufLen) { 1303 assert(ptr == buf + bufLen); 1305 result = sysWriteFully(fd, buf, bufLen, "DexOpt dep info");
|
/dalvik/libnativehelper/include/nativehelper/ |
H A D | jni.h | 514 jsize bufLen) 515 { return functions->DefineClass(this, name, loader, buf, bufLen); } 513 DefineClass(const char *name, jobject loader, const jbyte* buf, jsize bufLen) argument
|