Home
last modified time | relevance | path

Searched refs:jint (Results 1 – 25 of 53) sorted by relevance

123

/art/runtime/openjdkjvm/
DOpenjdkJvm.cc70 JNIEXPORT jint JVM_Open(const char* fname, jint flags, jint mode) { in JVM_Open()
97 JNIEXPORT jint JVM_Close(jint fd) { in JVM_Close()
103 JNIEXPORT jint JVM_Read(jint fd, char* buf, jint nbytes) { in JVM_Read()
108 JNIEXPORT jint JVM_Write(jint fd, char* buf, jint nbytes) { in JVM_Write()
113 JNIEXPORT jlong JVM_Lseek(jint fd, jlong offset, jint whence) { in JVM_Lseek()
147 JNIEXPORT jint JVM_RawMonitorEnter(void* mon) { in JVM_RawMonitorEnter()
161 JNIEXPORT jint JVM_GetLastErrorString(char* buf, int len) { in JVM_GetLastErrorString()
198 JNIEXPORT jint JVM_Sync(jint fd) { in JVM_Sync()
214 JNIEXPORT jint JVM_Socket(jint domain, jint type, jint protocol) { in JVM_Socket()
218 JNIEXPORT jint JVM_InitializeSocketLibrary() { in JVM_InitializeSocketLibrary()
[all …]
/art/runtime/native/
Djava_lang_System.cc46 static void System_arraycopy(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject javaDst, in System_arraycopy()
47 jint dstPos, jint length) { in System_arraycopy()
49 const jint count = length; in System_arraycopy()
164 inline void System_arraycopyTUnchecked(JNIEnv* env, jobject javaSrc, jint srcPos, in System_arraycopyTUnchecked()
165 jobject javaDst, jint dstPos, jint count) { in System_arraycopyTUnchecked()
178 static void System_arraycopyCharUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, in System_arraycopyCharUnchecked()
179 jobject javaDst, jint dstPos, jint count) { in System_arraycopyCharUnchecked()
184 static void System_arraycopyByteUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, in System_arraycopyByteUnchecked()
185 jobject javaDst, jint dstPos, jint count) { in System_arraycopyByteUnchecked()
190 static void System_arraycopyShortUnchecked(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, in System_arraycopyShortUnchecked()
[all …]
Dlibcore_util_CharsetUtils.cc102 jint mSize;
103 jint mOffset;
110 static void CharsetUtils_asciiBytesToChars(JNIEnv* env, jclass, jbyteArray javaBytes, jint offset, in CharsetUtils_asciiBytesToChars()
111 jint length, jcharArray javaChars) { in CharsetUtils_asciiBytesToChars()
131 jint offset, jint length, jcharArray javaChars) { in CharsetUtils_isoLatin1BytesToChars()
153 static jbyteArray charsToBytes(JNIEnv* env, jstring java_string, jint offset, jint length, in charsToBytes()
181 static jbyteArray CharsetUtils_toAsciiBytes(JNIEnv* env, jclass, jstring java_string, jint offset, in CharsetUtils_toAsciiBytes()
182 jint length) { in CharsetUtils_toAsciiBytes()
187 jint offset, jint length) { in CharsetUtils_toIsoLatin1Bytes()
191 static jbyteArray CharsetUtils_toUtf8Bytes(JNIEnv* env, jclass, jstring java_string, jint offset, in CharsetUtils_toUtf8Bytes()
[all …]
Djava_lang_String.cc32 static jchar String_charAt(JNIEnv* env, jobject java_this, jint index) { in String_charAt()
37 static jint String_compareTo(JNIEnv* env, jobject java_this, jobject java_rhs) { in String_compareTo()
66 static jint String_fastIndexOf(JNIEnv* env, jobject java_this, jint ch, jint start) { in String_fastIndexOf()
73 static jstring String_fastSubstring(JNIEnv* env, jobject java_this, jint start, jint length) { in String_fastSubstring()
83 static void String_getCharsNoCheck(JNIEnv* env, jobject java_this, jint start, jint end, in String_getCharsNoCheck()
84 jcharArray buffer, jint index) { in String_getCharsNoCheck()
98 static void String_setCharAt(JNIEnv* env, jobject java_this, jint index, jchar c) { in String_setCharAt()
Dorg_apache_harmony_dalvik_ddmc_DdmServer.cc27 static void DdmServer_nativeSendChunk(JNIEnv* env, jclass, jint type, in DdmServer_nativeSendChunk()
28 jbyteArray javaData, jint offset, jint length) { in DdmServer_nativeSendChunk()
Djava_lang_Thread.cc62 static jint Thread_nativeGetStatus(JNIEnv* env, jobject java_thread, jboolean has_been_started) { in Thread_nativeGetStatus()
64 const jint kJavaNew = 0; in Thread_nativeGetStatus()
65 const jint kJavaRunnable = 1; in Thread_nativeGetStatus()
66 const jint kJavaBlocked = 2; in Thread_nativeGetStatus()
67 const jint kJavaWaiting = 3; in Thread_nativeGetStatus()
68 const jint kJavaTimedWaiting = 4; in Thread_nativeGetStatus()
69 const jint kJavaTerminated = 5; in Thread_nativeGetStatus()
164 static void Thread_nativeSetPriority(JNIEnv* env, jobject java_thread, jint new_priority) { in Thread_nativeSetPriority()
173 static void Thread_sleep(JNIEnv* env, jclass, jobject java_lock, jlong ms, jint ns) { in Thread_sleep()
Ddalvik_system_VMDebug.cc76 static jint VMDebug_getAllocCount(JNIEnv*, jclass, jint kind) { in VMDebug_getAllocCount()
80 static void VMDebug_resetAllocCount(JNIEnv*, jclass, jint kinds) { in VMDebug_resetAllocCount()
84 static void VMDebug_startMethodTracingDdmsImpl(JNIEnv*, jclass, jint bufferSize, jint flags, in VMDebug_startMethodTracingDdmsImpl()
85 jboolean samplingEnabled, jint intervalUs) { in VMDebug_startMethodTracingDdmsImpl()
92 jobject javaFd, jint bufferSize, jint flags, in VMDebug_startMethodTracingFd()
93 jboolean samplingEnabled, jint intervalUs) { in VMDebug_startMethodTracingFd()
117 jint bufferSize, jint flags, in VMDebug_startMethodTracingFilename()
118 jboolean samplingEnabled, jint intervalUs) { in VMDebug_startMethodTracingFilename()
128 static jint VMDebug_getMethodTracingMode(JNIEnv*, jclass) { in VMDebug_getMethodTracingMode()
179 static void VMDebug_printLoadedClasses(JNIEnv* env, jclass, jint flags) { in VMDebug_printLoadedClasses()
[all …]
Djava_lang_StringFactory.cc31 jint high, jint offset, jint byte_count) { in StringFactory_newStringFromBytes()
54 static jstring StringFactory_newStringFromChars(JNIEnv* env, jclass, jint offset, in StringFactory_newStringFromChars()
55 jint char_count, jcharArray java_data) { in StringFactory_newStringFromChars()
Djava_lang_DexCache.cc52 static jobject DexCache_getResolvedType(JNIEnv* env, jobject javaDexCache, jint type_index) { in DexCache_getResolvedType()
59 static jobject DexCache_getResolvedString(JNIEnv* env, jobject javaDexCache, jint string_index) { in DexCache_getResolvedString()
66 static void DexCache_setResolvedType(JNIEnv* env, jobject javaDexCache, jint type_index, in DexCache_setResolvedType()
74 static void DexCache_setResolvedString(JNIEnv* env, jobject javaDexCache, jint string_index, in DexCache_setResolvedString()
Dorg_apache_harmony_dalvik_ddmc_DdmVmInternal.cc48 static jobjectArray DdmVmInternal_getStackTraceById(JNIEnv* env, jclass, jint thin_lock_id) { in DdmVmInternal_getStackTraceById()
154 static jint DdmVmInternal_heapInfoNotify(JNIEnv* env, jclass, jint when) { in DdmVmInternal_heapInfoNotify()
159 static jboolean DdmVmInternal_heapSegmentNotify(JNIEnv*, jclass, jint when, jint what, jboolean nat… in DdmVmInternal_heapSegmentNotify()
Dsun_misc_Unsafe.cc34 jint expectedValue, jint newValue) { in Unsafe_compareAndSwapInt()
76 static jint Unsafe_getInt(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getInt()
82 static jint Unsafe_getIntVolatile(JNIEnv* env, jobject, jobject javaObj, jlong offset) { in Unsafe_getIntVolatile()
88 static void Unsafe_putInt(JNIEnv* env, jobject, jobject javaObj, jlong offset, jint newValue) { in Unsafe_putInt()
96 jint newValue) { in Unsafe_putIntVolatile()
104 jint newValue) { in Unsafe_putOrderedInt()
190 static jint Unsafe_getArrayBaseOffsetForComponentType(JNIEnv* env, jclass, jobject component_class)… in Unsafe_getArrayBaseOffsetForComponentType()
197 static jint Unsafe_getArrayIndexScaleForComponentType(JNIEnv* env, jclass, jobject component_class)… in Unsafe_getArrayIndexScaleForComponentType()
204 static jint Unsafe_addressSize(JNIEnv* env ATTRIBUTE_UNUSED, jobject ob ATTRIBUTE_UNUSED) { in Unsafe_addressSize()
208 static jint Unsafe_pageSize(JNIEnv* env ATTRIBUTE_UNUSED, jobject ob ATTRIBUTE_UNUSED) { in Unsafe_pageSize()
[all …]
/art/compiler/jni/
Djni_compiler_test.cc40 extern "C" JNIEXPORT jint JNICALL Java_MyClassNatives_bar(JNIEnv*, jobject, jint count) { in Java_MyClassNatives_bar()
44 extern "C" JNIEXPORT jint JNICALL Java_MyClassNatives_sbar(JNIEnv*, jclass, jint count) { in Java_MyClassNatives_sbar()
235 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 24); in JNI_TEST()
250 jint result = env_->CallStaticIntMethod(jklass_, jmethod_, 42); in JNI_TEST()
257 jint Java_MyClassNatives_fooI(JNIEnv* env, jobject thisObj, jint x) { in Java_MyClassNatives_fooI()
274 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 42); in CompileAndRunIntMethodImpl()
278 EXPECT_EQ(static_cast<jint>(0xCAFED00D), result); in CompileAndRunIntMethodImpl()
287 jint Java_MyClassNatives_fooII(JNIEnv* env, jobject thisObj, jint x, jint y) { in Java_MyClassNatives_fooII()
304 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 99, 10); in CompileAndRunIntIntMethodImpl()
309 EXPECT_EQ(static_cast<jint>(0xCAFEBABE - 0xCAFED00D), result); in CompileAndRunIntIntMethodImpl()
[all …]
/art/benchmark/jobject-benchmark/
Djobject_benchmark.cc26 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeAddRemoveLocal()
30 for (jint i = 0; i < reps; ++i) { in Java_JObjectBenchmark_timeAddRemoveLocal()
37 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeDecodeLocal()
42 for (jint i = 0; i < reps; ++i) { in Java_JObjectBenchmark_timeDecodeLocal()
49 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeAddRemoveGlobal()
53 for (jint i = 0; i < reps; ++i) { in Java_JObjectBenchmark_timeAddRemoveGlobal()
60 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeDecodeGlobal()
65 for (jint i = 0; i < reps; ++i) { in Java_JObjectBenchmark_timeDecodeGlobal()
72 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeAddRemoveWeakGlobal()
76 for (jint i = 0; i < reps; ++i) { in Java_JObjectBenchmark_timeAddRemoveWeakGlobal()
[all …]
/art/benchmark/scoped-primitive-array/
Dscoped_primitive_array.cc23 for (jint i = 0; i < reps; ++i) { in Java_ScopedPrimitiveArrayBenchmark_measureByteArray()
33 for (jint i = 0; i < reps; ++i) { in Java_ScopedPrimitiveArrayBenchmark_measureShortArray()
43 for (jint i = 0; i < reps; ++i) { in Java_ScopedPrimitiveArrayBenchmark_measureIntArray()
53 for (jint i = 0; i < reps; ++i) { in Java_ScopedPrimitiveArrayBenchmark_measureLongArray()
/art/test/004-StackWalk/
Dstack_walk_jni.cc79 extern "C" JNIEXPORT jint JNICALL Java_Main_stackmap(JNIEnv*, jobject, jint count) { in Java_Main_stackmap()
91 extern "C" JNIEXPORT jint JNICALL Java_Main_refmap2(JNIEnv*, jobject, jint count) { in Java_Main_refmap2()
/art/runtime/
Djava_vm_ext_test.cc44 jint err = JNI_GetDefaultJavaVMInitArgs(nullptr); in TEST_F()
51 jint ok = JNI_GetCreatedJavaVMs(vms_buf, arraysize(vms_buf), &num_vms); in TEST_F()
64 jint ok = JNI_GetCreatedJavaVMs(vms_buf, arraysize(vms_buf), &num_vms); in attach_current_thread_callback()
128 jint ok = vm_->AttachCurrentThread(&env, nullptr); in TEST_F()
133 jint err = vm_->DetachCurrentThread(); in TEST_F()
Dparsed_options.h58 jint (*hook_vfprintf_)(FILE* stream, const char* format, va_list ap);
59 void (*hook_exit_)(jint status);
Djni_internal.cc100 const char* kind, jint idx, bool return_errors) in ReportInvalidJNINativeMethod()
329 static jint GetVersion(JNIEnv*) { in GetVersion()
431 static jint Throw(JNIEnv* env, jthrowable java_exception) { in Throw()
441 static jint ThrowNew(JNIEnv* env, jclass c, const char* msg) { in ThrowNew()
495 static jint PushLocalFrame(JNIEnv* env, jint capacity) { in PushLocalFrame()
512 static jint EnsureLocalCapacity(JNIEnv* env, jint desired_capacity) { in EnsureLocalCapacity()
827 static jint CallIntMethod(JNIEnv* env, jobject obj, jmethodID mid, ...) { in CallIntMethod()
838 static jint CallIntMethodV(JNIEnv* env, jobject obj, jmethodID mid, va_list args) { in CallIntMethodV()
845 static jint CallIntMethodA(JNIEnv* env, jobject obj, jmethodID mid, jvalue* args) { in CallIntMethodA()
1065 static jint CallNonvirtualIntMethod(JNIEnv* env, jobject obj, jclass, jmethodID mid, ...) { in CallNonvirtualIntMethod()
[all …]
/art/test/004-UnsafeTest/
Dunsafe_test.cc27 extern "C" JNIEXPORT jint JNICALL Java_Main_vmArrayBaseOffset(JNIEnv* env, jclass, jobject classObj… in Java_Main_vmArrayBaseOffset()
34 extern "C" JNIEXPORT jint JNICALL Java_Main_vmArrayIndexScale(JNIEnv* env, jclass, jobject classObj… in Java_Main_vmArrayIndexScale()
/art/test/461-get-reference-vreg/
Dget_reference_vreg_jni.cc67 jint found_method_index_;
70 extern "C" JNIEXPORT jint JNICALL Java_Main_doNativeCallRef(JNIEnv*, jobject value) { in Java_Main_doNativeCallRef()
78 extern "C" JNIEXPORT jint JNICALL Java_Main_doStaticNativeCallRef(JNIEnv*, jclass) { in Java_Main_doStaticNativeCallRef()
/art/runtime/interpreter/
Dinterpreter.cc68 typedef jbyte (fntype)(JNIEnv*, jclass, jint); in InterpreterJni()
75 typedef jint (fntype)(JNIEnv*, jclass, jint); in InterpreterJni()
96 typedef jint (fntype)(JNIEnv*, jclass, jint, jboolean); in InterpreterJni()
103 typedef jint (fntype)(JNIEnv*, jclass, jobject, jint); in InterpreterJni()
114 typedef jshort (fntype)(JNIEnv*, jclass, jint, jboolean); in InterpreterJni()
122 typedef void (fntype)(JNIEnv*, jclass, jint, jboolean); in InterpreterJni()
142 typedef jboolean (fntype)(JNIEnv*, jclass, jint, jobject, jobject); in InterpreterJni()
155 typedef void (fntype)(JNIEnv*, jclass, jint, jobject, jint, jint); in InterpreterJni()
165 typedef void (fntype)(JNIEnv*, jclass, jobject, jint, jobject, jint, jint); in InterpreterJni()
216 typedef jint (fntype)(JNIEnv*, jobject, jint, jint); in InterpreterJni()
/art/test/004-ReferenceMap/
Dstack_walk_refmap_jni.cc157 extern "C" JNIEXPORT jint JNICALL Java_Main_refmap(JNIEnv*, jobject, jint count) { in Java_Main_refmap()
/art/test/595-profile-saving/
Dprofile-saving.cc57 extern "C" JNIEXPORT jint JNICALL Java_Main_ensureProfilingInfo(JNIEnv* env, in Java_Main_ensureProfilingInfo()
73 JNIEnv* env, jclass cls, jstring filename, jint method_index) { in Java_Main_presentInProfile()
/art/test/137-cfi/
Dcfi.cc54 extern "C" JNIEXPORT jboolean JNICALL Java_Main_sleep(JNIEnv*, jobject, jint, jboolean, jdouble) { in Java_Main_sleep() argument
109 jint, in Java_Main_unwindInProcess() argument
198 jint pid_int) { in Java_Main_unwindOtherProcess()
/art/test/139-register-natives/
Dregnative.cc29 extern "C" JNIEXPORT jint JNICALL Java_Main_registerNatives(JNIEnv* env, jclass, jclass trg) { in Java_Main_registerNatives()

123