/art/compiler/jni/ |
D | jni_compiler_test.cc | 44 extern "C" JNIEXPORT jint JNICALL Java_MyClassNatives_bar(JNIEnv*, jobject, jint count) { in Java_MyClassNatives_bar() argument 133 is_any_of<T, jclass, jobject, jstring, jobjectArray, jintArray, 239 void CompileForTest(jobject class_loader, in CompileForTest() 266 void CompileForTestWithCurrentJni(jobject class_loader, in CompileForTestWithCurrentJni() 328 static jobject jobj_; 329 static jobject class_loader_; 389 jobject JniCompilerTest::jobj_; 390 jobject JniCompilerTest::class_loader_; 472 static void expectValidJniEnvAndObject(JNIEnv* env, jobject thisObj) { in expectValidJniEnvAndObject() 494 EXPECT_TRUE(env->IsSameObject(static_cast<jobject>(JniCompilerTest::jklass_), in expectValidJniEnvAndClass() [all …]
|
/art/runtime/native/ |
D | sun_misc_Unsafe.cc | 41 static jboolean Unsafe_compareAndSwapInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapInt() argument 54 static jboolean Unsafe_compareAndSwapLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapLong() argument 65 static jboolean Unsafe_compareAndSwapObject(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapObject() argument 66 jobject javaExpectedValue, jobject javaNewValue) { in Unsafe_compareAndSwapObject() 93 static jint Unsafe_getInt(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getInt() argument 99 static jint Unsafe_getIntVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getIntVolatile() argument 105 static void Unsafe_putInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, jint newValue) { in Unsafe_putInt() argument 112 static void Unsafe_putIntVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_putIntVolatile() argument 120 static void Unsafe_putOrderedInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_putOrderedInt() argument 130 static jlong Unsafe_getLong(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getLong() argument [all …]
|
D | java_lang_reflect_Field.cc | 125 jobject j_rcvr, in CheckReceiver() 153 static jobject Field_get(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_get() 174 return soa.AddLocalReference<jobject>(BoxPrimitive(field_type, value)); in Field_get() 179 jobject javaField, in GetPrimitiveField() 180 jobject javaObj) { in GetPrimitiveField() 221 static jboolean Field_getBoolean(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getBoolean() 225 static jbyte Field_getByte(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getByte() 229 static jchar Field_getChar(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getChar() 233 static jdouble Field_getDouble(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getDouble() 237 static jfloat Field_getFloat(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getFloat() [all …]
|
D | java_lang_Object.cc | 28 static jobject Object_internalClone(JNIEnv* env, jobject java_this) { in Object_internalClone() 31 return soa.AddLocalReference<jobject>(o->Clone(soa.Self())); in Object_internalClone() 34 static void Object_notify(JNIEnv* env, jobject java_this) { in Object_notify() 39 static void Object_notifyAll(JNIEnv* env, jobject java_this) { in Object_notifyAll() 44 static void Object_waitJI(JNIEnv* env, jobject java_this, jlong ms, jint ns) { in Object_waitJI() 49 static jint Object_identityHashCodeNative(JNIEnv* env, jclass, jobject javaObject) { in Object_identityHashCodeNative()
|
D | dalvik_system_VMStack.cc | 41 jobject peer, in GetThreadStack() 82 static jint VMStack_fillStackTraceElements(JNIEnv* env, jclass, jobject javaThread, in VMStack_fillStackTraceElements() 86 REQUIRES_SHARED(Locks::mutator_lock_) -> jobject { in VMStack_fillStackTraceElements() 89 jobject trace = GetThreadStack(soa, javaThread, fn); in VMStack_fillStackTraceElements() 99 static jobject VMStack_getCallingClassLoader(JNIEnv* env, jclass) { in VMStack_getCallingClassLoader() 107 return soa.AddLocalReference<jobject>(visitor.caller->GetDeclaringClass()->GetClassLoader()); in VMStack_getCallingClassLoader() 110 static jobject VMStack_getClosestUserClassLoader(JNIEnv* env, jclass) { in VMStack_getClosestUserClassLoader() 135 return soa.AddLocalReference<jobject>(visitor.class_loader); in VMStack_getClosestUserClassLoader() 150 static jobjectArray VMStack_getThreadStackTrace(JNIEnv* env, jclass, jobject javaThread) { in VMStack_getThreadStackTrace() 153 REQUIRES_SHARED(Locks::mutator_lock_) -> jobject { in VMStack_getThreadStackTrace() [all …]
|
D | java_lang_reflect_Method.cc | 38 static jobject Method_getDefaultValue(JNIEnv* env, jobject javaMethod) { in Method_getDefaultValue() 44 return soa.AddLocalReference<jobject>(annotations::GetAnnotationDefaultValue(method)); in Method_getDefaultValue() 47 static jobjectArray Method_getExceptionTypes(JNIEnv* env, jobject javaMethod) { in Method_getExceptionTypes() 81 static jobject Method_invoke(JNIEnv* env, jobject javaMethod, jobject javaReceiver, in Method_invoke()
|
D | dalvik_system_VMRuntime.cc | 69 static jfloat VMRuntime_getTargetHeapUtilization(JNIEnv*, jobject) { in VMRuntime_getTargetHeapUtilization() argument 73 static void VMRuntime_nativeSetTargetHeapUtilization(JNIEnv*, jobject, jfloat target) { in VMRuntime_nativeSetTargetHeapUtilization() argument 77 static void VMRuntime_startJitCompilation(JNIEnv*, jobject) { in VMRuntime_startJitCompilation() argument 80 static void VMRuntime_disableJitCompilation(JNIEnv*, jobject) { in VMRuntime_disableJitCompilation() argument 102 static jobject VMRuntime_newNonMovableArray(JNIEnv* env, jobject, jclass javaElementClass, in VMRuntime_newNonMovableArray() argument 126 return soa.AddLocalReference<jobject>(result); in VMRuntime_newNonMovableArray() 129 static jobject VMRuntime_newUnpaddedArray(JNIEnv* env, jobject, jclass javaElementClass, in VMRuntime_newUnpaddedArray() argument 154 return soa.AddLocalReference<jobject>(result); in VMRuntime_newUnpaddedArray() 157 static jlong VMRuntime_addressOf(JNIEnv* env, jobject, jobject javaArray) { in VMRuntime_addressOf() argument 174 static void VMRuntime_clearGrowthLimit(JNIEnv*, jobject) { in VMRuntime_clearGrowthLimit() argument [all …]
|
D | java_lang_ref_Reference.cc | 31 static jobject Reference_getReferent(JNIEnv* env, jobject javaThis) { in Reference_getReferent() 36 return soa.AddLocalReference<jobject>(referent); in Reference_getReferent() 39 static void Reference_clearReferent(JNIEnv* env, jobject javaThis) { in Reference_clearReferent()
|
D | java_lang_ref_FinalizerReference.cc | 31 static jboolean FinalizerReference_makeCircularListIfUnenqueued(JNIEnv* env, jobject javaThis) { in FinalizerReference_makeCircularListIfUnenqueued() 37 static jobject FinalizerReference_getReferent(JNIEnv* env, jobject javaThis) { in FinalizerReference_getReferent() 42 return soa.AddLocalReference<jobject>(referent); in FinalizerReference_getReferent()
|
/art/test/993-breakpoints/ |
D | breakpoints.cc | 40 jobject JNICALL Java_art_Test993_constructNative(JNIEnv* env, in Java_art_Test993_constructNative() 42 jobject target, in Java_art_Test993_constructNative() 54 jobject target, in Java_art_Test993_invokeNativeObject() 56 jobject thizz) { in Java_art_Test993_invokeNativeObject() 71 jobject target, in Java_art_Test993_invokeNativeBool() 73 jobject thizz) { in Java_art_Test993_invokeNativeBool() 88 jobject target, in Java_art_Test993_invokeNativeLong() 90 jobject thizz) { in Java_art_Test993_invokeNativeLong() 105 jobject target, in Java_art_Test993_invokeNative() 107 jobject thizz) { in Java_art_Test993_invokeNative()
|
/art/benchmark/jobject-benchmark/ |
D | jobject_benchmark.cc | 27 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeAddRemoveLocal() 32 jobject ref = soa.Env()->AddLocalReference<jobject>(obj); in Java_JObjectBenchmark_timeAddRemoveLocal() 38 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeDecodeLocal() 42 jobject ref = soa.Env()->AddLocalReference<jobject>(obj); in Java_JObjectBenchmark_timeDecodeLocal() 50 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeAddRemoveGlobal() 55 jobject ref = soa.Vm()->AddGlobalRef(soa.Self(), obj); in Java_JObjectBenchmark_timeAddRemoveGlobal() 61 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeDecodeGlobal() 65 jobject ref = soa.Vm()->AddGlobalRef(soa.Self(), obj); in Java_JObjectBenchmark_timeDecodeGlobal() 73 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeAddRemoveWeakGlobal() 78 jobject ref = soa.Vm()->AddWeakGlobalRef(soa.Self(), obj); in Java_JObjectBenchmark_timeAddRemoveWeakGlobal() [all …]
|
/art/benchmark/micro-native/ |
D | micro_native.cc | 46 static void NativeMethods_emptyJniMethod0(JNIEnv*, jobject) { } in NativeMethods_emptyJniMethod0() argument 47 static void NativeMethods_emptyJniMethod6(JNIEnv*, jobject, int, int, int, int, int, int) { } in NativeMethods_emptyJniMethod6() argument 48 static void NativeMethods_emptyJniMethod6L(JNIEnv*, jobject, jobject, jarray, jarray, jobject, in NativeMethods_emptyJniMethod6L() argument 50 static void NativeMethods_emptyJniStaticMethod6L(JNIEnv*, jclass, jobject, jarray, jarray, jobject, in NativeMethods_emptyJniStaticMethod6L() argument 65 static void NativeMethods_emptyJniMethod0_Fast(JNIEnv*, jobject) { } in NativeMethods_emptyJniMethod0_Fast() argument 66 static void NativeMethods_emptyJniMethod6_Fast(JNIEnv*, jobject, int, int, int, int, int, int) { } in NativeMethods_emptyJniMethod6_Fast() argument 67 static void NativeMethods_emptyJniMethod6L_Fast(JNIEnv*, jobject, jobject, jarray, jarray, jobject, in NativeMethods_emptyJniMethod6L_Fast() argument 69 static void NativeMethods_emptyJniStaticMethod6L_Fast(JNIEnv*, jclass, jobject, jarray, jarray, in NativeMethods_emptyJniStaticMethod6L_Fast() argument 70 jobject, jarray, jarray) { } in NativeMethods_emptyJniStaticMethod6L_Fast()
|
/art/runtime/ |
D | common_runtime_test.h | 112 jobject LoadDex(const char* dex_name) REQUIRES_SHARED(Locks::mutator_lock_); 115 jobject LoadMultiDex(const char* first_dex_name, const char* second_dex_name) 118 jobject LoadDexInPathClassLoader(const std::string& dex_name, 119 jobject parent_loader, 120 jobject shared_libraries = nullptr); 121 jobject LoadDexInDelegateLastClassLoader(const std::string& dex_name, jobject parent_loader); 122 jobject LoadDexInInMemoryDexClassLoader(const std::string& dex_name, jobject parent_loader); 123 jobject LoadDexInWellKnownClassLoader(const std::string& dex_name, 125 jobject parent_loader, 126 jobject shared_libraries = nullptr); [all …]
|
D | reflection.h | 64 jobject obj, 70 jobject obj, 76 jobject obj, 82 jobject obj, 88 jobject InvokeMethod(const ScopedObjectAccessAlreadyRunnable& soa, 89 jobject method, 90 jobject receiver, 91 jobject args, 100 jobject args) 128 void UpdateReference(Thread* self, jobject obj, ObjPtr<mirror::Object> result)
|
/art/runtime/interpreter/ |
D | interpreter.cc | 60 using fntype = jobject(JNIEnv*, jclass); in InterpreterJni() 64 jobject jresult; in InterpreterJni() 99 using fntype = jobject(JNIEnv*, jclass, jobject); in InterpreterJni() 103 ScopedLocalRef<jobject> arg0(soa.Env(), in InterpreterJni() 104 soa.AddLocalReference<jobject>(ObjArg(args[0]))); in InterpreterJni() 105 jobject jresult; in InterpreterJni() 119 using fntype = jint(JNIEnv*, jclass, jobject, jint); in InterpreterJni() 124 ScopedLocalRef<jobject> arg0(soa.Env(), in InterpreterJni() 125 soa.AddLocalReference<jobject>(ObjArg(args[0]))); in InterpreterJni() 144 using fntype = jboolean(JNIEnv*, jclass, jobject, jobject); in InterpreterJni() [all …]
|
/art/test/1922-owned-monitors-info/ |
D | owned_monitors.cc | 37 static bool doMonitorEnter(JNIEnv* env, jobject target) { in doMonitorEnter() 40 static bool doMonitorExit(JNIEnv* env, jobject target) { in doMonitorExit() 44 static bool doCallRunnable(JNIEnv* env, jobject next) { in doCallRunnable() 58 JNIEnv* env, jobject thiz, jobject next) { in Java_art_Test1922_00024Target_lockThisNative() 71 JNIEnv* env, jobject thiz ATTRIBUTE_UNUSED, jobject mon, jobject next) { in Java_art_Test1922_00024Target_lockNative() 121 jobject* arr = nullptr; in Java_art_Test1922_getOwnedMonitors()
|
/art/test/ti-agent/ |
D | common_helper.h | 28 jobject GetJavaField(jvmtiEnv* jvmti, JNIEnv* env, jclass field_klass, jfieldID f); 29 jobject GetJavaMethod(jvmtiEnv* jvmti, JNIEnv* env, jmethodID m); 30 jobject GetJavaValueByType(JNIEnv* env, char type, jvalue value); 31 jobject GetJavaValue(jvmtiEnv* jvmtienv, JNIEnv* env, jmethodID m, jvalue value);
|
D | monitors_helper.cc | 30 extern "C" JNIEXPORT jobject JNICALL Java_art_Monitors_getCurrentContendedMonitor( in Java_art_Monitors_getCurrentContendedMonitor() 32 jobject out = nullptr; in Java_art_Monitors_getCurrentContendedMonitor() 37 extern "C" JNIEXPORT jobject JNICALL Java_art_Monitors_getObjectMonitorUsage( in Java_art_Monitors_getObjectMonitorUsage() 38 JNIEnv* env, jclass, jobject obj) { in Java_art_Monitors_getObjectMonitorUsage() 84 jobject obj) { in monitorEnterCB() 98 jobject obj) { in monitorEnteredCB() 112 jobject obj, in monitorWaitCB() 127 jobject obj, in monitorWaitedCB() 144 jobject monitor_enter, in Java_art_Monitors_setupMonitorEvents() 145 jobject monitor_entered, in Java_art_Monitors_setupMonitorEvents() [all …]
|
D | common_helper.cc | 31 jobject GetJavaField(jvmtiEnv* jvmti, JNIEnv* env, jclass field_klass, jfieldID f) { in GetJavaField() 41 jobject GetJavaMethod(jvmtiEnv* jvmti, JNIEnv* env, jmethodID m) { in GetJavaMethod() 52 jobject res = env->ToReflectedMethod(method_klass, m, is_static); in GetJavaMethod() 57 jobject GetJavaValueByType(JNIEnv* env, char type, jvalue value) { in GetJavaValueByType() 100 jobject res = env->CallStaticObjectMethodA(target, valueOfMethod, &value); in GetJavaValueByType() 105 jobject GetJavaValue(jvmtiEnv* jvmtienv, JNIEnv* env, jmethodID m, jvalue value) { in GetJavaValue()
|
/art/openjdkjvmti/ |
D | ti_object.cc | 44 jobject jobject, in GetObjectSize() argument 46 if (jobject == nullptr) { in GetObjectSize() 54 art::ObjPtr<art::mirror::Object> object = soa.Decode<art::mirror::Object>(jobject); in GetObjectSize() 61 jobject jobject, in GetObjectHashCode() argument 63 if (jobject == nullptr) { in GetObjectHashCode() 71 art::ObjPtr<art::mirror::Object> object = soa.Decode<art::mirror::Object>(jobject); in GetObjectHashCode() 79 jvmtiEnv* baseenv, jobject obj, jvmtiMonitorUsage* usage) { in GetObjectMonitorUsage()
|
D | ti_object.h | 42 static jvmtiError GetObjectSize(jvmtiEnv* env, jobject object, jlong* size_ptr); 44 static jvmtiError GetObjectHashCode(jvmtiEnv* env, jobject object, jint* hash_code_ptr); 46 static jvmtiError GetObjectMonitorUsage(jvmtiEnv* env, jobject object, jvmtiMonitorUsage* usage);
|
/art/test/1960-obsolete-jit-multithread-native/ |
D | native_say_hi.cc | 23 jobject thiz, in Java_Transform_nativeSayHi() 24 jobject arg1, in Java_Transform_nativeSayHi() 25 jobject arg2) { in Java_Transform_nativeSayHi()
|
/art/benchmark/jni-perf/ |
D | perf_jni.cc | 27 extern "C" JNIEXPORT void JNICALL Java_JniPerfBenchmark_perfJniEmptyCall(JNIEnv*, jobject) {} in Java_JniPerfBenchmark_perfJniEmptyCall() argument 29 extern "C" JNIEXPORT void JNICALL Java_JniPerfBenchmark_perfSOACall(JNIEnv* env, jobject) { in Java_JniPerfBenchmark_perfSOACall() argument 33 extern "C" JNIEXPORT void JNICALL Java_JniPerfBenchmark_perfSOAUncheckedCall(JNIEnv*, jobject) { in Java_JniPerfBenchmark_perfSOAUncheckedCall() argument
|
/art/test/910-methods/ |
D | methods.cc | 34 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject method) { in Java_art_Test910_getMethodName() 77 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject method) { in Java_art_Test910_getMethodDeclaringClass() 90 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject method) { in Java_art_Test910_getMethodModifiers() 103 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject method) { in Java_art_Test910_getMaxLocals() 116 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject method) { in Java_art_Test910_getArgumentsSize() 129 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject method) { in Java_art_Test910_getMethodLocationStart() 143 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject method) { in Java_art_Test910_getMethodLocationEnd() 157 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject method) { in Java_art_Test910_isMethodNative() 170 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject method) { in Java_art_Test910_isMethodObsolete() 183 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject method) { in Java_art_Test910_isMethodSynthetic()
|
/art/runtime/entrypoints/quick/ |
D | quick_entrypoints.h | 58 extern uint32_t JniMethodStartSynchronized(jobject to_lock, Thread* self) 64 extern void JniMethodEndSynchronized(uint32_t saved_local_ref_cookie, jobject locked, 67 extern mirror::Object* JniMethodEndWithReference(jobject result, uint32_t saved_local_ref_cookie, 70 extern mirror::Object* JniMethodFastEndWithReference(jobject result, 76 extern mirror::Object* JniMethodEndWithReferenceSynchronized(jobject result, 78 jobject locked, Thread* self)
|