/system/chre/platform/slpi/ |
D | debug_dump.cc | 38 debugDumpCbFunc *callback; member 48 debugDumpReadyCbFunc *callback; member 65 bool registerDebugDumpCallback(const char *name, debugDumpCbFunc *callback, in registerDebugDumpCallback() argument 68 return ashRegisterDebugDumpCallback(name, callback, cookie); in registerDebugDumpCallback() 71 gDumpCallback.callback = callback; in registerDebugDumpCallback() 77 void unregisterDebugDumpCallback(debugDumpCbFunc *callback) { in unregisterDebugDumpCallback() argument 79 ashUnregisterDebugDumpCallback(callback); in unregisterDebugDumpCallback() 81 UNUSED_VAR(callback); in unregisterDebugDumpCallback() 82 gDumpCallback.callback = nullptr; in unregisterDebugDumpCallback() 96 } else if (gDebugDumpState.callback != nullptr) { in commitDebugDump() [all …]
|
/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()
|
/system/bt/gd/common/ |
D | callback_list.h | 47 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()
|
D | observer_registry.h | 36 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()
|
/system/hardware/interfaces/wifi/keystore/1.0/vts/functional/ |
D | VtsHalWifiKeystoreV1_0TargetTest.cpp | 227 auto callback = [&statusCode](IKeystore::KeystoreStatusCode status, in TEST_P() local 235 keystore->sign(nullptr, dataToSign, callback); in TEST_P() 242 auto callback = [&statusCode](IKeystore::KeystoreStatusCode status, in TEST_P() local 250 keystore->sign("", dataToSign, callback); in TEST_P() 261 auto callback = [&callbackInvoked](IKeystore::KeystoreStatusCode /*status*/, in TEST_P() local 275 keystore->sign(kTestKeyName, dataToSign, callback); in TEST_P() 286 auto callback = [&statusCode](IKeystore::KeystoreStatusCode status, in TEST_P() local 298 keystore->sign(kTestKeyName, dataToSign, callback); in TEST_P() 309 auto callback = [&statusCode](IKeystore::KeystoreStatusCode status, in TEST_P() local 323 keystore->sign(kTestKeyName, dataToSign, callback); in TEST_P() [all …]
|
/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 | 73 pid_t Exec(const std::vector<std::string>& cmd, const ExecCallback& callback); 77 const ExecCallback& callback); 114 explicit SubprocessRecord(const ExecCallback& callback) in SubprocessRecord() 115 : callback(callback) {} in SubprocessRecord() 118 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/update_engine/ |
D | binder_service_android.cc | 61 for (auto& callback : callbacks_) { in SendStatusUpdate() local 62 callback->onStatusUpdate(last_status_, last_progress_); in SendStatusUpdate() 68 for (auto& callback : callbacks_) { in SendPayloadApplicationComplete() local 69 callback->onPayloadApplicationComplete(static_cast<int>(error_code)); in SendPayloadApplicationComplete() 74 const android::sp<IUpdateEngineCallback>& callback, bool* return_value) { in bind() argument 80 auto status = callback->onStatusUpdate(last_status_, last_progress_); in bind() 89 callbacks_.emplace_back(callback); in bind() 92 IUpdateEngineCallback::asBinder(callback); in bind() 106 const android::sp<IUpdateEngineCallback>& callback, bool* return_value) { in unbind() argument 108 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/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/gd/neighbor/ |
D | name.cc | 35 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/ |
D | metric_id_allocator_unittest.cc | 53 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/bt/vendor_libs/test_vendor_lib/model/setup/ |
D | async_manager.cc | 274 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() 343 std::chrono::milliseconds period, const TaskCallback& callback, in Task() argument 348 callback(callback), in Task() 352 const TaskCallback& callback, AsyncUserId user) in Task() argument 355 callback(callback), in Task() 373 TaskCallback callback; member in test_vendor_lib::AsyncManager::AsyncTaskManager::Task 435 TaskCallback callback; in ThreadRoutine() local [all …]
|
/system/bt/gd/hci/ |
D | le_address_manager.h | 69 void AckPause(LeAddressManagerCallback* callback); 70 void AckResume(LeAddressManagerCallback* callback); 71 virtual AddressPolicy Register(LeAddressManagerCallback* callback); 72 virtual void Unregister(LeAddressManagerCallback* callback); 92 void ack_pause(LeAddressManagerCallback* callback); 94 void ack_resume(LeAddressManagerCallback* callback); 95 void register_client(LeAddressManagerCallback* callback); 96 void unregister_client(LeAddressManagerCallback* callback);
|
/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 | 52 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;
|
/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 35 void registerStateChangeCallback(in IBluetoothStateChangeCallback callback); in registerStateChangeCallback() argument 37 void unregisterStateChangeCallback(in IBluetoothStateChangeCallback callback); in unregisterStateChangeCallback() argument
|