Home
last modified time | relevance | path

Searched refs:callback (Results 1 – 25 of 446) sorted by relevance

12345678910>>...18

/system/update_engine/common/
Dscoped_task_id.h53 base::OnceClosure&& callback,
55 return PostTask<decltype(callback)>(from_here, std::move(callback), delay);
58 std::function<void()>&& callback,
60 return PostTask<decltype(callback)>(from_here, std::move(callback), delay);
95 Callable&& callback, in PostTask() argument
104 base::BindOnce(&ScopedTaskId::ExecuteTask<decltype(callback)>, in PostTask()
106 std::move(callback)), in PostTask()
111 void ExecuteTask(Callable&& callback) { in ExecuteTask() argument
114 std::move(callback).Run(); in ExecuteTask()
116 std::move(callback)(); in ExecuteTask() local
Dproxy_resolver_unittest.cc47 auto callback = base::Bind( in TEST_F() local
58 resolver_.GetProxiesForUrl("http://foo", callback)); in TEST_F()
68 auto callback = base::Bind( in TEST_F() local
72 ProxyRequestId request = resolver_.GetProxiesForUrl("http://foo", callback); in TEST_F()
81 auto callback = base::Bind( in TEST_F() local
84 resolver_.GetProxiesForUrl("http://foo", callback); in TEST_F()
85 resolver_.GetProxiesForUrl("http://bar", callback); in TEST_F()
Dsubprocess.h78 pid_t Exec(const std::vector<std::string>& cmd, const ExecCallback& callback);
82 const ExecCallback& callback);
119 explicit SubprocessRecord(const ExecCallback& callback) in SubprocessRecord()
120 : callback(callback) {} in SubprocessRecord()
123 ExecCallback callback; member
/system/extras/simpleperf/
DIOEventLoop.cpp30 std::function<bool()> callback; member
33 IOEvent(IOEventLoop* loop, const std::function<bool()>& callback) in IOEvent()
34 : loop(loop), e(nullptr), timeout({}), callback(callback), enabled(false) {} in IOEvent()
98 if (!e->callback()) { in EventCallbackFn()
113 IOEventRef IOEventLoop::AddReadEvent(int fd, const std::function<bool()>& callback) { in AddReadEvent() argument
117 return AddEvent(fd, EV_READ | EV_PERSIST, nullptr, callback); in AddReadEvent()
120 IOEventRef IOEventLoop::AddWriteEvent(int fd, const std::function<bool()>& callback) { in AddWriteEvent() argument
124 return AddEvent(fd, EV_WRITE | EV_PERSIST, nullptr, callback); in AddWriteEvent()
127 bool IOEventLoop::AddSignalEvent(int sig, const std::function<bool()>& callback) { in AddSignalEvent() argument
128 return AddEvent(sig, EV_SIGNAL | EV_PERSIST, nullptr, callback) != nullptr; in AddSignalEvent()
[all …]
DIOEventLoop.h48 IOEventRef AddReadEvent(int fd, const std::function<bool()>& callback);
52 IOEventRef AddWriteEvent(int fd, const std::function<bool()>& callback);
56 bool AddSignalEvent(int sig, const std::function<bool()>& callback);
59 bool AddSignalEvents(std::vector<int> sigs, const std::function<bool()>& callback);
63 IOEventRef AddPeriodicEvent(timeval duration, const std::function<bool()>& callback);
83 const std::function<bool()>& callback);
/system/connectivity/wificond/
Dlooper_backed_event_loop.cpp27 explicit EventLoopCallback(const std::function<void()>& callback) in EventLoopCallback() argument
28 : callback_(callback) { in EventLoopCallback()
45 explicit WatchFdCallback(const std::function<void(int)>& callback) in WatchFdCallback() argument
46 : callback_(callback) { in WatchFdCallback()
79 void LooperBackedEventLoop::PostTask(const std::function<void()>& callback) { in PostTask() argument
81 new EventLoopCallback(callback); in PostTask()
86 const std::function<void()>& callback, in PostDelayedTask() argument
88 sp<android::MessageHandler> looper_callback = new EventLoopCallback(callback); in PostDelayedTask()
95 const std::function<void(int)>& callback) { in WatchFileDescriptor() argument
96 sp<android::LooperCallback> watch_fd_callback = new WatchFdCallback(callback); in WatchFileDescriptor()
/system/bt/gd/common/
Dcallback_list.h47 CallbackWithHandler(base::RepeatingCallback<CallbackType> callback, os::Handler* handler) in CallbackWithHandler()
48 : callback(callback), handler(handler) {} in CallbackWithHandler()
51 return callback.is_null(); in is_null()
55 callback.Reset(); in Reset()
58 base::RepeatingCallback<CallbackType> callback; member
76 cb->handler->Post(base::Bind(cb->callback, args...)); in Notify()
Dobserver_registry.h36 decltype(auto) Register(Callback<R(T...)> callback) { in decltype()
38 …urn Bind(&SingleObserverRegistry::callback_wrapper<R, T...>, Unretained(this), session_, callback); in decltype()
47 void callback_wrapper(int session, Callback<R(T...)> callback, T... t) { in callback_wrapper() argument
49 callback.Run(std::forward<T>(t)...); in callback_wrapper()
61 decltype(auto) Register(int event_type, Callback<R(T...)> callback) { in decltype()
63 return registry_[event_type].Register(callback); in decltype()
Dmetric_id_manager_unittest.cc53 MetricIdManager::Callback callback = []( in TEST() local
57 ASSERT_TRUE(manager.Init(paired_device_map, callback, callback)); in TEST()
58 ASSERT_FALSE(manager.Init(paired_device_map, callback, callback)); in TEST()
65 MetricIdManager::Callback callback = []( in TEST() local
69 ASSERT_TRUE(manager.Init(paired_device_map, callback, callback)); in TEST()
72 ASSERT_FALSE(manager.Init(paired_device_map, callback, callback)); in TEST()
79 MetricIdManager::Callback callback = []( in TEST() local
84 ASSERT_TRUE(manager.Init(paired_device_map, callback, callback)); in TEST()
96 MetricIdManager::Callback callback = []( in TEST() local
105 ASSERT_TRUE(manager.Init(paired_device_map, callback, callback)); in TEST()
[all …]
/system/hardware/interfaces/wifi/keystore/1.0/vts/functional/
DVtsHalWifiKeystoreV1_0TargetTest.cpp199 auto callback = [&statusCode](IKeystore::KeystoreStatusCode status, in TEST_P() local
207 keystore->sign(nullptr, dataToSign, callback); in TEST_P()
214 auto callback = [&statusCode](IKeystore::KeystoreStatusCode status, in TEST_P() local
222 keystore->sign("", dataToSign, callback); in TEST_P()
233 auto callback = [&callbackInvoked](IKeystore::KeystoreStatusCode /*status*/, in TEST_P() local
247 keystore->sign(kTestKeyName, dataToSign, callback); in TEST_P()
258 auto callback = [&statusCode](IKeystore::KeystoreStatusCode status, in TEST_P() local
270 keystore->sign(kTestKeyName, dataToSign, callback); in TEST_P()
281 auto callback = [&statusCode](IKeystore::KeystoreStatusCode status, in TEST_P() local
295 keystore->sign(kTestKeyName, dataToSign, callback); in TEST_P()
[all …]
/system/chre/platform/tests/
Dlog_buffer_test.cc54 TestLogBufferCallback callback; in TEST() local
56 LogBuffer logBuffer(&callback, buffer, kDefaultBufferSize); in TEST()
75 TestLogBufferCallback callback; in TEST() local
77 LogBuffer logBuffer(&callback, buffer, kDefaultBufferSize); in TEST()
99 TestLogBufferCallback callback; in TEST() local
101 LogBuffer logBuffer(&callback, buffer, kDefaultBufferSize); in TEST()
118 TestLogBufferCallback callback; in TEST() local
120 LogBuffer logBuffer(&callback, buffer, kDefaultBufferSize); in TEST()
136 TestLogBufferCallback callback; in TEST() local
137 LogBuffer logBuffer(&callback, buffer, kDefaultBufferSize); in TEST()
[all …]
/system/update_engine/aosp/
Dbinder_service_android.cc46 for (auto& callback : callbacks_) { in SendStatusUpdate() local
47 callback->onStatusUpdate(last_status_, last_progress_); in SendStatusUpdate()
53 for (auto& callback : callbacks_) { in SendPayloadApplicationComplete() local
54 callback->onPayloadApplicationComplete(static_cast<int>(error_code)); in SendPayloadApplicationComplete()
59 const android::sp<IUpdateEngineCallback>& callback, bool* return_value) { in bind() argument
65 auto status = callback->onStatusUpdate(last_status_, last_progress_); in bind()
74 callbacks_.emplace_back(callback); in bind()
77 IUpdateEngineCallback::asBinder(callback); in bind()
91 const android::sp<IUpdateEngineCallback>& callback, bool* return_value) { in unbind() argument
93 IUpdateEngineCallback::asBinder(callback); in unbind()
[all …]
Dbinder_service_stable_android.cc59 const android::sp<IUpdateEngineStableCallback>& callback, in bind() argument
70 auto status = callback->onStatusUpdate(last_status_, last_progress_); in bind()
79 callback_ = callback; in bind()
82 IUpdateEngineStableCallback::asBinder(callback); in bind()
96 const android::sp<IUpdateEngineStableCallback>& callback, in unbind() argument
99 IUpdateEngineStableCallback::asBinder(callback); in unbind()
123 const IBinder* callback) { in UnbindCallback() argument
124 if (IUpdateEngineStableCallback::asBinder(callback_).get() != callback) { in UnbindCallback()
/system/core/debuggerd/libdebuggerd/
Dtombstone_proto_to_text.cpp39 #define CB(log, ...) callback(StringPrintf(__VA_ARGS__), log)
74 static void print_thread_header(CallbackType callback, const Tombstone& tombstone, in print_thread_header() argument
89 static void print_register_row(CallbackType callback, int word_size, in print_register_row() argument
96 callback(output, should_log); in print_register_row()
99 static void print_thread_registers(CallbackType callback, const Tombstone& tombstone, in print_thread_registers() argument
137 print_register_row(callback, word_size, current_row, should_log); in print_thread_registers()
143 print_register_row(callback, word_size, current_row, should_log); in print_thread_registers()
146 print_register_row(callback, word_size, special_row, should_log); in print_thread_registers()
149 static void print_backtrace(CallbackType callback, const Tombstone& tombstone, in print_backtrace() argument
171 static void print_thread_backtrace(CallbackType callback, const Tombstone& tombstone, in print_thread_backtrace() argument
[all …]
/system/bt/service/ipc/binder/
Dremote_callback_list.h62 bool Register(const android::sp<T>& callback);
63 bool Unregister(const android::sp<T>& callback);
67 void ForEach(const std::function<void(T*)>& callback);
72 CallbackDeathRecipient(const android::sp<T>& callback,
114 bool RemoteCallbackList<T>::Register(const sp<T>& callback) { in Register() argument
117 sp<IBinder> binder = IInterface::asBinder(callback.get()); in Register()
123 sp<CallbackDeathRecipient> dr(new CallbackDeathRecipient(callback, this)); in Register()
138 bool RemoteCallbackList<T>::Unregister(const sp<T>& callback) { in Unregister() argument
141 sp<IBinder> binder = IInterface::asBinder(callback.get()); in Unregister()
152 void RemoteCallbackList<T>::ForEach(const std::function<void(T*)>& callback) { in ForEach() argument
[all …]
Dinterface_with_instances_base.cc25 const android::sp<IInterface>& callback, in RegisterInstanceBase() argument
30 if (!callback.get()) { in RegisterInstanceBase()
38 if (!pending_callbacks_.Register(app_uuid, callback)) { in RegisterInstanceBase()
119 sp<IInterface> callback = pending_callbacks_.Remove(uuid); in OnRegisterInstance() local
123 if (!callback.get()) { in OnRegisterInstance()
132 OnRegisterInstanceImpl(status, callback, nullptr); in OnRegisterInstance()
138 if (!id_to_cb_.Register(instance_id, callback, this)) { in OnRegisterInstance()
140 OnRegisterInstanceImpl(bluetooth::BLE_STATUS_FAILURE, callback, nullptr); in OnRegisterInstance()
150 OnRegisterInstanceImpl(status, callback, shared_instance.get()); in OnRegisterInstance()
/system/core/libappfuse/
DFuseAppLoop.cc32 bool HandleLookUp(FuseAppLoop* loop, FuseBuffer* buffer, FuseAppLoopCallback* callback) { in HandleLookUp() argument
53 callback->OnLookup(buffer->request.header.unique, inode); in HandleLookUp()
57 bool HandleGetAttr(FuseAppLoop* loop, FuseBuffer* buffer, FuseAppLoopCallback* callback) { in HandleGetAttr() argument
62 callback->OnGetAttr(buffer->request.header.unique, buffer->request.header.nodeid); in HandleGetAttr()
67 bool HandleRead(FuseAppLoop* loop, FuseBuffer* buffer, FuseAppLoopCallback* callback) { in HandleRead() argument
72 callback->OnRead(buffer->request.header.unique, buffer->request.header.nodeid, in HandleRead()
77 bool HandleWrite(FuseAppLoop* loop, FuseBuffer* buffer, FuseAppLoopCallback* callback) { in HandleWrite() argument
82 callback->OnWrite(buffer->request.header.unique, buffer->request.header.nodeid, in HandleWrite()
88 bool HandleMessage(FuseAppLoop* loop, FuseBuffer* buffer, int fd, FuseAppLoopCallback* callback) { in HandleMessage() argument
101 return HandleLookUp(loop, buffer, callback); in HandleMessage()
[all …]
/system/bt/gd/neighbor/
Dname.cc35 ReadRemoteNameCallback callback; member
40 CancelRemoteNameCallback callback; member
52 ReadRemoteNameCallback callback,
130 … std::move(read_callback_handler->callback), packet.GetStatus(), address, packet.GetRemoteName())); in OnEvent()
156 ReadRemoteNameCallback callback, in ReadRemoteNameRequest() argument
162 …handler->Post(common::BindOnce(std::move(callback), hci::ErrorCode::UNSPECIFIED_ERROR, address, kE… in ReadRemoteNameRequest()
166 .callback = std::move(callback), in ReadRemoteNameRequest()
175 hci::Address address, CancelRemoteNameCallback callback, os::Handler* handler) { in CancelRemoteNameRequest() argument
180 … handler->Post(common::BindOnce(std::move(callback), hci::ErrorCode::UNSPECIFIED_ERROR, address)); in CancelRemoteNameRequest()
184 .callback = std::move(callback), in CancelRemoteNameRequest()
[all …]
/system/bt/common/
Dmetric_id_allocator_unittest.cc53 MetricIdAllocator::Callback callback = [](const RawAddress&, const int) { in TEST() local
56 EXPECT_TRUE(allocator.Init(paired_device_map, callback, callback)); in TEST()
57 EXPECT_FALSE(allocator.Init(paired_device_map, callback, callback)); in TEST()
64 MetricIdAllocator::Callback callback = [](const RawAddress&, const int) { in TEST() local
67 EXPECT_TRUE(allocator.Init(paired_device_map, callback, callback)); in TEST()
70 EXPECT_FALSE(allocator.Init(paired_device_map, callback, callback)); in TEST()
77 MetricIdAllocator::Callback callback = [](const RawAddress&, const int) { in TEST() local
81 EXPECT_TRUE(allocator.Init(paired_device_map, callback, callback)); in TEST()
93 MetricIdAllocator::Callback callback = [](const RawAddress&, const int) { in TEST() local
101 EXPECT_TRUE(allocator.Init(paired_device_map, callback, callback)); in TEST()
[all …]
/system/libprocinfo/include/procinfo/
Dprocess_map.h175 inline bool ReadMapFileContent(char* content, const MapInfoParamsCallback& callback) { in ReadMapFileContent() argument
194 callback(start_addr, end_addr, flags, pgoff, inode, name, shared); in ReadMapFileContent()
199 inline bool ReadMapFileContent(char* content, const MapInfoCallback& callback) { in ReadMapFileContent() argument
218 callback(MapInfo(start_addr, end_addr, flags, pgoff, inode, name, shared)); in ReadMapFileContent()
224 const MapInfoCallback& callback) { in ReadMapFile() argument
229 return ReadMapFileContent(&content[0], callback); in ReadMapFile()
233 const MapInfoParamsCallback& callback) { in ReadMapFile() argument
238 return ReadMapFileContent(&content[0], callback); in ReadMapFile()
241 inline bool ReadProcessMaps(pid_t pid, const MapInfoCallback& callback) { in ReadProcessMaps() argument
242 return ReadMapFile("/proc/" + std::to_string(pid) + "/maps", callback); in ReadProcessMaps()
[all …]
/system/hardware/interfaces/suspend/1.0/default/
DSuspendControlService.cpp43 binder::Status SuspendControlService::registerCallback(const sp<ISuspendCallback>& callback, in registerCallback() argument
45 if (!callback) { in registerCallback()
50 sp<IBinder> cb = IInterface::asBinder(callback); in registerCallback()
61 mCallbacks.push_back(callback); in registerCallback()
66 const sp<IWakelockCallback>& callback, const std::string& name, bool* _aidl_return) { in registerWakelockCallback() argument
67 if (!callback || name.empty()) { in registerWakelockCallback()
73 [&callback](const sp<IWakelockCallback>& i) { in registerWakelockCallback()
74 return IInterface::asBinder(callback) == IInterface::asBinder(i); in registerWakelockCallback()
80 if (IInterface::asBinder(callback)->remoteBinder() && in registerWakelockCallback()
81 IInterface::asBinder(callback)->linkToDeath(this) != NO_ERROR) { in registerWakelockCallback()
[all …]
/system/bt/vendor_libs/test_vendor_lib/model/setup/
Dasync_manager.cc274 const TaskCallback& callback) { in ExecAsync() argument
276 std::chrono::steady_clock::now() + delay, callback, user_id)); in ExecAsync()
282 const TaskCallback& callback) { in ExecAsyncPeriodically() argument
284 std::chrono::steady_clock::now() + delay, period, callback, user_id)); in ExecAsyncPeriodically()
337 std::chrono::milliseconds period, const TaskCallback& callback, in Task() argument
342 callback(callback), in Task()
346 const TaskCallback& callback, AsyncUserId user) in Task() argument
349 callback(callback), in Task()
367 TaskCallback callback; member in test_vendor_lib::AsyncManager::AsyncTaskManager::Task
438 TaskCallback callback; in ThreadRoutine() local
[all …]
/system/chre/core/include/chre/core/
Devent_loop_manager.h100 SystemEventCallbackFunction *callback,
102 mEventLoop.postSystemEvent(static_cast<uint16_t>(type), data, callback,
121 TypedSystemEventCallbackFunction<T> *callback) { in deferCallback() argument
136 reinterpret_cast<void *>(callback))) { in deferCallback()
144 LambdaT callback) { in deferCallback() argument
146 static_cast<TypedSystemEventCallbackFunction<T> *>(callback)); in deferCallback()
179 SystemEventCallbackFunction *callback, in setDelayedCallback() argument
181 return mEventLoop.getTimerPool().setSystemTimer(delay, callback, type, in setDelayedCallback()
/system/bt/service/test/
Dlow_energy_advertiser_unittest.cc115 auto callback = [&](std::unique_ptr<LowEnergyAdvertiser> advertiser) { in SetUp() local
118 RegisterTestAdvertiser(callback); in SetUp()
130 callback) { in RegisterTestAdvertiser()
138 callback(std::unique_ptr<LowEnergyAdvertiser>( in RegisterTestAdvertiser()
178 std::function<void(BLEStatus)> callback, in AdvertiseDataTestHelper() argument
185 AdvertiseData(), callback)); in AdvertiseDataTestHelper()
216 auto callback = [&](BLEStatus in_status, const Uuid& uuid, in TEST_F() local
233 EXPECT_TRUE(ble_advertiser_factory_->RegisterInstance(uuid0, callback)); in TEST_F()
238 EXPECT_FALSE(ble_advertiser_factory_->RegisterInstance(uuid0, callback)); in TEST_F()
248 EXPECT_TRUE(ble_advertiser_factory_->RegisterInstance(uuid1, callback)); in TEST_F()
[all …]
/system/core/init/
Duevent_listener.h52 void RegenerateUevents(const ListenerCallback& callback) const;
54 const ListenerCallback& callback) const;
55 void Poll(const ListenerCallback& callback,
60 ListenerAction RegenerateUeventsForDir(DIR* d, const ListenerCallback& callback) const;

12345678910>>...18