/system/tpm/attestation/client/ |
D | dbus_proxy.cc | 53 const CreateGoogleAttestedKeyCallback& callback) { in CreateGoogleAttestedKey() argument 54 auto on_error = [callback](brillo::Error* error) { in CreateGoogleAttestedKey() 57 callback.Run(reply); in CreateGoogleAttestedKey() 61 attestation::kCreateGoogleAttestedKey, callback, base::Bind(on_error), in CreateGoogleAttestedKey() 66 const GetKeyInfoCallback& callback) { in GetKeyInfo() argument 67 auto on_error = [callback](brillo::Error* error) { in GetKeyInfo() 70 callback.Run(reply); in GetKeyInfo() 74 attestation::kGetKeyInfo, callback, base::Bind(on_error), request); in GetKeyInfo() 78 const GetEndorsementInfoCallback& callback) { in GetEndorsementInfo() argument 79 auto on_error = [callback](brillo::Error* error) { in GetEndorsementInfo() [all …]
|
D | dbus_proxy.h | 44 const CreateGoogleAttestedKeyCallback& callback) override; 46 const GetKeyInfoCallback& callback) override; 48 const GetEndorsementInfoCallback& callback) override; 51 const GetAttestationKeyInfoCallback& callback) override; 54 const ActivateAttestationKeyCallback& callback) override; 57 const CreateCertifiableKeyCallback& callback) override; 59 const DecryptCallback& callback) override; 60 void Sign(const SignRequest& request, const SignCallback& callback) override; 63 const RegisterKeyWithChapsTokenCallback& callback) override;
|
/system/tpm/tpm_manager/client/ |
D | tpm_nvram_dbus_proxy.cc | 51 const DefineSpaceCallback& callback) { in DefineSpace() argument 52 CallMethod<DefineSpaceReply>(tpm_manager::kDefineSpace, request, callback); in DefineSpace() 56 const DestroySpaceCallback& callback) { in DestroySpace() argument 57 CallMethod<DestroySpaceReply>(tpm_manager::kDestroySpace, request, callback); in DestroySpace() 61 const WriteSpaceCallback& callback) { in WriteSpace() argument 62 CallMethod<WriteSpaceReply>(tpm_manager::kWriteSpace, request, callback); in WriteSpace() 66 const ReadSpaceCallback& callback) { in ReadSpace() argument 67 CallMethod<ReadSpaceReply>(tpm_manager::kReadSpace, request, callback); in ReadSpace() 71 const LockSpaceCallback& callback) { in LockSpace() argument 72 CallMethod<LockSpaceReply>(tpm_manager::kLockSpace, request, callback); in LockSpace() [all …]
|
D | tpm_ownership_dbus_proxy.cc | 51 const GetTpmStatusCallback& callback) { in GetTpmStatus() argument 52 CallMethod<GetTpmStatusReply>(tpm_manager::kGetTpmStatus, request, callback); in GetTpmStatus() 57 const TakeOwnershipCallback& callback) { in TakeOwnership() argument 59 callback); in TakeOwnership() 64 const RemoveOwnerDependencyCallback& callback) { in RemoveOwnerDependency() argument 66 request, callback); in RemoveOwnerDependency() 74 const CallbackType& callback) { in CallMethod() argument 75 auto on_error = [callback](brillo::Error* error) { in CallMethod() 78 callback.Run(reply); in CallMethod() 82 method_name, callback, base::Bind(on_error), request); in CallMethod()
|
D | tpm_nvram_binder_proxy.cc | 63 const DefineSpaceCallback& callback) { in DefineSpace() argument 67 method, callback, get_error); in DefineSpace() 72 const DestroySpaceCallback& callback) { in DestroySpace() argument 76 method, callback, get_error); in DestroySpace() 81 const WriteSpaceCallback& callback) { in WriteSpace() argument 84 BinderProxyHelper<WriteSpaceRequest, WriteSpaceReply> helper(method, callback, in WriteSpace() 90 const ReadSpaceCallback& callback) { in ReadSpace() argument 93 BinderProxyHelper<ReadSpaceRequest, ReadSpaceReply> helper(method, callback, in ReadSpace() 99 const LockSpaceCallback& callback) { in LockSpace() argument 102 BinderProxyHelper<LockSpaceRequest, LockSpaceReply> helper(method, callback, in LockSpace() [all …]
|
D | tpm_nvram_dbus_proxy.h | 49 const DefineSpaceCallback& callback) override; 51 const DestroySpaceCallback& callback) override; 53 const WriteSpaceCallback& callback) override; 55 const ReadSpaceCallback& callback) override; 57 const LockSpaceCallback& callback) override; 59 const ListSpacesCallback& callback) override; 61 const GetSpaceInfoCallback& callback) override; 74 const CallbackType& callback);
|
D | tpm_nvram_binder_proxy.h | 42 const DefineSpaceCallback& callback) override; 44 const DestroySpaceCallback& callback) override; 46 const WriteSpaceCallback& callback) override; 48 const ReadSpaceCallback& callback) override; 50 const LockSpaceCallback& callback) override; 52 const ListSpacesCallback& callback) override; 54 const GetSpaceInfoCallback& callback) override;
|
/system/tpm/attestation/server/ |
D | attestation_service_test.cc | 198 auto callback = [this](const CreateGoogleAttestedKeyReply& reply) { in TEST_F() local 204 service_->CreateGoogleAttestedKey(GetCreateRequest(), base::Bind(callback)); in TEST_F() 210 auto callback = [this](const CreateGoogleAttestedKeyReply& reply) { in TEST_F() local 218 service_->CreateGoogleAttestedKey(request, base::Bind(callback)); in TEST_F() 225 auto callback = [this](const CreateGoogleAttestedKeyReply& reply) { in TEST_F() local 231 service_->CreateGoogleAttestedKey(GetCreateRequest(), base::Bind(callback)); in TEST_F() 238 auto callback = [this](const CreateGoogleAttestedKeyReply& reply) { in TEST_F() local 244 service_->CreateGoogleAttestedKey(GetCreateRequest(), base::Bind(callback)); in TEST_F() 251 auto callback = [this](const CreateGoogleAttestedKeyReply& reply) { in TEST_F() local 257 service_->CreateGoogleAttestedKey(GetCreateRequest(), base::Bind(callback)); in TEST_F() [all …]
|
D | dbus_service.cc | 37 void DBusService::Register(const CompletionAction& callback) { in Register() argument 65 dbus_object_.RegisterAsync(callback); in Register() 78 auto callback = [](const SharedResponsePointer& response, in HandleCreateGoogleAttestedKey() local 84 base::Bind(callback, SharedResponsePointer(std::move(response)))); in HandleCreateGoogleAttestedKey() 96 auto callback = [](const SharedResponsePointer& response, in HandleGetKeyInfo() local 100 base::Bind(callback, SharedResponsePointer(std::move(response)))); in HandleGetKeyInfo() 113 auto callback = [](const SharedResponsePointer& response, in HandleGetEndorsementInfo() local 119 base::Bind(callback, SharedResponsePointer(std::move(response)))); in HandleGetEndorsementInfo() 132 auto callback = [](const SharedResponsePointer& response, in HandleGetAttestationKeyInfo() local 138 base::Bind(callback, SharedResponsePointer(std::move(response)))); in HandleGetAttestationKeyInfo() [all …]
|
/system/extras/simpleperf/ |
D | IOEventLoop.cpp | 27 std::function<bool()> callback; member 30 IOEvent(IOEventLoop* loop, const std::function<bool()>& callback) in IOEvent() 31 : loop(loop), e(nullptr), callback(callback), enabled(false) {} in IOEvent() 77 if (!e->callback()) { in EventCallbackFn() 93 const std::function<bool()>& callback) { in AddReadEvent() argument 97 return AddEvent(fd, EV_READ | EV_PERSIST, nullptr, callback); in AddReadEvent() 101 const std::function<bool()>& callback) { in AddWriteEvent() argument 105 return AddEvent(fd, EV_WRITE | EV_PERSIST, nullptr, callback); in AddWriteEvent() 109 const std::function<bool()>& callback) { in AddSignalEvent() argument 110 return AddEvent(sig, EV_SIGNAL | EV_PERSIST, nullptr, callback) != nullptr; in AddSignalEvent() [all …]
|
D | IOEventLoop.h | 44 IOEventRef AddReadEvent(int fd, const std::function<bool()>& callback); 48 IOEventRef AddWriteEvent(int fd, const std::function<bool()>& callback); 52 bool AddSignalEvent(int sig, const std::function<bool()>& callback); 56 const std::function<bool()>& callback); 61 const std::function<bool()>& callback); 81 const std::function<bool()>& callback);
|
/system/tpm/attestation/common/ |
D | attestation_interface.h | 46 const CreateGoogleAttestedKeyCallback& callback) = 0; 51 const GetKeyInfoCallback& callback) = 0; 59 const GetEndorsementInfoCallback& callback) = 0; 67 const GetAttestationKeyInfoCallback& callback) = 0; 75 const ActivateAttestationKeyCallback& callback) = 0; 83 const CreateCertifiableKeyCallback& callback) = 0; 88 const DecryptCallback& callback) = 0; 93 const SignCallback& callback) = 0; 101 const RegisterKeyWithChapsTokenCallback& callback) = 0;
|
/system/tpm/tpm_manager/common/ |
D | mock_tpm_nvram_interface.h | 33 const DefineSpaceCallback& callback)); 36 const DestroySpaceCallback& callback)); 39 const WriteSpaceCallback& callback)); 42 const ReadSpaceCallback& callback)); 45 const LockSpaceCallback& callback)); 48 const ListSpacesCallback& callback)); 51 const GetSpaceInfoCallback& callback));
|
D | tpm_nvram_interface.h | 37 const DefineSpaceCallback& callback) = 0; 42 const DestroySpaceCallback& callback) = 0; 47 const WriteSpaceCallback& callback) = 0; 52 const ReadSpaceCallback& callback) = 0; 57 const LockSpaceCallback& callback) = 0; 62 const ListSpacesCallback& callback) = 0; 67 const GetSpaceInfoCallback& callback) = 0;
|
/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/tpm/tpm_manager/server/ |
D | tpm_manager_service.h | 75 const GetTpmStatusCallback& callback) override; 77 const TakeOwnershipCallback& callback) override; 80 const RemoveOwnerDependencyCallback& callback) override; 84 const DefineSpaceCallback& callback) override; 86 const DestroySpaceCallback& callback) override; 88 const WriteSpaceCallback& callback) override; 90 const ReadSpaceCallback& callback) override; 92 const LockSpaceCallback& callback) override; 94 const ListSpacesCallback& callback) override; 96 const GetSpaceInfoCallback& callback) override; [all …]
|
D | tpm_manager_service.cc | 65 const GetTpmStatusCallback& callback) { in GetTpmStatus() argument 67 request, callback, &TpmManagerService::GetTpmStatusTask); in GetTpmStatus() 96 const TakeOwnershipCallback& callback) { in TakeOwnership() argument 98 request, callback, &TpmManagerService::TakeOwnershipTask); in TakeOwnership() 118 const RemoveOwnerDependencyCallback& callback) { in RemoveOwnerDependency() argument 120 request, callback, &TpmManagerService::RemoveOwnerDependencyTask); in RemoveOwnerDependency() 160 const DefineSpaceCallback& callback) { in DefineSpace() argument 161 PostTaskToWorkerThread<DefineSpaceReply>(request, callback, in DefineSpace() 179 const DestroySpaceCallback& callback) { in DestroySpace() argument 181 request, callback, &TpmManagerService::DestroySpaceTask); in DestroySpace() [all …]
|
D | binder_service_test.cc | 75 [](const TpmOwnershipInterface::GetTpmStatusCallback& callback) { in TEST_F() argument 78 base::Closure copy = base::Bind(callback, reply); in TEST_F() 79 callback.Run(reply); in TEST_F() 92 const TpmOwnershipInterface::GetTpmStatusCallback& callback) { in TEST_F() argument 101 callback.Run(reply); in TEST_F() 119 const TpmOwnershipInterface::TakeOwnershipCallback& callback) { in TEST_F() argument 122 callback.Run(reply); in TEST_F() 139 callback) { in TEST_F() argument 144 callback.Run(reply); in TEST_F() 161 const TpmNvramInterface::DefineSpaceCallback& callback) { in TEST_F() argument [all …]
|
D | dbus_service_test.cc | 95 [](const TpmOwnershipInterface::GetTpmStatusCallback& callback) { in TEST_F() argument 98 base::Closure copy = base::Bind(callback, reply); in TEST_F() 99 callback.Run(reply); in TEST_F() 111 const TpmOwnershipInterface::GetTpmStatusCallback& callback) { in TEST_F() argument 120 callback.Run(reply); in TEST_F() 137 const TpmOwnershipInterface::TakeOwnershipCallback& callback) { in TEST_F() argument 140 callback.Run(reply); in TEST_F() 156 callback) { in TEST_F() argument 161 callback.Run(reply); in TEST_F() 178 const TpmNvramInterface::DefineSpaceCallback& callback) { in TEST_F() argument [all …]
|
/system/tpm/trunks/ |
D | background_command_transceiver.cc | 39 const trunks::CommandTransceiver::ResponseCallback& callback, in PostCallbackToTaskRunner() argument 42 base::Closure task = base::Bind(callback, response); in PostCallbackToTaskRunner() 61 const ResponseCallback& callback) { in SendCommand() argument 64 base::Bind(PostCallbackToTaskRunner, callback, in SendCommand() 73 next_transceiver_->SendCommand(command, callback); in SendCommand() 84 ResponseCallback callback = in SendCommandAndWait() local 90 command, callback); in SendCommandAndWait() 101 const ResponseCallback& callback) { in SendCommandTask() argument 102 next_transceiver_->SendCommand(command, callback); in SendCommandTask()
|
D | mock_tpm.h | 37 const StartupResponse& callback)); 44 const ShutdownResponse& callback)); 51 const SelfTestResponse& callback)); 58 const IncrementalSelfTestResponse& callback)); 65 const GetTestResultResponse& callback)); 81 const StartAuthSessionResponse& callback) override; 91 const StartAuthSessionResponse& callback)); 121 const PolicyRestartResponse& callback)); 134 const CreateResponse& callback)); 165 const LoadResponse& callback)); [all …]
|
/system/update_engine/ |
D | binder_service_android.cc | 47 for (auto& callback : callbacks_) { in SendStatusUpdate() local 48 callback->onStatusUpdate(last_status_, last_progress_); in SendStatusUpdate() 54 for (auto& callback : callbacks_) { in SendPayloadApplicationComplete() local 55 callback->onPayloadApplicationComplete(static_cast<int>(error_code)); in SendPayloadApplicationComplete() 60 const android::sp<IUpdateEngineCallback>& callback, bool* return_value) { in bind() argument 61 callbacks_.emplace_back(callback); in bind() 64 IUpdateEngineCallback::asBinder(callback); in bind() 77 callback->onStatusUpdate(last_status_, last_progress_); in bind() 84 const android::sp<IUpdateEngineCallback>& callback, bool* return_value) { in unbind() argument 86 IUpdateEngineCallback::asBinder(callback); in unbind() [all …]
|
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()
|
/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 …]
|
/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 …]
|