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

Commit aae2f133 authored by Michael Butler's avatar Michael Butler Committed by Automerger Merge Worker
Browse files

Add isUpdatable to NNAPI canonical IDevice -- hal am: 9adab0cf am: 510518ca

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1554335

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I48b364d9d9dbe4694a200d4579a6f1f71a1de7e3
parents 6e62d182 510518ca
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