Home
last modified time | relevance | path

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

1234567

/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/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dmath_agree.rscript30 #define DECLARE_REFERENCE_SET_VEC_VEC(type, abbrev, func) \
31 volatile type func##_rand_##abbrev##1_##abbrev##1; \
32 volatile type##2 func##_rand_##abbrev##2_##abbrev##2; \
33 volatile type##3 func##_rand_##abbrev##3_##abbrev##3; \
34 volatile type##4 func##_rand_##abbrev##4_##abbrev##4;
35 #define DECLARE_REFERENCE_SET_VEC_SCL(type, abbrev, func) \
36 volatile type##2 func##_rand_##abbrev##2_##abbrev##1; \
37 volatile type##3 func##_rand_##abbrev##3_##abbrev##1; \
38 volatile type##4 func##_rand_##abbrev##4_##abbrev##1;
40 #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/rs/tests/lldb/tests/harness/
Ddecorators.py44 def __call__(self, func): argument
45 @functools.wraps(func)
53 print("skipping %r - %s" % (func, self._message))
55 return func(args[0])
75 def wimpy(func): argument
81 func.wimpy = True
83 return func
91 def __call__(self, func): argument
92 func.test_order = self._order
93 return func
[all …]
/frameworks/native/libs/binder/
DDebug.cpp167 void printTypeCode(uint32_t typeCode, debugPrintFunc func, void* cookie) in printTypeCode() argument
172 func ? (*func)(cookie, buffer) : defaultPrintFunc(cookie, buffer); in printTypeCode()
178 debugPrintFunc func, void* cookie) in printHexData() argument
185 if (func == nullptr) func = defaultPrintFunc; in printHexData()
192 if (singleLineBytesCutoff < 0) func(cookie, "\n"); in printHexData()
193 func(cookie, "(NULL)"); in printHexData()
198 if (singleLineBytesCutoff < 0) func(cookie, "\n"); in printHexData()
199 func(cookie, "(empty)"); in printHexData()
204 if (singleLineBytesCutoff < 0) func(cookie, "\n"); in printHexData()
207 func(cookie, buf); in printHexData()
[all …]
DDebug.h33 debugPrintFunc func = nullptr, void* cookie = nullptr);
38 debugPrintFunc func = nullptr, void* cookie = nullptr);
/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.h84 static void post(Task&& func);
87 static auto async(F&& func) -> std::future<decltype(func())> {
88 typedef std::packaged_task<decltype(func())()> task_t;
89 auto task = std::make_shared<task_t>(std::forward<F>(func));
95 static auto runSync(F&& func) -> decltype(func()) {
96 std::packaged_task<decltype(func())()> task{std::forward<F>(func)};
/frameworks/native/cmds/lshal/
DTimeout.h34 explicit BackgroundTaskState(std::function<void(void)> &&func) in BackgroundTaskState() argument
35 : mFunc(std::forward<decltype(func)>(func)) {} in BackgroundTaskState()
66 bool timeout(std::chrono::duration<R, P> delay, std::function<void(void)> &&func) { in timeout() argument
68 BackgroundTaskState state{std::forward<decltype(func)>(func)}; in timeout()
84 timeoutIPC(std::chrono::duration<R, P> wait, const sp<I> &interfaceObject, Function &&func, in timeoutIPC() argument
88 auto boundFunc = std::bind(std::forward<Function>(func), in timeoutIPC()
101 timeoutIPC(const sp<I> &interfaceObject, Function &&func, Args &&... args) { in timeoutIPC() argument
102 return timeoutIPC(IPC_CALL_WAIT, interfaceObject, func, args...); in timeoutIPC()
/frameworks/minikin/include/minikin/
DSystemFonts.h54 std::function<void(const std::vector<std::shared_ptr<FontCollection>>&)> func) { in getFontMap() argument
55 return getInstance().getFontMapInternal(func); in getFontMap()
58 static void getFontSet(std::function<void(const std::vector<std::shared_ptr<Font>>&)> func) { in getFontSet() argument
59 return getInstance().getFontSetInternal(func); in getFontSet()
85 std::function<void(const std::vector<std::shared_ptr<FontCollection>>&)> func) { in getFontMapInternal() argument
87 func(mCollections); in getFontMapInternal()
90 void getFontSetInternal(std::function<void(const std::vector<std::shared_ptr<Font>>&)> func) { in getFontSetInternal() argument
95 func(mFonts.value()); in getFontSetInternal()
/frameworks/base/tools/aapt2/cmd/
DCommand.cpp56 auto func = [value, flags](const 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](const 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](const 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](const 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](const 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.cpp41 auto func = [value](const std::string& arg ATTRIBUTE_UNUSED) -> void { *value = true; }; in OptionalFlag() local
42 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL, false}); in OptionalFlag()
50 auto func = [value](const std::string& arg) -> void { *value = arg; }; in MandatoryOption() local
51 options_.push_back(Option{name, description, func, Option::COUNT_EXACTLY_ONCE, true}); in MandatoryOption()
59 auto func = [value](const std::string& arg) -> void { value->push_back(arg); }; in MandatoryOption() local
60 options_.push_back(Option{name, description, func, Option::COUNT_ONCE_OR_MORE, true}); in MandatoryOption()
68 auto func = [value](const std::string& arg) -> void { *value = arg; }; in OptionalOption() local
69 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL, true}); in OptionalOption()
77 auto func = [value](const std::string& arg) -> void { value->push_back(arg); }; in OptionalOption() local
78 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL_ONCE_OR_MORE, true}); in OptionalOption()
/frameworks/rs/tests/lldb/tests/testcases/
Dreduce_common.py82 for func, typename in funcname_types:
86 if not func.endswith(".combiner"):
92 expected_regex=[breakpoint_match % (script_soname, func)]
100 script_soname, func)
/frameworks/libs/native_bridge_support/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/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, const char* key, AStorageManager_obbCallbackFunc func, in mountObb()
158 ObbCallback* cb = registerObbCallback(func, data); in mountObb()
166 …void unmountObb(const char* filename, const bool force, AStorageManager_obbCallbackFunc func, void… in unmountObb()
167 ObbCallback* cb = registerObbCallback(func, data); in unmountObb()
Dsurface_control.cpp150 ASurfaceControl_SurfaceStatsListener func) { in ASurfaceControl_registerSurfaceStatsListener() argument
151 SurfaceStatsCallback callback = [func](void* callback_context, in ASurfaceControl_registerSurfaceStatsListener()
164 (*func)(callback_context, aSurfaceControl, &aSurfaceControlStats); in ASurfaceControl_registerSurfaceStatsListener()
167 reinterpret_cast<void*>(func), ASurfaceControl_to_SurfaceControl(control), callback); in ASurfaceControl_registerSurfaceStatsListener()
172 ASurfaceControl_SurfaceStatsListener func) { in ASurfaceControl_unregisterSurfaceStatsListener() argument
174 reinterpret_cast<void*>(func)); in ASurfaceControl_unregisterSurfaceStatsListener()
285 ASurfaceTransaction_OnComplete func) { in ASurfaceTransaction_setOnComplete() argument
287 CHECK_NOT_NULL(func); in ASurfaceTransaction_setOnComplete()
289 TransactionCompletedCallbackTakesContext callback = [func](void* callback_context, in ASurfaceTransaction_setOnComplete()
307 (*func)(callback_context, &aSurfaceTransactionStats); in ASurfaceTransaction_setOnComplete()
[all …]
/frameworks/base/startop/scripts/lib/
Dcmd_utils.py51 func: str,
62 func=func,
67 func=func)
/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);
/frameworks/native/cmds/dumpstate/
DDumpPool.h92 std::function<void(void)> func = std::bind(std::forward<F>(f), in enqueueTask() local
94 futures_map_[task_name] = post(task_name, func); in enqueueTask()
112 std::function<void(int)> func = std::bind(std::forward<F>(f), in enqueueTaskWithFd() local
114 futures_map_[task_name] = post(task_name, func); in enqueueTaskWithFd()
DTaskQueue.h49 auto func = std::bind(std::forward<F>(f), std::forward<Args>(args)...); in add() local
52 std::invoke(func, cancelled); in add()
/frameworks/rs/cpu_ref/
DrsCpuRuntimeMath.cpp30 #define EXPORT_F32_FN_F32(func) \ argument
31 float __attribute__((overloadable)) SC_##func(float v) { \
32 return func(v); \
35 #define EXPORT_F32_FN_F32_F32(func) \ argument
36 float __attribute__((overloadable)) SC_##func(float t, float v) { \
37 return func(t, v); \
/frameworks/wilhelm/src/
Dassert.cpp30 void __assert2(const char *file, int line, const char *func, const char *failedexpr) in __assert2() argument
33 failedexpr, file, line, func); in __assert2()
/frameworks/native/include/private/
Dsurface_control_private.h46 ASurfaceControl_SurfaceStatsListener func);
56 ASurfaceControl_SurfaceStatsListener func);
/frameworks/libs/net/common/testutils/hostdevice/com/android/testutils/
DExceptionUtils.java59 public static <T> Supplier<T> ignoreExceptions(ThrowingSupplier<T> func) { in ignoreExceptions() argument
62 return func.get(); in ignoreExceptions()
/frameworks/rs/cpp/
DRenderScript.cpp276 void RS::setErrorHandler(ErrorHandlerFunc_t func) { in setErrorHandler() argument
277 mErrorFunc = func; in setErrorHandler()
280 void RS::setMessageHandler(MessageHandlerFunc_t func) { in setMessageHandler() argument
281 mMessageFunc = func; in setMessageHandler()

1234567