/system/extras/simpleperf/ |
D | IOEventLoop.cpp | 28 std::function<bool()> callback; member 31 IOEvent(IOEventLoop* loop, const std::function<bool()>& callback) in IOEvent() 32 : loop(loop), e(nullptr), timeout({}), callback(callback), enabled(false) { in IOEvent() 97 if (!e->callback()) { in EventCallbackFn() 113 const std::function<bool()>& callback) { in AddReadEvent() argument 117 return AddEvent(fd, EV_READ | EV_PERSIST, nullptr, callback); in AddReadEvent() 121 const std::function<bool()>& callback) { in AddWriteEvent() argument 125 return AddEvent(fd, EV_WRITE | EV_PERSIST, nullptr, callback); in AddWriteEvent() 129 const std::function<bool()>& callback) { in AddSignalEvent() argument 130 return AddEvent(sig, EV_SIGNAL | EV_PERSIST, nullptr, callback) != nullptr; in AddSignalEvent() [all …]
|
D | IOEventLoop.h | 45 IOEventRef AddReadEvent(int fd, const std::function<bool()>& callback); 49 IOEventRef AddWriteEvent(int fd, const std::function<bool()>& callback); 53 bool AddSignalEvent(int sig, const std::function<bool()>& callback); 57 const std::function<bool()>& callback); 61 IOEventRef AddPeriodicEvent(timeval duration, const std::function<bool()>& callback); 81 const std::function<bool()>& callback);
|
/system/connectivity/wificond/ |
D | looper_backed_event_loop.cpp | 27 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()
|
D | looper_backed_event_loop.h | 34 void PostTask(const std::function<void()>& callback) override; 37 void PostDelayedTask(const std::function<void()>& callback, 43 const std::function<void(int)>& callback) override;
|
/system/hardware/interfaces/wifi/keystore/1.0/vts/functional/ |
D | VtsHalWifiKeystoreV1_0TargetTest.cpp | 225 auto callback = [&statusCode](IKeystore::KeystoreStatusCode status, in TEST_F() local 233 keystore->sign(nullptr, dataToSign, callback); in TEST_F() 240 auto callback = [&statusCode](IKeystore::KeystoreStatusCode status, in TEST_F() local 248 keystore->sign("", dataToSign, callback); in TEST_F() 259 auto callback = [&statusCode](IKeystore::KeystoreStatusCode status, in TEST_F() local 270 keystore->sign(kTestKeyName, dataToSign, callback); in TEST_F() 281 auto callback = [&statusCode](IKeystore::KeystoreStatusCode status, in TEST_F() local 293 keystore->sign(kTestKeyName, dataToSign, callback); in TEST_F() 304 auto callback = [&statusCode](IKeystore::KeystoreStatusCode status, in TEST_F() local 318 keystore->sign(kTestKeyName, dataToSign, callback); in TEST_F() [all …]
|
/system/update_engine/ |
D | binder_service_android.cc | 46 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 60 callbacks_.emplace_back(callback); in bind() 63 IUpdateEngineCallback::asBinder(callback); in bind() 76 callback->onStatusUpdate(last_status_, last_progress_); in bind() 83 const android::sp<IUpdateEngineCallback>& callback, bool* return_value) { in unbind() argument 85 IUpdateEngineCallback::asBinder(callback); in unbind() [all …]
|
D | chrome_browser_proxy_resolver.cc | 36 const std::string& url, const ProxiesResolvedFn& callback) { in GetProxiesForUrl() argument 44 pending_callbacks_[id] = callback; in GetProxiesForUrl() 62 ProxiesResolvedFn callback = it->second; in OnGetChromeProxyServers() local 64 callback.Run(std::deque<std::string>(proxies.begin(), proxies.end())); in OnGetChromeProxyServers()
|
/system/update_engine/common/ |
D | proxy_resolver_unittest.cc | 47 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()
|
D | subprocess.h | 72 pid_t Exec(const std::vector<std::string>& cmd, const ExecCallback& callback); 76 const ExecCallback& callback); 111 explicit SubprocessRecord(const ExecCallback& callback) in SubprocessRecord() 112 : callback(callback) {} in SubprocessRecord() 115 ExecCallback callback; member
|
D | proxy_resolver.cc | 44 const string& url, const ProxiesResolvedFn& callback) { in GetProxiesForUrl() argument 49 callback)); in GetProxiesForUrl() 57 void DirectProxyResolver::ReturnCallback(const ProxiesResolvedFn& callback) { in ReturnCallback() argument 63 callback.Run(proxies); in ReturnCallback()
|
D | http_fetcher.cc | 48 const Closure& callback) { in ResolveProxiesForUrl() argument 50 callback_.reset(new Closure(callback)); in ResolveProxiesForUrl() 74 Closure* callback = callback_.release(); in ProxiesResolved() local 76 callback->Run(); in ProxiesResolved() 77 delete callback; in ProxiesResolved()
|
/system/bt/service/ipc/binder/ |
D | remote_callback_list.h | 62 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 …]
|
D | interface_with_instances_base.cc | 25 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()
|
D | bluetooth_binder_server.cc | 167 const ::android::sp<IBluetoothCallback>& callback) { in RegisterCallback() 169 if (!callback.get()) { in RegisterCallback() 173 callbacks_.Register(callback); in RegisterCallback() 178 const ::android::sp<IBluetoothCallback>& callback) { in UnregisterCallback() 180 if (!callback.get()) { in UnregisterCallback() 184 callbacks_.Unregister(callback); in UnregisterCallback() 391 callbacks_.ForEach([prev_state, new_state](IBluetoothCallback* callback) { in OnAdapterStateChanged() argument 392 callback->OnBluetoothStateChange(prev_state, new_state); in OnAdapterStateChanged() 401 callbacks_.ForEach([&addr_s16, connected](IBluetoothCallback* callback) { in OnDeviceConnectionStateChanged() argument 402 callback->OnDeviceConnectionStateChanged(addr_s16, connected); in OnDeviceConnectionStateChanged() [all …]
|
D | bluetooth_le_advertiser_binder_server.cc | 43 const android::sp<IBluetoothLeAdvertiserCallback>& callback, in RegisterAdvertiser() argument 49 *_aidl_return = RegisterInstanceBase(callback, adv_factory); in RegisterAdvertiser() 84 auto callback = [=](bluetooth::BLEStatus status) { in StartMultiAdvertising() local 103 callback)) { in StartMultiAdvertising() 129 auto callback = [=](bluetooth::BLEStatus status) { in StopMultiAdvertising() local 148 if (!advertiser->StopAdvertising(callback)) { in StopMultiAdvertising() 172 bluetooth::BLEStatus status, android::sp<IInterface> callback, in OnRegisterInstanceImpl() argument 177 static_cast<IBluetoothLeAdvertiserCallback*>(callback.get())); in OnRegisterInstanceImpl()
|
/system/core/libappfuse/ |
D | FuseAppLoop.cc | 32 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/vendor_libs/test_vendor_lib/model/setup/ |
D | async_manager.cc | 274 AsyncTaskId ExecAsync(std::chrono::milliseconds delay, const TaskCallback& callback) { in ExecAsync() argument 275 return scheduleTask(std::make_shared<Task>(std::chrono::steady_clock::now() + delay, callback)); in ExecAsync() 279 const TaskCallback& callback) { in ExecAsyncPeriodically() argument 280 …n scheduleTask(std::make_shared<Task>(std::chrono::steady_clock::now() + delay, period, callback)); in ExecAsyncPeriodically() 322 …ono::steady_clock::time_point time, std::chrono::milliseconds period, const TaskCallback& callback) in Task() argument 323 : time(time), periodic(true), period(period), callback(callback), task_id(kInvalidTaskId) {} in Task() 324 Task(std::chrono::steady_clock::time_point time, const TaskCallback& callback) in Task() argument 325 : time(time), periodic(false), callback(callback), task_id(kInvalidTaskId) {} in Task() 341 TaskCallback callback; member in test_vendor_lib::AsyncManager::AsyncTaskManager::Task 406 TaskCallback callback; in ThreadRoutine() local [all …]
|
/system/hardware/interfaces/suspend/1.0/default/ |
D | SuspendControlService.cpp | 43 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() 83 for (const auto& callback : callbacksCopy) { in notifyWakeup() local 84 callback->notifyWakeup(success).isOk(); // ignore errors in notifyWakeup()
|
/system/chre/platform/slpi/ |
D | debug_dump.cc | 39 bool registerDebugDumpCallback(const char *name, debugDumpCbFunc *callback, in registerDebugDumpCallback() argument 42 return ashRegisterDebugDumpCallback(name, callback, cookie); in registerDebugDumpCallback() 48 void unregisterDebugDumpCallback(debugDumpCbFunc *callback) { in unregisterDebugDumpCallback() argument 50 ashUnregisterDebugDumpCallback(callback); in unregisterDebugDumpCallback()
|
/system/bt/service/test/ |
D | low_energy_advertiser_unittest.cc | 113 auto callback = [&](std::unique_ptr<LowEnergyAdvertiser> advertiser) { in SetUp() local 116 RegisterTestAdvertiser(callback); in SetUp() 128 callback) { in RegisterTestAdvertiser() 136 callback(std::unique_ptr<LowEnergyAdvertiser>( in RegisterTestAdvertiser() 176 std::function<void(BLEStatus)> callback, in AdvertiseDataTestHelper() argument 183 AdvertiseData(), callback)); in AdvertiseDataTestHelper() 214 auto callback = [&](BLEStatus in_status, const Uuid& uuid, in TEST_F() local 231 EXPECT_TRUE(ble_advertiser_factory_->RegisterInstance(uuid0, callback)); in TEST_F() 236 EXPECT_FALSE(ble_advertiser_factory_->RegisterInstance(uuid0, callback)); in TEST_F() 246 EXPECT_TRUE(ble_advertiser_factory_->RegisterInstance(uuid1, callback)); in TEST_F() [all …]
|
/system/core/init/ |
D | uevent_listener.h | 46 void RegenerateUevents(const ListenerCallback& callback) const; 48 const ListenerCallback& callback) const; 49 void Poll(const ListenerCallback& callback, 54 ListenerAction RegenerateUeventsForDir(DIR* d, const ListenerCallback& callback) const;
|
D | uevent_listener.cpp | 131 const ListenerCallback& callback) const { in RegenerateUeventsForDir() 141 if (callback(uevent) == ListenerAction::kStop) return ListenerAction::kStop; in RegenerateUeventsForDir() 156 if (RegenerateUeventsForDir(d2.get(), callback) == ListenerAction::kStop) { in RegenerateUeventsForDir() 167 const ListenerCallback& callback) const { in RegenerateUeventsForPath() 171 return RegenerateUeventsForDir(d.get(), callback); in RegenerateUeventsForPath() 176 void UeventListener::RegenerateUevents(const ListenerCallback& callback) const { in RegenerateUevents() 178 if (RegenerateUeventsForPath(path, callback) == ListenerAction::kStop) return; in RegenerateUevents() 182 void UeventListener::Poll(const ListenerCallback& callback, in Poll() argument 216 if (callback(uevent) == ListenerAction::kStop) return; in Poll()
|
/system/bt/binder/android/bluetooth/ |
D | IBluetoothManager.aidl | 32 IBluetooth registerAdapter(in IBluetoothManagerCallback callback); in registerAdapter() argument 33 void unregisterAdapter(in IBluetoothManagerCallback callback); in unregisterAdapter() argument 34 void registerStateChangeCallback(in IBluetoothStateChangeCallback callback); in registerStateChangeCallback() argument 35 void unregisterStateChangeCallback(in IBluetoothStateChangeCallback callback); in unregisterStateChangeCallback() argument
|
/system/connectivity/wificond/tests/ |
D | ap_interface_impl_unittest.cpp | 121 sp<MockApInterfaceEventCallback> callback(new MockApInterfaceEventCallback()); in TEST_F() local 123 EXPECT_TRUE(binder->registerCallback(callback, &out_success).isOk()); in TEST_F() 127 EXPECT_CALL(*callback, onNumAssociatedStationsChanged(1)); in TEST_F() 129 EXPECT_CALL(*callback, onNumAssociatedStationsChanged(2)); in TEST_F() 131 EXPECT_CALL(*callback, onNumAssociatedStationsChanged(1)); in TEST_F() 144 sp<MockApInterfaceEventCallback> callback(new MockApInterfaceEventCallback()); in TEST_F() local 146 EXPECT_TRUE(binder->registerCallback(callback, &out_success).isOk()); in TEST_F() 151 EXPECT_CALL(*callback, onSoftApChannelSwitched(kTestChannelFrequency, in TEST_F()
|
/system/libhidl/transport/manager/1.1/ |
D | IServiceManager.hal | 25 * Unregister for service notifications for a specific callback. 28 * all notifications the callback receives. 31 * @param callback Client callback that was previously registered. 37 IServiceNotification callback)
|