Home
last modified time | relevance | path

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

/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
DProtectCallback.h52 class DeathHandler final {
54 static nn::GeneralResult<DeathHandler> create(std::shared_ptr<ndk::ICInterface> object);
56 DeathHandler(const DeathHandler&) = delete;
57 DeathHandler(DeathHandler&&) noexcept = default;
58 DeathHandler& operator=(const DeathHandler&) = delete;
59 DeathHandler& operator=(DeathHandler&&) noexcept = delete;
60 ~DeathHandler();
70 DeathHandler(std::shared_ptr<ndk::ICInterface> object,
DDevice.h51 std::shared_ptr<aidl_hal::IDevice> device, DeathHandler deathHandler);
92 const DeathHandler kDeathHandler;
/hardware/interfaces/neuralnetworks/utils/common/include/nnapi/hal/
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);
/hardware/interfaces/neuralnetworks/utils/common/src/
DProtectCallback.cpp59 nn::GeneralResult<DeathHandler> DeathHandler::create(sp<hidl::base::V1_0::IBase> object) { in create()
72 return DeathHandler(std::move(object), std::move(deathRecipient)); in create()
75 DeathHandler::DeathHandler(sp<hidl::base::V1_0::IBase> object, sp<DeathRecipient> deathRecipient) in DeathHandler() function in android::hardware::neuralnetworks::utils::DeathHandler
81 DeathHandler::~DeathHandler() { in ~DeathHandler()
90 [[nodiscard]] base::ScopeGuard<DeathHandler::Cleanup> DeathHandler::protectCallback( in protectCallback()
98 void DeathHandler::protectCallbackForLifetimeOfDeathHandler(IProtectedCallback* killable) const { in protectCallbackForLifetimeOfDeathHandler()
/hardware/interfaces/neuralnetworks/aidl/utils/src/
DProtectCallback.cpp61 nn::GeneralResult<DeathHandler> DeathHandler::create(std::shared_ptr<ndk::ICInterface> object) { in create()
79 return DeathHandler(std::move(object), std::move(deathRecipient), std::move(deathMonitor)); in create()
82 DeathHandler::DeathHandler(std::shared_ptr<ndk::ICInterface> object, in DeathHandler() function in aidl::android::hardware::neuralnetworks::utils::DeathHandler
93 DeathHandler::~DeathHandler() { in ~DeathHandler()
104 [[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.0/utils/include/nnapi/hal/1.0/
DPreparedModel.h47 hal::utils::DeathHandler deathHandler);
73 const hal::utils::DeathHandler kDeathHandler;
DDevice.h49 sp<V1_0::IDevice> device, hal::utils::DeathHandler deathHandler);
86 const hal::utils::DeathHandler kDeathHandler;
/hardware/interfaces/neuralnetworks/1.1/utils/include/nnapi/hal/1.1/
DDevice.h49 sp<V1_1::IDevice> device, hal::utils::DeathHandler deathHandler);
86 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);
81 const hal::utils::DeathHandler kDeathHandler;
DDevice.h68 sp<V1_2::IDevice> device, hal::utils::DeathHandler deathHandler);
107 const hal::utils::DeathHandler kDeathHandler;
DExecutionBurstController.h167 neuralnetworks::utils::DeathHandler deathHandler);
200 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);
90 const hal::utils::DeathHandler kDeathHandler;
DPreparedModel.h47 sp<V1_3::IPreparedModel> preparedModel, hal::utils::DeathHandler deathHandler);
90 const hal::utils::DeathHandler kDeathHandler;
/hardware/interfaces/neuralnetworks/1.0/utils/src/
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/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()
/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.cpp95 auto deathHandler = NN_TRY(hal::utils::DeathHandler::create(preparedModel)); in create()
102 hal::utils::DeathHandler deathHandler) in PreparedModel()