Home
last modified time | relevance | path

Searched refs:jobject (Results 1 – 25 of 216) sorted by relevance

123456789

/art/compiler/jni/
Djni_compiler_test.cc44 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/
Dsun_misc_Unsafe.cc39 static jboolean Unsafe_compareAndSwapInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapInt() argument
50 static jboolean Unsafe_compareAndSwapLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapLong() argument
61 static jboolean Unsafe_compareAndSwapObject(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapObject() argument
62 jobject javaExpectedValue, jobject javaNewValue) { in Unsafe_compareAndSwapObject()
87 static jint Unsafe_getInt(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getInt() argument
93 static jint Unsafe_getIntVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getIntVolatile() argument
99 static void Unsafe_putInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, jint newValue) { in Unsafe_putInt() argument
106 static void Unsafe_putIntVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_putIntVolatile() argument
114 static void Unsafe_putOrderedInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_putOrderedInt() argument
124 static jlong Unsafe_getLong(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getLong() argument
[all …]
Djava_lang_reflect_Field.cc123 jobject j_rcvr, in CheckReceiver()
151 static jobject Field_get(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_get()
172 return soa.AddLocalReference<jobject>(BoxPrimitive(field_type, value)); in Field_get()
177 jobject javaField, in GetPrimitiveField()
178 jobject javaObj) { in GetPrimitiveField()
219 static jboolean Field_getBoolean(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getBoolean()
223 static jbyte Field_getByte(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getByte()
227 static jchar Field_getChar(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getChar()
231 static jdouble Field_getDouble(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getDouble()
235 static jfloat Field_getFloat(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getFloat()
[all …]
Djava_lang_Object.cc28 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_wait(JNIEnv* env, jobject java_this) { in Object_wait()
49 static void Object_waitJI(JNIEnv* env, jobject java_this, jlong ms, jint ns) { in Object_waitJI()
54 static jint Object_identityHashCodeNative(JNIEnv* env, jclass, jobject javaObject) { in Object_identityHashCodeNative()
Ddalvik_system_VMStack.cc41 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 …]
Djava_lang_reflect_Method.cc37 static jobject Method_getDefaultValue(JNIEnv* env, jobject javaMethod) { in Method_getDefaultValue()
43 return soa.AddLocalReference<jobject>(annotations::GetAnnotationDefaultValue(method)); in Method_getDefaultValue()
46 static jobjectArray Method_getExceptionTypes(JNIEnv* env, jobject javaMethod) { in Method_getExceptionTypes()
84 static jobject Method_invoke(JNIEnv* env, jobject javaMethod, jobject javaReceiver, in Method_invoke()
Djava_lang_Thread.cc34 static jobject Thread_currentThread(JNIEnv* env, jclass) { in Thread_currentThread()
36 return soa.AddLocalReference<jobject>(soa.Self()->GetPeer()); in Thread_currentThread()
43 static jboolean Thread_isInterrupted(JNIEnv* env, jobject java_thread) { in Thread_isInterrupted()
50 static void Thread_nativeCreate(JNIEnv* env, jclass, jobject java_thread, jlong stack_size, in Thread_nativeCreate()
64 static jint Thread_nativeGetStatus(JNIEnv* env, jobject java_thread, jboolean has_been_started) { in Thread_nativeGetStatus()
114 static jboolean Thread_nativeHoldsLock(JNIEnv* env, jobject java_thread, jobject java_object) { in Thread_nativeHoldsLock()
126 static void Thread_nativeInterrupt(JNIEnv* env, jobject java_thread) { in Thread_nativeInterrupt()
135 static void Thread_nativeSetName(JNIEnv* env, jobject peer, jstring java_name) { in Thread_nativeSetName()
172 static void Thread_nativeSetPriority(JNIEnv* env, jobject java_thread, jint new_priority) { in Thread_nativeSetPriority()
181 static void Thread_sleep(JNIEnv* env, jclass, jobject java_lock, jlong ms, jint ns) { in Thread_sleep()
[all …]
Ddalvik_system_VMRuntime.cc63 static jfloat VMRuntime_getTargetHeapUtilization(JNIEnv*, jobject) { in VMRuntime_getTargetHeapUtilization() argument
67 static void VMRuntime_nativeSetTargetHeapUtilization(JNIEnv*, jobject, jfloat target) { in VMRuntime_nativeSetTargetHeapUtilization() argument
71 static void VMRuntime_startJitCompilation(JNIEnv*, jobject) { in VMRuntime_startJitCompilation() argument
74 static void VMRuntime_disableJitCompilation(JNIEnv*, jobject) { in VMRuntime_disableJitCompilation() argument
77 static jboolean VMRuntime_hasUsedHiddenApi(JNIEnv*, jobject) { in VMRuntime_hasUsedHiddenApi() argument
100 static jobject VMRuntime_newNonMovableArray(JNIEnv* env, jobject, jclass javaElementClass, in VMRuntime_newNonMovableArray() argument
124 return soa.AddLocalReference<jobject>(result); in VMRuntime_newNonMovableArray()
127 static jobject VMRuntime_newUnpaddedArray(JNIEnv* env, jobject, jclass javaElementClass, in VMRuntime_newUnpaddedArray() argument
152 return soa.AddLocalReference<jobject>(result); in VMRuntime_newUnpaddedArray()
155 static jlong VMRuntime_addressOf(JNIEnv* env, jobject, jobject javaArray) { in VMRuntime_addressOf() argument
[all …]
Djava_lang_ref_Reference.cc31 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()
Djava_lang_ref_FinalizerReference.cc31 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()
Djava_lang_String.cc35 static jchar String_charAt(JNIEnv* env, jobject java_this, jint index) { in String_charAt()
40 static jint String_compareTo(JNIEnv* env, jobject java_this, jstring java_rhs) { in String_compareTo()
51 static jstring String_concat(JNIEnv* env, jobject java_this, jstring java_string_arg) { in String_concat()
67 jobject string_original = (length_this == 0) ? java_string_arg : java_this; in String_concat()
71 static jstring String_fastSubstring(JNIEnv* env, jobject java_this, jint start, jint length) { in String_fastSubstring()
84 static void String_getCharsNoCheck(JNIEnv* env, jobject java_this, jint start, jint end, in String_getCharsNoCheck()
92 static jstring String_intern(JNIEnv* env, jobject java_this) { in String_intern()
98 static jstring String_doReplace(JNIEnv* env, jobject java_this, jchar old_c, jchar new_c) { in String_doReplace()
106 static jcharArray String_toCharArray(JNIEnv* env, jobject java_this) { in String_toCharArray()
/art/test/993-breakpoints/
Dbreakpoints.cc40 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/
Djobject_benchmark.cc27 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/
Dmicro_native.cc46 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/interpreter/
Dinterpreter.cc58 typedef jobject (fntype)(JNIEnv*, jclass); in InterpreterJni()
62 jobject jresult; in InterpreterJni()
97 typedef jobject (fntype)(JNIEnv*, jclass, jobject); in InterpreterJni()
101 ScopedLocalRef<jobject> arg0(soa.Env(), in InterpreterJni()
102 soa.AddLocalReference<jobject>(ObjArg(args[0]))); in InterpreterJni()
103 jobject jresult; in InterpreterJni()
117 typedef jint (fntype)(JNIEnv*, jclass, jobject, jint); in InterpreterJni()
122 ScopedLocalRef<jobject> arg0(soa.Env(), in InterpreterJni()
123 soa.AddLocalReference<jobject>(ObjArg(args[0]))); in InterpreterJni()
142 typedef jboolean (fntype)(JNIEnv*, jclass, jobject, jobject); in InterpreterJni()
[all …]
/art/test/1922-owned-monitors-info/
Downed_monitors.cc37 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/
Dcommon_helper.h28 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);
Dmonitors_helper.cc30 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 …]
Dcommon_helper.cc30 jobject GetJavaField(jvmtiEnv* jvmti, JNIEnv* env, jclass field_klass, jfieldID f) { in GetJavaField()
40 jobject GetJavaMethod(jvmtiEnv* jvmti, JNIEnv* env, jmethodID m) { in GetJavaMethod()
51 jobject res = env->ToReflectedMethod(method_klass, m, is_static); in GetJavaMethod()
56 jobject GetJavaValueByType(JNIEnv* env, char type, jvalue value) { in GetJavaValueByType()
99 jobject res = env->CallStaticObjectMethodA(target, valueOfMethod, &value); in GetJavaValueByType()
104 jobject GetJavaValue(jvmtiEnv* jvmtienv, JNIEnv* env, jmethodID m, jvalue value) { in GetJavaValue()
/art/runtime/
Dreflection.h64 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,
120 void UpdateReference(Thread* self, jobject obj, ObjPtr<mirror::Object> result)
/art/openjdkjvmti/
Dti_object.cc44 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()
Dti_object.h42 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/benchmark/jni-perf/
Dperf_jni.cc27 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/
Dmethods.cc34 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/
Dquick_entrypoints.h58 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)

123456789