Home
last modified time | relevance | path

Searched refs:callback (Results 1 – 25 of 35) sorted by relevance

12

/art/test/925-threadgroups/
Dthreadgroups.cc47 auto callback = [&](jint index) -> jobject { in Java_art_Test925_getTopThreadGroups() local
50 jobjectArray ret = CreateObjectArray(env, group_count, "java/lang/ThreadGroup", callback); in Java_art_Test925_getTopThreadGroups()
65 auto callback = [&](jint index) -> jobject { in Java_art_Test925_getThreadGroupInfo() local
86 return CreateObjectArray(env, 4, "java/lang/Object", callback); in Java_art_Test925_getThreadGroupInfo()
105 auto callback = [&](jint component_index) -> jobject { in Java_art_Test925_getThreadGroupChildren() local
120 jobjectArray ret = CreateObjectArray(env, 2, "java/lang/Object", callback); in Java_art_Test925_getThreadGroupChildren()
/art/test/911-get-stack-trace/
Dstack_trace.cc61 auto callback = [&](jint method_index) -> jobjectArray { in TranslateJvmtiFrameInfoArray() local
125 return CreateObjectArray(env, count, "[Ljava/lang/String;", callback); in TranslateJvmtiFrameInfoArray()
154 auto callback = [&](jint thread_index) -> jobject { in Java_art_AllTraces_getAllStackTraces() local
166 jobjectArray ret = CreateObjectArray(env, thread_count, "[Ljava/lang/Object;", callback); in Java_art_AllTraces_getAllStackTraces()
190 auto callback = [&](jint thread_index) -> jobject { in Java_art_ThreadListTraces_getThreadListStackTraces() local
202 jobjectArray ret = CreateObjectArray(env, thread_count, "[Ljava/lang/Object;", callback); in Java_art_ThreadListTraces_getThreadListStackTraces()
227 auto callback = [&](jint index) -> jobject { in Java_art_Frames_getFrameLocation() local
253 jobjectArray ret = CreateObjectArray(env, 2, "java/lang/Object", callback); in Java_art_Frames_getFrameLocation()
/art/runtime/gc/space/
Drosalloc_space.cc263 void RosAllocSpace::Walk(void(*callback)(void *start, void *end, size_t num_bytes, void* callback_a… in Walk()
265 InspectAllRosAlloc(callback, arg, true); in Walk()
304 void (*callback)(void *start, void *end, size_t num_bytes, void* callback_arg), in InspectAllRosAllocWithSuspendAll()
311 rosalloc_->InspectAll(callback, arg); in InspectAllRosAllocWithSuspendAll()
313 callback(nullptr, nullptr, 0, arg); // Indicate end of a space. in InspectAllRosAllocWithSuspendAll()
317 void RosAllocSpace::InspectAllRosAlloc(void (*callback)(void *start, void *end, size_t num_bytes, v… in InspectAllRosAlloc()
324 rosalloc_->InspectAll(callback, arg); in InspectAllRosAlloc()
326 callback(nullptr, nullptr, 0, arg); // Indicate end of a space. in InspectAllRosAlloc()
333 InspectAllRosAllocWithSuspendAll(callback, arg, do_null_callback_at_end); in InspectAllRosAlloc()
336 InspectAllRosAllocWithSuspendAll(callback, arg, do_null_callback_at_end); in InspectAllRosAlloc()
Drosalloc_space.h107 void Walk(WalkCallback callback, void* arg) OVERRIDE REQUIRES(!lock_);
169 …void InspectAllRosAlloc(void (*callback)(void *start, void *end, size_t num_bytes, void* callback_…
173 void (*callback)(void *start, void *end, size_t num_bytes, void* callback_arg),
Dlarge_object_space.cc226 void LargeObjectMapSpace::Walk(DlMallocSpace::WalkCallback callback, void* arg) { in Walk() argument
230 callback(mem_map->Begin(), mem_map->End(), mem_map->Size(), arg); in Walk()
231 callback(nullptr, nullptr, 0, arg); in Walk()
378 void FreeListSpace::Walk(DlMallocSpace::WalkCallback callback, void* arg) { in Walk() argument
388 callback(byte_start, byte_end, alloc_size, arg); in Walk()
389 callback(nullptr, nullptr, 0, arg); in Walk()
Ddlmalloc_space.cc236 void DlMallocSpace::Walk(void(*callback)(void *start, void *end, size_t num_bytes, void* callback_a… in Walk()
239 mspace_inspect_all(mspace_, callback, arg); in Walk()
240 callback(nullptr, nullptr, 0, arg); // Indicate end of a space. in Walk()
Ddlmalloc_space.h107 void Walk(WalkCallback callback, void* arg) OVERRIDE REQUIRES(!lock_);
Dmalloc_space.h78 virtual void Walk(WalkCallback callback, void* arg) = 0;
/art/test/907-get-loaded-classes/
Dget_loaded_classes.cc56 auto callback = [&](jint i) { in Java_art_Test907_getLoadedClasses() local
61 jobjectArray ret = CreateObjectArray(env, count, "java/lang/String", callback); in Java_art_Test907_getLoadedClasses()
/art/test/927-timers/
Dtimers.cc62 auto callback = [&](jint index) -> jobject { in Java_art_Test927_getTimerInfo() local
83 return CreateObjectArray(env, 4, "java/lang/Object", callback); in Java_art_Test927_getTimerInfo()
/art/test/986-native-method-bind/
Dinfo.txt1 Tests native-method-bind callback and native method replacement.
/art/test/922-properties/
Dproperties.cc41 auto callback = [&](jint i) -> jstring { in Java_art_Test922_getSystemProperties() local
50 jobjectArray ret = CreateObjectArray(env, count, "java/lang/String", callback); in Java_art_Test922_getSystemProperties()
/art/runtime/gc/accounting/
Dmod_union_table.h83 virtual void VisitObjects(ObjectCallback callback, void* arg) = 0;
135 virtual void VisitObjects(ObjectCallback callback, void* arg) OVERRIDE
182 virtual void VisitObjects(ObjectCallback callback, void* arg) OVERRIDE
Dspace_bitmap.cc156 SpaceBitmap::SweepCallback* callback, void* arg) { in SweepWalk() argument
161 CHECK(callback != nullptr); in SweepWalk()
198 (*callback)(pb - &pointer_buf[0], &pointer_buf[0], arg); in SweepWalk()
204 (*callback)(pb - &pointer_buf[0], &pointer_buf[0], arg); in SweepWalk()
Dmod_union_table.cc388 void ModUnionTableReferenceCache::VisitObjects(ObjectCallback callback, void* arg) { in VisitObjects() argument
396 [callback, arg](mirror::Object* obj) { in VisitObjects()
397 callback(obj, arg); in VisitObjects()
407 [callback, arg](mirror::Object* obj) { in VisitObjects()
408 callback(obj, arg); in VisitObjects()
555 void ModUnionTableCardCache::VisitObjects(ObjectCallback callback, void* arg) { in VisitObjects() argument
559 [this, callback, arg](size_t bit_index) { in VisitObjects()
565 [callback, arg](mirror::Object* obj) { in VisitObjects()
566 callback(obj, arg); in VisitObjects()
/art/openjdkjvmti/
Dti_extension.h54 jvmtiExtensionEvent callback,
Dti_extension.cc387 jvmtiExtensionEvent callback, in SetExtensionEventCallback() argument
393 jvmtiEventMode mode = callback == nullptr ? JVMTI_DISABLE : JVMTI_ENABLE; in SetExtensionEventCallback()
401 jvmtiError err = art_env->event_callbacks->Set(extension_event_index, callback); in SetExtensionEventCallback()
/art/test/912-classes/
Dclasses.cc56 auto callback = [&](jint i) { in Java_art_Test912_getClassSignature() local
63 jobjectArray ret = CreateObjectArray(env, 2, "java/lang/String", callback); in Java_art_Test912_getClassSignature()
109 auto callback = [&](jint i) { in Java_art_Test912_getClassFields() local
118 jobjectArray ret = CreateObjectArray(env, count, "java/lang/Object", callback); in Java_art_Test912_getClassFields()
134 auto callback = [&](jint i) { in Java_art_Test912_getClassMethods() local
143 jobjectArray ret = CreateObjectArray(env, count, "java/lang/Object", callback); in Java_art_Test912_getClassMethods()
159 auto callback = [&](jint i) { in Java_art_Test912_getImplementedInterfaces() local
162 jobjectArray ret = CreateObjectArray(env, count, "java/lang/Class", callback); in Java_art_Test912_getImplementedInterfaces()
194 auto callback = [&](jint i) { in Java_art_Test912_getClassLoaderClasses() local
197 jobjectArray ret = CreateObjectArray(env, count, "java/lang/Class", callback); in Java_art_Test912_getClassLoaderClasses()
/art/test/905-object-free/
Dtracking_free.cc51 static void setupObjectFreeCallback(JNIEnv* env, jvmtiEnv* jenv, jvmtiEventObjectFree callback) { in setupObjectFreeCallback() argument
54 callbacks.ObjectFree = callback; in setupObjectFreeCallback()
/art/test/924-threads/
Dthreads.cc101 auto callback = [&](jint component_index) -> jobject { in Java_art_Test924_getThreadInfo() local
126 jobjectArray ret = CreateObjectArray(env, 5, "java/lang/Object", callback); in Java_art_Test924_getThreadInfo()
159 auto callback = [&](jint index) { in Java_art_Test924_getAllThreads() local
162 jobjectArray ret = CreateObjectArray(env, thread_count, "java/lang/Thread", callback); in Java_art_Test924_getAllThreads()
/art/test/918-fields/
Dfields.cc48 auto callback = [&](jint i) { in Java_art_Test918_getFieldName() local
57 jobjectArray ret = CreateObjectArray(env, 3, "java/lang/String", callback); in Java_art_Test918_getFieldName()
/art/runtime/ti/
Dagent.cc82 AgentOnLoadFunction callback = attaching ? agent->onattach_ : agent->onload_; in DoLoadHelper() local
83 if (callback == nullptr) { in DoLoadHelper()
95 *call_res = callback(Runtime::Current()->GetJavaVM(), in DoLoadHelper()
/art/test/044-proxy/src/
DNativeProxy.java32 public void callback(); in callback() method
/art/test/910-methods/
Dmethods.cc45 auto callback = [&](jint i) { in Java_art_Test910_getMethodName() local
54 jobjectArray ret = CreateObjectArray(env, 3, "java/lang/String", callback); in Java_art_Test910_getMethodName()
/art/runtime/
Dthread_list.h110 size_t RunCheckpoint(Closure* checkpoint_function, Closure* callback = nullptr)
151 void ForEach(void (*callback)(Thread*, void*), void* context)

12