/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | math_agree.rscript | 46 #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/ |
D | math_agree.rscript | 48 #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/ |
D | native_activity_wrapper.cc | 59 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/ |
D | inplace_function_tests.cpp | 42 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/ |
D | Debug.cpp | 150 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/ |
D | WorkQueue.h | 83 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 …]
|
D | CommonPool.h | 85 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/ |
D | function_wrappers.h | 49 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/ |
D | CameraServiceWatchdog.h | 82 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/ |
D | vulkan_xml.h | 58 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/ |
D | trampoline_func_generator_test.cc | 32 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/ |
D | host_function_wrapper_impl.h | 42 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/ |
D | Command.cpp | 56 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/ |
D | CommandLineOptions.cpp | 43 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/ |
D | test_api_gen_vendor.cpp | 104 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/ |
D | trampoline_func_generator_test_arm.cc | 33 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/ |
D | cxa_trampolines.cc | 27 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/ |
D | guest_signal_action.cc | 86 } 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()
|
D | guest_thread_pthread_create.cc | 34 GuestAddr func, in CreateNewGuestThread() argument 41 info.func = func; in CreateNewGuestThread()
|
/frameworks/libs/native_bridge_support/android_api/libc/ |
D | __cxa_thread_atexit_impl.cpp | 22 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/ |
D | SystemFonts.h | 54 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/ |
D | storage_manager.cpp | 74 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/ |
D | ctype_test.cc | 76 #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/ |
D | syscall_test.cc | 52 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/ |
D | Reporter.h | 124 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);
|