Home
last modified time | relevance | path

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

12345678

/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dmath_agree.rscript46 #define DECLARE_REFERENCE_SET_VEC_VEC(type, abbrev, func) \
47 volatile type func##_rand_##abbrev##1_##abbrev##1; \
48 volatile type##2 func##_rand_##abbrev##2_##abbrev##2; \
49 volatile type##3 func##_rand_##abbrev##3_##abbrev##3; \
50 volatile type##4 func##_rand_##abbrev##4_##abbrev##4;
51 #define DECLARE_REFERENCE_SET_VEC_SCL(type, abbrev, func) \
52 volatile type##2 func##_rand_##abbrev##2_##abbrev##1; \
53 volatile type##3 func##_rand_##abbrev##3_##abbrev##1; \
54 volatile type##4 func##_rand_##abbrev##4_##abbrev##1;
56 #define DECLARE_ALL_REFERENCE_SETS_VEC_VEC(func) \
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dmath_agree.rscript48 #define DECLARE_REFERENCE_SET_VEC_VEC(type, abbrev, func) \
49 volatile type func##_rand_##abbrev##1_##abbrev##1; \
50 volatile type##2 func##_rand_##abbrev##2_##abbrev##2; \
51 volatile type##3 func##_rand_##abbrev##3_##abbrev##3; \
52 volatile type##4 func##_rand_##abbrev##4_##abbrev##4;
53 #define DECLARE_REFERENCE_SET_VEC_SCL(type, abbrev, func) \
54 volatile type##2 func##_rand_##abbrev##2_##abbrev##1; \
55 volatile type##3 func##_rand_##abbrev##3_##abbrev##1; \
56 volatile type##4 func##_rand_##abbrev##4_##abbrev##1;
58 #define DECLARE_ALL_REFERENCE_SETS_VEC_VEC(func) \
[all …]
/frameworks/libs/binary_translation/native_activity/
Dnative_activity_wrapper.cc59 GuestAddr func = GetGuestCallbacks(guest_activity)->onStart; in Wrap_OnStart() local
60 if (func == 0) { in Wrap_OnStart()
65 call.RunVoid(func); in Wrap_OnStart()
70 GuestAddr func = GetGuestCallbacks(guest_activity)->onResume; in Wrap_OnResume() local
71 if (func == 0) { in Wrap_OnResume()
76 call.RunVoid(func); in Wrap_OnResume()
81 GuestAddr func = GetGuestCallbacks(guest_activity)->onSaveInstanceState; in Wrap_OnSaveInstanceState() local
82 if (func == 0) { in Wrap_OnSaveInstanceState()
88 return ToHostAddr<void>(call.RunResGuestAddr(func)); in Wrap_OnSaveInstanceState()
93 GuestAddr func = GetGuestCallbacks(guest_activity)->onPause; in Wrap_OnPause() local
[all …]
/frameworks/av/media/utils/tests/
Dinplace_function_tests.cpp42 InPlaceFunction<size_t(size_t)> func; in TEST() local
45 func = test; in TEST()
47 EXPECT_EQ(func(2), 8ull); in TEST()
52 InPlaceFunction<size_t(size_t)> func; in TEST() local
53 EXPECT_TRUE(!func); in TEST()
63 InPlaceFunction<size_t(size_t, size_t, size_t)> func = [](size_t a, size_t b, size_t c) { in TEST() local
66 EXPECT_EQ(func(2, 3, 5), 2ull + 3 + 5); in TEST()
100 InPlaceFunction<size_t()> func{noisy}; in TEST()
102 EXPECT_EQ(func(), 17ull); in TEST()
114 InPlaceFunction<size_t()> func{noisy}; in TEST()
[all …]
/frameworks/native/libs/binder/
DDebug.cpp150 void printTypeCode(uint32_t typeCode, debugPrintFunc func, void* cookie) in printTypeCode() argument
155 func ? (*func)(cookie, buffer) : defaultPrintFunc(cookie, buffer); in printTypeCode()
161 debugPrintFunc func, void* cookie) in printHexData() argument
168 if (func == nullptr) func = defaultPrintFunc; in printHexData()
175 if (singleLineBytesCutoff < 0) func(cookie, "\n"); in printHexData()
176 func(cookie, "(NULL)"); in printHexData()
181 if (singleLineBytesCutoff < 0) func(cookie, "\n"); in printHexData()
182 func(cookie, "(empty)"); in printHexData()
187 if (singleLineBytesCutoff < 0) func(cookie, "\n"); in printHexData()
190 func(cookie, buf); in printHexData()
[all …]
/frameworks/base/libs/hwui/thread/
DWorkQueue.h83 void postAt(nsecs_t time, F&& func) { in postAt() argument
84 enqueue(WorkItem{time, std::function<void()>(std::forward<F>(func))}); in postAt()
88 void postDelayed(nsecs_t delay, F&& func) { in postDelayed() argument
89 enqueue(WorkItem{clock::now() + delay, std::function<void()>(std::forward<F>(func))}); in postDelayed()
93 void post(F&& func) { in post() argument
94 postAt(0, std::forward<F>(func)); in post()
98 auto async(F&& func) -> std::future<decltype(func())> {
99 typedef std::packaged_task<decltype(func())()> task_t;
100 auto task = std::make_shared<task_t>(std::forward<F>(func));
106 auto runSync(F&& func) -> decltype(func()) {
[all …]
DCommonPool.h85 static void post(Task&& func);
88 static auto async(F&& func) -> std::future<decltype(func())> {
89 typedef std::packaged_task<decltype(func())()> task_t;
90 auto task = std::make_shared<task_t>(std::forward<F>(func));
96 static auto runSync(F&& func) -> decltype(func()) {
97 std::packaged_task<decltype(func())()> task{std::forward<F>(func)};
/frameworks/libs/binary_translation/guest_abi/include/berberis/guest_abi/
Dfunction_wrappers.h49 decltype(auto) operator()(GuestType<Res (*)(Args...)> func) const {
50 return WrapGuestFunction(func, "AutoGeneratedWrapper");
71 decltype(auto) operator()(Res (*func)(Args...)) const {
72 WrapHostFunctionImpl(reinterpret_cast<HostCode>(func),
75 return func;
90 auto func = reinterpret_cast<Func>(const_cast<void*>(callee));
91 FuncImpl(func, state, std::make_index_sequence<sizeof...(Args)>());
96 static void FuncImpl(Func func, ThreadState* state, std::index_sequence<I...>) {
99 func(GetGuestArgument<std::tuple_element_t<I, std::tuple<Args...>>,
104 func(GetGuestArgument<std::tuple_element_t<I, std::tuple<Args...>>,
[all …]
/frameworks/av/services/camera/libcameraservice/
DCameraServiceWatchdog.h82 auto watchThread(T func, uint32_t tid, const char* functionName, uint32_t cycles, in watchThread() argument
84 decltype(func()) res; in watchThread()
99 res = watchThread(func, tid, functionName); in watchThread()
103 res = tempWatchdog->watchThread(func, tid, functionName); in watchThread()
109 res = watchThread(func, tid, functionName); in watchThread()
117 auto watchThread(T func, uint32_t tid, const char* functionName) { in watchThread() argument
118 decltype(func()) res; in watchThread()
123 res = func(); in watchThread()
126 res = func(); in watchThread()
/frameworks/libs/native_bridge_support/android_api/libvulkan/proxy/
Dvulkan_xml.h58 inline ResultType (*WrapGuestFunctionIfNeeded(GuestType<ResultType (*)(ArgumentType...)> func, in WrapGuestFunctionIfNeeded() argument
61 reinterpret_cast<ResultType (*)(ArgumentType...)>(UnwrapHostFunction(ToGuestAddr(func))); in WrapGuestFunctionIfNeeded()
65 return WrapGuestFunction(func, name); in WrapGuestFunctionIfNeeded()
70 inline GuestType<Func> WrapHostFunctionIfNeeded(Func func, const char* name) { in WrapHostFunctionIfNeeded() argument
71 auto host_func = UnwrapHostFunction(ToGuestAddr(func)); in WrapHostFunctionIfNeeded()
73 WrapHostFunction(func, name); in WrapHostFunctionIfNeeded()
75 return func; in WrapHostFunctionIfNeeded()
/frameworks/libs/binary_translation/guest_abi/riscv64/
Dtrampoline_func_generator_test.cc32 TrampolineFunc func = GetTrampolineFunc<int(void)>(); in TEST() local
36 func(reinterpret_cast<void*>(Callee::foo), &state); in TEST()
50 TrampolineFunc func = GetTrampolineFunc<void(void*, float, float), GuestAbi::kLp64>(); in TEST() local
58 EXPECT_NO_FATAL_FAILURE(func(reinterpret_cast<void*>(Callee::foo), &state)); in TEST()
70 TrampolineFunc func = GetTrampolineFunc<void(void*, float, float), GuestAbi::kLp64d>(); in TEST() local
78 EXPECT_NO_FATAL_FAILURE(func(reinterpret_cast<void*>(Callee::foo), &state)); in TEST()
/frameworks/libs/binary_translation/runtime_primitives/include/berberis/runtime_primitives/
Dhost_function_wrapper_impl.h42 HostCode func,
45 inline void WrapHostFunctionImpl(HostCode func, TrampolineFunc trampoline_func, const char* name) { in WrapHostFunctionImpl() argument
46 MakeTrampolineCallable(ToGuestAddr(func), true, trampoline_func, func, name); in WrapHostFunctionImpl()
/frameworks/base/tools/aapt2/cmd/
DCommand.cpp56 auto func = [value, flags](StringPiece arg) -> bool { in AddRequiredFlag() local
61 flags_.emplace_back(Flag(name, description, /* required */ true, /* num_args */ 1, func)); in AddRequiredFlag()
66 auto func = [value, flags](StringPiece arg) -> bool { in AddRequiredFlagList() local
71 flags_.emplace_back(Flag(name, description, /* required */ true, /* num_args */ 1, func)); in AddRequiredFlagList()
76 auto func = [value, flags](StringPiece arg) -> bool { in AddOptionalFlag() local
81 flags_.emplace_back(Flag(name, description, /* required */ false, /* num_args */ 1, func)); in AddOptionalFlag()
86 auto func = [value, flags](StringPiece arg) -> bool { in AddOptionalFlagList() local
91 flags_.emplace_back(Flag(name, description, /* required */ false, /* num_args */ 1, func)); in AddOptionalFlagList()
96 auto func = [value](StringPiece arg) -> bool { in AddOptionalFlagList() local
101 flags_.emplace_back(Flag(name, description, /* required */ false, /* num_args */ 1, func)); in AddOptionalFlagList()
[all …]
/frameworks/base/cmds/idmap2/libidmap2/
DCommandLineOptions.cpp43 auto func = [value](const std::string& arg ATTRIBUTE_UNUSED) -> void { *value = true; }; in OptionalFlag() local
44 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL, false}); in OptionalFlag()
52 auto func = [value](const std::string& arg) -> void { *value = arg; }; in MandatoryOption() local
53 options_.push_back(Option{name, description, func, Option::COUNT_EXACTLY_ONCE, true}); in MandatoryOption()
61 auto func = [value](const std::string& arg) -> void { value->push_back(arg); }; in MandatoryOption() local
62 options_.push_back(Option{name, description, func, Option::COUNT_ONCE_OR_MORE, true}); in MandatoryOption()
70 auto func = [value](const std::string& arg) -> void { *value = arg; }; in OptionalOption() local
71 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL, true}); in OptionalOption()
79 auto func = [value](const std::string& arg) -> void { value->push_back(arg); }; in OptionalOption() local
80 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL_ONCE_OR_MORE, true}); in OptionalOption()
/frameworks/proto_logging/stats/stats_log_api_gen/
Dtest_api_gen_vendor.cpp104 VendorAtom1BuildFunc func = &createVendorAtom; in TEST() local
106 EXPECT_NE(func, nullptr); in TEST()
108 VendorAtom atom = func(VENDOR_ATOM1, kTestStringValue, VendorAtom1::TYPE_1, VendorAtom1::TYPE_2, in TEST()
128 VendorAtom3BuildFunc func = &createVendorAtom; in TEST() local
130 EXPECT_NE(func, nullptr); in TEST()
132 VendorAtom atom = func(VENDOR_ATOM3, kTestStringValue, kTestIntValue); in TEST()
147 VendorAtom4BuildFunc func = &createVendorAtom; in TEST() local
149 EXPECT_NE(func, nullptr); in TEST()
160 VendorAtom atom = func(VENDOR_ATOM4, kTestStringValue, kTestFloatValue, kTestIntValue, in TEST()
192 VendorAtom5BuildFunc func = &createVendorAtom; in TEST() local
[all …]
/frameworks/libs/binary_translation/guest_abi/arm/
Dtrampoline_func_generator_test_arm.cc33 TrampolineFunc func = GetTrampolineFunc<int(void)>(); in TEST() local
37 func(reinterpret_cast<void*>(Callee::foo), &state); in TEST()
51 TrampolineFunc func = GetTrampolineFunc<void(void*, float, float)>(); in TEST() local
59 EXPECT_NO_FATAL_FAILURE(func(reinterpret_cast<void*>(Callee::foo), &state)); in TEST()
/frameworks/libs/native_bridge_support/android_api/libc/proxy/
Dcxa_trampolines.cc27 extern "C" int __cxa_thread_atexit_impl(void (*func)(void*), void* arg,
34 auto func = in DoCustomTrampoline_native_bridge___cxa_thread_atexit_impl() local
38 ret = __cxa_thread_atexit_impl(func, arg, &__dso_handle); in DoCustomTrampoline_native_bridge___cxa_thread_atexit_impl()
/frameworks/libs/binary_translation/guest_os_primitives/
Dguest_signal_action.cc86 } else if (void* func = UnwrapHostFunction(guest_sa->guest_sa_sigaction)) { in ConvertGuestSigactionToHost() local
87 host_sa->sa_sigaction = reinterpret_cast<GuestSignalAction::host_sa_sigaction_t>(func); in ConvertGuestSigactionToHost()
99 void* func = UnwrapHostFunction(guest_sa->guest_sa_sigaction); in ConvertGuestSigactionToHost() local
100 if (func) { in ConvertGuestSigactionToHost()
101 host_sa->sa_handler = reinterpret_cast<void (*)(int)>(func); in ConvertGuestSigactionToHost()
Dguest_thread_pthread_create.cc34 GuestAddr func, in CreateNewGuestThread() argument
41 info.func = func; in CreateNewGuestThread()
/frameworks/libs/native_bridge_support/android_api/libc/
D__cxa_thread_atexit_impl.cpp22 extern "C" int native_bridge___cxa_thread_atexit_impl(void (*func)(void*),
48 extern "C" int __cxa_thread_atexit_impl(void (*func)(void*), void* arg, void* dso_handle) { in __cxa_thread_atexit_impl()
50 wrapped_arg->fn = func; in __cxa_thread_atexit_impl()
/frameworks/minikin/include/minikin/
DSystemFonts.h54 static void getFontSet(std::function<void(const std::vector<std::shared_ptr<Font>>&)> func) { in getFontSet() argument
55 return getInstance().getFontSetInternal(func); in getFontSet()
80 void getFontSetInternal(std::function<void(const std::vector<std::shared_ptr<Font>>&)> func) { in getFontSetInternal() argument
85 func(mFonts.value()); in getFontSetInternal()
/frameworks/base/native/android/
Dstorage_manager.cpp74 ObbCallback* registerObbCallback(AStorageManager_obbCallbackFunc func, void* data) { in registerObbCallback()
75 ObbCallback* cb = new ObbCallback(getNextNonce(), func, data); in registerObbCallback()
143 void mountObb(const char* rawPath, AStorageManager_obbCallbackFunc func, void* data) { in mountObb()
157 ObbCallback* cb = registerObbCallback(func, data); in mountObb()
163 …void unmountObb(const char* filename, const bool force, AStorageManager_obbCallbackFunc func, void… in unmountObb()
164 ObbCallback* cb = registerObbCallback(func, data); in unmountObb()
/frameworks/libs/binary_translation/tests/ndk_program_tests/
Dctype_test.cc76 #define NO_INLINE(func) \ argument
77 volatile CharTypeFunc func##_tmp = func; \
78 CharTypeFunc func = func##_tmp;
/frameworks/libs/binary_translation/tests/ndk_program_tests/arm/
Dsyscall_test.cc52 TestFunc func = reinterpret_cast<TestFunc>(start); in TEST() local
53 ASSERT_EQ(func(), 0x1); in TEST()
56 ASSERT_EQ(func(), 0x11); in TEST()
/frameworks/base/cmds/incidentd/src/
DReporter.h124 void forEachPersistedRequest(const function<void (const sp<ReportRequest>&)>& func);
129 void forEachStreamingRequest(const function<void (const sp<ReportRequest>&)>& func);
134 void forEachFd(int sectionId, const function<void (const sp<ReportRequest>&)>& func);
139 void forEachListener(const function<void (const sp<IIncidentReportStatusListener>&)>& func);
146 const function<void (const sp<IIncidentReportStatusListener>&)>& func);

12345678