• Home
  • Raw
  • Download

Lines Matching refs:env

59 static jobject VMRuntime_newNonMovableArray(JNIEnv* env, jobject, jclass javaElementClass,  in VMRuntime_newNonMovableArray()  argument
61 ScopedFastNativeObjectAccess soa(env); in VMRuntime_newNonMovableArray()
83 static jobject VMRuntime_newUnpaddedArray(JNIEnv* env, jobject, jclass javaElementClass, in VMRuntime_newUnpaddedArray() argument
85 ScopedFastNativeObjectAccess soa(env); in VMRuntime_newUnpaddedArray()
108 static jlong VMRuntime_addressOf(JNIEnv* env, jobject, jobject javaArray) { in VMRuntime_addressOf() argument
112 ScopedFastNativeObjectAccess soa(env); in VMRuntime_addressOf()
133 static jobjectArray VMRuntime_properties(JNIEnv* env, jobject) { in VMRuntime_properties() argument
134 return toStringArray(env, Runtime::Current()->GetProperties()); in VMRuntime_properties()
146 static jstring VMRuntime_bootClassPath(JNIEnv* env, jobject) { in VMRuntime_bootClassPath() argument
147 return env->NewStringUTF(DefaultToDot(Runtime::Current()->GetBootClassPathString())); in VMRuntime_bootClassPath()
150 static jstring VMRuntime_classPath(JNIEnv* env, jobject) { in VMRuntime_classPath() argument
151 return env->NewStringUTF(DefaultToDot(Runtime::Current()->GetClassPathString())); in VMRuntime_classPath()
154 static jstring VMRuntime_vmVersion(JNIEnv* env, jobject) { in VMRuntime_vmVersion() argument
155 return env->NewStringUTF(Runtime::GetVersion()); in VMRuntime_vmVersion()
158 static jstring VMRuntime_vmLibrary(JNIEnv* env, jobject) { in VMRuntime_vmLibrary() argument
159 return env->NewStringUTF(kIsDebugBuild ? "libartd.so" : "libart.so"); in VMRuntime_vmLibrary()
162 static jstring VMRuntime_vmInstructionSet(JNIEnv* env, jobject) { in VMRuntime_vmInstructionSet() argument
165 return env->NewStringUTF(isa_string); in VMRuntime_vmInstructionSet()
168 static jboolean VMRuntime_is64Bit(JNIEnv* env, jobject) { in VMRuntime_is64Bit() argument
173 static jboolean VMRuntime_isCheckJniEnabled(JNIEnv* env, jobject) { in VMRuntime_isCheckJniEnabled() argument
185 static void VMRuntime_registerNativeAllocation(JNIEnv* env, jobject, jint bytes) { in VMRuntime_registerNativeAllocation() argument
187 ScopedObjectAccess soa(env); in VMRuntime_registerNativeAllocation()
191 Runtime::Current()->GetHeap()->RegisterNativeAllocation(env, static_cast<size_t>(bytes)); in VMRuntime_registerNativeAllocation()
194 static void VMRuntime_registerNativeFree(JNIEnv* env, jobject, jint bytes) { in VMRuntime_registerNativeFree() argument
196 ScopedObjectAccess soa(env); in VMRuntime_registerNativeFree()
200 Runtime::Current()->GetHeap()->RegisterNativeFree(env, static_cast<size_t>(bytes)); in VMRuntime_registerNativeFree()
203 static void VMRuntime_updateProcessState(JNIEnv* env, jobject, jint process_state) { in VMRuntime_updateProcessState() argument
212 static void VMRuntime_concurrentGC(JNIEnv* env, jobject) { in VMRuntime_concurrentGC() argument
213 Runtime::Current()->GetHeap()->ConcurrentGC(ThreadForEnv(env)); in VMRuntime_concurrentGC()
417 static void VMRuntime_preloadDexCaches(JNIEnv* env, jobject) { in VMRuntime_preloadDexCaches() argument
422 ScopedObjectAccess soa(env); in VMRuntime_preloadDexCaches()
434 Thread* self = ThreadForEnv(env); in VMRuntime_preloadDexCaches()
515 static void VMRuntime_registerAppInfo(JNIEnv* env, jclass, jstring pkgName, in VMRuntime_registerAppInfo() argument
517 const char *pkgNameChars = env->GetStringUTFChars(pkgName, NULL); in VMRuntime_registerAppInfo()
522 env->ReleaseStringUTFChars(pkgName, pkgNameChars); in VMRuntime_registerAppInfo()
525 static jboolean VMRuntime_isBootClassPathOnDisk(JNIEnv* env, jclass, jstring java_instruction_set) { in VMRuntime_isBootClassPathOnDisk() argument
526 ScopedUtfChars instruction_set(env, java_instruction_set); in VMRuntime_isBootClassPathOnDisk()
532 ScopedLocalRef<jclass> iae(env, env->FindClass("java/lang/IllegalArgumentException")); in VMRuntime_isBootClassPathOnDisk()
534 env->ThrowNew(iae.get(), message.c_str()); in VMRuntime_isBootClassPathOnDisk()
543 static jstring VMRuntime_getCurrentInstructionSet(JNIEnv* env, jclass) { in VMRuntime_getCurrentInstructionSet() argument
544 return env->NewStringUTF(GetInstructionSetString(kRuntimeISA)); in VMRuntime_getCurrentInstructionSet()
578 void register_dalvik_system_VMRuntime(JNIEnv* env) { in register_dalvik_system_VMRuntime() argument