Lines Matching refs:deathHandler
103 sp<IPreparedModelDeathHandler> deathHandler = new (std::nothrow) IPreparedModelDeathHandler(); in makeVersionedIPreparedModel() local
104 if (!deathHandler) { in makeVersionedIPreparedModel()
113 const Return<bool> ret = preparedModel->linkToDeath(deathHandler, 0); in makeVersionedIPreparedModel()
122 std::move(deathHandler)); in makeVersionedIPreparedModel()
126 sp<IPreparedModelDeathHandler> deathHandler) in VersionedIPreparedModel() argument
129 mDeathHandler(std::move(deathHandler)) {} in VersionedIPreparedModel()
250 sp<IDeviceDeathHandler> deathHandler = new (std::nothrow) IDeviceDeathHandler(); in create() local
251 if (!deathHandler) { in create()
260 const Return<bool> ret = device->linkToDeath(deathHandler, 0); in create()
269 return Core(std::move(device), std::move(deathHandler)); in create()
273 VersionedIDevice::Core::Core(sp<V1_0::IDevice> device, sp<IDeviceDeathHandler> deathHandler) in Core() argument
277 mDeathHandler(std::move(deathHandler)) {} in Core()
318 const sp<IDeviceDeathHandler>& deathHandler) { in callProtected() argument
319 const auto scoped = deathHandler->protectCallback(callback); in callProtected()
364 sp<IDeviceDeathHandler> deathHandler; in recoverable() local
365 std::tie(device, deathHandler) = getDeviceAndDeathHandler<T_IDevice>(); in recoverable()
367 Return<T_Return> ret = callProtected(context, fn, device, callback, deathHandler); in recoverable()
399 std::tie(device, deathHandler) = mCore.getDeviceAndDeathHandler<T_IDevice>(); in recoverable()
401 ret = callProtected(context, fn, device, callback, deathHandler); in recoverable()