Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 29) sorted by relevance

12

/art/openjdkjvmti/
Devents-inl.h93 #define FORALL_EVENT_TYPES(fn) \ argument
94 fn(VMInit, ArtJvmtiEvent::kVmInit) \
95 fn(VMDeath, ArtJvmtiEvent::kVmDeath) \
96 fn(ThreadStart, ArtJvmtiEvent::kThreadStart) \
97 fn(ThreadEnd, ArtJvmtiEvent::kThreadEnd) \
98 fn(ClassFileLoadHook, ArtJvmtiEvent::kClassFileLoadHookRetransformable) \
99 fn(ClassFileLoadHook, ArtJvmtiEvent::kClassFileLoadHookNonRetransformable) \
100 fn(ClassLoad, ArtJvmtiEvent::kClassLoad) \
101 fn(ClassPrepare, ArtJvmtiEvent::kClassPrepare) \
102 fn(VMStart, ArtJvmtiEvent::kVmStart) \
[all …]
Dti_method.cc1208 #define FOR_JVMTI_JVALUE_TYPES(fn) \ argument
1209 fn(jint, art::Primitive::kPrimInt, i) \
1210 fn(jlong, art::Primitive::kPrimLong, j) \
1211 fn(jfloat, art::Primitive::kPrimFloat, f) \
1212 fn(jdouble, art::Primitive::kPrimDouble, d) \
1213 fn(jobject, art::Primitive::kPrimNot, l)
Dti_stack.cc96 fn(fn_), in GetStackTraceVisitor()
116 fn(info); in VisitFrame()
130 FrameFn fn; member
156 FrameFn fn) { in MakeStackTraceVisitor() argument
157 return GetStackTraceVisitor<FrameFn>(thread_in, start, stop, fn); in MakeStackTraceVisitor()
/art/runtime/native/
Ddalvik_system_VMStack.cc42 T fn) in GetThreadStack() argument
47 trace = fn(soa.Self(), soa); in GetThreadStack()
69 trace = fn(thread, soa); in GetThreadStack()
85 auto fn = [](Thread* thread, const ScopedFastNativeObjectAccess& soaa) in VMStack_fillStackTraceElements() local
89 jobject trace = GetThreadStack(soa, javaThread, fn); in VMStack_fillStackTraceElements()
152 auto fn = [](Thread* thread, const ScopedFastNativeObjectAccess& soaa) in VMStack_getThreadStackTrace() local
156 jobject trace = GetThreadStack(soa, javaThread, fn); in VMStack_getThreadStackTrace()
165 auto fn = [](Thread* thread, const ScopedFastNativeObjectAccess& soaa) in VMStack_getAnnotatedThreadStackTrace() local
169 return GetThreadStack(soa, javaThread, fn); in VMStack_getAnnotatedThreadStackTrace()
/art/runtime/interpreter/
Dinterpreter.cc61 fntype* const fn = reinterpret_cast<fntype*>(method->GetEntryPointFromJni()); in InterpreterJni() local
67 jresult = fn(soa.Env(), klass.get()); in InterpreterJni()
72 fntype* const fn = reinterpret_cast<fntype*>(method->GetEntryPointFromJni()); in InterpreterJni() local
76 fn(soa.Env(), klass.get()); in InterpreterJni()
79 fntype* const fn = reinterpret_cast<fntype*>(method->GetEntryPointFromJni()); in InterpreterJni() local
83 result->SetZ(fn(soa.Env(), klass.get())); in InterpreterJni()
86 fntype* const fn = reinterpret_cast<fntype*>(method->GetEntryPointFromJni()); in InterpreterJni() local
90 result->SetB(fn(soa.Env(), klass.get(), args[0])); in InterpreterJni()
93 fntype* const fn = reinterpret_cast<fntype*>(method->GetEntryPointFromJni()); in InterpreterJni() local
97 result->SetI(fn(soa.Env(), klass.get(), args[0])); in InterpreterJni()
[all …]
/art/runtime/
Dclass_loader_utils.h80 Visitor fn, in VisitClassLoaderDexElements() argument
104 if (!fn(element, &ret_value)) { in VisitClassLoaderDexElements()
122 Visitor fn, in VisitClassLoaderDexFiles() argument
149 if (!fn(cp_dex_file, /* out */ &ret_value)) { in VisitClassLoaderDexFiles()
165 Visitor fn) in VisitClassLoaderDexFiles() argument
167 auto helper = [&fn](const art::DexFile* dex_file, void** ret) in VisitClassLoaderDexFiles()
175 return fn(dex_file); in VisitClassLoaderDexFiles()
Dnative_bridge_art_interface.cc128 android::NativeBridgeSignalHandlerFn fn = android::NativeBridgeGetSignalHandler(signal); in InitializeNativeBridge() local
129 if (fn != nullptr) { in InitializeNativeBridge()
133 .sc_sigaction = fn, in InitializeNativeBridge()
Dstack.h151 ALWAYS_INLINE static void WalkStack(const T& fn,
160 LambdaStackVisitor(const T& fn, in REQUIRES_SHARED()
165 : StackVisitor(thread, context, walk_kind, check_suspended), fn_(fn) {} in REQUIRES_SHARED()
174 LambdaStackVisitor visitor(fn, thread, context, walk_kind, check_suspended); in REQUIRES_SHARED()
/art/test/ti-agent/
Dcommon_load.cc133 OnLoad fn = nullptr; in Agent_OnLoad() local
135 fn = &MinimalOnLoad; in Agent_OnLoad()
141 fn = lib->load; in Agent_OnLoad()
143 return fn(vm, remaining_options, reserved); in Agent_OnLoad()
/art/libartbase/base/
Dsystrace.h56 explicit ScopedTrace(Fn fn) { in ScopedTrace() argument
58 ATraceBegin(fn().c_str()); in ScopedTrace()
Dtransform_iterator.h61 TransformIterator(BaseIterator base, Function fn) in TransformIterator() argument
62 : data_(base, fn) { } in TransformIterator()
145 Data(BaseIterator base, Function fn) : Function(fn), base_(base) { } in Data()
Dtransform_array_ref.h70 TransformArrayRef(const ArrayRef<OtherBT>& base, Function fn) in TransformArrayRef() argument
71 : data_(base, fn) { } in TransformArrayRef()
142 Data(ArrayRef<BaseType> base, Function fn) : Function(fn), base_(base) { } in Data()
/art/disassembler/
Ddisassembler.h53 ThreadOffsetNameFunction fn) in DisassemblerOptions() argument
54 : thread_offset_name_function_(fn), in DisassemblerOptions()
/art/tools/hiddenapi/
Dhiddenapi.cc239 void ForEachDexClass(Fn fn) { in ForEachDexClass() argument
242 fn(DexClass(accessor)); in ForEachDexClass()
248 void ForEachDexMember(Fn fn) { in ForEachDexMember() argument
249 ForEachDexClass([&fn](const DexClass& klass) { in ForEachDexMember()
251 fn(DexMember(klass, field)); in ForEachDexMember()
254 fn(DexMember(klass, method)); in ForEachDexMember()
340 bool ForEachResolvableMember(const DexMember& other, Fn fn) { in ForEachResolvableMember() argument
342 return ForEachResolvableMember_Impl(other, fn, true, true, visited); in ForEachResolvableMember()
354 void ForEachSubClass(Fn fn) { in ForEachSubClass() argument
356 if (fn(subclass)) { in ForEachSubClass()
[all …]
/art/sigchainlib/
Dsigchain.h35 extern "C" void RemoveSpecialSignalHandlerFn(int signal, bool (*fn)(int, siginfo_t*, void*));
Dsigchain_dummy.cc44 bool (*fn)(int, siginfo_t*, void*) ATTRIBUTE_UNUSED) { in RemoveSpecialSignalHandlerFn()
Dsigchain_test.cc89 static void TestSignalBlocking(const std::function<void()>& fn) { in TestSignalBlocking() argument
95 fn(); in TestSignalBlocking()
Dsigchain.cc260 void RemoveSpecialHandler(bool (*fn)(int, siginfo_t*, void*)) { in RemoveSpecialHandler()
264 if (special_handlers_[i].sc_sigaction == fn) { in RemoveSpecialHandler()
500 extern "C" void RemoveSpecialSignalHandlerFn(int signal, bool (*fn)(int, siginfo_t*, void*)) { in RemoveSpecialSignalHandlerFn()
507 chains[signal].RemoveSpecialHandler(fn); in RemoveSpecialSignalHandlerFn()
/art/runtime/jni/
Djava_vm_ext.cc319 void* fn = library->FindSymbol(jni_short_name, arg_shorty); in FindNativeMethodInternal() local
320 if (fn == nullptr) { in FindNativeMethodInternal()
321 fn = library->FindSymbol(jni_long_name, arg_shorty); in FindNativeMethodInternal()
323 if (fn != nullptr) { in FindNativeMethodInternal()
326 return fn; in FindNativeMethodInternal()
1115 void* fn = agent->FindSymbol(jni_short_name); in FindCodeForNativeMethodInAgents() local
1116 if (fn != nullptr) { in FindCodeForNativeMethodInAgents()
1119 return fn; in FindCodeForNativeMethodInAgents()
1121 fn = agent->FindSymbol(jni_long_name); in FindCodeForNativeMethodInAgents()
1122 if (fn != nullptr) { in FindCodeForNativeMethodInAgents()
[all …]
/art/libnativeloader/
Dpublic_libraries.cpp136 std::string_view fn = filename; in ReadExtensionLibraries() local
137 if (android::base::ConsumePrefix(&fn, kExtendedPublicLibrariesFilePrefix) && in ReadExtensionLibraries()
138 android::base::ConsumeSuffix(&fn, kExtendedPublicLibrariesFileSuffix)) { in ReadExtensionLibraries()
139 const std::string company_name(fn); in ReadExtensionLibraries()
/art/test/674-hiddenapi/src-ex/
DChildClass.java536 String fn, boolean canAccess) { in throwDiscoveryException() argument
538 "." + name + " to " + (canAccess ? "" : "not ") + "be discoverable with " + fn + ". " + in throwDiscoveryException()
543 String fn) { in throwAccessException() argument
545 klass.getName() + "." + name + " using " + fn + ". " + configMessage); in throwAccessException()
/art/runtime/gc/accounting/
Dspace_bitmap_test.cc157 static void RunTest(TestFn&& fn) NO_THREAD_SAFETY_ANALYSIS { in RunTest() argument
194 fn(&space_bitmap, range_begin, range_end, manual); in RunTest()
/art/runtime/verifier/
Dregister_line.h371 void IterateRegToLockDepths(T fn) const { in IterateRegToLockDepths() argument
378 fn(reg, depth); in IterateRegToLockDepths()
/art/compiler/jni/
Djni_compiler_test.cc208 template <typename T, T* fn>
211 template <typename R, typename Arg1, typename Arg2, typename ... Args, R (*fn)(Arg1, Arg2, Args...)>
212 struct remove_extra_parameters_helper<R(Arg1, Arg2, Args...), fn> {
217 return fn(env, kls, args...); in apply()
224 template <typename T, T* fn>
225 struct jni_remove_extra_parameters : public remove_extra_parameters_helper<T, fn> {};
579 template <typename T, T* fn>
583 template <typename R, typename ... Args, R (*fn)(JNIEnv*, jclass, Args...)>
584 struct make_jni_test_decorator<R(JNIEnv*, jclass kls, Args...), fn> {
593 return fn(env, kls, args...); in apply()
[all …]
/art/test/004-JniTest/
Djni_test.cc66 Fn fn = reinterpret_cast<Fn>(arg); in AttachHelper() local
67 fn(env); in AttachHelper()
74 static void PthreadHelper(void (*fn)(JNIEnv*)) { in PthreadHelper()
77 reinterpret_cast<void*>(fn)); in PthreadHelper()

12