/art/runtime/native/ |
D | dalvik_system_VMDebug.cc | 39 static jobjectArray VMDebug_getVmFeatureList(JNIEnv* env, jclass) { in VMDebug_getVmFeatureList() 62 static void VMDebug_startAllocCounting(JNIEnv*, jclass) { in VMDebug_startAllocCounting() argument 66 static void VMDebug_stopAllocCounting(JNIEnv*, jclass) { in VMDebug_stopAllocCounting() argument 70 static jint VMDebug_getAllocCount(JNIEnv*, jclass, jint kind) { in VMDebug_getAllocCount() argument 74 static void VMDebug_resetAllocCount(JNIEnv*, jclass, jint kinds) { in VMDebug_resetAllocCount() argument 78 static void VMDebug_startMethodTracingDdmsImpl(JNIEnv*, jclass, jint bufferSize, jint flags, in VMDebug_startMethodTracingDdmsImpl() argument 83 static void VMDebug_startMethodTracingFd(JNIEnv* env, jclass, jstring javaTraceFilename, in VMDebug_startMethodTracingFd() 107 static void VMDebug_startMethodTracingFilename(JNIEnv* env, jclass, jstring javaTraceFilename, in VMDebug_startMethodTracingFilename() 117 static jint VMDebug_getMethodTracingMode(JNIEnv*, jclass) { in VMDebug_getMethodTracingMode() argument 121 static void VMDebug_stopMethodTracing(JNIEnv*, jclass) { in VMDebug_stopMethodTracing() argument [all …]
|
D | sun_misc_Unsafe.cc | 26 static jboolean Unsafe_compareAndSwapInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapInt() 36 static jboolean Unsafe_compareAndSwapLong(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapLong() 46 static jboolean Unsafe_compareAndSwapObject(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_compareAndSwapObject() 58 static jint Unsafe_getInt(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getInt() 64 static jint Unsafe_getIntVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getIntVolatile() 70 static void Unsafe_putInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, jint newValue) { in Unsafe_putInt() 77 static void Unsafe_putIntVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_putIntVolatile() 85 static void Unsafe_putOrderedInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, in Unsafe_putOrderedInt() 94 static jlong Unsafe_getLong(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getLong() 100 static jlong Unsafe_getLongVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getLongVolatile() [all …]
|
D | java_lang_Runtime.cc | 32 static void Runtime_gc(JNIEnv*, jclass) { in Runtime_gc() argument 40 static void Runtime_nativeExit(JNIEnv*, jclass, jint status) { in Runtime_nativeExit() argument 46 static jstring Runtime_nativeLoad(JNIEnv* env, jclass, jstring javaFilename, jobject javaLoader, js… in Runtime_nativeLoad() 85 static jlong Runtime_maxMemory(JNIEnv*, jclass) { in Runtime_maxMemory() argument 89 static jlong Runtime_totalMemory(JNIEnv*, jclass) { in Runtime_totalMemory() argument 93 static jlong Runtime_freeMemory(JNIEnv*, jclass) { in Runtime_freeMemory() argument 106 void register_java_lang_Runtime(JNIEnv* env) { in register_java_lang_Runtime()
|
D | java_lang_Thread.cc | 31 static jobject Thread_currentThread(JNIEnv* env, jclass) { in Thread_currentThread() 36 static jboolean Thread_interrupted(JNIEnv* env, jclass) { in Thread_interrupted() 40 static jboolean Thread_isInterrupted(JNIEnv* env, jobject java_thread) { in Thread_isInterrupted() 47 static void Thread_nativeCreate(JNIEnv* env, jclass, jobject java_thread, jlong stack_size, in Thread_nativeCreate() 52 static jint Thread_nativeGetStatus(JNIEnv* env, jobject java_thread, jboolean has_been_started) { in Thread_nativeGetStatus() 96 static jboolean Thread_nativeHoldsLock(JNIEnv* env, jobject java_thread, jobject java_object) { in Thread_nativeHoldsLock() 108 static void Thread_nativeInterrupt(JNIEnv* env, jobject java_thread) { in Thread_nativeInterrupt() 117 static void Thread_nativeSetName(JNIEnv* env, jobject peer, jstring java_name) { in Thread_nativeSetName() 156 static void Thread_nativeSetPriority(JNIEnv* env, jobject java_thread, jint new_priority) { in Thread_nativeSetPriority() 165 static void Thread_sleep(JNIEnv* env, jclass, jobject java_lock, jlong ms, jint ns) { in Thread_sleep() [all …]
|
D | dalvik_system_VMRuntime.cc | 45 static jfloat VMRuntime_getTargetHeapUtilization(JNIEnv*, jobject) { in VMRuntime_getTargetHeapUtilization() argument 49 static void VMRuntime_nativeSetTargetHeapUtilization(JNIEnv*, jobject, jfloat target) { in VMRuntime_nativeSetTargetHeapUtilization() argument 53 static void VMRuntime_startJitCompilation(JNIEnv*, jobject) { in VMRuntime_startJitCompilation() argument 56 static void VMRuntime_disableJitCompilation(JNIEnv*, jobject) { in VMRuntime_disableJitCompilation() argument 59 static jobject VMRuntime_newNonMovableArray(JNIEnv* env, jobject, jclass javaElementClass, in VMRuntime_newNonMovableArray() 83 static jobject VMRuntime_newUnpaddedArray(JNIEnv* env, jobject, jclass javaElementClass, in VMRuntime_newUnpaddedArray() 108 static jlong VMRuntime_addressOf(JNIEnv* env, jobject, jobject javaArray) { in VMRuntime_addressOf() 125 static void VMRuntime_clearGrowthLimit(JNIEnv*, jobject) { in VMRuntime_clearGrowthLimit() argument 129 static jboolean VMRuntime_isDebuggerActive(JNIEnv*, jobject) { in VMRuntime_isDebuggerActive() argument 133 static jobjectArray VMRuntime_properties(JNIEnv* env, jobject) { in VMRuntime_properties() [all …]
|
D | org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc | 29 static void DdmVmInternal_enableRecentAllocations(JNIEnv*, jclass, jboolean enable) { in DdmVmInternal_enableRecentAllocations() argument 33 static jbyteArray DdmVmInternal_getRecentAllocations(JNIEnv* env, jclass) { in DdmVmInternal_getRecentAllocations() 38 static jboolean DdmVmInternal_getRecentAllocationStatus(JNIEnv*, jclass) { in DdmVmInternal_getRecentAllocationStatus() argument 46 static jobjectArray DdmVmInternal_getStackTraceById(JNIEnv* env, jclass, jint thin_lock_id) { in DdmVmInternal_getStackTraceById() 133 static jbyteArray DdmVmInternal_getThreadStats(JNIEnv* env, jclass) { in DdmVmInternal_getThreadStats() 157 static jint DdmVmInternal_heapInfoNotify(JNIEnv* env, jclass, jint when) { in DdmVmInternal_heapInfoNotify() 162 static jboolean DdmVmInternal_heapSegmentNotify(JNIEnv*, jclass, jint when, jint what, jboolean nat… in DdmVmInternal_heapSegmentNotify() argument 166 static void DdmVmInternal_threadNotify(JNIEnv*, jclass, jboolean enable) { in DdmVmInternal_threadNotify() argument 181 void register_org_apache_harmony_dalvik_ddmc_DdmVmInternal(JNIEnv* env) { in register_org_apache_harmony_dalvik_ddmc_DdmVmInternal()
|
D | java_lang_Object.cc | 28 static jobject Object_internalClone(JNIEnv* env, jobject java_this) { in Object_internalClone() 34 static void Object_notify(JNIEnv* env, jobject java_this) { in Object_notify() 40 static void Object_notifyAll(JNIEnv* env, jobject java_this) { in Object_notifyAll() 46 static void Object_wait(JNIEnv* env, jobject java_this) { in Object_wait() 52 static void Object_waitJI(JNIEnv* env, jobject java_this, jlong ms, jint ns) { in Object_waitJI() 66 void register_java_lang_Object(JNIEnv* env) { in register_java_lang_Object()
|
D | java_lang_reflect_Field.cc | 123 static jobject Field_get(JNIEnv* env, jobject javaField, jobject javaObj, jboolean accessible) { in Field_get() 148 ALWAYS_INLINE inline static JValue GetPrimitiveField(JNIEnv* env, jobject javaField, in GetPrimitiveField() 190 static jboolean Field_getBoolean(JNIEnv* env, jobject javaField, jobject javaObj, in Field_getBoolean() 195 static jbyte Field_getByte(JNIEnv* env, jobject javaField, jobject javaObj, jboolean accessible) { in Field_getByte() 199 static jchar Field_getChar(JNIEnv* env, jobject javaField, jobject javaObj, jboolean accessible) { in Field_getChar() 203 static jdouble Field_getDouble(JNIEnv* env, jobject javaField, jobject javaObj, in Field_getDouble() 208 static jfloat Field_getFloat(JNIEnv* env, jobject javaField, jobject javaObj, jboolean accessible) { in Field_getFloat() 212 static jint Field_getInt(JNIEnv* env, jobject javaField, jobject javaObj, jboolean accessible) { in Field_getInt() 216 static jlong Field_getLong(JNIEnv* env, jobject javaField, jobject javaObj, jboolean accessible) { in Field_getLong() 220 static jshort Field_getShort(JNIEnv* env, jobject javaField, jobject javaObj, jboolean accessible) { in Field_getShort() [all …]
|
D | java_lang_String.cc | 27 static jint String_compareTo(JNIEnv* env, jobject javaThis, jobject javaRhs) { in String_compareTo() 37 static jint String_fastIndexOf(JNIEnv* env, jobject java_this, jint ch, jint start) { in String_fastIndexOf() 46 static jstring String_intern(JNIEnv* env, jobject javaThis) { in String_intern() 59 void register_java_lang_String(JNIEnv* env) { in register_java_lang_String()
|
D | java_lang_System.cc | 45 static void System_arraycopy(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject javaDst, in System_arraycopy() 157 inline void System_arraycopyTUnchecked(JNIEnv* env, jobject javaSrc, jint srcPos, in System_arraycopyTUnchecked() 171 static void System_arraycopyCharUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, in System_arraycopyCharUnchecked() 177 static void System_arraycopyByteUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, in System_arraycopyByteUnchecked() 183 static void System_arraycopyShortUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, in System_arraycopyShortUnchecked() 189 static void System_arraycopyIntUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, in System_arraycopyIntUnchecked() 195 static void System_arraycopyLongUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, in System_arraycopyLongUnchecked() 201 static void System_arraycopyFloatUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, in System_arraycopyFloatUnchecked() 207 static void System_arraycopyDoubleUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, in System_arraycopyDoubleUnchecked() 213 static void System_arraycopyBooleanUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, in System_arraycopyBooleanUnchecked() [all …]
|
D | java_lang_Throwable.cc | 23 static jobject Throwable_nativeFillInStackTrace(JNIEnv* env, jclass) { in Throwable_nativeFillInStackTrace() 28 static jobjectArray Throwable_nativeGetStackTrace(JNIEnv* env, jclass, jobject javaStackState) { in Throwable_nativeGetStackTrace() 41 void register_java_lang_Throwable(JNIEnv* env) { in register_java_lang_Throwable()
|
D | dalvik_system_VMStack.cc | 63 static jint VMStack_fillStackTraceElements(JNIEnv* env, jclass, jobject javaThread, in VMStack_fillStackTraceElements() 76 static jobject VMStack_getCallingClassLoader(JNIEnv* env, jclass) { in VMStack_getCallingClassLoader() 87 static jobject VMStack_getClosestUserClassLoader(JNIEnv* env, jclass, jobject javaBootstrap, in VMStack_getClosestUserClassLoader() 117 static jclass VMStack_getStackClass2(JNIEnv* env, jclass) { in VMStack_getStackClass2() 128 static jobjectArray VMStack_getThreadStackTrace(JNIEnv* env, jclass, jobject javaThread) { in VMStack_getThreadStackTrace() 145 void register_dalvik_system_VMStack(JNIEnv* env) { in register_dalvik_system_VMStack()
|
D | java_lang_reflect_Method.cc | 30 static jobject Method_invoke(JNIEnv* env, jobject javaMethod, jobject javaReceiver, in Method_invoke() 36 static jobject Method_getExceptionTypesNative(JNIEnv* env, jobject javaMethod) { in Method_getExceptionTypesNative() 60 void register_java_lang_reflect_Method(JNIEnv* env) { in register_java_lang_reflect_Method()
|
D | java_lang_VMClassLoader.cc | 27 static jclass VMClassLoader_findLoadedClass(JNIEnv* env, jclass, jobject javaLoader, jstring javaNa… in VMClassLoader_findLoadedClass() 53 static jint VMClassLoader_getBootClassPathSize(JNIEnv*, jclass) { in VMClassLoader_getBootClassPathSize() argument 70 static jstring VMClassLoader_getBootClassPathResource(JNIEnv* env, jclass, jstring javaName, jint i… in VMClassLoader_getBootClassPathResource() 107 void register_java_lang_VMClassLoader(JNIEnv* env) { in register_java_lang_VMClassLoader()
|
D | java_util_concurrent_atomic_AtomicLong.cc | 22 static jboolean AtomicLong_VMSupportsCS8(JNIEnv*, jclass) { in AtomicLong_VMSupportsCS8() argument 30 void register_java_util_concurrent_atomic_AtomicLong(JNIEnv* env) { in register_java_util_concurrent_atomic_AtomicLong()
|
D | java_lang_Class.cc | 44 static jclass Class_classForName(JNIEnv* env, jclass, jstring javaName, jboolean initialize, in Class_classForName() 86 static jstring Class_getNameNative(JNIEnv* env, jobject javaThis) { in Class_getNameNative() 93 static jobjectArray Class_getProxyInterfaces(JNIEnv* env, jobject javaThis) { in Class_getProxyInterfaces() 105 void register_java_lang_Class(JNIEnv* env) { in register_java_lang_Class()
|
D | java_lang_ref_FinalizerReference.cc | 26 static jboolean FinalizerReference_makeCircularListIfUnenqueued(JNIEnv* env, jobject javaThis) { in FinalizerReference_makeCircularListIfUnenqueued() 36 void register_java_lang_ref_FinalizerReference(JNIEnv* env) { in register_java_lang_ref_FinalizerReference()
|
D | java_lang_ref_Reference.cc | 26 static jobject Reference_getReferent(JNIEnv* env, jobject javaThis) { in Reference_getReferent() 38 void register_java_lang_ref_Reference(JNIEnv* env) { in register_java_lang_ref_Reference()
|
D | org_apache_harmony_dalvik_ddmc_DdmServer.cc | 24 static void DdmServer_nativeSendChunk(JNIEnv* env, jclass, jint type, in DdmServer_nativeSendChunk() 36 void register_org_apache_harmony_dalvik_ddmc_DdmServer(JNIEnv* env) { in register_org_apache_harmony_dalvik_ddmc_DdmServer()
|
/art/runtime/ |
D | jni_internal.cc | 264 int ThrowNewException(JNIEnv* env, jclass exception_class, const char* msg, jobject cause) in ThrowNewException() 307 static jint JII_AttachCurrentThread(JavaVM* vm, JNIEnv** p_env, void* raw_args, bool as_daemon) { in JII_AttachCurrentThread() 582 static jint GetVersion(JNIEnv*) { in GetVersion() argument 586 static jclass DefineClass(JNIEnv*, const char*, jobject, const jbyte*, jsize) { in DefineClass() argument 591 static jclass FindClass(JNIEnv* env, const char* name) { in FindClass() 608 static jmethodID FromReflectedMethod(JNIEnv* env, jobject jlr_method) { in FromReflectedMethod() 614 static jfieldID FromReflectedField(JNIEnv* env, jobject jlr_field) { in FromReflectedField() 620 static jobject ToReflectedMethod(JNIEnv* env, jclass, jmethodID mid, jboolean) { in ToReflectedMethod() 640 static jobject ToReflectedField(JNIEnv* env, jclass, jfieldID fid, jboolean) { in ToReflectedField() 654 static jclass GetObjectClass(JNIEnv* env, jobject java_object) { in GetObjectClass() [all …]
|
D | check_jni.cc | 89 static bool IsHandleScopeLocalRef(JNIEnv* env, jobject localRef) { in IsHandleScopeLocalRef() 152 explicit ScopedCheck(JNIEnv* env, int flags, const char* functionName) in ScopedCheck() 447 JNIEnv* env = va_arg(ap, JNIEnv*); in Check() 1080 static void* CreateGuardedPACopy(JNIEnv* env, const jarray java_array, jboolean* isCopy) { in CreateGuardedPACopy() 1097 static void ReleaseGuardedPACopy(JNIEnv* env, jarray java_array, void* dataBuf, int mode) { in ReleaseGuardedPACopy() 1120 static jint GetVersion(JNIEnv* env) { in GetVersion() 1125 …static jclass DefineClass(JNIEnv* env, const char* name, jobject loader, const jbyte* buf, jsize b… in DefineClass() 1131 static jclass FindClass(JNIEnv* env, const char* name) { in FindClass() 1137 static jclass GetSuperclass(JNIEnv* env, jclass c) { in GetSuperclass() 1142 static jboolean IsAssignableFrom(JNIEnv* env, jclass c1, jclass c2) { in IsAssignableFrom() [all …]
|
D | native_bridge_art_interface.cc | 28 const char* GetMethodShorty(JNIEnv* env, jmethodID mid) { in GetMethodShorty() 36 uint32_t GetNativeMethodCount(JNIEnv* env, jclass clazz) { in GetNativeMethodCount() 59 uint32_t GetNativeMethods(JNIEnv* env, jclass clazz, JNINativeMethod* methods, in GetNativeMethods() 127 void InitializeNativeBridge(JNIEnv* env, const char* instruction_set) { in InitializeNativeBridge()
|
/art/test/115-native-bridge/ |
D | nativebridge.cc | 41 JNIEnv* env = nullptr; in trampoline_JNI_OnLoad() 88 static void trampoline_Java_Main_testFindClassOnAttachedNativeThread(JNIEnv* env, in trampoline_Java_Main_testFindClassOnAttachedNativeThread() 90 typedef void (*FnPtr_t)(JNIEnv*, jclass); in trampoline_Java_Main_testFindClassOnAttachedNativeThread() 97 static void trampoline_Java_Main_testFindFieldOnAttachedNativeThreadNative(JNIEnv* env, in trampoline_Java_Main_testFindFieldOnAttachedNativeThreadNative() 99 typedef void (*FnPtr_t)(JNIEnv*, jclass); in trampoline_Java_Main_testFindFieldOnAttachedNativeThreadNative() 106 static void trampoline_Java_Main_testCallStaticVoidMethodOnSubClassNative(JNIEnv* env, in trampoline_Java_Main_testCallStaticVoidMethodOnSubClassNative() 108 typedef void (*FnPtr_t)(JNIEnv*, jclass); in trampoline_Java_Main_testCallStaticVoidMethodOnSubClassNative() 115 static jobject trampoline_Java_Main_testGetMirandaMethodNative(JNIEnv* env, jclass klass) { in trampoline_Java_Main_testGetMirandaMethodNative() 116 typedef jobject (*FnPtr_t)(JNIEnv*, jclass); in trampoline_Java_Main_testGetMirandaMethodNative() 123 static void trampoline_Java_Main_testZeroLengthByteBuffers(JNIEnv* env, jclass klass) { in trampoline_Java_Main_testZeroLengthByteBuffers() [all …]
|
/art/test/004-JniTest/ |
D | jni_test.cc | 40 JNIEnv* env = nullptr; in AttachHelper() 45 typedef void (*Fn)(JNIEnv*); in AttachHelper() 54 static void PthreadHelper(void (*fn)(JNIEnv*)) { in PthreadHelper() argument 63 static void testFindClassOnAttachedNativeThread(JNIEnv* env) { in testFindClassOnAttachedNativeThread() 74 extern "C" JNIEXPORT void JNICALL Java_Main_testFindClassOnAttachedNativeThread(JNIEnv*, jclass) { in Java_Main_testFindClassOnAttachedNativeThread() argument 78 static void testFindFieldOnAttachedNativeThread(JNIEnv* env) { in testFindFieldOnAttachedNativeThread() 90 extern "C" JNIEXPORT void JNICALL Java_Main_testFindFieldOnAttachedNativeThreadNative(JNIEnv*, in Java_Main_testFindFieldOnAttachedNativeThreadNative() argument 95 static void testReflectFieldGetFromAttachedNativeThread(JNIEnv* env) { in testReflectFieldGetFromAttachedNativeThread() 133 JNIEnv*, jclass) { in Java_Main_testReflectFieldGetFromAttachedNativeThreadNative() argument 139 extern "C" JNIEXPORT void JNICALL Java_Main_testCallStaticVoidMethodOnSubClassNative(JNIEnv* env, in Java_Main_testCallStaticVoidMethodOnSubClassNative() [all …]
|
/art/test/004-SignalTest/ |
D | signaltest.cc | 72 extern "C" JNIEXPORT void JNICALL Java_Main_initSignalTest(JNIEnv*, jclass) { in Java_Main_initSignalTest() argument 84 extern "C" JNIEXPORT void JNICALL Java_Main_terminateSignalTest(JNIEnv*, jclass) { in Java_Main_terminateSignalTest() argument 92 extern "C" JNIEXPORT jint JNICALL Java_Main_testSignal(JNIEnv*, jclass) { in Java_Main_testSignal() argument
|