Home
last modified time | relevance | path

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

1234567891011

/art/runtime/native/
Djdk_internal_misc_Unsafe.cc55 static jboolean Unsafe_compareAndSetInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSetInt() argument
68 static jboolean Unsafe_compareAndSwapInt(JNIEnv* env, jobject obj, jobject javaObj, jlong offset, in Unsafe_compareAndSwapInt()
76 static jboolean Unsafe_compareAndSetLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSetLong() argument
87 static jboolean Unsafe_compareAndSwapLong(JNIEnv* env, jobject obj, jobject javaObj, jlong offset, in Unsafe_compareAndSwapLong()
96 jobject, in Unsafe_compareAndSetReference() argument
97 jobject javaObj, in Unsafe_compareAndSetReference()
99 jobject javaExpectedValue, in Unsafe_compareAndSetReference()
100 jobject javaNewValue) { in Unsafe_compareAndSetReference()
127 static jboolean Unsafe_compareAndSwapObject(JNIEnv* env, jobject obj, jobject javaObj, jlong offset, in Unsafe_compareAndSwapObject()
128 jobject javaExpectedValue, jobject javaNewValue) { in Unsafe_compareAndSwapObject()
[all …]
Dsun_misc_Unsafe.cc41 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 …]
Djava_lang_reflect_Field.cc139 jobject j_rcvr, in CheckReceiver()
169 static jobject Field_get(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_get()
190 return soa.AddLocalReference<jobject>(BoxPrimitive(field_type, value)); in Field_get()
195 jobject javaField, in GetPrimitiveField()
196 jobject javaObj) { in GetPrimitiveField()
237 static jboolean Field_getBoolean(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getBoolean()
241 static jbyte Field_getByte(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getByte()
245 static jchar Field_getChar(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getChar()
249 static jdouble Field_getDouble(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getDouble()
253 static jfloat Field_getFloat(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getFloat()
[all …]
Ddalvik_system_VMRuntime.cc73 static jfloat VMRuntime_getTargetHeapUtilization(JNIEnv*, jobject) { in VMRuntime_getTargetHeapUtilization() argument
77 static void VMRuntime_nativeSetTargetHeapUtilization(JNIEnv*, jobject, jfloat target) { in VMRuntime_nativeSetTargetHeapUtilization() 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
153 return soa.AddLocalReference<jobject>(result); in VMRuntime_newUnpaddedArray()
156 static jlong VMRuntime_addressOf(JNIEnv* env, jobject, jobject javaArray) { in VMRuntime_addressOf() argument
177 static void VMRuntime_clearGrowthLimit(JNIEnv*, jobject) { in VMRuntime_clearGrowthLimit() argument
181 static void VMRuntime_clampGrowthLimit(JNIEnv*, jobject) { in VMRuntime_clampGrowthLimit() argument
185 static jboolean VMRuntime_isNativeDebuggable(JNIEnv*, jobject) { in VMRuntime_isNativeDebuggable() argument
[all …]
Djava_lang_Object.cc29 static jobject Object_internalClone(JNIEnv* env, jobject java_this) { in Object_internalClone()
33 return soa.AddLocalReference<jobject>(mirror::Class::Clone(o, soa.Self())); in Object_internalClone()
36 static void Object_notify(JNIEnv* env, jobject java_this) { in Object_notify()
41 static void Object_notifyAll(JNIEnv* env, jobject java_this) { in Object_notifyAll()
46 static void Object_waitJI(JNIEnv* env, jobject java_this, jlong ms, jint ns) { in Object_waitJI()
51 static jint Object_identityHashCodeNative(JNIEnv* env, jclass, jobject javaObject) { in Object_identityHashCodeNative()
Ddalvik_system_VMStack.cc41 jobject peer, in GetThreadStack()
81 static jint VMStack_fillStackTraceElements(JNIEnv* env, jclass, jobject javaThread, in VMStack_fillStackTraceElements()
85 REQUIRES_SHARED(Locks::mutator_lock_) -> jobject { in VMStack_fillStackTraceElements()
88 jobject trace = GetThreadStack(soa, javaThread, fn); in VMStack_fillStackTraceElements()
98 static jobject VMStack_getCallingClassLoader(JNIEnv* env, jclass) { in VMStack_getCallingClassLoader()
106 return soa.AddLocalReference<jobject>(visitor.caller->GetDeclaringClass()->GetClassLoader()); in VMStack_getCallingClassLoader()
109 static jobject VMStack_getClosestUserClassLoader(JNIEnv* env, jclass) { in VMStack_getClosestUserClassLoader()
134 return soa.AddLocalReference<jobject>(visitor.class_loader); in VMStack_getClosestUserClassLoader()
149 static jobjectArray VMStack_getThreadStackTrace(JNIEnv* env, jclass, jobject javaThread) { in VMStack_getThreadStackTrace()
152 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()
83 static jobject Method_invoke(JNIEnv* env, jobject javaMethod, jobject javaReceiver, in Method_invoke()
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 jboolean Reference_refersTo0(JNIEnv* env, jobject javaThis, jobject o) { in Reference_refersTo0()
70 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()
/art/compiler/jni/
Djni_compiler_test.cc50 extern "C" JNIEXPORT jint JNICALL Java_MyClassNatives_bar(JNIEnv*, jobject, jint count) { in Java_MyClassNatives_bar() argument
55 extern "C" JNIEXPORT jint JNICALL Java_MyClassNatives_bar_1Fast(JNIEnv*, jobject, jint count) { in Java_MyClassNatives_bar_1Fast() argument
159 is_any_of<T, jclass, jobject, jstring, jobjectArray, jintArray,
237 void CompileForTest(jobject class_loader, in CompileForTest()
276 void CompileForTestWithCurrentJni(jobject class_loader, in CompileForTestWithCurrentJni()
344 static jobject jobj_;
345 static jobject class_loader_;
349 static LockWord GetLockWord(jobject obj);
407 jobject JniCompilerTest::jobj_;
408 jobject JniCompilerTest::class_loader_;
[all …]
/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 using fntype = jobject(JNIEnv*, jclass); in InterpreterJni()
62 jobject jresult; in InterpreterJni()
97 using fntype = jobject(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 using fntype = jint(JNIEnv*, jclass, jobject, jint); in InterpreterJni()
122 ScopedLocalRef<jobject> arg0(soa.Env(), in InterpreterJni()
123 soa.AddLocalReference<jobject>(ObjArg(args[0]))); in InterpreterJni()
142 using fntype = jboolean(JNIEnv*, jclass, jobject, jobject); in InterpreterJni()
[all …]
/art/runtime/
Dcommon_runtime_test.h149 jobject LoadDex(const char* dex_name) REQUIRES_SHARED(Locks::mutator_lock_);
152 jobject LoadMultiDex(const char* first_dex_name, const char* second_dex_name)
156 jobject LoadDexInPathClassLoader(const std::string& dex_name,
157 jobject parent_loader,
158 jobject shared_libraries = nullptr,
159 jobject shared_libraries_after = nullptr);
160 jobject LoadDexInPathClassLoader(const std::vector<std::string>& dex_names,
161 jobject parent_loader,
162 jobject shared_libraries = nullptr,
163 jobject shared_libraries_after = nullptr);
[all …]
Dreflection.h67 jobject obj,
75 jobject obj,
85 jobject obj,
95 jobject obj,
103 jobject InvokeMethod(const ScopedObjectAccessAlreadyRunnable& soa,
104 jobject method,
105 jobject receiver,
106 jobject args,
115 jobject args)
143 void UpdateReference(Thread* self, jobject obj, ObjPtr<mirror::Object> result)
/art/test/2037-thread-name-inherit/
Dthread_name_inherit.cc25 jobject consumer;
47 jobject current_thread = env->CallStaticObjectMethod(thread_class, current_thread_method); in ThreadMain()
50 jobject str_name = env->NewStringUTF("native-thread-set-java"); in ThreadMain()
57 jobject str_name = env->NewStringUTF(name_chars); in ThreadMain()
68 jobject consumer) { in Java_Main_runThreadTestWithName()
69 jobject global_consumer = env->NewGlobalRef(consumer); in Java_Main_runThreadTestWithName()
85 extern "C" JNIEXPORT void Java_Main_runThreadTest(JNIEnv* env, jclass /*clazz*/, jobject consumer) { in Java_Main_runThreadTest()
86 jobject global_consumer = env->NewGlobalRef(consumer); in Java_Main_runThreadTest()
100 jobject consumer) { in Java_Main_runThreadTestSetJava()
101 jobject global_consumer = env->NewGlobalRef(consumer); in Java_Main_runThreadTestSetJava()
/art/runtime/jni/
Djni_internal.cc270 static void NotifySetObjectField(ArtField* field, jobject obj, jobject jval) in NotifySetObjectField()
297 static void NotifySetPrimitiveField(ArtField* field, jobject obj, JValue val) in NotifySetPrimitiveField()
322 static void NotifyGetField(ArtField* field, jobject obj) in NotifyGetField()
573 int ThrowNewException(JNIEnv* env, jclass exception_class, const char* msg, jobject cause) in ThrowNewException()
664 static jclass DefineClass(JNIEnv*, const char*, jobject, const jbyte*, jsize) { in DefineClass() argument
686 static jmethodID FromReflectedMethod(JNIEnv* env, jobject jlr_method) { in FromReflectedMethod()
692 static jfieldID FromReflectedField(JNIEnv* env, jobject jlr_field) { in FromReflectedField()
704 static jobject ToReflectedMethod(JNIEnv* env, jclass, jmethodID mid, jboolean) { in ToReflectedMethod()
715 return soa.AddLocalReference<jobject>(method); in ToReflectedMethod()
718 static jobject ToReflectedField(JNIEnv* env, jclass, jfieldID fid, jboolean) { in ToReflectedField()
[all …]
/art/test/2009-structural-local-ref/
Dlocal-ref.cc35 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj, jobject thnk) { in Java_art_Test2009_NativeLocalCallStatic()
49 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj, jobject thnk) { in Java_art_Test2009_NativeLocalCallVirtual()
61 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj, jobject thnk) { in Java_art_Test2009_NativeLocalGetIField()
74 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj, jobject thnk) { in Java_art_Test2009_NativeLocalGetSField()
/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 …]
/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()
/art/test/928-jni-table/
Djni_table.cc37 static jobject CountNewGlobalRef(JNIEnv* env, jobject o) { in CountNewGlobalRef()
42 static void DoDeleteGlobalRef(JNIEnv* env, jobject o) { in DoDeleteGlobalRef()
56 jobject global = env->NewGlobalRef(klass); in Java_art_Test928_doOtherThreadTest()
86 jobject global = env->NewGlobalRef(klass); in Java_art_Test928_doJNITableTest()
103 jobject global2 = env->NewGlobalRef(klass); in Java_art_Test928_doJNITableTest()
/art/test/1960-obsolete-jit-multithread-native/
Dnative_say_hi.cc23 jobject thiz, in Java_Transform_nativeSayHi()
24 jobject arg1, in Java_Transform_nativeSayHi()
25 jobject arg2) { in Java_Transform_nativeSayHi()

1234567891011