/aosp14/frameworks/base/libs/hwui/thread/ |
H A 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 …]
|
H A D | CommonPool.h | 84 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)};
|
/aosp14/system/core/libutils/ |
H A D | misc.cpp | 75 void (*func)() = nullptr; in get_report_sysprop_change_func() local 78 func = reinterpret_cast<decltype(func)>(dlsym(handle, "do_report_sysprop_change")); in get_report_sysprop_change_func() 81 return func; in get_report_sysprop_change_func() 93 static auto func = get_report_sysprop_change_func(); in report_sysprop_change() local 94 if (func != nullptr) { in report_sysprop_change() 95 (*func)(); in report_sysprop_change()
|
H A D | Threads.cpp | 194 int (*func)(void*); member 202 result = (*(pDetails->func))(pDetails->arg); in threadIntermediary() 219 pDetails->func = fn; in doCreateThread() 293 void androidSetCreateThreadFunc(android_create_thread_fn func) in androidSetCreateThreadFunc() argument 295 gCreateThreadFn = func; in androidSetCreateThreadFunc()
|
/aosp14/frameworks/base/tools/aapt2/cmd/ |
H A 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 …]
|
/aosp14/frameworks/base/cmds/idmap2/libidmap2/ |
H A D | CommandLineOptions.cpp | 42 auto func = [value](const std::string& arg ATTRIBUTE_UNUSED) -> void { *value = true; }; in OptionalFlag() local 43 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL, false}); in OptionalFlag() 51 auto func = [value](const std::string& arg) -> void { *value = arg; }; in MandatoryOption() local 52 options_.push_back(Option{name, description, func, Option::COUNT_EXACTLY_ONCE, true}); in MandatoryOption() 60 auto func = [value](const std::string& arg) -> void { value->push_back(arg); }; in MandatoryOption() local 61 options_.push_back(Option{name, description, func, Option::COUNT_ONCE_OR_MORE, true}); in MandatoryOption() 69 auto func = [value](const std::string& arg) -> void { *value = arg; }; in OptionalOption() local 70 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL, true}); in OptionalOption() 78 auto func = [value](const std::string& arg) -> void { value->push_back(arg); }; in OptionalOption() local 79 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL_ONCE_OR_MORE, true}); in OptionalOption()
|
/aosp14/system/core/libsuspend/ |
H A D | autosuspend_wakeup_count.cpp | 98 void (*func)(bool success) = wakeup_func; in suspend_thread_func() local 99 if (func != NULL) { in suspend_thread_func() 100 (*func)(success); in suspend_thread_func() 219 static void autosuspend_set_wakeup_callback(void (*func)(bool success)) { in autosuspend_set_wakeup_callback() 224 wakeup_func = func; in autosuspend_set_wakeup_callback()
|
H A D | autosuspend.c | 104 void autosuspend_set_wakeup_callback(void (*func)(bool success)) { in autosuspend_set_wakeup_callback() 114 autosuspend_ops->set_wakeup_callback(func); in autosuspend_set_wakeup_callback()
|
/aosp14/frameworks/base/native/android/ |
H A 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()
|
H A D | surface_control.cpp | 161 ASurfaceControl_SurfaceStatsListener func) { in ASurfaceControl_registerSurfaceStatsListener() argument 170 (*func)(callback_context, id, &aSurfaceControlStats); in ASurfaceControl_registerSurfaceStatsListener() 178 ASurfaceControl_SurfaceStatsListener func) { in ASurfaceControl_unregisterSurfaceStatsListener() argument 180 reinterpret_cast<void*>(func)); in ASurfaceControl_unregisterSurfaceStatsListener() 323 ASurfaceTransaction_OnComplete func) { in ASurfaceTransaction_setOnComplete() argument 325 CHECK_NOT_NULL(func); in ASurfaceTransaction_setOnComplete() 327 TransactionCompletedCallbackTakesContext callback = [func](void* callback_context, in ASurfaceTransaction_setOnComplete() 346 (*func)(callback_context, &aSurfaceTransactionStats); in ASurfaceTransaction_setOnComplete() 712 ASurfaceTransaction_OnCommit func) { in ASurfaceTransaction_setOnCommit() argument 714 CHECK_NOT_NULL(func); in ASurfaceTransaction_setOnCommit() [all …]
|
/aosp14/frameworks/base/cmds/incidentd/src/ |
H A 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);
|
H A D | Reporter.cpp | 253 void ReportBatch::forEachPersistedRequest(const function<void (const sp<ReportRequest>&)>& func) { in forEachPersistedRequest() argument 256 func(it->second); in forEachPersistedRequest() 260 void ReportBatch::forEachStreamingRequest(const function<void (const sp<ReportRequest>&)>& func) { in forEachStreamingRequest() argument 263 func(*request); in forEachStreamingRequest() 268 const function<void (const sp<IIncidentReportStatusListener>&)>& func) { in forEachListener() argument 273 func(listener); in forEachListener() 280 func(listener); in forEachListener() 286 const function<void (const sp<IIncidentReportStatusListener>&)>& func) { in forEachListener() argument 292 func(listener); in forEachListener() 301 func(listener); in forEachListener()
|
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyguard/data/repository/ |
H A D | FakeCommandQueue.kt | 36 fun doForEachCallback(func: (callback: Callbacks) -> Unit) { 37 callbacks.forEach { func(it) }
|
/aosp14/system/core/toolbox/ |
H A D | toolbox.c | 13 int (*func)(int, char**); member 40 return tools[i].func(argc, argv); in main()
|
/aosp14/frameworks/base/services/wallpapereffectsgeneration/java/com/android/server/wallpapereffectsgeneration/ |
H A D | WallpaperEffectsGenerationManagerService.java | 152 private boolean runForUser(@NonNull final String func, in runForUser() argument 160 Slog.d(TAG, "runForUser:" + func + " from pid=" + Binder.getCallingPid() in runForUser() 172 String msg = "Permission Denial: Cannot call " + func + " from pid=" in runForUser() 191 String msg = "Permission Denial: cannot call " + func + ", uid[" in runForUser()
|
/aosp14/system/core/healthd/ |
H A D | healthd_mode_charger_hidl.h | 37 int ChargerRegisterEvent(int fd, BoundFunction func, EventWakeup wakeup) override { in ChargerRegisterEvent() argument 38 return HalHealthLoop::RegisterEvent(fd, func, wakeup); in ChargerRegisterEvent()
|
/aosp14/frameworks/base/tests/backup/ |
H A D | backup_helper_test.cpp | 32 test_func func; member 90 t->result = t->func(); in main()
|
/aosp14/system/core/trusty/utils/rpmb_dev/ |
H A D | rpmb_dev.c | 236 uint16_t (*func)(struct rpmb_dev_state* s); member 251 .func = rpmb_dev_program_key, 258 .func = rpmb_dev_get_counter, 265 .func = rpmb_dev_data_write, 276 .func = rpmb_dev_data_read, 387 if (!cmd->func) { in rpmb_dev_process_cmd() 394 result = cmd->func(s); in rpmb_dev_process_cmd()
|
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | PenStylusActivity.kt | 73 inline fun update(area: Rect?, func: Canvas.() -> Unit) { 75 func(canvas)
|
/aosp14/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/ |
H A D | BasePerfTest.java | 93 protected void runPerfFunction(LongSupplier func) { in runPerfFunction() argument 98 elapsedTimeNs = func.getAsLong(); in runPerfFunction()
|
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/animation/ |
H A D | UnfoldConstantTranslateAnimator.kt | 68 viewsToTranslate.forEach { (view, direction, func) -> 69 view.get()?.let { func(it, xTrans * direction.multiplier * rtlMultiplier) }
|
/aosp14/frameworks/base/services/searchui/java/com/android/server/searchui/ |
H A D | SearchUiManagerService.java | 156 private void runForUserLocked(@NonNull final String func, in runForUserLocked() argument 164 Slog.d(TAG, "runForUserLocked:" + func + " from pid=" + Binder.getCallingPid() in runForUserLocked() 170 String msg = "Permission Denial: " + func + " from pid=" + Binder.getCallingPid() in runForUserLocked()
|
/aosp14/frameworks/base/services/smartspace/java/com/android/server/smartspace/ |
H A D | SmartspaceManagerService.java | 154 private void runForUserLocked(@NonNull final String func, in runForUserLocked() argument 162 Slog.d(TAG, "runForUserLocked:" + func + " from pid=" + Binder.getCallingPid() in runForUserLocked() 170 String msg = "Permission Denial: Cannot call " + func + " from pid=" in runForUserLocked()
|
/aosp14/system/core/init/ |
H A D | action_manager.cpp | 57 void ActionManager::QueueBuiltinAction(BuiltinFunction func, const std::string& name) { in QueueBuiltinAction() argument 61 action->AddCommand(std::move(func), {name}, 0); in QueueBuiltinAction()
|
/aosp14/system/core/libsuspend/include/suspend/ |
H A D | autosuspend.h | 65 void autosuspend_set_wakeup_callback(void (*func)(bool success));
|