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

Commit 055c02fc authored by Nathan Harold's avatar Nathan Harold
Browse files

UsageSetting Compat Stubs

Bug: 210023167
Test: make android.hardware.radio-library.compat
Change-Id: Iea5e016878f375608a167ad0fdc232fd2e743fa6
parent 3e777942
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -88,6 +88,10 @@ class RadioNetwork : public RadioCompatBase,
    ::ndk::ScopedAStatus stopNetworkScan(int32_t serial) override;
    ::ndk::ScopedAStatus supplyNetworkDepersonalization(int32_t serial,
                                                        const std::string& netPin) override;
    ::ndk::ScopedAStatus setUsageSetting(
            int32_t serial,
            ::aidl::android::hardware::radio::network::UsageSetting usageSetting) override;
    ::ndk::ScopedAStatus getUsageSetting(int32_t serial) override;

  public:
    using RadioCompatBase::RadioCompatBase;
+15 −0
Original line number Diff line number Diff line
@@ -278,4 +278,19 @@ ScopedAStatus RadioNetwork::supplyNetworkDepersonalization(int32_t ser, const st
    return ok();
}

// TODO(b/210498497): is there a cleaner way to send a response back to Android, even though these
// methods must never be called?
ScopedAStatus RadioNetwork::setUsageSetting(
        int32_t ser, ::aidl::android::hardware::radio::network::UsageSetting) {
    LOG_CALL << ser;
    LOG(ERROR) << "setUsageSetting is unsupported by HIDL HALs";
    return ok();
}

ScopedAStatus RadioNetwork::getUsageSetting(int32_t ser) {
    LOG_CALL << ser;
    LOG(ERROR) << "getUsageSetting is unsupported by HIDL HALs";
    return ok();
}

}  // namespace android::hardware::radio::compat