Home
last modified time | relevance | path

Searched refs:DeathHandler (Results 1 – 23 of 23) sorted by relevance

/hardware/interfaces/neuralnetworks/1.0/utils/include/nnapi/hal/1.0/
DProtectCallback.h71 class DeathHandler final {
73 static nn::GeneralResult<DeathHandler> create(sp<hidl::base::V1_0::IBase> object);
75 DeathHandler(const DeathHandler&) = delete;
76 DeathHandler(DeathHandler&&) noexcept = default;
77 DeathHandler& operator=(const DeathHandler&) = delete;
78 DeathHandler& operator=(DeathHandler&&) noexcept = delete;
79 ~DeathHandler();
93 DeathHandler(sp<hidl::base::V1_0::IBase> object, sp<DeathRecipient> deathRecipient);
DPreparedModel.h48 hal::utils::DeathHandler deathHandler);
79 const hal::utils::DeathHandler kDeathHandler;
DDevice.h50 sp<V1_0::IDevice> device, hal::utils::DeathHandler deathHandler);
88 const hal::utils::DeathHandler kDeathHandler;
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
DProtectCallback.h82 class DeathHandler final {
84 static nn::GeneralResult<DeathHandler> create(std::shared_ptr<ndk::ICInterface> object);
86 DeathHandler(const DeathHandler&) = delete;
87 DeathHandler(DeathHandler&&) noexcept = default;
88 DeathHandler& operator=(const DeathHandler&) = delete;
89 DeathHandler& operator=(DeathHandler&&) noexcept = delete;
90 ~DeathHandler();
100 DeathHandler(std::shared_ptr<ndk::ICInterface> object,
DDevice.h53 std::shared_ptr<aidl_hal::IDevice> device, DeathHandler deathHandler);
96 const DeathHandler kDeathHandler;
/hardware/interfaces/neuralnetworks/1.0/utils/src/
DProtectCallback.cpp60 nn::GeneralResult<DeathHandler> DeathHandler::create(sp<hidl::base::V1_0::IBase> object) { in create()
73 return DeathHandler(std::move(object), std::move(deathRecipient)); in create()
76 DeathHandler::DeathHandler(sp<hidl::base::V1_0::IBase> object, sp<DeathRecipient> deathRecipient) in DeathHandler() function in android::hardware::neuralnetworks::utils::DeathHandler
82 DeathHandler::~DeathHandler() { in ~DeathHandler()
91 [[nodiscard]] base::ScopeGuard<DeathHandler::Cleanup> DeathHandler::protectCallback( in protectCallback()
99 void DeathHandler::protectCallbackForLifetimeOfDeathHandler(IProtectedCallback* killable) const { in protectCallbackForLifetimeOfDeathHandler()
DPreparedModel.cpp50 auto deathHandler = NN_TRY(hal::utils::DeathHandler::create(preparedModel)); in create()
56 hal::utils::DeathHandler deathHandler) in PreparedModel()
DDevice.cpp80 auto deathHandler = NN_TRY(hal::utils::DeathHandler::create(device)); in create()
87 sp<V1_0::IDevice> device, hal::utils::DeathHandler deathHandler) in Device()
/hardware/interfaces/neuralnetworks/aidl/utils/src/
DProtectCallback.cpp93 nn::GeneralResult<DeathHandler> DeathHandler::create(std::shared_ptr<ndk::ICInterface> object) { in create()
119 return DeathHandler(std::move(object), std::move(deathRecipient), std::move(deathMonitor)); in create()
122 DeathHandler::DeathHandler(std::shared_ptr<ndk::ICInterface> object, in DeathHandler() function in aidl::android::hardware::neuralnetworks::utils::DeathHandler
133 DeathHandler::~DeathHandler() { in ~DeathHandler()
145 [[nodiscard]] ::android::base::ScopeGuard<DeathHandler::Cleanup> DeathHandler::protectCallback( in protectCallback()
DDevice.cpp144 auto deathHandler = NN_TRY(DeathHandler::create(device)); in create()
155 std::shared_ptr<aidl_hal::IDevice> device, DeathHandler deathHandler) in Device()
/hardware/interfaces/neuralnetworks/1.1/utils/include/nnapi/hal/1.1/
DDevice.h49 sp<V1_1::IDevice> device, hal::utils::DeathHandler deathHandler);
87 const hal::utils::DeathHandler kDeathHandler;
/hardware/interfaces/neuralnetworks/1.2/utils/include/nnapi/hal/1.2/
DPreparedModel.h48 sp<V1_2::IPreparedModel> preparedModel, hal::utils::DeathHandler deathHandler);
86 const hal::utils::DeathHandler kDeathHandler;
DDevice.h68 sp<V1_2::IDevice> device, hal::utils::DeathHandler deathHandler);
108 const hal::utils::DeathHandler kDeathHandler;
DBurst.h165 neuralnetworks::utils::DeathHandler deathHandler);
201 const neuralnetworks::utils::DeathHandler kDeathHandler;
/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/
DDevice.h51 sp<V1_3::IDevice> device, hal::utils::DeathHandler deathHandler);
91 const hal::utils::DeathHandler kDeathHandler;
DPreparedModel.h47 sp<V1_3::IPreparedModel> preparedModel, hal::utils::DeathHandler deathHandler);
95 const hal::utils::DeathHandler kDeathHandler;
/hardware/interfaces/neuralnetworks/utils/
DREADME.md109 died. nnapi/hal/ProtectCallback.h's `DeathHandler` uses `hidl_death_recipient`s to detect when the
110 driver process has died, and `DeathHandler` will unblock any thread waiting on the results of an
112 the `IProtectedCallback` object must have been registered via `DeathHandler::protectCallback()`.
124 object using `AIBinder_linkToDeath`. nnapi/hal/aidl/ProtectCallback.h provides `DeathHandler`
125 object that is a direct analog of HIDL `DeathHandler`, only using libbinder_ndk objects for
/hardware/interfaces/neuralnetworks/1.1/utils/src/
DDevice.cpp80 auto deathHandler = NN_TRY(hal::utils::DeathHandler::create(device)); in create()
87 sp<V1_1::IDevice> device, hal::utils::DeathHandler deathHandler) in Device()
/hardware/interfaces/neuralnetworks/1.2/utils/src/
DPreparedModel.cpp55 auto deathHandler = NN_TRY(hal::utils::DeathHandler::create(preparedModel)); in create()
62 hal::utils::DeathHandler deathHandler) in PreparedModel()
DDevice.cpp165 auto deathHandler = NN_TRY(hal::utils::DeathHandler::create(device)); in create()
176 hal::utils::DeathHandler deathHandler) in Device()
DBurst.cpp276 auto deathHandler = NN_TRY(neuralnetworks::utils::DeathHandler::create(burstContext)); in create()
292 neuralnetworks::utils::DeathHandler deathHandler) in Burst()
/hardware/interfaces/neuralnetworks/1.3/utils/src/
DDevice.cpp116 auto deathHandler = NN_TRY(hal::utils::DeathHandler::create(device)); in create()
127 hal::utils::DeathHandler deathHandler) in Device()
DPreparedModel.cpp94 auto deathHandler = NN_TRY(hal::utils::DeathHandler::create(preparedModel)); in create()
101 hal::utils::DeathHandler deathHandler) in PreparedModel()