Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 609874e6 authored by Michael Butler's avatar Michael Butler Committed by Android (Google) Code Review
Browse files

Merge "Add isUpdatable to NNAPI canonical IDevice -- hal"

parents 38b1d5cb 080fbf75
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@ class Device final : public nn::IDevice {
    const std::string& getVersionString() const override;
    nn::Version getFeatureLevel() const override;
    nn::DeviceType getType() const override;
    bool isUpdatable() const override;
    const std::vector<nn::Extension>& getSupportedExtensions() const override;
    const nn::Capabilities& getCapabilities() const override;
    std::pair<uint32_t, uint32_t> getNumberOfCacheFilesNeeded() const override;
+4 −0
Original line number Diff line number Diff line
@@ -106,6 +106,10 @@ nn::DeviceType Device::getType() const {
    return nn::DeviceType::OTHER;
}

bool Device::isUpdatable() const {
    return false;
}

const std::vector<nn::Extension>& Device::getSupportedExtensions() const {
    return kExtensions;
}
+1 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@ class Device final : public nn::IDevice {
    const std::string& getVersionString() const override;
    nn::Version getFeatureLevel() const override;
    nn::DeviceType getType() const override;
    bool isUpdatable() const override;
    const std::vector<nn::Extension>& getSupportedExtensions() const override;
    const nn::Capabilities& getCapabilities() const override;
    std::pair<uint32_t, uint32_t> getNumberOfCacheFilesNeeded() const override;
+4 −0
Original line number Diff line number Diff line
@@ -106,6 +106,10 @@ nn::DeviceType Device::getType() const {
    return nn::DeviceType::UNKNOWN;
}

bool Device::isUpdatable() const {
    return false;
}

const std::vector<nn::Extension>& Device::getSupportedExtensions() const {
    return kExtensions;
}
+1 −0
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ class Device final : public nn::IDevice {
    const std::string& getVersionString() const override;
    nn::Version getFeatureLevel() const override;
    nn::DeviceType getType() const override;
    bool isUpdatable() const override;
    const std::vector<nn::Extension>& getSupportedExtensions() const override;
    const nn::Capabilities& getCapabilities() const override;
    std::pair<uint32_t, uint32_t> getNumberOfCacheFilesNeeded() const override;
Loading