Home
last modified time | relevance | path

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

12345678

/art/test/178-app-image-native-method/
Dnative_methods.cc22 jint i1, jlong l1, jfloat f1, jdouble d1, in VerifyManyParameters()
23 jint i2, jlong l2, jfloat f2, jdouble d2, in VerifyManyParameters()
24 jint i3, jlong l3, jfloat f3, jdouble d3, in VerifyManyParameters()
25 jint i4, jlong l4, jfloat f4, jdouble d4, in VerifyManyParameters()
26 jint i5, jlong l5, jfloat f5, jdouble d5, in VerifyManyParameters()
27 jint i6, jlong l6, jfloat f6, jdouble d6, in VerifyManyParameters()
28 jint i7, jlong l7, jfloat f7, jdouble d7, in VerifyManyParameters()
29 jint i8, jlong l8, jfloat f8, jdouble d8) { in VerifyManyParameters()
41 extern "C" JNIEXPORT jint JNICALL Java_Test_nativeMethodVoid(JNIEnv*, jclass) { in Java_Test_nativeMethodVoid()
45 extern "C" JNIEXPORT jint JNICALL Java_Test_nativeMethod(JNIEnv*, jclass, jint i) { in Java_Test_nativeMethod()
[all …]
/art/openjdkjvm/
DOpenjdkJvm.cc69 JNIEXPORT jint JVM_Open(const char* fname, jint flags, jint mode) { in JVM_Open()
95 JNIEXPORT jint JVM_Close(jint fd) { in JVM_Close()
101 JNIEXPORT jint JVM_Read(jint fd, char* buf, jint nbytes) { in JVM_Read()
106 JNIEXPORT jint JVM_Write(jint fd, char* buf, jint nbytes) { in JVM_Write()
111 JNIEXPORT jlong JVM_Lseek(jint fd, jlong offset, jint whence) { in JVM_Lseek()
145 JNIEXPORT jint JVM_RawMonitorEnter(void* mon) { in JVM_RawMonitorEnter()
159 JNIEXPORT jint JVM_GetLastErrorString(char* buf, int len) { in JVM_GetLastErrorString()
196 JNIEXPORT jint JVM_Sync(jint fd) { in JVM_Sync()
212 JNIEXPORT jint JVM_Socket(jint domain, jint type, jint protocol) { in JVM_Socket()
216 JNIEXPORT jint JVM_InitializeSocketLibrary() { in JVM_InitializeSocketLibrary()
[all …]
/art/openjdkjvmti/
Dti_method.h50 jint* count_ptr,
53 static jvmtiError GetArgumentsSize(jvmtiEnv* env, jmethodID method, jint* size_ptr);
55 static jvmtiError GetMaxLocals(jvmtiEnv* env, jmethodID method, jint* max_ptr);
74 jint* modifiers_ptr);
78 jint* entry_count_ptr,
86 jint* entry_count_ptr,
90 static jvmtiError SetLocalVariable(jvmtiEnv* env, jthread thread, jint depth, jint slot, T data);
93 static jvmtiError GetLocalVariable(jvmtiEnv* env, jthread thread, jint depth, jint slot, T* data);
95 static jvmtiError GetLocalInstance(jvmtiEnv* env, jthread thread, jint depth, jobject* data);
100 jint depth,
[all …]
Dti_stack.h48 jint max_frame_count,
50 jint* thread_count_ptr)
53 static jvmtiError GetFrameCount(jvmtiEnv* env, jthread thread, jint* count_ptr);
57 jint depth,
63 jint start_depth,
64 jint max_frame_count,
66 jint* count_ptr);
69 jint thread_count,
71 jint max_frame_count,
76 jint* info_cnt_ptr,
[all …]
Dti_class.h49 jint* field_count_ptr,
54 jint* method_count_ptr,
59 jint* interface_count_ptr,
62 static jvmtiError GetClassModifiers(jvmtiEnv* env, jclass klass, jint* modifiers_ptr);
69 static jvmtiError GetClassStatus(jvmtiEnv* env, jclass klass, jint* status_ptr);
75 jint* class_count_ptr,
80 jint* count_ptr,
88 jint* minor_version_ptr,
89 jint* major_version_ptr);
Dti_ddms.h43 jint type_in,
44 jint length_in,
46 /*out*/ jint* type_out,
47 /*out*/ jint* data_length_out,
/art/test/ti-agent/
Dlocals_helper.cc29 static void DeallocateContents(jvmtiLocalVariableEntry* vars, jint nvars) { in DeallocateContents()
30 for (jint i = 0; i < nvars; i++) { in DeallocateContents()
49 jint depth, in Java_art_Locals_SetLocalVariableObject()
50 jint slot, in Java_art_Locals_SetLocalVariableObject()
58 jint depth, in Java_art_Locals_SetLocalVariableDouble()
59 jint slot, in Java_art_Locals_SetLocalVariableDouble()
67 jint depth, in Java_art_Locals_SetLocalVariableFloat()
68 jint slot, in Java_art_Locals_SetLocalVariableFloat()
76 jint depth, in Java_art_Locals_SetLocalVariableLong()
77 jint slot, in Java_art_Locals_SetLocalVariableLong()
[all …]
Dcommon_load.cc36 jint OnLoad(JavaVM* vm, char* options, void* reserved);
40 jint OnLoad(JavaVM* vm, char* options, void* reserved);
44 jint OnLoad(JavaVM* vm, char* options, void* reserved);
49 using OnLoad = jint (*)(JavaVM* vm, char* options, void* reserved);
50 using OnAttach = jint (*)(JavaVM* vm, char* options, void* reserved);
59 static jint MinimalOnLoad(JavaVM* vm, in MinimalOnLoad()
122 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* vm, char* options, void* reserved) { in Agent_OnLoad()
146 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach()
/art/test/911-get-stack-trace/
Dstack_trace.cc41 static jint FindLineNumber(jint line_number_count, in FindLineNumber()
48 jint line_number = -1; in FindLineNumber()
49 for (jint i = 0; i != line_number_count; ++i) { in FindLineNumber()
60 jint count) { in TranslateJvmtiFrameInfoArray()
61 auto callback = [&](jint method_index) -> jobjectArray { in TranslateJvmtiFrameInfoArray()
72 jint line_number_count; in TranslateJvmtiFrameInfoArray()
90 auto inner_callback = [&](jint component_index) -> jstring { in TranslateJvmtiFrameInfoArray()
99 jint line_number = FindLineNumber(line_number_count, in TranslateJvmtiFrameInfoArray()
129 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thread, jint start, jint max) { in Java_art_PrintThread_getStackTrace()
132 jint count; in Java_art_PrintThread_getStackTrace()
[all …]
/art/openjdkjvmti/include/
Djvmti.h49 JNIEXPORT jint JNICALL
52 JNIEXPORT jint JNICALL
480 typedef jint (JNICALL *jvmtiHeapIterationCallback)
481 (jlong class_tag, jlong size, jlong* tag_ptr, jint length, void* user_data);
483 typedef jint (JNICALL *jvmtiHeapReferenceCallback)
484 … referrer_class_tag, jlong size, jlong* tag_ptr, jlong* referrer_tag_ptr, jint length, void* user_…
486 typedef jint (JNICALL *jvmtiPrimitiveFieldCallback)
489 typedef jint (JNICALL *jvmtiArrayPrimitiveValueCallback)
490 …(jlong class_tag, jlong size, jlong* tag_ptr, jint element_count, jvmtiPrimitiveType element_type,…
492 typedef jint (JNICALL *jvmtiStringPrimitiveValueCallback)
[all …]
/art/test/988-method-trace/
Dtrace_fib.cc22 extern "C" JNIEXPORT jint JNICALL Java_art_Test988_nativeFibonacci(JNIEnv* env, jclass, jint n) { in Java_art_Test988_nativeFibonacci()
29 jint x = 1; in Java_art_Test988_nativeFibonacci()
30 jint y = 1; in Java_art_Test988_nativeFibonacci()
31 for (jint i = 3; i <= n; i++) { in Java_art_Test988_nativeFibonacci()
32 jint z = x + y; in Java_art_Test988_nativeFibonacci()
/art/test/906-iterate-heap/
Diterate_heap.cc47 virtual jint Handle(jlong class_tag, jlong size, jlong* tag_ptr, jint length) = 0;
50 static jint JNICALL HeapIterationCallback(jlong class_tag, in HeapIterationCallback()
53 jint length, in HeapIterationCallback()
59 static bool Run(JNIEnv* env, jint heap_filter, jclass klass_filter, IterationConfig* config) { in Run()
74 extern "C" JNIEXPORT jint JNICALL Java_art_Test906_iterateThroughHeapCount( in Java_art_Test906_iterateThroughHeapCount()
77 jint heap_filter, in Java_art_Test906_iterateThroughHeapCount()
79 jint stop_after) { in Java_art_Test906_iterateThroughHeapCount()
82 CountIterationConfig(jint _counter, jint _stop_after) in Java_art_Test906_iterateThroughHeapCount()
87 jint Handle(jlong class_tag ATTRIBUTE_UNUSED, in Java_art_Test906_iterateThroughHeapCount()
90 jint length ATTRIBUTE_UNUSED) override { in Java_art_Test906_iterateThroughHeapCount()
[all …]
/art/runtime/native/
Djava_lang_System.cc50 static void System_arraycopy(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject javaDst, in System_arraycopy()
51 jint dstPos, jint length) { in System_arraycopy()
53 const jint count = length; in System_arraycopy()
175 inline void System_arraycopyTUnchecked(JNIEnv* env, jobject javaSrc, jint srcPos, in System_arraycopyTUnchecked()
176 jobject javaDst, jint dstPos, jint count) { in System_arraycopyTUnchecked()
189 static void System_arraycopyCharUnchecked(JNIEnv* env, jclass, jcharArray javaSrc, jint srcPos, in System_arraycopyCharUnchecked()
190 jcharArray javaDst, jint dstPos, jint count) { in System_arraycopyCharUnchecked()
195 static void System_arraycopyByteUnchecked(JNIEnv* env, jclass, jbyteArray javaSrc, jint srcPos, in System_arraycopyByteUnchecked()
196 jbyteArray javaDst, jint dstPos, jint count) { in System_arraycopyByteUnchecked()
201 static void System_arraycopyShortUnchecked(JNIEnv* env, jclass, jshortArray javaSrc, jint srcPos, in System_arraycopyShortUnchecked()
[all …]
Dlibcore_util_CharsetUtils.cc106 jint mSize;
107 jint mOffset;
114 static void CharsetUtils_asciiBytesToChars(JNIEnv* env, jclass, jbyteArray javaBytes, jint offset, in CharsetUtils_asciiBytesToChars()
115 jint length, jcharArray javaChars) { in CharsetUtils_asciiBytesToChars()
135 jint offset, jint length, jcharArray javaChars) { in CharsetUtils_isoLatin1BytesToChars()
157 static jbyteArray charsToBytes(JNIEnv* env, jstring java_string, jint offset, jint length, in charsToBytes()
184 static jbyteArray CharsetUtils_toAsciiBytes(JNIEnv* env, jclass, jstring java_string, jint offset, in CharsetUtils_toAsciiBytes()
185 jint length) { in CharsetUtils_toAsciiBytes()
190 jint offset, jint length) { in CharsetUtils_toIsoLatin1Bytes()
194 static jbyteArray CharsetUtils_toUtf8Bytes(JNIEnv* env, jclass, jstring java_string, jint offset, in CharsetUtils_toUtf8Bytes()
[all …]
/art/benchmark/jobject-benchmark/
Djobject_benchmark.cc27 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeAddRemoveLocal()
31 for (jint i = 0; i < reps; ++i) { in Java_JObjectBenchmark_timeAddRemoveLocal()
38 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeDecodeLocal()
43 for (jint i = 0; i < reps; ++i) { in Java_JObjectBenchmark_timeDecodeLocal()
50 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeAddRemoveGlobal()
54 for (jint i = 0; i < reps; ++i) { in Java_JObjectBenchmark_timeAddRemoveGlobal()
61 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeDecodeGlobal()
66 for (jint i = 0; i < reps; ++i) { in Java_JObjectBenchmark_timeDecodeGlobal()
73 JNIEnv* env, jobject jobj, jint reps) { in Java_JObjectBenchmark_timeAddRemoveWeakGlobal()
77 for (jint i = 0; i < reps; ++i) { in Java_JObjectBenchmark_timeAddRemoveWeakGlobal()
[all …]
/art/compiler/jni/
Djni_compiler_test.cc44 extern "C" JNIEXPORT jint JNICALL Java_MyClassNatives_bar(JNIEnv*, jobject, jint count) { in Java_MyClassNatives_bar()
49 extern "C" JNIEXPORT jint JNICALL Java_MyClassNatives_bar_1Fast(JNIEnv*, jobject, jint count) { in Java_MyClassNatives_bar_1Fast()
53 extern "C" JNIEXPORT jint JNICALL Java_MyClassNatives_sbar(JNIEnv*, jclass, jint count) { in Java_MyClassNatives_sbar()
58 extern "C" JNIEXPORT jint JNICALL Java_MyClassNatives_sbar_1Fast(JNIEnv*, jclass, jint count) { in Java_MyClassNatives_sbar_1Fast()
63 extern "C" JNIEXPORT jint JNICALL Java_MyClassNatives_sbar_1Critical(jint count) { in Java_MyClassNatives_sbar_1Critical()
672 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 24); in JNI_TEST()
688 jint result = env_->CallStaticIntMethod(jklass_, jmethod_, 42); in JNI_TEST()
695 jint Java_MyClassNatives_fooI(JNIEnv*, jobject, jint x) { in Java_MyClassNatives_fooI()
705 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 42); in CompileAndRunIntMethodImpl()
709 EXPECT_EQ(static_cast<jint>(0xCAFED00D), result); in CompileAndRunIntMethodImpl()
[all …]
/art/tools/jvmti-agents/dump-jvmti-state/
Ddump-jvmti.cc27 static constexpr jint kArtTiVersion = JVMTI_VERSION_1_2 | 0x40000000;
38 static void DeallocParams(jvmtiEnv* env, jvmtiParamInfo* params, jint n_params) { in DeallocParams()
39 for (jint i = 0; i < n_params; i++) { in DeallocParams()
47 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv()
48 jint res = 0; in SetupJvmtiEnv()
62 jint n_ext = 0; in SetupJvmtiEnv()
67 for (jint i = 0; i < n_ext; i++) { in SetupJvmtiEnv()
91 static jint AgentStart(JavaVM* vm, char* options ATTRIBUTE_UNUSED, void* reserved ATTRIBUTE_UNUSED)… in AgentStart()
106 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach()
111 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad()
/art/tools/jvmti-agents/enable-vlog/
Denablevlog.cc28 static constexpr jint kArtTiVersion = JVMTI_VERSION_1_2 | 0x40000000;
53 void DeallocParams(jvmtiEnv* env, jvmtiParamInfo* params, jint n_params) { in DeallocParams()
54 for (jint i = 0; i < n_params; i++) { in DeallocParams()
61 jint n_ext = 0; in GetExtensionFunction()
67 for (jint i = 0; i < n_ext; i++) { in GetExtensionFunction()
79 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv()
80 jint res = 0; in SetupJvmtiEnv()
92 static jint AgentStart(JavaVM* vm, char* options, void* reserved ATTRIBUTE_UNUSED) { in AgentStart()
110 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach()
115 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad()
/art/tools/jvmti-agents/wrapagentproperties/
Dwrapagentproperties.cc39 using AgentLoadFunction = jint (*)(ProxyJavaVM*, const char*, void*);
40 using AgentUnloadFunction = jint (*)(JavaVM*);
51 static jint CreateJvmtiEnv(ProxyJavaVM* vm, void** out_env, jint version);
80 static jint WrapDestroyJavaVM(ProxyJavaVM* vm) { in WrapDestroyJavaVM()
83 static jint WrapAttachCurrentThread(ProxyJavaVM* vm, JNIEnv** env, void* res) { in WrapAttachCurrentThread()
86 static jint WrapDetachCurrentThread(ProxyJavaVM* vm) { in WrapDetachCurrentThread()
89 static jint WrapAttachCurrentThreadAsDaemon(ProxyJavaVM* vm, JNIEnv** env, void* res) { in WrapAttachCurrentThreadAsDaemon()
93 static jint WrapGetEnv(ProxyJavaVM* vm, void** out_env, jint version) { in WrapGetEnv()
113 out->DestroyJavaVM = reinterpret_cast<jint (*)(JavaVM*)>(WrapDestroyJavaVM); in CreateInvokeInterface()
115 reinterpret_cast<jint(*)(JavaVM*, JNIEnv**, void*)>(WrapAttachCurrentThread); in CreateInvokeInterface()
[all …]
/art/test/1940-ddms-ext/
Dddm_ext.cc32 jint type_in,
33 jint len_in,
35 jint* type_out,
36 jint* len_data_out,
41 DdmCallbackData(jint type, jint size, jbyte* data) : type_(type), data_(data, data + size) {} in DdmCallbackData()
42 jint type_;
81 jint type = env->GetIntField(chunk, type_field_id); in Java_art_Test1940_processChunk()
82 jint off = env->GetIntField(chunk, offset_field_id); in Java_art_Test1940_processChunk()
83 jint len = env->GetIntField(chunk, length_field_id); in Java_art_Test1940_processChunk()
90 jint out_type; in Java_art_Test1940_processChunk()
[all …]
/art/test/900-hello-plugin/
Dload_unload.cc29 constexpr jint TEST_900_ENV_VERSION_NUMBER = 0x900FFFFF;
33 static jint GetEnvHandler(JavaVMExt* vm ATTRIBUTE_UNUSED, void** new_env, jint version) { in GetEnvHandler()
54 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* vm, in Agent_OnLoad()
62 jint res = vm->GetEnv(reinterpret_cast<void**>(&env), TEST_900_ENV_VERSION_NUMBER); in Agent_OnLoad()
/art/test/913-heaps/
Dheaps.cc91 virtual jint Handle(jvmtiHeapReferenceKind reference_kind,
98 jint length,
102 static jint JNICALL HeapReferenceCallback(jvmtiHeapReferenceKind reference_kind, in HeapReferenceCallback()
109 jint length, in HeapReferenceCallback()
124 jint heap_filter, in Run()
143 jint heap_filter, in Java_art_Test913_followReferences()
146 jint stop_after, in Java_art_Test913_followReferences()
147 jint follow_set, in Java_art_Test913_followReferences()
151 PrintIterationConfig(jint _stop_after, jint _follow_set) in Java_art_Test913_followReferences()
157 jint Handle(jvmtiHeapReferenceKind reference_kind, in Java_art_Test913_followReferences()
[all …]
/art/test/925-threadgroups/
Dthreadgroups.cc41 jint group_count; in Java_art_Test925_getTopThreadGroups()
47 auto callback = [&](jint index) -> jobject { in Java_art_Test925_getTopThreadGroups()
65 auto callback = [&](jint index) -> jobject { in Java_art_Test925_getThreadGroupInfo()
91 jint thread_count; in Java_art_Test925_getThreadGroupChildren()
93 jint threadgroup_count; in Java_art_Test925_getThreadGroupChildren()
105 auto callback = [&](jint component_index) -> jobject { in Java_art_Test925_getThreadGroupChildren()
108 auto inner_callback = [&](jint index) { in Java_art_Test925_getThreadGroupChildren()
114 auto inner_callback = [&](jint index) { in Java_art_Test925_getThreadGroupChildren()
/art/tools/jvmti-agents/list-extensions/
Dlist-extensions.cc28 constexpr jint kArtTiVersion = JVMTI_VERSION_1_2 | 0x40000000;
39 void DeallocParams(jvmtiEnv* env, jvmtiParamInfo* params, jint n_params) { in DeallocParams()
40 for (jint i = 0; i < n_params; i++) { in DeallocParams()
85 jint SetupJvmtiEnv(JavaVM* vm) { in SetupJvmtiEnv()
86 jint res = 0; in SetupJvmtiEnv()
99 jint n_ext = 0; in SetupJvmtiEnv()
105 for (jint i = 0; i < n_ext; i++) { in SetupJvmtiEnv()
110 for (jint j = 0; j < info.param_count; j++) { in SetupJvmtiEnv()
115 for (jint j = 0; j < info.error_count; j++) { in SetupJvmtiEnv()
131 for (jint i = 0; i < n_ext; i++) { in SetupJvmtiEnv()
[all …]
/art/test/908-gc-start-finish/
Dgc_callbacks.cc73 extern "C" JNIEXPORT jint JNICALL Java_art_Test908_getGcStarts(JNIEnv* env ATTRIBUTE_UNUSED, in Java_art_Test908_getGcStarts()
75 jint result = static_cast<jint>(starts); in Java_art_Test908_getGcStarts()
80 extern "C" JNIEXPORT jint JNICALL Java_art_Test908_getGcFinishes(JNIEnv* env ATTRIBUTE_UNUSED, in Java_art_Test908_getGcFinishes()
82 jint result = static_cast<jint>(finishes); in Java_art_Test908_getGcFinishes()

12345678