Home
last modified time | relevance | path

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

1234567891011

/art/compiler/jni/
Djni_compiler_test.cc44 extern "C" JNIEXPORT jint JNICALL Java_MyClassNatives_bar(JNIEnv*, jobject, jint count) { in Java_MyClassNatives_bar() argument
49 extern "C" JNIEXPORT jint JNICALL Java_MyClassNatives_bar_1Fast(JNIEnv*, jobject, jint count) { in Java_MyClassNatives_bar_1Fast() argument
153 is_any_of<T, jclass, jobject, jstring, jobjectArray, jintArray,
244 void CompileForTest(jobject class_loader, in CompileForTest()
271 void CompileForTestWithCurrentJni(jobject class_loader, in CompileForTestWithCurrentJni()
339 static jobject jobj_;
340 static jobject class_loader_;
398 jobject JniCompilerTest::jobj_;
399 jobject JniCompilerTest::class_loader_;
479 static void expectValidJniEnvAndObject(JNIEnv* env, jobject thisObj) { in expectValidJniEnvAndObject()
[all …]
/art/runtime/native/
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.cc125 jobject j_rcvr, in CheckReceiver()
155 static jobject Field_get(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_get()
176 return soa.AddLocalReference<jobject>(BoxPrimitive(field_type, value)); in Field_get()
181 jobject javaField, in GetPrimitiveField()
182 jobject javaObj) { in GetPrimitiveField()
223 static jboolean Field_getBoolean(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getBoolean()
227 static jbyte Field_getByte(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getByte()
231 static jchar Field_getChar(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getChar()
235 static jdouble Field_getDouble(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getDouble()
239 static jfloat Field_getFloat(JNIEnv* env, jobject javaField, jobject javaObj) { in Field_getFloat()
[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()
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.cc38 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()
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 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()
Ddalvik_system_VMRuntime.cc71 static jfloat VMRuntime_getTargetHeapUtilization(JNIEnv*, jobject) { in VMRuntime_getTargetHeapUtilization() argument
75 static void VMRuntime_nativeSetTargetHeapUtilization(JNIEnv*, jobject, jfloat target) { in VMRuntime_nativeSetTargetHeapUtilization() argument
79 static void VMRuntime_startJitCompilation(JNIEnv*, jobject) { in VMRuntime_startJitCompilation() argument
82 static void VMRuntime_disableJitCompilation(JNIEnv*, jobject) { in VMRuntime_disableJitCompilation() argument
104 static jobject VMRuntime_newNonMovableArray(JNIEnv* env, jobject, jclass javaElementClass, in VMRuntime_newNonMovableArray() argument
128 return soa.AddLocalReference<jobject>(result); in VMRuntime_newNonMovableArray()
131 static jobject VMRuntime_newUnpaddedArray(JNIEnv* env, jobject, jclass javaElementClass, in VMRuntime_newUnpaddedArray() argument
157 return soa.AddLocalReference<jobject>(result); in VMRuntime_newUnpaddedArray()
160 static jlong VMRuntime_addressOf(JNIEnv* env, jobject, jobject javaArray) { in VMRuntime_addressOf() argument
177 static void VMRuntime_clearGrowthLimit(JNIEnv*, jobject) { in VMRuntime_clearGrowthLimit() argument
[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/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/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/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/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)
155 jobject LoadDexInPathClassLoader(const std::string& dex_name,
156 jobject parent_loader,
157 jobject shared_libraries = nullptr);
158 jobject LoadDexInPathClassLoader(const std::vector<std::string>& dex_names,
159 jobject parent_loader,
160 jobject shared_libraries = nullptr);
161 jobject LoadDexInDelegateLastClassLoader(const std::string& dex_name, jobject parent_loader);
162 jobject LoadDexInInMemoryDexClassLoader(const std::string& dex_name, jobject parent_loader);
[all …]
Dreflection.h66 jobject obj,
74 jobject obj,
84 jobject obj,
94 jobject obj,
100 jobject InvokeMethod(const ScopedObjectAccessAlreadyRunnable& soa,
101 jobject method,
102 jobject receiver,
103 jobject args,
112 jobject args)
140 void UpdateReference(Thread* self, jobject obj, ObjPtr<mirror::Object> result)
/art/runtime/interpreter/
Dinterpreter.cc60 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/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/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()
/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/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/libnativeloader/include/nativeloader/
Dnative_loader.h40 JNIEnv* env, int32_t target_sdk_version, jobject class_loader, bool is_shared, jstring dex_path,
44 JNIEnv* env, int32_t target_sdk_version, const char* path, jobject class_loader,
58 JNIEnv* env, jobject class_loader);
62 FindNativeLoaderNamespaceByClassLoader(JNIEnv* env, jobject class_loader);

1234567891011