/art/compiler/jni/ |
D | jni_compiler_test.cc | 46 extern "C" JNIEXPORT jint JNICALL Java_MyClassNatives_bar(JNIEnv*, jobject, jint count) { in Java_MyClassNatives_bar() argument 51 extern "C" JNIEXPORT jint JNICALL Java_MyClassNatives_bar_1Fast(JNIEnv*, jobject, jint count) { in Java_MyClassNatives_bar_1Fast() argument 155 is_any_of<T, jclass, jobject, jstring, jobjectArray, jintArray, 233 void CompileForTest(jobject class_loader, in CompileForTest() 268 void CompileForTestWithCurrentJni(jobject class_loader, in CompileForTestWithCurrentJni() 336 static jobject jobj_; 337 static jobject class_loader_; 414 static uint32_t JniMethodStartSynchronizedOverride(jobject to_lock, Thread* self); 416 jobject locked, 419 jobject result, [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 | 139 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 …]
|
D | dalvik_system_VMRuntime.cc | 71 static jfloat VMRuntime_getTargetHeapUtilization(JNIEnv*, jobject) { in VMRuntime_getTargetHeapUtilization() argument 75 static void VMRuntime_nativeSetTargetHeapUtilization(JNIEnv*, jobject, jfloat target) { in VMRuntime_nativeSetTargetHeapUtilization() argument 98 static jobject VMRuntime_newNonMovableArray(JNIEnv* env, jobject, jclass javaElementClass, in VMRuntime_newNonMovableArray() argument 122 return soa.AddLocalReference<jobject>(result); in VMRuntime_newNonMovableArray() 125 static jobject VMRuntime_newUnpaddedArray(JNIEnv* env, jobject, jclass javaElementClass, in VMRuntime_newUnpaddedArray() argument 151 return soa.AddLocalReference<jobject>(result); in VMRuntime_newUnpaddedArray() 154 static jlong VMRuntime_addressOf(JNIEnv* env, jobject, jobject javaArray) { in VMRuntime_addressOf() argument 171 static void VMRuntime_clearGrowthLimit(JNIEnv*, jobject) { in VMRuntime_clearGrowthLimit() argument 175 static void VMRuntime_clampGrowthLimit(JNIEnv*, jobject) { in VMRuntime_clampGrowthLimit() argument 179 static jboolean VMRuntime_isNativeDebuggable(JNIEnv*, jobject) { in VMRuntime_isNativeDebuggable() argument [all …]
|
D | java_lang_Object.cc | 29 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()
|
D | dalvik_system_VMStack.cc | 41 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 …]
|
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() 83 static jobject Method_invoke(JNIEnv* env, jobject javaMethod, jobject javaReceiver, in Method_invoke()
|
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 jboolean Reference_refersTo0(JNIEnv* env, jobject javaThis, jobject o) { in Reference_refersTo0() 70 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/entrypoints/quick/ |
D | quick_entrypoints.h | 59 extern uint32_t JniMethodStartSynchronized(jobject to_lock, Thread* self) 65 extern void JniMethodEndSynchronized(uint32_t saved_local_ref_cookie, jobject locked, 68 extern mirror::Object* JniMethodEndWithReference(jobject result, uint32_t saved_local_ref_cookie, 71 extern mirror::Object* JniMethodFastEndWithReference(jobject result, 77 extern mirror::Object* JniMethodEndWithReferenceSynchronized(jobject result, 79 jobject locked, Thread* self) 84 extern uint32_t JniMonitoredMethodStartSynchronized(jobject to_lock, Thread* self) 89 jobject locked, 92 extern mirror::Object* JniMonitoredMethodEndWithReference(jobject result, 98 jobject result, [all …]
|
/art/test/2037-thread-name-inherit/ |
D | thread_name_inherit.cc | 25 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/test/2009-structural-local-ref/ |
D | local-ref.cc | 35 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/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/runtime/ |
D | reflection.h | 67 jobject obj, 75 jobject obj, 85 jobject obj, 95 jobject obj, 102 jobject InvokeMethod(const ScopedObjectAccessAlreadyRunnable& soa, 103 jobject method, 104 jobject receiver, 105 jobject args, 114 jobject args) 142 void UpdateReference(Thread* self, jobject obj, ObjPtr<mirror::Object> result)
|
D | common_runtime_test.h | 149 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 …]
|
/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 …]
|
/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()
|
/art/test/928-jni-table/ |
D | jni_table.cc | 37 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/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/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()
|