UsageSetting Compat Stubs
Bug: 210023167 Test: make android.hardware.radio-library.compat Change-Id: Iea5e016878f375608a167ad0fdc232fd2e743fa6
This commit is contained in:
parent
3e777942d8
commit
055c02fcfb
2 changed files with 19 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue