Lines Matching refs:hal
80 const hal::DeviceFactory& makeDevice);
101 VersionedIDevice(hal::Capabilities capabilities,
102 std::vector<hal::Extension> supportedExtensions, int32_t type,
105 std::string serviceName, const hal::DeviceFactory& makeDevice, Core core);
112 const hal::Capabilities& getCapabilities() const;
125 const std::vector<hal::Extension>& getSupportedExtensions() const;
155 std::pair<hal::ErrorStatus, hal::hidl_vec<bool>> getSupportedOperations(
223 const hal::ModelFactory& makeModel, hal::ExecutionPreference preference, hal::Priority,
225 const std::optional<hal::CacheToken>& maybeToken) const;
369 std::tuple<hal::ErrorStatus, sp<hal::IBuffer>, uint32_t> allocate(
370 const hal::BufferDesc& desc,
372 const hal::hidl_vec<hal::BufferRole>& inputRoles,
373 const hal::hidl_vec<hal::BufferRole>& outputRoles) const;
385 const hal::Capabilities kCapabilities;
386 const std::vector<hal::Extension> kSupportedExtensions;
393 const hal::Model& model, hal::ExecutionPreference preference, hal::Priority priority,
395 const std::optional<hal::CacheToken>& maybeToken) const;
398 const hal::CacheToken& token) const;
429 Core(sp<hal::V1_0::IDevice> device, sp<IDeviceDeathHandler> deathHandler);
459 static std::optional<Core> create(sp<hal::V1_0::IDevice> device);
469 sp<hal::V1_0::IDevice> getDevice() const { in getDevice()
473 sp<hal::V1_1::IDevice> getDevice() const { in getDevice()
477 sp<hal::V1_2::IDevice> getDevice() const { in getDevice()
481 sp<hal::V1_3::IDevice> getDevice() const { in getDevice()
514 sp<hal::V1_0::IDevice> mDeviceV1_0;
515 sp<hal::V1_1::IDevice> mDeviceV1_1;
516 sp<hal::V1_2::IDevice> mDeviceV1_2;
517 sp<hal::V1_3::IDevice> mDeviceV1_3;
551 hal::Return<T_Return> recoverable(
553 const std::function<hal::Return<T_Return>(const sp<T_IDevice>&)>& fn,
560 const hal::DeviceFactory kMakeDevice;
594 VersionedIPreparedModel(sp<hal::V1_0::IPreparedModel> preparedModel,
679 std::tuple<int, std::vector<hal::OutputShape>, hal::Timing> execute(
680 const hal::Request& request, hal::MeasureTiming measure,
682 const hal::OptionalTimeoutDuration& loopTimeoutDuration, bool preferSynchronous) const;
766 std::tuple<int, hal::hidl_handle, sp<hal::IFencedExecutionCallback>, hal::Timing> executeFenced(
767 const hal::Request& request, const hal::hidl_vec<hal::hidl_handle>& waitFor,
768 hal::MeasureTiming measure, const std::optional<Deadline>& deadline,
769 const hal::OptionalTimeoutDuration& loopTimeoutDuration,
770 const hal::OptionalTimeoutDuration& timeoutDurationAfterFence);
775 std::tuple<int, std::vector<hal::OutputShape>, hal::Timing> executeAsynchronously(
776 const hal::Request& request, hal::MeasureTiming timing,
778 const hal::OptionalTimeoutDuration& loopTimeoutDuration) const;
779 std::tuple<int, std::vector<hal::OutputShape>, hal::Timing> executeSynchronously(
780 const hal::Request& request, hal::MeasureTiming measure,
782 const hal::OptionalTimeoutDuration& loopTimeoutDuration) const;
789 sp<hal::V1_3::IPreparedModel> getV1_3() const { return mPreparedModelV1_3; } in getV1_3()
813 sp<hal::V1_0::IPreparedModel> mPreparedModelV1_0;
814 sp<hal::V1_2::IPreparedModel> mPreparedModelV1_2;
815 sp<hal::V1_3::IPreparedModel> mPreparedModelV1_3;