From daf0b7321b37f9c42e040a1b24d07afff72671f5 Mon Sep 17 00:00:00 2001 From: Willi Ye Date: Tue, 22 Oct 2019 22:48:05 +0200 Subject: [PATCH] samsung: add radio 1.3 service Change-Id: I9b8710c5f322ec928a2106072f002eaf0ecd7e82 --- hidl/radio/1.3/.clang-format | 11 + hidl/radio/1.3/Android.bp | 24 + hidl/radio/1.3/Radio.cpp | 854 +++++++++++ hidl/radio/1.3/Radio.h | 303 ++++ hidl/radio/1.3/SecRadioIndication.cpp | 513 +++++++ hidl/radio/1.3/SecRadioIndication.h | 226 +++ hidl/radio/1.3/SecRadioResponse.cpp | 1273 +++++++++++++++++ hidl/radio/1.3/SecRadioResponse.h | 563 ++++++++ ...ardware.radio@1.3-radio-service.samsung.rc | 4 + hidl/radio/1.3/radio-service.cpp | 45 + interfaces/Android.bp | 4 + interfaces/current.txt | 4 + interfaces/radio/1.2/Android.bp | 20 + interfaces/radio/1.2/IRadio.hal | 72 + interfaces/radio/1.2/IRadioIndication.hal | 35 + interfaces/radio/1.2/IRadioResponse.hal | 69 + interfaces/radio/1.2/types.hal | 209 +++ 17 files changed, 4229 insertions(+) create mode 100644 hidl/radio/1.3/.clang-format create mode 100644 hidl/radio/1.3/Android.bp create mode 100644 hidl/radio/1.3/Radio.cpp create mode 100644 hidl/radio/1.3/Radio.h create mode 100644 hidl/radio/1.3/SecRadioIndication.cpp create mode 100644 hidl/radio/1.3/SecRadioIndication.h create mode 100644 hidl/radio/1.3/SecRadioResponse.cpp create mode 100644 hidl/radio/1.3/SecRadioResponse.h create mode 100644 hidl/radio/1.3/android.hardware.radio@1.3-radio-service.samsung.rc create mode 100644 hidl/radio/1.3/radio-service.cpp create mode 100644 interfaces/Android.bp create mode 100644 interfaces/current.txt create mode 100644 interfaces/radio/1.2/Android.bp create mode 100644 interfaces/radio/1.2/IRadio.hal create mode 100644 interfaces/radio/1.2/IRadioIndication.hal create mode 100644 interfaces/radio/1.2/IRadioResponse.hal create mode 100644 interfaces/radio/1.2/types.hal diff --git a/hidl/radio/1.3/.clang-format b/hidl/radio/1.3/.clang-format new file mode 100644 index 00000000..ae4a4513 --- /dev/null +++ b/hidl/radio/1.3/.clang-format @@ -0,0 +1,11 @@ +BasedOnStyle: Google +AccessModifierOffset: -2 +AllowShortFunctionsOnASingleLine: Inline +ColumnLimit: 100 +CommentPragmas: NOLINT:.* +DerivePointerAlignment: false +IndentWidth: 4 +PointerAlignment: Left +TabWidth: 4 +UseTab: Never +PenaltyExcessCharacter: 32 diff --git a/hidl/radio/1.3/Android.bp b/hidl/radio/1.3/Android.bp new file mode 100644 index 00000000..8d5e57ea --- /dev/null +++ b/hidl/radio/1.3/Android.bp @@ -0,0 +1,24 @@ +cc_binary { + name: "android.hardware.radio@1.3-radio-service.samsung", + init_rc: ["android.hardware.radio@1.3-radio-service.samsung.rc"], + relative_install_path: "hw", + vendor: true, + srcs: [ + "Radio.cpp", + "SecRadioIndication.cpp", + "SecRadioResponse.cpp", + "radio-service.cpp", + ], + shared_libs: [ + "libhidlbase", + "libhidltransport", + "liblog", + "libutils", + "android.hardware.radio@1.0", + "android.hardware.radio@1.1", + "android.hardware.radio@1.2", + "android.hardware.radio@1.3", + "vendor.samsung.hardware.radio@1.2", + "android.hidl.safe_union@1.0", + ], +} diff --git a/hidl/radio/1.3/Radio.cpp b/hidl/radio/1.3/Radio.cpp new file mode 100644 index 00000000..f4e7e468 --- /dev/null +++ b/hidl/radio/1.3/Radio.cpp @@ -0,0 +1,854 @@ +/* + * Copyright (C) 2019, The LineageOS Project + * + * Licensed under the Apache License, Version 2.1 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.1 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "Radio.h" + +namespace android { +namespace hardware { +namespace radio { +namespace V1_3 { +namespace implementation { + +Radio::Radio(const std::string& interfaceName) : interfaceName(interfaceName) {} + +sp<::vendor::samsung::hardware::radio::V1_2::IRadio> Radio::getSecIRadio() { + std::lock_guard lock(secIRadioMutex); + if (!secIRadio) { + secIRadio = ::vendor::samsung::hardware::radio::V1_2::IRadio::getService(interfaceName); + } + return secIRadio; +} + +// Methods from ::android::hardware::radio::V1_0::IRadio follow. +Return Radio::setResponseFunctions( + const sp<::android::hardware::radio::V1_0::IRadioResponse>& radioResponse, + const sp<::android::hardware::radio::V1_0::IRadioIndication>& radioIndication) { + sp<::vendor::samsung::hardware::radio::V1_2::IRadioResponse> secRadioResponse = + new SecRadioResponse( + interfaceName == RIL1_SERVICE_NAME ? 1 : 2, + ::android::hardware::radio::V1_2::IRadioResponse::castFrom(radioResponse) + .withDefault(nullptr)); + sp<::vendor::samsung::hardware::radio::V1_2::IRadioIndication> secRadioIndication = + new SecRadioIndication( + ::android::hardware::radio::V1_2::IRadioIndication::castFrom(radioIndication) + .withDefault(nullptr)); + getSecIRadio()->setResponseFunctions(secRadioResponse, secRadioIndication); + return Void(); +} + +Return Radio::getIccCardStatus(int32_t serial) { + getSecIRadio()->getIccCardStatus(serial); + return Void(); +} + +Return Radio::supplyIccPinForApp(int32_t serial, const hidl_string& pin, + const hidl_string& aid) { + getSecIRadio()->supplyIccPinForApp(serial, pin, aid); + return Void(); +} + +Return Radio::supplyIccPukForApp(int32_t serial, const hidl_string& puk, + const hidl_string& pin, const hidl_string& aid) { + getSecIRadio()->supplyIccPukForApp(serial, puk, pin, aid); + return Void(); +} + +Return Radio::supplyIccPin2ForApp(int32_t serial, const hidl_string& pin2, + const hidl_string& aid) { + getSecIRadio()->supplyIccPin2ForApp(serial, pin2, aid); + return Void(); +} + +Return Radio::supplyIccPuk2ForApp(int32_t serial, const hidl_string& puk2, + const hidl_string& pin2, const hidl_string& aid) { + getSecIRadio()->supplyIccPuk2ForApp(serial, puk2, pin2, aid); + return Void(); +} + +Return Radio::changeIccPinForApp(int32_t serial, const hidl_string& oldPin, + const hidl_string& newPin, const hidl_string& aid) { + getSecIRadio()->changeIccPinForApp(serial, oldPin, newPin, aid); + return Void(); +} + +Return Radio::changeIccPin2ForApp(int32_t serial, const hidl_string& oldPin2, + const hidl_string& newPin2, const hidl_string& aid) { + getSecIRadio()->changeIccPin2ForApp(serial, oldPin2, newPin2, aid); + return Void(); +} + +Return Radio::supplyNetworkDepersonalization(int32_t serial, const hidl_string& netPin) { + getSecIRadio()->supplyNetworkDepersonalization(serial, netPin); + return Void(); +} + +Return Radio::getCurrentCalls(int32_t serial) { + getSecIRadio()->getCurrentCalls(serial); + return Void(); +} + +Return Radio::dial(int32_t serial, const ::android::hardware::radio::V1_0::Dial& dialInfo) { + getSecIRadio()->dial(serial, dialInfo); + return Void(); +} + +Return Radio::getImsiForApp(int32_t serial, const hidl_string& aid) { + getSecIRadio()->getImsiForApp(serial, aid); + return Void(); +} + +Return Radio::hangup(int32_t serial, int32_t gsmIndex) { + getSecIRadio()->hangup(serial, gsmIndex); + return Void(); +} + +Return Radio::hangupWaitingOrBackground(int32_t serial) { + getSecIRadio()->hangupWaitingOrBackground(serial); + return Void(); +} + +Return Radio::hangupForegroundResumeBackground(int32_t serial) { + getSecIRadio()->hangupForegroundResumeBackground(serial); + return Void(); +} + +Return Radio::switchWaitingOrHoldingAndActive(int32_t serial) { + getSecIRadio()->switchWaitingOrHoldingAndActive(serial); + return Void(); +} + +Return Radio::conference(int32_t serial) { + getSecIRadio()->conference(serial); + return Void(); +} + +Return Radio::rejectCall(int32_t serial) { + getSecIRadio()->rejectCall(serial); + return Void(); +} + +Return Radio::getLastCallFailCause(int32_t serial) { + getSecIRadio()->getLastCallFailCause(serial); + return Void(); +} + +Return Radio::getSignalStrength(int32_t serial) { + getSecIRadio()->getSignalStrength(serial); + return Void(); +} + +Return Radio::getVoiceRegistrationState(int32_t serial) { + getSecIRadio()->getVoiceRegistrationState(serial); + return Void(); +} + +Return Radio::getDataRegistrationState(int32_t serial) { + getSecIRadio()->getDataRegistrationState(serial); + return Void(); +} + +Return Radio::getOperator(int32_t serial) { + getSecIRadio()->getOperator(serial); + return Void(); +} + +Return Radio::setRadioPower(int32_t serial, bool on) { + getSecIRadio()->setRadioPower(serial, on); + return Void(); +} + +Return Radio::sendDtmf(int32_t serial, const hidl_string& s) { + getSecIRadio()->sendDtmf(serial, s); + return Void(); +} + +Return Radio::sendSms(int32_t serial, + const ::android::hardware::radio::V1_0::GsmSmsMessage& message) { + getSecIRadio()->sendSms(serial, message); + return Void(); +} + +Return Radio::sendSMSExpectMore( + int32_t serial, const ::android::hardware::radio::V1_0::GsmSmsMessage& message) { + getSecIRadio()->sendSMSExpectMore(serial, message); + return Void(); +} + +Return Radio::setupDataCall( + int32_t serial, ::android::hardware::radio::V1_0::RadioTechnology radioTechnology, + const ::android::hardware::radio::V1_0::DataProfileInfo& dataProfileInfo, bool modemCognitive, + bool roamingAllowed, bool isRoaming) { + getSecIRadio()->setupDataCall(serial, radioTechnology, dataProfileInfo, modemCognitive, + roamingAllowed, isRoaming); + return Void(); +} + +Return Radio::iccIOForApp(int32_t serial, + const ::android::hardware::radio::V1_0::IccIo& iccIo) { + getSecIRadio()->iccIOForApp(serial, iccIo); + return Void(); +} + +Return Radio::sendUssd(int32_t serial, const hidl_string& ussd) { + getSecIRadio()->sendUssd(serial, ussd); + return Void(); +} + +Return Radio::cancelPendingUssd(int32_t serial) { + getSecIRadio()->cancelPendingUssd(serial); + return Void(); +} + +Return Radio::getClir(int32_t serial) { + getSecIRadio()->getClir(serial); + return Void(); +} + +Return Radio::setClir(int32_t serial, int32_t status) { + getSecIRadio()->setClir(serial, status); + return Void(); +} + +Return Radio::getCallForwardStatus( + int32_t serial, const ::android::hardware::radio::V1_0::CallForwardInfo& callInfo) { + getSecIRadio()->getCallForwardStatus(serial, callInfo); + return Void(); +} + +Return Radio::setCallForward( + int32_t serial, const ::android::hardware::radio::V1_0::CallForwardInfo& callInfo) { + getSecIRadio()->setCallForward(serial, callInfo); + return Void(); +} + +Return Radio::getCallWaiting(int32_t serial, int32_t serviceClass) { + getSecIRadio()->getCallWaiting(serial, serviceClass); + return Void(); +} + +Return Radio::setCallWaiting(int32_t serial, bool enable, int32_t serviceClass) { + getSecIRadio()->setCallWaiting(serial, enable, serviceClass); + return Void(); +} + +Return Radio::acknowledgeLastIncomingGsmSms( + int32_t serial, bool success, ::android::hardware::radio::V1_0::SmsAcknowledgeFailCause cause) { + getSecIRadio()->acknowledgeLastIncomingGsmSms(serial, success, cause); + return Void(); +} + +Return Radio::acceptCall(int32_t serial) { + getSecIRadio()->acceptCall(serial); + return Void(); +} + +Return Radio::deactivateDataCall(int32_t serial, int32_t cid, bool reasonRadioShutDown) { + getSecIRadio()->deactivateDataCall(serial, cid, reasonRadioShutDown); + return Void(); +} + +Return Radio::getFacilityLockForApp(int32_t serial, const hidl_string& facility, + const hidl_string& password, int32_t serviceClass, + const hidl_string& appId) { + getSecIRadio()->getFacilityLockForApp(serial, facility, password, serviceClass, appId); + return Void(); +} + +Return Radio::setFacilityLockForApp(int32_t serial, const hidl_string& facility, + bool lockState, const hidl_string& password, + int32_t serviceClass, const hidl_string& appId) { + getSecIRadio()->setFacilityLockForApp(serial, facility, lockState, password, serviceClass, + appId); + return Void(); +} + +Return Radio::setBarringPassword(int32_t serial, const hidl_string& facility, + const hidl_string& oldPassword, + const hidl_string& newPassword) { + getSecIRadio()->setBarringPassword(serial, facility, oldPassword, newPassword); + return Void(); +} + +Return Radio::getNetworkSelectionMode(int32_t serial) { + getSecIRadio()->getNetworkSelectionMode(serial); + return Void(); +} + +Return Radio::setNetworkSelectionModeAutomatic(int32_t serial) { + getSecIRadio()->setNetworkSelectionModeAutomatic(serial); + return Void(); +} + +Return Radio::setNetworkSelectionModeManual(int32_t serial, + const hidl_string& operatorNumeric) { + getSecIRadio()->setNetworkSelectionModeManual(serial, operatorNumeric); + return Void(); +} + +Return Radio::getAvailableNetworks(int32_t serial) { + getSecIRadio()->getAvailableNetworks(serial); + return Void(); +} + +Return Radio::startDtmf(int32_t serial, const hidl_string& s) { + getSecIRadio()->startDtmf(serial, s); + return Void(); +} + +Return Radio::stopDtmf(int32_t serial) { + getSecIRadio()->stopDtmf(serial); + return Void(); +} + +Return Radio::getBasebandVersion(int32_t serial) { + getSecIRadio()->getBasebandVersion(serial); + return Void(); +} + +Return Radio::separateConnection(int32_t serial, int32_t gsmIndex) { + getSecIRadio()->separateConnection(serial, gsmIndex); + return Void(); +} + +Return Radio::setMute(int32_t serial, bool enable) { + getSecIRadio()->setMute(serial, enable); + return Void(); +} + +Return Radio::getMute(int32_t serial) { + getSecIRadio()->getMute(serial); + return Void(); +} + +Return Radio::getClip(int32_t serial) { + getSecIRadio()->getClip(serial); + return Void(); +} + +Return Radio::getDataCallList(int32_t serial) { + getSecIRadio()->getDataCallList(serial); + return Void(); +} + +Return Radio::setSuppServiceNotifications(int32_t serial, bool enable) { + getSecIRadio()->setSuppServiceNotifications(serial, enable); + return Void(); +} + +Return Radio::writeSmsToSim( + int32_t serial, const ::android::hardware::radio::V1_0::SmsWriteArgs& smsWriteArgs) { + getSecIRadio()->writeSmsToSim(serial, smsWriteArgs); + return Void(); +} + +Return Radio::deleteSmsOnSim(int32_t serial, int32_t index) { + getSecIRadio()->deleteSmsOnSim(serial, index); + return Void(); +} + +Return Radio::setBandMode(int32_t serial, + ::android::hardware::radio::V1_0::RadioBandMode mode) { + getSecIRadio()->setBandMode(serial, mode); + return Void(); +} + +Return Radio::getAvailableBandModes(int32_t serial) { + getSecIRadio()->getAvailableBandModes(serial); + return Void(); +} + +Return Radio::sendEnvelope(int32_t serial, const hidl_string& command) { + getSecIRadio()->sendEnvelope(serial, command); + return Void(); +} + +Return Radio::sendTerminalResponseToSim(int32_t serial, const hidl_string& commandResponse) { + getSecIRadio()->sendTerminalResponseToSim(serial, commandResponse); + return Void(); +} + +Return Radio::handleStkCallSetupRequestFromSim(int32_t serial, bool accept) { + getSecIRadio()->handleStkCallSetupRequestFromSim(serial, accept); + return Void(); +} + +Return Radio::explicitCallTransfer(int32_t serial) { + getSecIRadio()->explicitCallTransfer(serial); + return Void(); +} + +Return Radio::setPreferredNetworkType( + int32_t serial, ::android::hardware::radio::V1_0::PreferredNetworkType nwType) { + getSecIRadio()->setPreferredNetworkType(serial, nwType); + return Void(); +} + +Return Radio::getPreferredNetworkType(int32_t serial) { + getSecIRadio()->getPreferredNetworkType(serial); + return Void(); +} + +Return Radio::getNeighboringCids(int32_t serial) { + getSecIRadio()->getNeighboringCids(serial); + return Void(); +} + +Return Radio::setLocationUpdates(int32_t serial, bool enable) { + getSecIRadio()->setLocationUpdates(serial, enable); + return Void(); +} + +Return Radio::setCdmaSubscriptionSource( + int32_t serial, ::android::hardware::radio::V1_0::CdmaSubscriptionSource cdmaSub) { + getSecIRadio()->setCdmaSubscriptionSource(serial, cdmaSub); + return Void(); +} + +Return Radio::setCdmaRoamingPreference(int32_t serial, + ::android::hardware::radio::V1_0::CdmaRoamingType type) { + getSecIRadio()->setCdmaRoamingPreference(serial, type); + return Void(); +} + +Return Radio::getCdmaRoamingPreference(int32_t serial) { + getSecIRadio()->getCdmaRoamingPreference(serial); + return Void(); +} + +Return Radio::setTTYMode(int32_t serial, ::android::hardware::radio::V1_0::TtyMode mode) { + getSecIRadio()->setTTYMode(serial, mode); + return Void(); +} + +Return Radio::getTTYMode(int32_t serial) { + getSecIRadio()->getTTYMode(serial); + return Void(); +} + +Return Radio::setPreferredVoicePrivacy(int32_t serial, bool enable) { + getSecIRadio()->setPreferredVoicePrivacy(serial, enable); + return Void(); +} + +Return Radio::getPreferredVoicePrivacy(int32_t serial) { + getSecIRadio()->getPreferredVoicePrivacy(serial); + return Void(); +} + +Return Radio::sendCDMAFeatureCode(int32_t serial, const hidl_string& featureCode) { + getSecIRadio()->sendCDMAFeatureCode(serial, featureCode); + return Void(); +} + +Return Radio::sendBurstDtmf(int32_t serial, const hidl_string& dtmf, int32_t on, int32_t off) { + getSecIRadio()->sendBurstDtmf(serial, dtmf, on, off); + return Void(); +} + +Return Radio::sendCdmaSms(int32_t serial, + const ::android::hardware::radio::V1_0::CdmaSmsMessage& sms) { + getSecIRadio()->sendCdmaSms(serial, sms); + return Void(); +} + +Return Radio::acknowledgeLastIncomingCdmaSms( + int32_t serial, const ::android::hardware::radio::V1_0::CdmaSmsAck& smsAck) { + getSecIRadio()->acknowledgeLastIncomingCdmaSms(serial, smsAck); + return Void(); +} + +Return Radio::getGsmBroadcastConfig(int32_t serial) { + getSecIRadio()->getGsmBroadcastConfig(serial); + return Void(); +} + +Return Radio::setGsmBroadcastConfig( + int32_t serial, + const hidl_vec<::android::hardware::radio::V1_0::GsmBroadcastSmsConfigInfo>& configInfo) { + getSecIRadio()->setGsmBroadcastConfig(serial, configInfo); + return Void(); +} + +Return Radio::setGsmBroadcastActivation(int32_t serial, bool activate) { + getSecIRadio()->setGsmBroadcastActivation(serial, activate); + return Void(); +} + +Return Radio::getCdmaBroadcastConfig(int32_t serial) { + getSecIRadio()->getCdmaBroadcastConfig(serial); + return Void(); +} + +Return Radio::setCdmaBroadcastConfig( + int32_t serial, + const hidl_vec<::android::hardware::radio::V1_0::CdmaBroadcastSmsConfigInfo>& configInfo) { + getSecIRadio()->setCdmaBroadcastConfig(serial, configInfo); + return Void(); +} + +Return Radio::setCdmaBroadcastActivation(int32_t serial, bool activate) { + getSecIRadio()->setCdmaBroadcastActivation(serial, activate); + return Void(); +} + +Return Radio::getCDMASubscription(int32_t serial) { + getSecIRadio()->getCDMASubscription(serial); + return Void(); +} + +Return Radio::writeSmsToRuim( + int32_t serial, const ::android::hardware::radio::V1_0::CdmaSmsWriteArgs& cdmaSms) { + getSecIRadio()->writeSmsToRuim(serial, cdmaSms); + return Void(); +} + +Return Radio::deleteSmsOnRuim(int32_t serial, int32_t index) { + getSecIRadio()->deleteSmsOnRuim(serial, index); + return Void(); +} + +Return Radio::getDeviceIdentity(int32_t serial) { + getSecIRadio()->getDeviceIdentity(serial); + return Void(); +} + +Return Radio::exitEmergencyCallbackMode(int32_t serial) { + getSecIRadio()->exitEmergencyCallbackMode(serial); + return Void(); +} + +Return Radio::getSmscAddress(int32_t serial) { + getSecIRadio()->getSmscAddress(serial); + return Void(); +} + +Return Radio::setSmscAddress(int32_t serial, const hidl_string& smsc) { + getSecIRadio()->setSmscAddress(serial, smsc); + return Void(); +} + +Return Radio::reportSmsMemoryStatus(int32_t serial, bool available) { + getSecIRadio()->reportSmsMemoryStatus(serial, available); + return Void(); +} + +Return Radio::reportStkServiceIsRunning(int32_t serial) { + getSecIRadio()->reportStkServiceIsRunning(serial); + return Void(); +} + +Return Radio::getCdmaSubscriptionSource(int32_t serial) { + getSecIRadio()->getCdmaSubscriptionSource(serial); + return Void(); +} + +Return Radio::requestIsimAuthentication(int32_t serial, const hidl_string& challenge) { + getSecIRadio()->requestIsimAuthentication(serial, challenge); + return Void(); +} + +Return Radio::acknowledgeIncomingGsmSmsWithPdu(int32_t serial, bool success, + const hidl_string& ackPdu) { + getSecIRadio()->acknowledgeIncomingGsmSmsWithPdu(serial, success, ackPdu); + return Void(); +} + +Return Radio::sendEnvelopeWithStatus(int32_t serial, const hidl_string& contents) { + getSecIRadio()->sendEnvelopeWithStatus(serial, contents); + return Void(); +} + +Return Radio::getVoiceRadioTechnology(int32_t serial) { + getSecIRadio()->getVoiceRadioTechnology(serial); + return Void(); +} + +Return Radio::getCellInfoList(int32_t serial) { + getSecIRadio()->getCellInfoList(serial); + return Void(); +} + +Return Radio::setCellInfoListRate(int32_t serial, int32_t rate) { + getSecIRadio()->setCellInfoListRate(serial, rate); + return Void(); +} + +Return Radio::setInitialAttachApn( + int32_t serial, const ::android::hardware::radio::V1_0::DataProfileInfo& dataProfileInfo, + bool modemCognitive, bool isRoaming) { + getSecIRadio()->setInitialAttachApn(serial, dataProfileInfo, modemCognitive, isRoaming); + return Void(); +} + +Return Radio::getImsRegistrationState(int32_t serial) { + getSecIRadio()->getImsRegistrationState(serial); + return Void(); +} + +Return Radio::sendImsSms(int32_t serial, + const ::android::hardware::radio::V1_0::ImsSmsMessage& message) { + getSecIRadio()->sendImsSms(serial, message); + return Void(); +} + +Return Radio::iccTransmitApduBasicChannel( + int32_t serial, const ::android::hardware::radio::V1_0::SimApdu& message) { + getSecIRadio()->iccTransmitApduBasicChannel(serial, message); + return Void(); +} + +Return Radio::iccOpenLogicalChannel(int32_t serial, const hidl_string& aid, int32_t p2) { + getSecIRadio()->iccOpenLogicalChannel(serial, aid, p2); + return Void(); +} + +Return Radio::iccCloseLogicalChannel(int32_t serial, int32_t channelId) { + getSecIRadio()->iccCloseLogicalChannel(serial, channelId); + return Void(); +} + +Return Radio::iccTransmitApduLogicalChannel( + int32_t serial, const ::android::hardware::radio::V1_0::SimApdu& message) { + getSecIRadio()->iccTransmitApduLogicalChannel(serial, message); + return Void(); +} + +Return Radio::nvReadItem(int32_t serial, ::android::hardware::radio::V1_0::NvItem itemId) { + getSecIRadio()->nvReadItem(serial, itemId); + return Void(); +} + +Return Radio::nvWriteItem(int32_t serial, + const ::android::hardware::radio::V1_0::NvWriteItem& item) { + getSecIRadio()->nvWriteItem(serial, item); + return Void(); +} + +Return Radio::nvWriteCdmaPrl(int32_t serial, const hidl_vec& prl) { + getSecIRadio()->nvWriteCdmaPrl(serial, prl); + return Void(); +} + +Return Radio::nvResetConfig(int32_t serial, + ::android::hardware::radio::V1_0::ResetNvType resetType) { + getSecIRadio()->nvResetConfig(serial, resetType); + return Void(); +} + +Return Radio::setUiccSubscription( + int32_t serial, const ::android::hardware::radio::V1_0::SelectUiccSub& uiccSub) { + getSecIRadio()->setUiccSubscription(serial, uiccSub); + return Void(); +} + +Return Radio::setDataAllowed(int32_t serial, bool allow) { + getSecIRadio()->setDataAllowed(serial, allow); + return Void(); +} + +Return Radio::getHardwareConfig(int32_t serial) { + getSecIRadio()->getHardwareConfig(serial); + return Void(); +} + +Return Radio::requestIccSimAuthentication(int32_t serial, int32_t authContext, + const hidl_string& authData, + const hidl_string& aid) { + getSecIRadio()->requestIccSimAuthentication(serial, authContext, authData, aid); + return Void(); +} + +Return Radio::setDataProfile( + int32_t serial, const hidl_vec<::android::hardware::radio::V1_0::DataProfileInfo>& profiles, + bool isRoaming) { + getSecIRadio()->setDataProfile(serial, profiles, isRoaming); + return Void(); +} + +Return Radio::requestShutdown(int32_t serial) { + getSecIRadio()->requestShutdown(serial); + return Void(); +} + +Return Radio::getRadioCapability(int32_t serial) { + getSecIRadio()->getRadioCapability(serial); + return Void(); +} + +Return Radio::setRadioCapability(int32_t serial, + const ::android::hardware::radio::V1_0::RadioCapability& rc) { + getSecIRadio()->setRadioCapability(serial, rc); + return Void(); +} + +Return Radio::startLceService(int32_t serial, int32_t reportInterval, bool pullMode) { + getSecIRadio()->startLceService(serial, reportInterval, pullMode); + return Void(); +} + +Return Radio::stopLceService(int32_t serial) { + getSecIRadio()->stopLceService(serial); + return Void(); +} + +Return Radio::pullLceData(int32_t serial) { + getSecIRadio()->pullLceData(serial); + return Void(); +} + +Return Radio::getModemActivityInfo(int32_t serial) { + getSecIRadio()->getModemActivityInfo(serial); + return Void(); +} + +Return Radio::setAllowedCarriers( + int32_t serial, bool allAllowed, + const ::android::hardware::radio::V1_0::CarrierRestrictions& carriers) { + getSecIRadio()->setAllowedCarriers(serial, allAllowed, carriers); + return Void(); +} + +Return Radio::getAllowedCarriers(int32_t serial) { + getSecIRadio()->getAllowedCarriers(serial); + return Void(); +} + +Return Radio::sendDeviceState( + int32_t serial, ::android::hardware::radio::V1_0::DeviceStateType deviceStateType, bool state) { + getSecIRadio()->sendDeviceState(serial, deviceStateType, state); + return Void(); +} + +Return Radio::setIndicationFilter( + int32_t serial, + hidl_bitfield<::android::hardware::radio::V1_2::IndicationFilter> indicationFilter) { + getSecIRadio()->setIndicationFilter(serial, indicationFilter); + return Void(); +} + +Return Radio::setSimCardPower(int32_t serial, bool powerUp) { + getSecIRadio()->setSimCardPower(serial, powerUp); + return Void(); +} + +Return Radio::responseAcknowledgement() { + getSecIRadio()->responseAcknowledgement(); + return Void(); +} + +// Methods from ::android::hardware::radio::V1_1::IRadio follow. +Return Radio::setCarrierInfoForImsiEncryption( + int32_t serial, const ::android::hardware::radio::V1_1::ImsiEncryptionInfo& imsiEncryptionInfo) { + getSecIRadio()->setCarrierInfoForImsiEncryption(serial, imsiEncryptionInfo); + return Void(); +} + +Return Radio::setSimCardPower_1_1(int32_t serial, + ::android::hardware::radio::V1_1::CardPowerState powerUp) { + getSecIRadio()->setSimCardPower_1_1(serial, powerUp); + return Void(); +} + +Return Radio::startNetworkScan( + int32_t serial, const ::android::hardware::radio::V1_1::NetworkScanRequest& request) { + getSecIRadio()->startNetworkScan(serial, request); + return Void(); +} + +Return Radio::stopNetworkScan(int32_t serial) { + getSecIRadio()->stopNetworkScan(serial); + return Void(); +} + +Return Radio::startKeepalive( + int32_t serial, const ::android::hardware::radio::V1_1::KeepaliveRequest& keepalive) { + getSecIRadio()->startKeepalive(serial, keepalive); + return Void(); +} + +Return Radio::stopKeepalive(int32_t serial, int32_t sessionHandle) { + getSecIRadio()->stopKeepalive(serial, sessionHandle); + return Void(); +} + +// Methods from ::android::hardware::radio::V1_2::IRadio follow. +Return Radio::startNetworkScan_1_2( + int32_t serial, const ::android::hardware::radio::V1_2::NetworkScanRequest& request) { + getSecIRadio()->startNetworkScan_1_2(serial, request); + return Void(); +} + +Return Radio::setIndicationFilter_1_2( + int32_t serial, + hidl_bitfield<::android::hardware::radio::V1_2::IndicationFilter> indicationFilter) { + getSecIRadio()->setIndicationFilter_1_2(serial, indicationFilter); + return Void(); +} + +Return Radio::setSignalStrengthReportingCriteria( + int32_t serial, int32_t hysteresisMs, int32_t hysteresisDb, + const hidl_vec& thresholdsDbm, + ::android::hardware::radio::V1_2::AccessNetwork accessNetwork) { + getSecIRadio()->setSignalStrengthReportingCriteria(serial, hysteresisMs, hysteresisDb, + thresholdsDbm, accessNetwork); + return Void(); +} + +Return Radio::setLinkCapacityReportingCriteria( + int32_t serial, int32_t hysteresisMs, int32_t hysteresisDlKbps, int32_t hysteresisUlKbps, + const hidl_vec& thresholdsDownlinkKbps, const hidl_vec& thresholdsUplinkKbps, + ::android::hardware::radio::V1_2::AccessNetwork accessNetwork) { + getSecIRadio()->setLinkCapacityReportingCriteria(serial, hysteresisMs, hysteresisDlKbps, + hysteresisUlKbps, thresholdsDownlinkKbps, + thresholdsUplinkKbps, accessNetwork); + return Void(); +} + +Return Radio::setupDataCall_1_2( + int32_t serial, ::android::hardware::radio::V1_2::AccessNetwork accessNetwork, + const ::android::hardware::radio::V1_0::DataProfileInfo& dataProfileInfo, bool modemCognitive, + bool roamingAllowed, bool isRoaming, ::android::hardware::radio::V1_2::DataRequestReason reason, + const hidl_vec& addresses, const hidl_vec& dnses) { + getSecIRadio()->setupDataCall_1_2(serial, accessNetwork, dataProfileInfo, modemCognitive, + roamingAllowed, isRoaming, reason, addresses, dnses); + return Void(); +} + +Return Radio::deactivateDataCall_1_2( + int32_t serial, int32_t cid, ::android::hardware::radio::V1_2::DataRequestReason reason) { + getSecIRadio()->deactivateDataCall_1_2(serial, cid, reason); + return Void(); +} + +// Methods from ::android::hardware::radio::V1_3::IRadio follow. +Return Radio::setSystemSelectionChannels( + int32_t, bool, const hidl_vec<::android::hardware::radio::V1_1::RadioAccessSpecifier>&) { + return Void(); +} + +Return Radio::enableModem(int32_t, bool) { + return Void(); +} + +Return Radio::getModemStackStatus(int32_t) { + return Void(); +} + +} // namespace implementation +} // namespace V1_3 +} // namespace radio +} // namespace hardware +} // namespace android diff --git a/hidl/radio/1.3/Radio.h b/hidl/radio/1.3/Radio.h new file mode 100644 index 00000000..b1368566 --- /dev/null +++ b/hidl/radio/1.3/Radio.h @@ -0,0 +1,303 @@ +/* + * Copyright (C) 2019, The LineageOS Project + * + * Licensed under the Apache License, Version 2.1 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.1 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#pragma once + +#include +#include +#include +#include + +#include "SecRadioIndication.h" +#include "SecRadioResponse.h" + +namespace android { +namespace hardware { +namespace radio { +namespace V1_3 { +namespace implementation { + +#define RIL1_SERVICE_NAME "slot1" +#define RIL2_SERVICE_NAME "slot2" + +using ::android::sp; +using ::android::hardware::hidl_array; +using ::android::hardware::hidl_memory; +using ::android::hardware::hidl_string; +using ::android::hardware::hidl_vec; +using ::android::hardware::Return; +using ::android::hardware::Void; +using ::vendor::samsung::hardware::radio::V1_2::implementation::SecRadioIndication; +using ::vendor::samsung::hardware::radio::V1_2::implementation::SecRadioResponse; + +struct Radio : public IRadio { + std::string interfaceName; + std::mutex secIRadioMutex; + sp<::vendor::samsung::hardware::radio::V1_2::IRadio> secIRadio; + + Radio(const std::string& interfaceName); + + sp<::vendor::samsung::hardware::radio::V1_2::IRadio> getSecIRadio(); + + // Methods from ::android::hardware::radio::V1_0::IRadio follow. + Return setResponseFunctions( + const sp<::android::hardware::radio::V1_0::IRadioResponse>& radioResponse, + const sp<::android::hardware::radio::V1_0::IRadioIndication>& radioIndication) override; + Return getIccCardStatus(int32_t serial) override; + Return supplyIccPinForApp(int32_t serial, const hidl_string& pin, + const hidl_string& aid) override; + Return supplyIccPukForApp(int32_t serial, const hidl_string& puk, const hidl_string& pin, + const hidl_string& aid) override; + Return supplyIccPin2ForApp(int32_t serial, const hidl_string& pin2, + const hidl_string& aid) override; + Return supplyIccPuk2ForApp(int32_t serial, const hidl_string& puk2, + const hidl_string& pin2, const hidl_string& aid) override; + Return changeIccPinForApp(int32_t serial, const hidl_string& oldPin, + const hidl_string& newPin, const hidl_string& aid) override; + Return changeIccPin2ForApp(int32_t serial, const hidl_string& oldPin2, + const hidl_string& newPin2, const hidl_string& aid) override; + Return supplyNetworkDepersonalization(int32_t serial, const hidl_string& netPin) override; + Return getCurrentCalls(int32_t serial) override; + Return dial(int32_t serial, + const ::android::hardware::radio::V1_0::Dial& dialInfo) override; + Return getImsiForApp(int32_t serial, const hidl_string& aid) override; + Return hangup(int32_t serial, int32_t gsmIndex) override; + Return hangupWaitingOrBackground(int32_t serial) override; + Return hangupForegroundResumeBackground(int32_t serial) override; + Return switchWaitingOrHoldingAndActive(int32_t serial) override; + Return conference(int32_t serial) override; + Return rejectCall(int32_t serial) override; + Return getLastCallFailCause(int32_t serial) override; + Return getSignalStrength(int32_t serial) override; + Return getVoiceRegistrationState(int32_t serial) override; + Return getDataRegistrationState(int32_t serial) override; + Return getOperator(int32_t serial) override; + Return setRadioPower(int32_t serial, bool on) override; + Return sendDtmf(int32_t serial, const hidl_string& s) override; + Return sendSms(int32_t serial, + const ::android::hardware::radio::V1_0::GsmSmsMessage& message) override; + Return sendSMSExpectMore( + int32_t serial, const ::android::hardware::radio::V1_0::GsmSmsMessage& message) override; + Return setupDataCall( + int32_t serial, ::android::hardware::radio::V1_0::RadioTechnology radioTechnology, + const ::android::hardware::radio::V1_0::DataProfileInfo& dataProfileInfo, + bool modemCognitive, bool roamingAllowed, bool isRoaming) override; + Return iccIOForApp(int32_t serial, + const ::android::hardware::radio::V1_0::IccIo& iccIo) override; + Return sendUssd(int32_t serial, const hidl_string& ussd) override; + Return cancelPendingUssd(int32_t serial) override; + Return getClir(int32_t serial) override; + Return setClir(int32_t serial, int32_t status) override; + Return getCallForwardStatus( + int32_t serial, const ::android::hardware::radio::V1_0::CallForwardInfo& callInfo) override; + Return setCallForward( + int32_t serial, const ::android::hardware::radio::V1_0::CallForwardInfo& callInfo) override; + Return getCallWaiting(int32_t serial, int32_t serviceClass) override; + Return setCallWaiting(int32_t serial, bool enable, int32_t serviceClass) override; + Return acknowledgeLastIncomingGsmSms( + int32_t serial, bool success, + ::android::hardware::radio::V1_0::SmsAcknowledgeFailCause cause) override; + Return acceptCall(int32_t serial) override; + Return deactivateDataCall(int32_t serial, int32_t cid, bool reasonRadioShutDown) override; + Return getFacilityLockForApp(int32_t serial, const hidl_string& facility, + const hidl_string& password, int32_t serviceClass, + const hidl_string& appId) override; + Return setFacilityLockForApp(int32_t serial, const hidl_string& facility, bool lockState, + const hidl_string& password, int32_t serviceClass, + const hidl_string& appId) override; + Return setBarringPassword(int32_t serial, const hidl_string& facility, + const hidl_string& oldPassword, + const hidl_string& newPassword) override; + Return getNetworkSelectionMode(int32_t serial) override; + Return setNetworkSelectionModeAutomatic(int32_t serial) override; + Return setNetworkSelectionModeManual(int32_t serial, + const hidl_string& operatorNumeric) override; + Return getAvailableNetworks(int32_t serial) override; + Return startDtmf(int32_t serial, const hidl_string& s) override; + Return stopDtmf(int32_t serial) override; + Return getBasebandVersion(int32_t serial) override; + Return separateConnection(int32_t serial, int32_t gsmIndex) override; + Return setMute(int32_t serial, bool enable) override; + Return getMute(int32_t serial) override; + Return getClip(int32_t serial) override; + Return getDataCallList(int32_t serial) override; + Return setSuppServiceNotifications(int32_t serial, bool enable) override; + Return writeSmsToSim( + int32_t serial, const ::android::hardware::radio::V1_0::SmsWriteArgs& smsWriteArgs) override; + Return deleteSmsOnSim(int32_t serial, int32_t index) override; + Return setBandMode(int32_t serial, + ::android::hardware::radio::V1_0::RadioBandMode mode) override; + Return getAvailableBandModes(int32_t serial) override; + Return sendEnvelope(int32_t serial, const hidl_string& command) override; + Return sendTerminalResponseToSim(int32_t serial, + const hidl_string& commandResponse) override; + Return handleStkCallSetupRequestFromSim(int32_t serial, bool accept) override; + Return explicitCallTransfer(int32_t serial) override; + Return setPreferredNetworkType( + int32_t serial, ::android::hardware::radio::V1_0::PreferredNetworkType nwType) override; + Return getPreferredNetworkType(int32_t serial) override; + Return getNeighboringCids(int32_t serial) override; + Return setLocationUpdates(int32_t serial, bool enable) override; + Return setCdmaSubscriptionSource( + int32_t serial, ::android::hardware::radio::V1_0::CdmaSubscriptionSource cdmaSub) override; + Return setCdmaRoamingPreference( + int32_t serial, ::android::hardware::radio::V1_0::CdmaRoamingType type) override; + Return getCdmaRoamingPreference(int32_t serial) override; + Return setTTYMode(int32_t serial, ::android::hardware::radio::V1_0::TtyMode mode) override; + Return getTTYMode(int32_t serial) override; + Return setPreferredVoicePrivacy(int32_t serial, bool enable) override; + Return getPreferredVoicePrivacy(int32_t serial) override; + Return sendCDMAFeatureCode(int32_t serial, const hidl_string& featureCode) override; + Return sendBurstDtmf(int32_t serial, const hidl_string& dtmf, int32_t on, + int32_t off) override; + Return sendCdmaSms(int32_t serial, + const ::android::hardware::radio::V1_0::CdmaSmsMessage& sms) override; + Return acknowledgeLastIncomingCdmaSms( + int32_t serial, const ::android::hardware::radio::V1_0::CdmaSmsAck& smsAck) override; + Return getGsmBroadcastConfig(int32_t serial) override; + Return setGsmBroadcastConfig( + int32_t serial, + const hidl_vec<::android::hardware::radio::V1_0::GsmBroadcastSmsConfigInfo>& configInfo) + override; + Return setGsmBroadcastActivation(int32_t serial, bool activate) override; + Return getCdmaBroadcastConfig(int32_t serial) override; + Return setCdmaBroadcastConfig( + int32_t serial, + const hidl_vec<::android::hardware::radio::V1_0::CdmaBroadcastSmsConfigInfo>& configInfo) + override; + Return setCdmaBroadcastActivation(int32_t serial, bool activate) override; + Return getCDMASubscription(int32_t serial) override; + Return writeSmsToRuim( + int32_t serial, const ::android::hardware::radio::V1_0::CdmaSmsWriteArgs& cdmaSms) override; + Return deleteSmsOnRuim(int32_t serial, int32_t index) override; + Return getDeviceIdentity(int32_t serial) override; + Return exitEmergencyCallbackMode(int32_t serial) override; + Return getSmscAddress(int32_t serial) override; + Return setSmscAddress(int32_t serial, const hidl_string& smsc) override; + Return reportSmsMemoryStatus(int32_t serial, bool available) override; + Return reportStkServiceIsRunning(int32_t serial) override; + Return getCdmaSubscriptionSource(int32_t serial) override; + Return requestIsimAuthentication(int32_t serial, const hidl_string& challenge) override; + Return acknowledgeIncomingGsmSmsWithPdu(int32_t serial, bool success, + const hidl_string& ackPdu) override; + Return sendEnvelopeWithStatus(int32_t serial, const hidl_string& contents) override; + Return getVoiceRadioTechnology(int32_t serial) override; + Return getCellInfoList(int32_t serial) override; + Return setCellInfoListRate(int32_t serial, int32_t rate) override; + Return setInitialAttachApn( + int32_t serial, const ::android::hardware::radio::V1_0::DataProfileInfo& dataProfileInfo, + bool modemCognitive, bool isRoaming) override; + Return getImsRegistrationState(int32_t serial) override; + Return sendImsSms(int32_t serial, + const ::android::hardware::radio::V1_0::ImsSmsMessage& message) override; + Return iccTransmitApduBasicChannel( + int32_t serial, const ::android::hardware::radio::V1_0::SimApdu& message) override; + Return iccOpenLogicalChannel(int32_t serial, const hidl_string& aid, int32_t p2) override; + Return iccCloseLogicalChannel(int32_t serial, int32_t channelId) override; + Return iccTransmitApduLogicalChannel( + int32_t serial, const ::android::hardware::radio::V1_0::SimApdu& message) override; + Return nvReadItem(int32_t serial, + ::android::hardware::radio::V1_0::NvItem itemId) override; + Return nvWriteItem(int32_t serial, + const ::android::hardware::radio::V1_0::NvWriteItem& item) override; + Return nvWriteCdmaPrl(int32_t serial, const hidl_vec& prl) override; + Return nvResetConfig(int32_t serial, + ::android::hardware::radio::V1_0::ResetNvType resetType) override; + Return setUiccSubscription( + int32_t serial, const ::android::hardware::radio::V1_0::SelectUiccSub& uiccSub) override; + Return setDataAllowed(int32_t serial, bool allow) override; + Return getHardwareConfig(int32_t serial) override; + Return requestIccSimAuthentication(int32_t serial, int32_t authContext, + const hidl_string& authData, + const hidl_string& aid) override; + Return setDataProfile( + int32_t serial, const hidl_vec<::android::hardware::radio::V1_0::DataProfileInfo>& profiles, + bool isRoaming) override; + Return requestShutdown(int32_t serial) override; + Return getRadioCapability(int32_t serial) override; + Return setRadioCapability( + int32_t serial, const ::android::hardware::radio::V1_0::RadioCapability& rc) override; + Return startLceService(int32_t serial, int32_t reportInterval, bool pullMode) override; + Return stopLceService(int32_t serial) override; + Return pullLceData(int32_t serial) override; + Return getModemActivityInfo(int32_t serial) override; + Return setAllowedCarriers( + int32_t serial, bool allAllowed, + const ::android::hardware::radio::V1_0::CarrierRestrictions& carriers) override; + Return getAllowedCarriers(int32_t serial) override; + Return sendDeviceState(int32_t serial, + ::android::hardware::radio::V1_0::DeviceStateType deviceStateType, + bool state) override; + Return setIndicationFilter( + int32_t serial, + hidl_bitfield<::android::hardware::radio::V1_2::IndicationFilter> indicationFilter) override; + Return setSimCardPower(int32_t serial, bool powerUp) override; + Return responseAcknowledgement() override; + + // Methods from ::android::hardware::radio::V1_1::IRadio follow. + Return setCarrierInfoForImsiEncryption( + int32_t serial, + const ::android::hardware::radio::V1_1::ImsiEncryptionInfo& imsiEncryptionInfo) override; + Return setSimCardPower_1_1( + int32_t serial, ::android::hardware::radio::V1_1::CardPowerState powerUp) override; + Return startNetworkScan( + int32_t serial, + const ::android::hardware::radio::V1_1::NetworkScanRequest& request) override; + Return stopNetworkScan(int32_t serial) override; + Return startKeepalive( + int32_t serial, + const ::android::hardware::radio::V1_1::KeepaliveRequest& keepalive) override; + Return stopKeepalive(int32_t serial, int32_t sessionHandle) override; + + // Methods from ::android::hardware::radio::V1_2::IRadio follow. + Return startNetworkScan_1_2( + int32_t serial, + const ::android::hardware::radio::V1_2::NetworkScanRequest& request) override; + Return setIndicationFilter_1_2( + int32_t serial, + hidl_bitfield<::android::hardware::radio::V1_2::IndicationFilter> indicationFilter) override; + Return setSignalStrengthReportingCriteria( + int32_t serial, int32_t hysteresisMs, int32_t hysteresisDb, + const hidl_vec& thresholdsDbm, + ::android::hardware::radio::V1_2::AccessNetwork accessNetwork) override; + Return setLinkCapacityReportingCriteria( + int32_t serial, int32_t hysteresisMs, int32_t hysteresisDlKbps, int32_t hysteresisUlKbps, + const hidl_vec& thresholdsDownlinkKbps, + const hidl_vec& thresholdsUplinkKbps, + ::android::hardware::radio::V1_2::AccessNetwork accessNetwork) override; + Return setupDataCall_1_2( + int32_t serial, ::android::hardware::radio::V1_2::AccessNetwork accessNetwork, + const ::android::hardware::radio::V1_0::DataProfileInfo& dataProfileInfo, + bool modemCognitive, bool roamingAllowed, bool isRoaming, + ::android::hardware::radio::V1_2::DataRequestReason reason, + const hidl_vec& addresses, const hidl_vec& dnses) override; + Return deactivateDataCall_1_2( + int32_t serial, int32_t cid, + ::android::hardware::radio::V1_2::DataRequestReason reason) override; + + // Methods from ::android::hardware::radio::V1_3::IRadio follow. + Return setSystemSelectionChannels( + int32_t serial, bool specifyChannels, + const hidl_vec<::android::hardware::radio::V1_1::RadioAccessSpecifier>& specifiers) override; + Return enableModem(int32_t serial, bool on) override; + Return getModemStackStatus(int32_t serial) override; +}; + +} // namespace implementation +} // namespace V1_3 +} // namespace radio +} // namespace hardware +} // namespace android diff --git a/hidl/radio/1.3/SecRadioIndication.cpp b/hidl/radio/1.3/SecRadioIndication.cpp new file mode 100644 index 00000000..326d127e --- /dev/null +++ b/hidl/radio/1.3/SecRadioIndication.cpp @@ -0,0 +1,513 @@ +/* + * Copyright (C) 2019, The LineageOS Project + * + * Licensed under the Apache License, Version 2.1 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.1 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "SecRadioIndication.h" + +namespace vendor { +namespace samsung { +namespace hardware { +namespace radio { +namespace V1_2 { +namespace implementation { + +SecRadioIndication::SecRadioIndication( + const sp<::android::hardware::radio::V1_2::IRadioIndication>& radioIndication) + : radioIndication(radioIndication) {} + +// Methods from ::android::hardware::radio::V1_0::IRadioIndication follow. +Return SecRadioIndication::radioStateChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type, + ::android::hardware::radio::V1_0::RadioState radioState) { + radioIndication->radioStateChanged(type, radioState); + return Void(); +} + +Return SecRadioIndication::callStateChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type) { + radioIndication->callStateChanged(type); + return Void(); +} + +Return SecRadioIndication::networkStateChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type) { + radioIndication->networkStateChanged(type); + return Void(); +} + +Return SecRadioIndication::newSms(::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_vec& pdu) { + radioIndication->newSms(type, pdu); + return Void(); +} + +Return SecRadioIndication::newSmsStatusReport( + ::android::hardware::radio::V1_0::RadioIndicationType type, const hidl_vec& pdu) { + radioIndication->newSmsStatusReport(type, pdu); + return Void(); +} + +Return SecRadioIndication::newSmsOnSim( + ::android::hardware::radio::V1_0::RadioIndicationType type, int32_t recordNumber) { + radioIndication->newSmsOnSim(type, recordNumber); + return Void(); +} + +Return SecRadioIndication::onUssd(::android::hardware::radio::V1_0::RadioIndicationType type, + ::android::hardware::radio::V1_0::UssdModeType modeType, + const hidl_string& msg) { + radioIndication->onUssd(type, modeType, msg); + return Void(); +} + +Return SecRadioIndication::nitzTimeReceived( + ::android::hardware::radio::V1_0::RadioIndicationType type, const hidl_string& nitzTime, + uint64_t receivedTime) { + radioIndication->nitzTimeReceived(type, nitzTime, receivedTime); + return Void(); +} + +Return SecRadioIndication::currentSignalStrength( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::SignalStrength& signalStrength) { + radioIndication->currentSignalStrength(type, signalStrength); + return Void(); +} + +Return SecRadioIndication::dataCallListChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_vec<::android::hardware::radio::V1_0::SetupDataCallResult>& dcList) { + radioIndication->dataCallListChanged(type, dcList); + return Void(); +} + +Return SecRadioIndication::suppSvcNotify( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::SuppSvcNotification& suppSvc) { + radioIndication->suppSvcNotify(type, suppSvc); + return Void(); +} + +Return SecRadioIndication::stkSessionEnd( + ::android::hardware::radio::V1_0::RadioIndicationType type) { + radioIndication->stkSessionEnd(type); + return Void(); +} + +Return SecRadioIndication::stkProactiveCommand( + ::android::hardware::radio::V1_0::RadioIndicationType type, const hidl_string& cmd) { + radioIndication->stkProactiveCommand(type, cmd); + return Void(); +} + +Return SecRadioIndication::stkEventNotify( + ::android::hardware::radio::V1_0::RadioIndicationType type, const hidl_string& cmd) { + radioIndication->stkEventNotify(type, cmd); + return Void(); +} + +Return SecRadioIndication::stkCallSetup( + ::android::hardware::radio::V1_0::RadioIndicationType type, int64_t timeout) { + radioIndication->stkCallSetup(type, timeout); + return Void(); +} + +Return SecRadioIndication::simSmsStorageFull( + ::android::hardware::radio::V1_0::RadioIndicationType type) { + radioIndication->simSmsStorageFull(type); + return Void(); +} + +Return SecRadioIndication::simRefresh( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::SimRefreshResult& refreshResult) { + radioIndication->simRefresh(type, refreshResult); + return Void(); +} + +Return SecRadioIndication::callRing( + ::android::hardware::radio::V1_0::RadioIndicationType type, bool isGsm, + const ::android::hardware::radio::V1_0::CdmaSignalInfoRecord& record) { + radioIndication->callRing(type, isGsm, record); + return Void(); +} + +Return SecRadioIndication::simStatusChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type) { + radioIndication->simStatusChanged(type); + return Void(); +} + +Return SecRadioIndication::cdmaNewSms( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::CdmaSmsMessage& msg) { + radioIndication->cdmaNewSms(type, msg); + return Void(); +} + +Return SecRadioIndication::newBroadcastSms( + ::android::hardware::radio::V1_0::RadioIndicationType type, const hidl_vec& data) { + radioIndication->newBroadcastSms(type, data); + return Void(); +} + +Return SecRadioIndication::cdmaRuimSmsStorageFull( + ::android::hardware::radio::V1_0::RadioIndicationType type) { + radioIndication->cdmaRuimSmsStorageFull(type); + return Void(); +} + +Return SecRadioIndication::restrictedStateChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type, + ::android::hardware::radio::V1_0::PhoneRestrictedState state) { + radioIndication->restrictedStateChanged(type, state); + return Void(); +} + +Return SecRadioIndication::enterEmergencyCallbackMode( + ::android::hardware::radio::V1_0::RadioIndicationType type) { + radioIndication->enterEmergencyCallbackMode(type); + return Void(); +} + +Return SecRadioIndication::cdmaCallWaiting( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::CdmaCallWaiting& callWaitingRecord) { + radioIndication->cdmaCallWaiting(type, callWaitingRecord); + return Void(); +} + +Return SecRadioIndication::cdmaOtaProvisionStatus( + ::android::hardware::radio::V1_0::RadioIndicationType type, + ::android::hardware::radio::V1_0::CdmaOtaProvisionStatus status) { + radioIndication->cdmaOtaProvisionStatus(type, status); + return Void(); +} + +Return SecRadioIndication::cdmaInfoRec( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::CdmaInformationRecords& records) { + radioIndication->cdmaInfoRec(type, records); + return Void(); +} + +Return SecRadioIndication::indicateRingbackTone( + ::android::hardware::radio::V1_0::RadioIndicationType type, bool start) { + radioIndication->indicateRingbackTone(type, start); + return Void(); +} + +Return SecRadioIndication::resendIncallMute( + ::android::hardware::radio::V1_0::RadioIndicationType type) { + radioIndication->resendIncallMute(type); + return Void(); +} + +Return SecRadioIndication::cdmaSubscriptionSourceChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type, + ::android::hardware::radio::V1_0::CdmaSubscriptionSource cdmaSource) { + radioIndication->cdmaSubscriptionSourceChanged(type, cdmaSource); + return Void(); +} + +Return SecRadioIndication::cdmaPrlChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type, int32_t version) { + radioIndication->cdmaPrlChanged(type, version); + return Void(); +} + +Return SecRadioIndication::exitEmergencyCallbackMode( + ::android::hardware::radio::V1_0::RadioIndicationType type) { + radioIndication->exitEmergencyCallbackMode(type); + return Void(); +} + +Return SecRadioIndication::rilConnected( + ::android::hardware::radio::V1_0::RadioIndicationType type) { + radioIndication->rilConnected(type); + return Void(); +} + +Return SecRadioIndication::voiceRadioTechChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type, + ::android::hardware::radio::V1_0::RadioTechnology rat) { + radioIndication->voiceRadioTechChanged(type, rat); + return Void(); +} + +Return SecRadioIndication::cellInfoList( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_vec<::android::hardware::radio::V1_0::CellInfo>& records) { + radioIndication->cellInfoList(type, records); + return Void(); +} + +Return SecRadioIndication::imsNetworkStateChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type) { + radioIndication->imsNetworkStateChanged(type); + return Void(); +} + +Return SecRadioIndication::subscriptionStatusChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type, bool activate) { + radioIndication->subscriptionStatusChanged(type, activate); + return Void(); +} + +Return SecRadioIndication::srvccStateNotify( + ::android::hardware::radio::V1_0::RadioIndicationType type, + ::android::hardware::radio::V1_0::SrvccState state) { + radioIndication->srvccStateNotify(type, state); + return Void(); +} + +Return SecRadioIndication::hardwareConfigChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_vec<::android::hardware::radio::V1_0::HardwareConfig>& configs) { + radioIndication->hardwareConfigChanged(type, configs); + return Void(); +} + +Return SecRadioIndication::radioCapabilityIndication( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::RadioCapability& rc) { + radioIndication->radioCapabilityIndication(type, rc); + return Void(); +} + +Return SecRadioIndication::onSupplementaryServiceIndication( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::StkCcUnsolSsResult& ss) { + radioIndication->onSupplementaryServiceIndication(type, ss); + return Void(); +} + +Return SecRadioIndication::stkCallControlAlphaNotify( + ::android::hardware::radio::V1_0::RadioIndicationType type, const hidl_string& alpha) { + radioIndication->stkCallControlAlphaNotify(type, alpha); + return Void(); +} + +Return SecRadioIndication::lceData(::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::LceDataInfo& lce) { + radioIndication->lceData(type, lce); + return Void(); +} + +Return SecRadioIndication::pcoData(::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::PcoDataInfo& pco) { + radioIndication->pcoData(type, pco); + return Void(); +} + +Return SecRadioIndication::modemReset( + ::android::hardware::radio::V1_0::RadioIndicationType type, const hidl_string& reason) { + radioIndication->modemReset(type, reason); + return Void(); +} + +// Methods from ::android::hardware::radio::V1_1::IRadioIndication follow. +Return SecRadioIndication::carrierInfoForImsiEncryption( + ::android::hardware::radio::V1_0::RadioIndicationType info) { + radioIndication->carrierInfoForImsiEncryption(info); + return Void(); +} + +Return SecRadioIndication::networkScanResult( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_1::NetworkScanResult& result) { + radioIndication->networkScanResult(type, result); + return Void(); +} + +Return SecRadioIndication::keepaliveStatus( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_1::KeepaliveStatus& status) { + radioIndication->keepaliveStatus(type, status); + return Void(); +} + +// Methods from ::android::hardware::radio::V1_2::IRadioIndication follow. +Return SecRadioIndication::networkScanResult_1_2( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_2::NetworkScanResult& result) { + radioIndication->networkScanResult_1_2(type, result); + return Void(); +} + +Return SecRadioIndication::cellInfoList_1_2( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_vec<::android::hardware::radio::V1_2::CellInfo>& records) { + radioIndication->cellInfoList_1_2(type, records); + return Void(); +} + +Return SecRadioIndication::currentLinkCapacityEstimate( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_2::LinkCapacityEstimate& lce) { + radioIndication->currentLinkCapacityEstimate(type, lce); + return Void(); +} + +Return SecRadioIndication::currentPhysicalChannelConfigs( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_vec<::android::hardware::radio::V1_2::PhysicalChannelConfig>& configs) { + radioIndication->currentPhysicalChannelConfigs(type, configs); + return Void(); +} + +Return SecRadioIndication::currentSignalStrength_1_2( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_2::SignalStrength& signalStrength) { + radioIndication->currentSignalStrength_1_2(type, signalStrength); + return Void(); +} + +// Methods from ::vendor::samsung::hardware::radio::V1_2::IRadioIndication follow. +Return SecRadioIndication::secCurrentSignalStrength( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::vendor::samsung::hardware::radio::V1_2::SecSignalStrength& signalStrength) { + ::android::hardware::radio::V1_2::SignalStrength newSignalStrength = signalStrength.base; + if (signalStrength.base.lte.signalStrength == 99) { + // Set lte signal to invalid + newSignalStrength.lte.timingAdvance = std::numeric_limits::max(); + } + radioIndication->currentSignalStrength_1_2(type, newSignalStrength); + return Void(); +} + +Return SecRadioIndication::secImsNetworkStateChanged( + ::android::hardware::radio::V1_0::RadioIndicationType, const hidl_vec&) { + return Void(); +} + +Return SecRadioIndication::oemAcbInfoChanged( + ::android::hardware::radio::V1_0::RadioIndicationType, const hidl_vec&) { + return Void(); +} + +Return SecRadioIndication::oemCsFallback(::android::hardware::radio::V1_0::RadioIndicationType, + int32_t) { + return Void(); +} + +Return SecRadioIndication::oemImsPreferenceChangeInd( + ::android::hardware::radio::V1_0::RadioIndicationType, const hidl_vec&) { + return Void(); +} + +Return SecRadioIndication::oemVoiceRadioBearerHoStatusInd( + ::android::hardware::radio::V1_0::RadioIndicationType, int32_t) { + return Void(); +} + +Return SecRadioIndication::oemHysteresisDcnInd( + ::android::hardware::radio::V1_0::RadioIndicationType) { + return Void(); +} + +Return SecRadioIndication::oemTimerStatusChangedInd(int32_t, const hidl_vec&) { + return Void(); +} + +Return SecRadioIndication::oemModemCapInd(int32_t, const hidl_vec&) { + return Void(); +} + +Return SecRadioIndication::oemAmInd(int32_t, const hidl_string&) { + return Void(); +} + +Return SecRadioIndication::oemTrunRadioOnInd(int32_t) { + return Void(); +} + +Return SecRadioIndication::oemSimPbReadyInd(int32_t) { + return Void(); +} + +Return SecRadioIndication::oemPbInitCompleteInd(int32_t) { + return Void(); +} + +Return SecRadioIndication::oemDeviceReadyNoti(int32_t) { + return Void(); +} + +Return SecRadioIndication::oemStkSmsSendResultInd(int32_t, int32_t) { + return Void(); +} + +Return SecRadioIndication::oemStkCallControlResultInd(int32_t, const hidl_string&) { + return Void(); +} + +Return SecRadioIndication::oemSimSwapStateChangedInd(int32_t, int32_t) { + return Void(); +} + +Return SecRadioIndication::oemSimCountMismatchedInd(int32_t, int32_t) { + return Void(); +} + +Return SecRadioIndication::oemSimIccidNoti(int32_t, const hidl_string&) { + return Void(); +} + +Return SecRadioIndication::oemSimOnOffNoti(int32_t, int32_t) { + return Void(); +} + +Return SecRadioIndication::oemReleaseCompleteMessageInd( + int32_t, const ::vendor::samsung::hardware::radio::V1_2::OemSSReleaseComplete&) { + return Void(); +} + +Return SecRadioIndication::oemSapNoti(int32_t, const hidl_vec&) { + return Void(); +} + +Return SecRadioIndication::oemNrBearerAllocationChangeInd(int32_t, int32_t) { + return Void(); +} + +Return SecRadioIndication::oem5gStatusChangeInd(int32_t, int32_t) { + return Void(); +} + +Return SecRadioIndication::oemNrDcParamChangeInd( + int32_t, const ::vendor::samsung::hardware::radio::V1_2::DcParam&) { + return Void(); +} + +Return SecRadioIndication::oemNrSignalStrengthInd( + int32_t, const ::vendor::samsung::hardware::radio::V1_2::NrSignalStrength&) { + return Void(); +} + +Return SecRadioIndication::oemLoadApnProfile(const hidl_string&, oemLoadApnProfile_cb) { + return Void(); +} + +Return SecRadioIndication::oemGetSettingValue(const hidl_string&, const hidl_string&) { + return int32_t{}; +} + +} // namespace implementation +} // namespace V1_2 +} // namespace radio +} // namespace hardware +} // namespace samsung +} // namespace vendor diff --git a/hidl/radio/1.3/SecRadioIndication.h b/hidl/radio/1.3/SecRadioIndication.h new file mode 100644 index 00000000..b4adbac8 --- /dev/null +++ b/hidl/radio/1.3/SecRadioIndication.h @@ -0,0 +1,226 @@ +/* + * Copyright (C) 2019, The LineageOS Project + * + * Licensed under the Apache License, Version 2.1 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.1 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#pragma once + +#include +#include +#include + +namespace vendor { +namespace samsung { +namespace hardware { +namespace radio { +namespace V1_2 { +namespace implementation { + +using ::android::sp; +using ::android::hardware::hidl_array; +using ::android::hardware::hidl_memory; +using ::android::hardware::hidl_string; +using ::android::hardware::hidl_vec; +using ::android::hardware::Return; +using ::android::hardware::Void; + +struct SecRadioIndication : public IRadioIndication { + sp<::android::hardware::radio::V1_2::IRadioIndication> radioIndication; + + SecRadioIndication(const sp<::android::hardware::radio::V1_2::IRadioIndication>& radioIndication); + + // Methods from ::android::hardware::radio::V1_0::IRadioIndication follow. + Return radioStateChanged(::android::hardware::radio::V1_0::RadioIndicationType type, + ::android::hardware::radio::V1_0::RadioState radioState) override; + Return callStateChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type) override; + Return networkStateChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type) override; + Return newSms(::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_vec& pdu) override; + Return newSmsStatusReport(::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_vec& pdu) override; + Return newSmsOnSim(::android::hardware::radio::V1_0::RadioIndicationType type, + int32_t recordNumber) override; + Return onUssd(::android::hardware::radio::V1_0::RadioIndicationType type, + ::android::hardware::radio::V1_0::UssdModeType modeType, + const hidl_string& msg) override; + Return nitzTimeReceived(::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_string& nitzTime, uint64_t receivedTime) override; + Return currentSignalStrength( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::SignalStrength& signalStrength) override; + Return dataCallListChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_vec<::android::hardware::radio::V1_0::SetupDataCallResult>& dcList) override; + Return suppSvcNotify( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::SuppSvcNotification& suppSvc) override; + Return stkSessionEnd(::android::hardware::radio::V1_0::RadioIndicationType type) override; + Return stkProactiveCommand(::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_string& cmd) override; + Return stkEventNotify(::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_string& cmd) override; + Return stkCallSetup(::android::hardware::radio::V1_0::RadioIndicationType type, + int64_t timeout) override; + Return simSmsStorageFull( + ::android::hardware::radio::V1_0::RadioIndicationType type) override; + Return simRefresh( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::SimRefreshResult& refreshResult) override; + Return callRing( + ::android::hardware::radio::V1_0::RadioIndicationType type, bool isGsm, + const ::android::hardware::radio::V1_0::CdmaSignalInfoRecord& record) override; + Return simStatusChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type) override; + Return cdmaNewSms(::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::CdmaSmsMessage& msg) override; + Return newBroadcastSms(::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_vec& data) override; + Return cdmaRuimSmsStorageFull( + ::android::hardware::radio::V1_0::RadioIndicationType type) override; + Return restrictedStateChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type, + ::android::hardware::radio::V1_0::PhoneRestrictedState state) override; + Return enterEmergencyCallbackMode( + ::android::hardware::radio::V1_0::RadioIndicationType type) override; + Return cdmaCallWaiting( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::CdmaCallWaiting& callWaitingRecord) override; + Return cdmaOtaProvisionStatus( + ::android::hardware::radio::V1_0::RadioIndicationType type, + ::android::hardware::radio::V1_0::CdmaOtaProvisionStatus status) override; + Return cdmaInfoRec( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::CdmaInformationRecords& records) override; + Return indicateRingbackTone(::android::hardware::radio::V1_0::RadioIndicationType type, + bool start) override; + Return resendIncallMute( + ::android::hardware::radio::V1_0::RadioIndicationType type) override; + Return cdmaSubscriptionSourceChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type, + ::android::hardware::radio::V1_0::CdmaSubscriptionSource cdmaSource) override; + Return cdmaPrlChanged(::android::hardware::radio::V1_0::RadioIndicationType type, + int32_t version) override; + Return exitEmergencyCallbackMode( + ::android::hardware::radio::V1_0::RadioIndicationType type) override; + Return rilConnected(::android::hardware::radio::V1_0::RadioIndicationType type) override; + Return voiceRadioTechChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type, + ::android::hardware::radio::V1_0::RadioTechnology rat) override; + Return cellInfoList( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_vec<::android::hardware::radio::V1_0::CellInfo>& records) override; + Return imsNetworkStateChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type) override; + Return subscriptionStatusChanged(::android::hardware::radio::V1_0::RadioIndicationType type, + bool activate) override; + Return srvccStateNotify(::android::hardware::radio::V1_0::RadioIndicationType type, + ::android::hardware::radio::V1_0::SrvccState state) override; + Return hardwareConfigChanged( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_vec<::android::hardware::radio::V1_0::HardwareConfig>& configs) override; + Return radioCapabilityIndication( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::RadioCapability& rc) override; + Return onSupplementaryServiceIndication( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::StkCcUnsolSsResult& ss) override; + Return stkCallControlAlphaNotify(::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_string& alpha) override; + Return lceData(::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::LceDataInfo& lce) override; + Return pcoData(::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_0::PcoDataInfo& pco) override; + Return modemReset(::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_string& reason) override; + + // Methods from ::android::hardware::radio::V1_1::IRadioIndication follow. + Return carrierInfoForImsiEncryption( + ::android::hardware::radio::V1_0::RadioIndicationType info) override; + Return networkScanResult( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_1::NetworkScanResult& result) override; + Return keepaliveStatus( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_1::KeepaliveStatus& status) override; + + // Methods from ::android::hardware::radio::V1_2::IRadioIndication follow. + Return networkScanResult_1_2( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_2::NetworkScanResult& result) override; + Return cellInfoList_1_2( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_vec<::android::hardware::radio::V1_2::CellInfo>& records) override; + Return currentLinkCapacityEstimate( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_2::LinkCapacityEstimate& lce) override; + Return currentPhysicalChannelConfigs( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_vec<::android::hardware::radio::V1_2::PhysicalChannelConfig>& configs) override; + Return currentSignalStrength_1_2( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::android::hardware::radio::V1_2::SignalStrength& signalStrength) override; + + // Methods from ::vendor::samsung::hardware::radio::V1_2::IRadioIndication follow. + Return secCurrentSignalStrength( + ::android::hardware::radio::V1_0::RadioIndicationType type, + const ::vendor::samsung::hardware::radio::V1_2::SecSignalStrength& signalStrength) override; + Return secImsNetworkStateChanged(::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_vec& regState) override; + Return oemAcbInfoChanged(::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_vec& acbInfo) override; + Return oemCsFallback(::android::hardware::radio::V1_0::RadioIndicationType type, + int32_t state) override; + Return oemImsPreferenceChangeInd(::android::hardware::radio::V1_0::RadioIndicationType type, + const hidl_vec& imsPref) override; + Return oemVoiceRadioBearerHoStatusInd( + ::android::hardware::radio::V1_0::RadioIndicationType type, int32_t state) override; + Return oemHysteresisDcnInd( + ::android::hardware::radio::V1_0::RadioIndicationType type) override; + Return oemTimerStatusChangedInd(int32_t type, const hidl_vec& eventNoti) override; + Return oemModemCapInd(int32_t type, const hidl_vec& data) override; + Return oemAmInd(int32_t type, const hidl_string& intent) override; + Return oemTrunRadioOnInd(int32_t type) override; + Return oemSimPbReadyInd(int32_t type) override; + Return oemPbInitCompleteInd(int32_t type) override; + Return oemDeviceReadyNoti(int32_t type) override; + Return oemStkSmsSendResultInd(int32_t type, int32_t result) override; + Return oemStkCallControlResultInd(int32_t type, const hidl_string& cmd) override; + Return oemSimSwapStateChangedInd(int32_t type, int32_t state) override; + Return oemSimCountMismatchedInd(int32_t type, int32_t state) override; + Return oemSimIccidNoti(int32_t type, const hidl_string& iccid) override; + Return oemSimOnOffNoti(int32_t type, int32_t mode) override; + Return oemReleaseCompleteMessageInd( + int32_t typer, + const ::vendor::samsung::hardware::radio::V1_2::OemSSReleaseComplete& result) override; + Return oemSapNoti(int32_t type, const hidl_vec& data) override; + Return oemNrBearerAllocationChangeInd(int32_t type, int32_t status) override; + Return oem5gStatusChangeInd(int32_t type, int32_t status) override; + Return oemNrDcParamChangeInd( + int32_t type, const ::vendor::samsung::hardware::radio::V1_2::DcParam& dcParam) override; + Return oemNrSignalStrengthInd( + int32_t type, + const ::vendor::samsung::hardware::radio::V1_2::NrSignalStrength& nrSignalStrength) override; + Return oemLoadApnProfile(const hidl_string& select, + oemLoadApnProfile_cb _hidl_cb) override; + Return oemGetSettingValue(const hidl_string& key, const hidl_string& table) override; +}; + +} // namespace implementation +} // namespace V1_2 +} // namespace radio +} // namespace hardware +} // namespace samsung +} // namespace vendor diff --git a/hidl/radio/1.3/SecRadioResponse.cpp b/hidl/radio/1.3/SecRadioResponse.cpp new file mode 100644 index 00000000..06411746 --- /dev/null +++ b/hidl/radio/1.3/SecRadioResponse.cpp @@ -0,0 +1,1273 @@ +/* + * Copyright (C) 2019, The LineageOS Project + * + * Licensed under the Apache License, Version 2.1 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.1 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "SecRadioResponse.h" + +namespace vendor { +namespace samsung { +namespace hardware { +namespace radio { +namespace V1_2 { +namespace implementation { + +SecRadioResponse::SecRadioResponse( + int simSlot, const sp<::android::hardware::radio::V1_2::IRadioResponse>& radioResponse) + : simSlot(simSlot), radioResponse(radioResponse) {} + +// Methods from ::android::hardware::radio::V1_0::IRadioResponse follow. +Return SecRadioResponse::getIccCardStatusResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::CardStatus& cardStatus) { + radioResponse->getIccCardStatusResponse(info, cardStatus); + return Void(); +} + +Return SecRadioResponse::supplyIccPinForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t remainingRetries) { + radioResponse->supplyIccPinForAppResponse(info, remainingRetries); + return Void(); +} + +Return SecRadioResponse::supplyIccPukForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t remainingRetries) { + radioResponse->supplyIccPukForAppResponse(info, remainingRetries); + return Void(); +} + +Return SecRadioResponse::supplyIccPin2ForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t remainingRetries) { + radioResponse->supplyIccPin2ForAppResponse(info, remainingRetries); + return Void(); +} + +Return SecRadioResponse::supplyIccPuk2ForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t remainingRetries) { + radioResponse->supplyIccPuk2ForAppResponse(info, remainingRetries); + return Void(); +} + +Return SecRadioResponse::changeIccPinForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t remainingRetries) { + radioResponse->changeIccPinForAppResponse(info, remainingRetries); + return Void(); +} + +Return SecRadioResponse::changeIccPin2ForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t remainingRetries) { + radioResponse->changeIccPin2ForAppResponse(info, remainingRetries); + return Void(); +} + +Return SecRadioResponse::supplyNetworkDepersonalizationResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t remainingRetries) { + radioResponse->supplyNetworkDepersonalizationResponse(info, remainingRetries); + return Void(); +} + +Return SecRadioResponse::getCurrentCallsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::Call>& calls) { + radioResponse->getCurrentCallsResponse(info, calls); + return Void(); +} + +Return SecRadioResponse::dialResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->dialResponse(info); + return Void(); +} + +Return SecRadioResponse::getIMSIForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, const hidl_string& imsi) { + radioResponse->getIMSIForAppResponse(info, imsi); + return Void(); +} + +Return SecRadioResponse::hangupConnectionResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->hangupConnectionResponse(info); + return Void(); +} + +Return SecRadioResponse::hangupWaitingOrBackgroundResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->hangupWaitingOrBackgroundResponse(info); + return Void(); +} + +Return SecRadioResponse::hangupForegroundResumeBackgroundResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->hangupForegroundResumeBackgroundResponse(info); + return Void(); +} + +Return SecRadioResponse::switchWaitingOrHoldingAndActiveResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->switchWaitingOrHoldingAndActiveResponse(info); + return Void(); +} + +Return SecRadioResponse::conferenceResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->conferenceResponse(info); + return Void(); +} + +Return SecRadioResponse::rejectCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->rejectCallResponse(info); + return Void(); +} + +Return SecRadioResponse::getLastCallFailCauseResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::LastCallFailCauseInfo& failCauseinfo) { + radioResponse->getLastCallFailCauseResponse(info, failCauseinfo); + return Void(); +} + +Return SecRadioResponse::getSignalStrengthResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::SignalStrength& sigStrength) { + radioResponse->getSignalStrengthResponse(info, sigStrength); + return Void(); +} + +Return SecRadioResponse::getVoiceRegistrationStateResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::VoiceRegStateResult& voiceRegResponse) { + radioResponse->getVoiceRegistrationStateResponse(info, voiceRegResponse); + return Void(); +} + +Return SecRadioResponse::getDataRegistrationStateResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::DataRegStateResult& dataRegResponse) { + radioResponse->getDataRegistrationStateResponse(info, dataRegResponse); + return Void(); +} + +Return SecRadioResponse::getOperatorResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, const hidl_string& longName, + const hidl_string& shortName, const hidl_string& numeric) { + radioResponse->getOperatorResponse(info, longName, shortName, numeric); + return Void(); +} + +Return SecRadioResponse::setRadioPowerResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setRadioPowerResponse(info); + return Void(); +} + +Return SecRadioResponse::sendDtmfResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->sendDtmfResponse(info); + return Void(); +} + +Return SecRadioResponse::sendSmsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::SendSmsResult& sms) { + radioResponse->sendSmsResponse(info, sms); + return Void(); +} + +Return SecRadioResponse::sendSMSExpectMoreResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::SendSmsResult& sms) { + radioResponse->sendSMSExpectMoreResponse(info, sms); + return Void(); +} + +Return SecRadioResponse::setupDataCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::SetupDataCallResult& dcResponse) { + radioResponse->setupDataCallResponse(info, dcResponse); + return Void(); +} + +Return SecRadioResponse::iccIOForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::IccIoResult& iccIo) { + radioResponse->iccIOForAppResponse(info, iccIo); + return Void(); +} + +Return SecRadioResponse::sendUssdResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->sendUssdResponse(info); + return Void(); +} + +Return SecRadioResponse::cancelPendingUssdResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->cancelPendingUssdResponse(info); + return Void(); +} + +Return SecRadioResponse::getClirResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t n, int32_t m) { + radioResponse->getClirResponse(info, n, m); + return Void(); +} + +Return SecRadioResponse::setClirResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setClirResponse(info); + return Void(); +} + +Return SecRadioResponse::getCallForwardStatusResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::CallForwardInfo>& callForwardInfos) { + radioResponse->getCallForwardStatusResponse(info, callForwardInfos); + return Void(); +} + +Return SecRadioResponse::setCallForwardResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setCallForwardResponse(info); + return Void(); +} + +Return SecRadioResponse::getCallWaitingResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, bool enable, + int32_t serviceClass) { + radioResponse->getCallWaitingResponse(info, enable, serviceClass); + return Void(); +} + +Return SecRadioResponse::setCallWaitingResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setCallWaitingResponse(info); + return Void(); +} + +Return SecRadioResponse::acknowledgeLastIncomingGsmSmsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->acknowledgeLastIncomingGsmSmsResponse(info); + return Void(); +} + +Return SecRadioResponse::acceptCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->acceptCallResponse(info); + return Void(); +} + +Return SecRadioResponse::deactivateDataCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->deactivateDataCallResponse(info); + return Void(); +} + +Return SecRadioResponse::getFacilityLockForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t response) { + radioResponse->getFacilityLockForAppResponse(info, response); + return Void(); +} + +Return SecRadioResponse::setFacilityLockForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t retry) { + radioResponse->setFacilityLockForAppResponse(info, retry); + return Void(); +} + +Return SecRadioResponse::setBarringPasswordResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setBarringPasswordResponse(info); + return Void(); +} + +Return SecRadioResponse::getNetworkSelectionModeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, bool manual) { + radioResponse->getNetworkSelectionModeResponse(info, manual); + return Void(); +} + +Return SecRadioResponse::setNetworkSelectionModeAutomaticResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setNetworkSelectionModeAutomaticResponse(info); + return Void(); +} + +Return SecRadioResponse::setNetworkSelectionModeManualResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setNetworkSelectionModeManualResponse(info); + return Void(); +} + +Return SecRadioResponse::getAvailableNetworksResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::OperatorInfo>& networkInfos) { + radioResponse->getAvailableNetworksResponse(info, networkInfos); + return Void(); +} + +Return SecRadioResponse::startDtmfResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->startDtmfResponse(info); + return Void(); +} + +Return SecRadioResponse::stopDtmfResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->stopDtmfResponse(info); + return Void(); +} + +Return SecRadioResponse::getBasebandVersionResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, const hidl_string& version) { + radioResponse->getBasebandVersionResponse(info, version); + return Void(); +} + +Return SecRadioResponse::separateConnectionResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->separateConnectionResponse(info); + return Void(); +} + +Return SecRadioResponse::setMuteResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setMuteResponse(info); + return Void(); +} + +Return SecRadioResponse::getMuteResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, bool enable) { + radioResponse->getMuteResponse(info, enable); + return Void(); +} + +Return SecRadioResponse::getClipResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + ::android::hardware::radio::V1_0::ClipStatus status) { + radioResponse->getClipResponse(info, status); + return Void(); +} + +Return SecRadioResponse::getDataCallListResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::SetupDataCallResult>& dcResponse) { + radioResponse->getDataCallListResponse(info, dcResponse); + return Void(); +} + +Return SecRadioResponse::setSuppServiceNotificationsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setSuppServiceNotificationsResponse(info); + return Void(); +} + +Return SecRadioResponse::writeSmsToSimResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t index) { + radioResponse->writeSmsToSimResponse(info, index); + return Void(); +} + +Return SecRadioResponse::deleteSmsOnSimResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->deleteSmsOnSimResponse(info); + return Void(); +} + +Return SecRadioResponse::setBandModeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setBandModeResponse(info); + return Void(); +} + +Return SecRadioResponse::getAvailableBandModesResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::RadioBandMode>& bandModes) { + radioResponse->getAvailableBandModesResponse(info, bandModes); + return Void(); +} + +Return SecRadioResponse::sendEnvelopeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_string& commandResponse) { + radioResponse->sendEnvelopeResponse(info, commandResponse); + return Void(); +} + +Return SecRadioResponse::sendTerminalResponseToSimResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->sendTerminalResponseToSimResponse(info); + return Void(); +} + +Return SecRadioResponse::handleStkCallSetupRequestFromSimResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->handleStkCallSetupRequestFromSimResponse(info); + return Void(); +} + +Return SecRadioResponse::explicitCallTransferResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->explicitCallTransferResponse(info); + return Void(); +} + +Return SecRadioResponse::setPreferredNetworkTypeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setPreferredNetworkTypeResponse(info); + return Void(); +} + +Return SecRadioResponse::getPreferredNetworkTypeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + ::android::hardware::radio::V1_0::PreferredNetworkType nwType) { + radioResponse->getPreferredNetworkTypeResponse(info, nwType); + return Void(); +} + +Return SecRadioResponse::getNeighboringCidsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::NeighboringCell>& cells) { + radioResponse->getNeighboringCidsResponse(info, cells); + return Void(); +} + +Return SecRadioResponse::setLocationUpdatesResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setLocationUpdatesResponse(info); + return Void(); +} + +Return SecRadioResponse::setCdmaSubscriptionSourceResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setCdmaSubscriptionSourceResponse(info); + return Void(); +} + +Return SecRadioResponse::setCdmaRoamingPreferenceResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setCdmaRoamingPreferenceResponse(info); + return Void(); +} + +Return SecRadioResponse::getCdmaRoamingPreferenceResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + ::android::hardware::radio::V1_0::CdmaRoamingType type) { + radioResponse->getCdmaRoamingPreferenceResponse(info, type); + return Void(); +} + +Return SecRadioResponse::setTTYModeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setTTYModeResponse(info); + return Void(); +} + +Return SecRadioResponse::getTTYModeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + ::android::hardware::radio::V1_0::TtyMode mode) { + radioResponse->getTTYModeResponse(info, mode); + return Void(); +} + +Return SecRadioResponse::setPreferredVoicePrivacyResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setPreferredVoicePrivacyResponse(info); + return Void(); +} + +Return SecRadioResponse::getPreferredVoicePrivacyResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, bool enable) { + radioResponse->getPreferredVoicePrivacyResponse(info, enable); + return Void(); +} + +Return SecRadioResponse::sendCDMAFeatureCodeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->sendCDMAFeatureCodeResponse(info); + return Void(); +} + +Return SecRadioResponse::sendBurstDtmfResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->sendBurstDtmfResponse(info); + return Void(); +} + +Return SecRadioResponse::sendCdmaSmsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::SendSmsResult& sms) { + radioResponse->sendCdmaSmsResponse(info, sms); + return Void(); +} + +Return SecRadioResponse::acknowledgeLastIncomingCdmaSmsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->acknowledgeLastIncomingCdmaSmsResponse(info); + return Void(); +} + +Return SecRadioResponse::getGsmBroadcastConfigResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::GsmBroadcastSmsConfigInfo>& configs) { + radioResponse->getGsmBroadcastConfigResponse(info, configs); + return Void(); +} + +Return SecRadioResponse::setGsmBroadcastConfigResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setGsmBroadcastConfigResponse(info); + return Void(); +} + +Return SecRadioResponse::setGsmBroadcastActivationResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setGsmBroadcastActivationResponse(info); + return Void(); +} + +Return SecRadioResponse::getCdmaBroadcastConfigResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::CdmaBroadcastSmsConfigInfo>& configs) { + radioResponse->getCdmaBroadcastConfigResponse(info, configs); + return Void(); +} + +Return SecRadioResponse::setCdmaBroadcastConfigResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setCdmaBroadcastConfigResponse(info); + return Void(); +} + +Return SecRadioResponse::setCdmaBroadcastActivationResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setCdmaBroadcastActivationResponse(info); + return Void(); +} + +Return SecRadioResponse::getCDMASubscriptionResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, const hidl_string& mdn, + const hidl_string& hSid, const hidl_string& hNid, const hidl_string& min, + const hidl_string& prl) { + radioResponse->getCDMASubscriptionResponse(info, mdn, hSid, hNid, min, prl); + return Void(); +} + +Return SecRadioResponse::writeSmsToRuimResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, uint32_t index) { + radioResponse->writeSmsToRuimResponse(info, index); + return Void(); +} + +Return SecRadioResponse::deleteSmsOnRuimResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->deleteSmsOnRuimResponse(info); + return Void(); +} + +Return SecRadioResponse::getDeviceIdentityResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, const hidl_string& imei, + const hidl_string& imeisv, const hidl_string& esn, const hidl_string& meid) { + radioResponse->getDeviceIdentityResponse(info, imei, imeisv, esn, meid); + return Void(); +} + +Return SecRadioResponse::exitEmergencyCallbackModeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->exitEmergencyCallbackModeResponse(info); + return Void(); +} + +Return SecRadioResponse::getSmscAddressResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, const hidl_string& smsc) { + radioResponse->getSmscAddressResponse(info, smsc); + return Void(); +} + +Return SecRadioResponse::setSmscAddressResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setSmscAddressResponse(info); + return Void(); +} + +Return SecRadioResponse::reportSmsMemoryStatusResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->reportSmsMemoryStatusResponse(info); + return Void(); +} + +Return SecRadioResponse::reportStkServiceIsRunningResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->reportStkServiceIsRunningResponse(info); + return Void(); +} + +Return SecRadioResponse::getCdmaSubscriptionSourceResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + ::android::hardware::radio::V1_0::CdmaSubscriptionSource source) { + radioResponse->getCdmaSubscriptionSourceResponse(info, source); + return Void(); +} + +Return SecRadioResponse::requestIsimAuthenticationResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, const hidl_string& response) { + radioResponse->requestIsimAuthenticationResponse(info, response); + return Void(); +} + +Return SecRadioResponse::acknowledgeIncomingGsmSmsWithPduResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->acknowledgeIncomingGsmSmsWithPduResponse(info); + return Void(); +} + +Return SecRadioResponse::sendEnvelopeWithStatusResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::IccIoResult& iccIo) { + radioResponse->sendEnvelopeWithStatusResponse(info, iccIo); + return Void(); +} + +Return SecRadioResponse::getVoiceRadioTechnologyResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + ::android::hardware::radio::V1_0::RadioTechnology rat) { + radioResponse->getVoiceRadioTechnologyResponse(info, rat); + return Void(); +} + +Return SecRadioResponse::getCellInfoListResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::CellInfo>& cellInfo) { + radioResponse->getCellInfoListResponse(info, cellInfo); + return Void(); +} + +Return SecRadioResponse::setCellInfoListRateResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setCellInfoListRateResponse(info); + return Void(); +} + +Return SecRadioResponse::setInitialAttachApnResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setInitialAttachApnResponse(info); + return Void(); +} + +Return SecRadioResponse::getImsRegistrationStateResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, bool isRegistered, + ::android::hardware::radio::V1_0::RadioTechnologyFamily ratFamily) { + radioResponse->getImsRegistrationStateResponse(info, isRegistered, ratFamily); + return Void(); +} + +Return SecRadioResponse::sendImsSmsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::SendSmsResult& sms) { + radioResponse->sendImsSmsResponse(info, sms); + return Void(); +} + +Return SecRadioResponse::iccTransmitApduBasicChannelResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::IccIoResult& result) { + radioResponse->iccTransmitApduBasicChannelResponse(info, result); + return Void(); +} + +Return SecRadioResponse::iccOpenLogicalChannelResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t channelId, + const hidl_vec& selectResponse) { + radioResponse->iccOpenLogicalChannelResponse(info, channelId, selectResponse); + return Void(); +} + +Return SecRadioResponse::iccCloseLogicalChannelResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->iccCloseLogicalChannelResponse(info); + return Void(); +} + +Return SecRadioResponse::iccTransmitApduLogicalChannelResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::IccIoResult& result) { + radioResponse->iccTransmitApduLogicalChannelResponse(info, result); + return Void(); +} + +Return SecRadioResponse::nvReadItemResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, const hidl_string& result) { + radioResponse->nvReadItemResponse(info, result); + return Void(); +} + +Return SecRadioResponse::nvWriteItemResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->nvWriteItemResponse(info); + return Void(); +} + +Return SecRadioResponse::nvWriteCdmaPrlResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->nvWriteCdmaPrlResponse(info); + return Void(); +} + +Return SecRadioResponse::nvResetConfigResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->nvResetConfigResponse(info); + return Void(); +} + +Return SecRadioResponse::setUiccSubscriptionResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setUiccSubscriptionResponse(info); + return Void(); +} + +Return SecRadioResponse::setDataAllowedResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setDataAllowedResponse(info); + return Void(); +} + +Return SecRadioResponse::getHardwareConfigResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::HardwareConfig>& config) { + radioResponse->getHardwareConfigResponse(info, config); + return Void(); +} + +Return SecRadioResponse::requestIccSimAuthenticationResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::IccIoResult& result) { + radioResponse->requestIccSimAuthenticationResponse(info, result); + return Void(); +} + +Return SecRadioResponse::setDataProfileResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setDataProfileResponse(info); + return Void(); +} + +Return SecRadioResponse::requestShutdownResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->requestShutdownResponse(info); + return Void(); +} + +Return SecRadioResponse::getRadioCapabilityResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::RadioCapability& rc) { + radioResponse->getRadioCapabilityResponse(info, rc); + return Void(); +} + +Return SecRadioResponse::setRadioCapabilityResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::RadioCapability& rc) { + radioResponse->setRadioCapabilityResponse(info, rc); + return Void(); +} + +Return SecRadioResponse::startLceServiceResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::LceStatusInfo& statusInfo) { + radioResponse->startLceServiceResponse(info, statusInfo); + return Void(); +} + +Return SecRadioResponse::stopLceServiceResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::LceStatusInfo& statusInfo) { + radioResponse->stopLceServiceResponse(info, statusInfo); + return Void(); +} + +Return SecRadioResponse::pullLceDataResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::LceDataInfo& lceInfo) { + radioResponse->pullLceDataResponse(info, lceInfo); + return Void(); +} + +Return SecRadioResponse::getModemActivityInfoResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::ActivityStatsInfo& activityInfo) { + radioResponse->getModemActivityInfoResponse(info, activityInfo); + return Void(); +} + +Return SecRadioResponse::setAllowedCarriersResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t numAllowed) { + radioResponse->setAllowedCarriersResponse(info, numAllowed); + return Void(); +} + +Return SecRadioResponse::getAllowedCarriersResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, bool allAllowed, + const ::android::hardware::radio::V1_0::CarrierRestrictions& carriers) { + radioResponse->getAllowedCarriersResponse(info, allAllowed, carriers); + return Void(); +} + +Return SecRadioResponse::sendDeviceStateResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->sendDeviceStateResponse(info); + return Void(); +} + +Return SecRadioResponse::setIndicationFilterResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setIndicationFilterResponse(info); + return Void(); +} + +Return SecRadioResponse::setSimCardPowerResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setSimCardPowerResponse(info); + return Void(); +} + +Return SecRadioResponse::acknowledgeRequest(int32_t serial) { + radioResponse->acknowledgeRequest(serial); + return Void(); +} + +// Methods from ::android::hardware::radio::V1_1::IRadioResponse follow. +Return SecRadioResponse::setCarrierInfoForImsiEncryptionResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setCarrierInfoForImsiEncryptionResponse(info); + return Void(); +} + +Return SecRadioResponse::setSimCardPowerResponse_1_1( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setSimCardPowerResponse_1_1(info); + return Void(); +} + +Return SecRadioResponse::startNetworkScanResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->startNetworkScanResponse(info); + return Void(); +} + +Return SecRadioResponse::stopNetworkScanResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->stopNetworkScanResponse(info); + return Void(); +} + +Return SecRadioResponse::startKeepaliveResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_1::KeepaliveStatus& status) { + radioResponse->startKeepaliveResponse(info, status); + return Void(); +} + +Return SecRadioResponse::stopKeepaliveResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->stopKeepaliveResponse(info); + return Void(); +} + +// Methods from ::android::hardware::radio::V1_2::IRadioResponse follow. +Return SecRadioResponse::getCellInfoListResponse_1_2( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_2::CellInfo>& cellInfo) { + radioResponse->getCellInfoListResponse_1_2(info, cellInfo); + return Void(); +} + +Return SecRadioResponse::getIccCardStatusResponse_1_2( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_2::CardStatus& cardStatus) { + radioResponse->getIccCardStatusResponse_1_2(info, cardStatus); + return Void(); +} + +Return SecRadioResponse::setSignalStrengthReportingCriteriaResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setSignalStrengthReportingCriteriaResponse(info); + return Void(); +} + +Return SecRadioResponse::setLinkCapacityReportingCriteriaResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) { + radioResponse->setLinkCapacityReportingCriteriaResponse(info); + return Void(); +} + +Return SecRadioResponse::getCurrentCallsResponse_1_2( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_2::Call>& calls) { + radioResponse->getCurrentCallsResponse_1_2(info, calls); + return Void(); +} + +Return SecRadioResponse::getSignalStrengthResponse_1_2( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_2::SignalStrength& signalStrength) { + radioResponse->getSignalStrengthResponse_1_2(info, signalStrength); + return Void(); +} + +Return SecRadioResponse::getVoiceRegistrationStateResponse_1_2( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_2::VoiceRegStateResult& voiceRegResponse) { + radioResponse->getVoiceRegistrationStateResponse_1_2(info, voiceRegResponse); + return Void(); +} + +Return SecRadioResponse::getDataRegistrationStateResponse_1_2( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_2::DataRegStateResult& dataRegResponse) { + radioResponse->getDataRegistrationStateResponse_1_2(info, dataRegResponse); + return Void(); +} + +// Methods from ::vendor::samsung::hardware::radio::V1_2::IRadioResponse follow. +Return SecRadioResponse::secGetIccCardStatusReponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const ::vendor::samsung::hardware::radio::V1_2::SecCardStatus&) { + return Void(); +} + +Return SecRadioResponse::secSupplyNetworkDepersonalizationResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, int32_t) { + return Void(); +} + +Return SecRadioResponse::secAcceptCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::secDialResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::secGetCurrentCallsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const hidl_vec<::vendor::samsung::hardware::radio::V1_2::SecCall>&) { + return Void(); +} + +Return SecRadioResponse::secGetSignalStrengthResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const ::vendor::samsung::hardware::radio::V1_2::SecSignalStrength&) { + return Void(); +} + +Return SecRadioResponse::secGetVoiceRegistrationStateResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const ::vendor::samsung::hardware::radio::V1_2::SecVoiceRegStateResult&) { + return Void(); +} + +Return SecRadioResponse::secGetDataRegistrationStateResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const ::vendor::samsung::hardware::radio::V1_2::SecDataRegStateResult&) { + return Void(); +} + +Return SecRadioResponse::secExplicitCallTransferResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::secGetOperatorRespnse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, const hidl_string&, + const hidl_string&, const hidl_string&, const hidl_string&) { + return Void(); +} + +Return SecRadioResponse::oemSetBarringPasswordResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::secgetImsRegistrationStateReponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, const hidl_vec&) { + return Void(); +} + +Return SecRadioResponse::secGetAvailableNetworkResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const hidl_vec<::vendor::samsung::hardware::radio::V1_2::SecOperatorInfo>&) { + return Void(); +} + +Return SecRadioResponse::oemDialEmergencyCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemCallDeflectionResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemModifyCallInitiateResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const ::android::hardware::radio::V1_0::LastCallFailCauseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemSetImsCallListResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemGetPreferredNetworkListResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const hidl_vec<::vendor::samsung::hardware::radio::V1_2::OemPreferredNetworkInfo>&) { + return Void(); +} + +Return SecRadioResponse::oemSetPreferredNetworkListResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemSendEncodedUSSDResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemHoldCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemGetDisable2gResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, int32_t) { + return Void(); +} + +Return SecRadioResponse::oemSetDisable2gResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oenGetAcbInfoResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, const hidl_vec&) { + return Void(); +} + +Return SecRadioResponse::oemSetTransferCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemGetICBarringResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, const hidl_string&) { + return Void(); +} + +Return SecRadioResponse::oemSetICBarringResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemQueryCnapResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, int32_t) { + return Void(); +} + +Return SecRadioResponse::oemRefreshNitzTimeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemEnableUnsolResponseResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemCancelTransferCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemAcknowledgeRilConnectedResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemGetPhoneBookStorageInfoResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, const hidl_vec&) { + return Void(); +} + +Return SecRadioResponse::oemUsimPbCapaResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, const hidl_vec&) { + return Void(); +} + +Return SecRadioResponse::oemSetSimPowerResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, int32_t) { + return Void(); +} + +Return SecRadioResponse::oemSetSimOnOffResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemSetSimInitEventResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemGetSimLockInfoResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, const hidl_vec&) { + return Void(); +} + +Return SecRadioResponse::oemSupplyIccPersoResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemChangeIccPersoResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemGetPhoneBookEntryResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const ::vendor::samsung::hardware::radio::V1_2::OemSimPBResponse&) { + return Void(); +} + +Return SecRadioResponse::oemAccessPhoneBookEntryResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, int32_t) { + return Void(); +} + +Return SecRadioResponse::oemGetCellBroadcastConfigResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const ::vendor::samsung::hardware::radio::V1_2::OemCbConfigArgs&) { + return Void(); +} + +Return SecRadioResponse::oemEmergencySearchResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, int32_t) { + return Void(); +} + +Return SecRadioResponse::oemEmergencyControlResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::oemGetAtrResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, const hidl_string&) { + return Void(); +} + +Return SecRadioResponse::oemSendCdmaSmsExpectMoreResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const ::vendor::samsung::hardware::radio::V1_2::SecSendSmsResult&) { + return Void(); +} + +Return SecRadioResponse::secSendSmsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const ::vendor::samsung::hardware::radio::V1_2::SecSendSmsResult&) { + return Void(); +} + +Return SecRadioResponse::secSendSMSExpectMoreResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const ::vendor::samsung::hardware::radio::V1_2::SecSendSmsResult&) { + return Void(); +} + +Return SecRadioResponse::secSendCdmaSmsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const ::vendor::samsung::hardware::radio::V1_2::SecSendSmsResult&) { + return Void(); +} + +Return SecRadioResponse::secSendImsSmsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const ::vendor::samsung::hardware::radio::V1_2::SecSendSmsResult&) { + return Void(); +} + +Return SecRadioResponse::secSetDataAllowedResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::secGetCdmaRoamingPreferenceResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, int32_t, int32_t) { + return Void(); +} + +Return SecRadioResponse::secEnable5gResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::secDisable5gResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::secQuery5gStatusResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +Return SecRadioResponse::secQueryNrDcParamResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const ::vendor::samsung::hardware::radio::V1_2::DcParam&) { + return Void(); +} + +Return SecRadioResponse::secQueryNrBearerAllocationResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, int32_t) { + return Void(); +} + +Return SecRadioResponse::secQueryNrSignalStrengthResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const ::vendor::samsung::hardware::radio::V1_2::NrSignalStrength&) { + return Void(); +} + +Return SecRadioResponse::oemQueryCsgListResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&, + const hidl_vec<::vendor::samsung::hardware::radio::V1_2::OemCsgInfo>&) { + return Void(); +} + +Return SecRadioResponse::oemSelectCsgManualResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo&) { + return Void(); +} + +} // namespace implementation +} // namespace V1_2 +} // namespace radio +} // namespace hardware +} // namespace samsung +} // namespace vendor diff --git a/hidl/radio/1.3/SecRadioResponse.h b/hidl/radio/1.3/SecRadioResponse.h new file mode 100644 index 00000000..52fd2adc --- /dev/null +++ b/hidl/radio/1.3/SecRadioResponse.h @@ -0,0 +1,563 @@ +/* + * Copyright (C) 2019, The LineageOS Project + * + * Licensed under the Apache License, Version 2.1 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.1 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#pragma once + +#include +#include +#include + +namespace vendor { +namespace samsung { +namespace hardware { +namespace radio { +namespace V1_2 { +namespace implementation { + +using ::android::sp; +using ::android::hardware::hidl_array; +using ::android::hardware::hidl_memory; +using ::android::hardware::hidl_string; +using ::android::hardware::hidl_vec; +using ::android::hardware::Return; +using ::android::hardware::Void; + +struct SecRadioResponse : public IRadioResponse { + int simSlot; + sp<::android::hardware::radio::V1_2::IRadioResponse> radioResponse; + + SecRadioResponse(int simSlot, + const sp<::android::hardware::radio::V1_2::IRadioResponse>& radioResponse); + + // Methods from ::android::hardware::radio::V1_0::IRadioResponse follow. + Return getIccCardStatusResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::CardStatus& cardStatus) override; + Return supplyIccPinForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + int32_t remainingRetries) override; + Return supplyIccPukForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + int32_t remainingRetries) override; + Return supplyIccPin2ForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + int32_t remainingRetries) override; + Return supplyIccPuk2ForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + int32_t remainingRetries) override; + Return changeIccPinForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + int32_t remainingRetries) override; + Return changeIccPin2ForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + int32_t remainingRetries) override; + Return supplyNetworkDepersonalizationResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + int32_t remainingRetries) override; + Return getCurrentCallsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::Call>& calls) override; + Return dialResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getIMSIForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_string& imsi) override; + Return hangupConnectionResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return hangupWaitingOrBackgroundResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return hangupForegroundResumeBackgroundResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return switchWaitingOrHoldingAndActiveResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return conferenceResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return rejectCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getLastCallFailCauseResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::LastCallFailCauseInfo& failCauseinfo) override; + Return getSignalStrengthResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::SignalStrength& sigStrength) override; + Return getVoiceRegistrationStateResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::VoiceRegStateResult& voiceRegResponse) override; + Return getDataRegistrationStateResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::DataRegStateResult& dataRegResponse) override; + Return getOperatorResponse(const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_string& longName, const hidl_string& shortName, + const hidl_string& numeric) override; + Return setRadioPowerResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return sendDtmfResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return sendSmsResponse(const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::SendSmsResult& sms) override; + Return sendSMSExpectMoreResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::SendSmsResult& sms) override; + Return setupDataCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::SetupDataCallResult& dcResponse) override; + Return iccIOForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::IccIoResult& iccIo) override; + Return sendUssdResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return cancelPendingUssdResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getClirResponse(const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + int32_t n, int32_t m) override; + Return setClirResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getCallForwardStatusResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::CallForwardInfo>& callForwardInfos) override; + Return setCallForwardResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getCallWaitingResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, bool enable, + int32_t serviceClass) override; + Return setCallWaitingResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return acknowledgeLastIncomingGsmSmsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return acceptCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return deactivateDataCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getFacilityLockForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t response) override; + Return setFacilityLockForAppResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t retry) override; + Return setBarringPasswordResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getNetworkSelectionModeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, bool manual) override; + Return setNetworkSelectionModeAutomaticResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return setNetworkSelectionModeManualResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getAvailableNetworksResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::OperatorInfo>& networkInfos) override; + Return startDtmfResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return stopDtmfResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getBasebandVersionResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_string& version) override; + Return separateConnectionResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return setMuteResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getMuteResponse(const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + bool enable) override; + Return getClipResponse(const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + ::android::hardware::radio::V1_0::ClipStatus status) override; + Return getDataCallListResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::SetupDataCallResult>& dcResponse) override; + Return setSuppServiceNotificationsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return writeSmsToSimResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t index) override; + Return deleteSmsOnSimResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return setBandModeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getAvailableBandModesResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::RadioBandMode>& bandModes) override; + Return sendEnvelopeResponse(const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_string& commandResponse) override; + Return sendTerminalResponseToSimResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return handleStkCallSetupRequestFromSimResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return explicitCallTransferResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return setPreferredNetworkTypeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getPreferredNetworkTypeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + ::android::hardware::radio::V1_0::PreferredNetworkType nwType) override; + Return getNeighboringCidsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::NeighboringCell>& cells) override; + Return setLocationUpdatesResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return setCdmaSubscriptionSourceResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return setCdmaRoamingPreferenceResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getCdmaRoamingPreferenceResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + ::android::hardware::radio::V1_0::CdmaRoamingType type) override; + Return setTTYModeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getTTYModeResponse(const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + ::android::hardware::radio::V1_0::TtyMode mode) override; + Return setPreferredVoicePrivacyResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getPreferredVoicePrivacyResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, bool enable) override; + Return sendCDMAFeatureCodeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return sendBurstDtmfResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return sendCdmaSmsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::SendSmsResult& sms) override; + Return acknowledgeLastIncomingCdmaSmsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getGsmBroadcastConfigResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::GsmBroadcastSmsConfigInfo>& configs) override; + Return setGsmBroadcastConfigResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return setGsmBroadcastActivationResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getCdmaBroadcastConfigResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::CdmaBroadcastSmsConfigInfo>& configs) + override; + Return setCdmaBroadcastConfigResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return setCdmaBroadcastActivationResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getCDMASubscriptionResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, const hidl_string& mdn, + const hidl_string& hSid, const hidl_string& hNid, const hidl_string& min, + const hidl_string& prl) override; + Return writeSmsToRuimResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, uint32_t index) override; + Return deleteSmsOnRuimResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getDeviceIdentityResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, const hidl_string& imei, + const hidl_string& imeisv, const hidl_string& esn, const hidl_string& meid) override; + Return exitEmergencyCallbackModeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getSmscAddressResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_string& smsc) override; + Return setSmscAddressResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return reportSmsMemoryStatusResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return reportStkServiceIsRunningResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getCdmaSubscriptionSourceResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + ::android::hardware::radio::V1_0::CdmaSubscriptionSource source) override; + Return requestIsimAuthenticationResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_string& response) override; + Return acknowledgeIncomingGsmSmsWithPduResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return sendEnvelopeWithStatusResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::IccIoResult& iccIo) override; + Return getVoiceRadioTechnologyResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + ::android::hardware::radio::V1_0::RadioTechnology rat) override; + Return getCellInfoListResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::CellInfo>& cellInfo) override; + Return setCellInfoListRateResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return setInitialAttachApnResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getImsRegistrationStateResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, bool isRegistered, + ::android::hardware::radio::V1_0::RadioTechnologyFamily ratFamily) override; + Return sendImsSmsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::SendSmsResult& sms) override; + Return iccTransmitApduBasicChannelResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::IccIoResult& result) override; + Return iccOpenLogicalChannelResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t channelId, + const hidl_vec& selectResponse) override; + Return iccCloseLogicalChannelResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return iccTransmitApduLogicalChannelResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::IccIoResult& result) override; + Return nvReadItemResponse(const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_string& result) override; + Return nvWriteItemResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return nvWriteCdmaPrlResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return nvResetConfigResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return setUiccSubscriptionResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return setDataAllowedResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getHardwareConfigResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_0::HardwareConfig>& config) override; + Return requestIccSimAuthenticationResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::IccIoResult& result) override; + Return setDataProfileResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return requestShutdownResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getRadioCapabilityResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::RadioCapability& rc) override; + Return setRadioCapabilityResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::RadioCapability& rc) override; + Return startLceServiceResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::LceStatusInfo& statusInfo) override; + Return stopLceServiceResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::LceStatusInfo& statusInfo) override; + Return pullLceDataResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::LceDataInfo& lceInfo) override; + Return getModemActivityInfoResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::ActivityStatsInfo& activityInfo) override; + Return setAllowedCarriersResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + int32_t numAllowed) override; + Return getAllowedCarriersResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, bool allAllowed, + const ::android::hardware::radio::V1_0::CarrierRestrictions& carriers) override; + Return sendDeviceStateResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return setIndicationFilterResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return setSimCardPowerResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return acknowledgeRequest(int32_t serial) override; + + // Methods from ::android::hardware::radio::V1_1::IRadioResponse follow. + Return setCarrierInfoForImsiEncryptionResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return setSimCardPowerResponse_1_1( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return startNetworkScanResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return stopNetworkScanResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return startKeepaliveResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_1::KeepaliveStatus& status) override; + Return stopKeepaliveResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + + // Methods from ::android::hardware::radio::V1_2::IRadioResponse follow. + Return getCellInfoListResponse_1_2( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_2::CellInfo>& cellInfo) override; + Return getIccCardStatusResponse_1_2( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_2::CardStatus& cardStatus) override; + Return setSignalStrengthReportingCriteriaResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return setLinkCapacityReportingCriteriaResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return getCurrentCallsResponse_1_2( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::android::hardware::radio::V1_2::Call>& calls) override; + Return getSignalStrengthResponse_1_2( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_2::SignalStrength& signalStrength) override; + Return getVoiceRegistrationStateResponse_1_2( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_2::VoiceRegStateResult& voiceRegResponse) override; + Return getDataRegistrationStateResponse_1_2( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_2::DataRegStateResult& dataRegResponse) override; + + // Methods from ::vendor::samsung::hardware::radio::V1_2::IRadioResponse follow. + Return secGetIccCardStatusReponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::vendor::samsung::hardware::radio::V1_2::SecCardStatus& cardStatus) override; + Return secSupplyNetworkDepersonalizationResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + int32_t remainingRetries) override; + Return secAcceptCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return secDialResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return secGetCurrentCallsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::vendor::samsung::hardware::radio::V1_2::SecCall>& calls) override; + Return secGetSignalStrengthResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::vendor::samsung::hardware::radio::V1_2::SecSignalStrength& sigStrength) override; + Return secGetVoiceRegistrationStateResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::vendor::samsung::hardware::radio::V1_2::SecVoiceRegStateResult& voiceRegResponse) + override; + Return secGetDataRegistrationStateResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::vendor::samsung::hardware::radio::V1_2::SecDataRegStateResult& dataRegResponse) + override; + Return secExplicitCallTransferResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return secGetOperatorRespnse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_string& longName, const hidl_string& shortName, const hidl_string& plmn, + const hidl_string& epdgname) override; + Return oemSetBarringPasswordResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return secgetImsRegistrationStateReponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec& regState) override; + Return secGetAvailableNetworkResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::vendor::samsung::hardware::radio::V1_2::SecOperatorInfo>& networkInfo) + override; + Return oemDialEmergencyCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oemCallDeflectionResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oemModifyCallInitiateResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::android::hardware::radio::V1_0::LastCallFailCauseInfo& failCauseInfo) override; + Return oemSetImsCallListResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oemGetPreferredNetworkListResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::vendor::samsung::hardware::radio::V1_2::OemPreferredNetworkInfo>& infos) + override; + Return oemSetPreferredNetworkListResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oemSendEncodedUSSDResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oemHoldCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oemGetDisable2gResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t isDisable) override; + Return oemSetDisable2gResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oenGetAcbInfoResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec& acbInfo) override; + Return oemSetTransferCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oemGetICBarringResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_string& numberDateList) override; + Return oemSetICBarringResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oemQueryCnapResponse(const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + int32_t queryCNAP) override; + Return oemRefreshNitzTimeResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oemEnableUnsolResponseResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oemCancelTransferCallResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oemAcknowledgeRilConnectedResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oemGetPhoneBookStorageInfoResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec& phoneBookInfo) override; + Return oemUsimPbCapaResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec& usimPbCapa) override; + Return oemSetSimPowerResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t power) override; + Return oemSetSimOnOffResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oemSetSimInitEventResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oemGetSimLockInfoResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec& simLockInfO) override; + Return oemSupplyIccPersoResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oemChangeIccPersoResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oemGetPhoneBookEntryResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::vendor::samsung::hardware::radio::V1_2::OemSimPBResponse& SimPBResponseInfo) override; + Return oemAccessPhoneBookEntryResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + int32_t SimPbAccessResp) override; + Return oemGetCellBroadcastConfigResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::vendor::samsung::hardware::radio::V1_2::OemCbConfigArgs& configs) override; + Return oemEmergencySearchResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + int32_t respEmergencySearch) override; + Return oemEmergencyControlResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return oemGetAtrResponse(const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_string& atr) override; + Return oemSendCdmaSmsExpectMoreResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::vendor::samsung::hardware::radio::V1_2::SecSendSmsResult& sms) override; + Return secSendSmsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::vendor::samsung::hardware::radio::V1_2::SecSendSmsResult& sms) override; + Return secSendSMSExpectMoreResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::vendor::samsung::hardware::radio::V1_2::SecSendSmsResult& sms) override; + Return secSendCdmaSmsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::vendor::samsung::hardware::radio::V1_2::SecSendSmsResult& sms) override; + Return secSendImsSmsResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::vendor::samsung::hardware::radio::V1_2::SecSendSmsResult& sms) override; + Return secSetDataAllowedResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return secGetCdmaRoamingPreferenceResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, int32_t n, + int32_t m) override; + Return secEnable5gResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return secDisable5gResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return secQuery5gStatusResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; + Return secQueryNrDcParamResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::vendor::samsung::hardware::radio::V1_2::DcParam& endcDcnr) override; + Return secQueryNrBearerAllocationResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + int32_t bearerStatus) override; + Return secQueryNrSignalStrengthResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const ::vendor::samsung::hardware::radio::V1_2::NrSignalStrength& nrSignalStrength) override; + Return oemQueryCsgListResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info, + const hidl_vec<::vendor::samsung::hardware::radio::V1_2::OemCsgInfo>& csgInfos) override; + Return oemSelectCsgManualResponse( + const ::android::hardware::radio::V1_0::RadioResponseInfo& info) override; +}; + +} // namespace implementation +} // namespace V1_2 +} // namespace radio +} // namespace hardware +} // namespace samsung +} // namespace vendor diff --git a/hidl/radio/1.3/android.hardware.radio@1.3-radio-service.samsung.rc b/hidl/radio/1.3/android.hardware.radio@1.3-radio-service.samsung.rc new file mode 100644 index 00000000..ca60f532 --- /dev/null +++ b/hidl/radio/1.3/android.hardware.radio@1.3-radio-service.samsung.rc @@ -0,0 +1,4 @@ +service vendor.radio-1-3 /vendor/bin/hw/android.hardware.radio@1.3-radio-service.samsung + class hal + user system + group system diff --git a/hidl/radio/1.3/radio-service.cpp b/hidl/radio/1.3/radio-service.cpp new file mode 100644 index 00000000..28a46900 --- /dev/null +++ b/hidl/radio/1.3/radio-service.cpp @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2018 The Android Open Source Project + * Copyright (C) 2019, The LineageOS Project + * + * Licensed under the Apache License, Version 2.1 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.1 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#define LOG_TAG "android.hardware.radio@1.3-radio-service.samsung" + +#include +#include + +#include "Radio.h" + +using android::OK; +using android::sp; +using android::status_t; +using android::hardware::configureRpcThreadpool; +using android::hardware::joinRpcThreadpool; +using android::hardware::radio::V1_3::IRadio; +using android::hardware::radio::V1_3::implementation::Radio; + +int main() { + configureRpcThreadpool(1, true); + + sp radio = new Radio(RIL1_SERVICE_NAME); + status_t status = radio->registerAsService(RIL1_SERVICE_NAME); + ALOGW_IF(status != OK, "Could not register IRadio v1.3 %s", RIL1_SERVICE_NAME); + radio = new Radio(RIL2_SERVICE_NAME); + status = radio->registerAsService(RIL2_SERVICE_NAME); + ALOGW_IF(status != OK, "Could not register IRadio v1.3 %s", RIL2_SERVICE_NAME); + ALOGD("Default service is ready."); + + joinRpcThreadpool(); + return 1; +} diff --git a/interfaces/Android.bp b/interfaces/Android.bp new file mode 100644 index 00000000..8d0bc34e --- /dev/null +++ b/interfaces/Android.bp @@ -0,0 +1,4 @@ +hidl_package_root { + name: "vendor.samsung.hardware", + use_current: true, +} diff --git a/interfaces/current.txt b/interfaces/current.txt new file mode 100644 index 00000000..800bd6ea --- /dev/null +++ b/interfaces/current.txt @@ -0,0 +1,4 @@ +d70c073053fc04425ee47b8ce56f01e984cd3af354c91fa9ce0e3833b84e2eda vendor.samsung.hardware.radio@1.2::types +e80adc3606e15e3a71e2b3451e1785287406dca19abd719064927c8477dbb7e7 vendor.samsung.hardware.radio@1.2::IRadio +482cdc2795dd2d3c89f81f16496a180294b00f05efc0dec599f801823f30c270 vendor.samsung.hardware.radio@1.2::IRadioIndication +baea5e92105d0115d9b1167a21513b5d6c77fdbac78c2e53742b550d548ef8c5 vendor.samsung.hardware.radio@1.2::IRadioResponse diff --git a/interfaces/radio/1.2/Android.bp b/interfaces/radio/1.2/Android.bp new file mode 100644 index 00000000..c5a4f54c --- /dev/null +++ b/interfaces/radio/1.2/Android.bp @@ -0,0 +1,20 @@ +// This file is autogenerated by hidl-gen -Landroidbp. + +hidl_interface { + name: "vendor.samsung.hardware.radio@1.2", + root: "vendor.samsung.hardware", + product_specific: true, + srcs: [ + "types.hal", + "IRadio.hal", + "IRadioIndication.hal", + "IRadioResponse.hal", + ], + interfaces: [ + "android.hardware.radio@1.0", + "android.hardware.radio@1.1", + "android.hardware.radio@1.2", + "android.hidl.base@1.0", + ], + gen_java: true, +} diff --git a/interfaces/radio/1.2/IRadio.hal b/interfaces/radio/1.2/IRadio.hal new file mode 100644 index 00000000..afc87164 --- /dev/null +++ b/interfaces/radio/1.2/IRadio.hal @@ -0,0 +1,72 @@ +package vendor.samsung.hardware.radio@1.2; + +import android.hardware.radio@1.0::ImsSmsMessage; +import android.hardware.radio@1.0::GsmSmsMessage; +import android.hardware.radio@1.0::CdmaSmsMessage; +import android.hardware.radio@1.2::IRadio; + +interface IRadio extends android.hardware.radio@1.2::IRadio { + oneway secGetIccCardStatus(int32_t serial); + oneway secSupplyNetworkDepersonalization(int32_t serial, string netPin, int32_t lockState); + oneway secAcceptCall(int32_t serial, OemCallType callType); + oneway secDial(int32_t serial, SecDial dialInfo); + oneway secGetCurrentCalls(int32_t serial); + oneway secGetSignalStrength(int32_t serial); + oneway secGetVoiceRegistrationState(int32_t serial); + oneway secGetDataRegistrationState(int32_t serial); + oneway secExplicitCallTransfer(int32_t serial, string number); + oneway secGetOperator(int32_t serial); + oneway secSetBarringPassworD(int32_t serial, string facility, string oldPassword, string newPassword, string newPasswordAgain); + oneway secGetImsRegistrationState(int32_t serial); + oneway secGetAvailableNetworks(int32_t serial); + oneway oemDialEmergencyCall(int32_t serial, SecDial dialInfo); + oneway oemCallDeflection(int32_t serial, string address); + oneway oemModifyCallInitiate(int32_t serial, OemCallModify callInfo); + oneway oemSetImsCallList(int32_t serial, vec imsCalls); + oneway oemGetPreferredNetworkList(int32_t serial); + oneway oemSetPreferredNetworkList(int32_t serial, OemPreferredNetworkInfo info); + oneway oemSendEncodedUSSD(int32_t serial, OemEncodedUSSD encodedUSSD); + oneway oemHoldCall(int32_t serial); + oneway oemGetAcbInfo(int32_t serial); + oneway oemSetTransferCall(int32_t serial, vec data); + oneway oemGetDisable2g(int32_t serial); + oneway oemSetDisable2g(int32_t serial, int32_t state); + oneway oemGetICBarring(int32_t serial, string facility, string password, string serviceClass, string aid); + oneway oemSetICBarring(int32_t serial, string facility, string iCBNumber, string serviceClass, string aid); + oneway oemQueryCnap(int32_t serial); + oneway oemRefreshNitzTime(int32_t serial); + oneway oemEnableUnsolResponse(int32_t serial); + oneway oemCancelTransferCall(int32_t serial, int32_t index); + oneway oemAcknowledgeRilConnected(int32_t serial); + oneway oemGetPhoneBookStorageInfo(int32_t serial, int32_t fileid); + oneway oemGetUsimPBCapa(int32_t serial); + oneway oemSetSimPower(int32_t serial, int32_t on); + oneway oemSetSimOnOff(int32_t serial, int32_t mode); + oneway oemSetSimInitEvent(int32_t serial); + oneway oemGetSimLockInfo(int32_t serial, int32_t numLockType, int32_t lockType); + oneway oemSupplyIccPerso(int32_t serial, string pin); + oneway oemChangeIccPerso(int32_t serial, string oldPass, string newPass); //182 + oneway oemSendCdmaSmsExpectMore(int32_t serial, CdmaSmsMessage sms); + oneway oemGetPhoneBookEntry(int32_t serial, int32_t fileid, int32_t p1); + oneway oemAccessPhoneBookEntry(int32_t serial, int32_t command, int32_t fileid, int32_t index, OemAdnRecord adnRecord, string pin2); + oneway oemGetCellBroadcastConfig(int32_t serial); + oneway oemEmergencySearch(int32_t serial); + oneway oemEmergencyControl(int32_t serial, int32_t command); + oneway oemGetAtr(int32_t serial); + oneway oemSendSms(int32_t serial, GsmSmsMessage message); + oneway secSendSMSExpectMore(int32_t serial, GsmSmsMessage message); + oneway secSendCdmaSms(int32_t serial, CdmaSmsMessage sms); + oneway secSendImsSms(int32_t serial, ImsSmsMessage message); + + oneway secGetCdmaRomaingPreference(int32_t serial); + oneway secEnable5g(int32_t serial); + oneway secEnable5gOnly(int32_t serial); + oneway secDisable5g(int32_t serial); + oneway secQuery5gStatus(int32_t serial); + oneway secQueryNrDcParam(int32_t serial); + oneway secQueryNrBearerAllocation(int32_t serial); + oneway secQueryNrSignalStrength(int32_t serial); + oneway oemQueryCsgList(int32_t serial); + oneway oemSelectCsgManual(int32_t serial, OemCsgInfo csgInfo); + oneway secSetDataAllowed(int32_t serial, bool allow, SecAllowDataParam param); +}; diff --git a/interfaces/radio/1.2/IRadioIndication.hal b/interfaces/radio/1.2/IRadioIndication.hal new file mode 100644 index 00000000..21d8831c --- /dev/null +++ b/interfaces/radio/1.2/IRadioIndication.hal @@ -0,0 +1,35 @@ +package vendor.samsung.hardware.radio@1.2; + +import android.hardware.radio@1.2::IRadioIndication; +import android.hardware.radio@1.0::RadioIndicationType; + +interface IRadioIndication extends android.hardware.radio@1.2::IRadioIndication { + oneway secCurrentSignalStrength(RadioIndicationType type, SecSignalStrength signalStrength); + oneway secImsNetworkStateChanged(RadioIndicationType type, vec regState); + oneway oemAcbInfoChanged(RadioIndicationType type, vec acbInfo); + oneway oemCsFallback(RadioIndicationType type, int32_t state); + oneway oemImsPreferenceChangeInd(RadioIndicationType type, vec imsPref); + oneway oemVoiceRadioBearerHoStatusInd(RadioIndicationType type, int32_t state); + oneway oemHysteresisDcnInd(RadioIndicationType type); + oneway oemTimerStatusChangedInd(int32_t type, vec eventNoti); + oneway oemModemCapInd(int32_t type, vec data); + oneway oemAmInd(int32_t type, string intent); + oneway oemTrunRadioOnInd(int32_t type); + oneway oemSimPbReadyInd(int32_t type); + oneway oemPbInitCompleteInd(int32_t type); + oneway oemDeviceReadyNoti(int32_t type); + oneway oemStkSmsSendResultInd(int32_t type, int32_t result); + oneway oemStkCallControlResultInd(int32_t type, string cmd); + oneway oemSimSwapStateChangedInd(int32_t type, int32_t state); + oneway oemSimCountMismatchedInd(int32_t type, int32_t state); + oneway oemSimIccidNoti(int32_t type, string iccid); + oneway oemSimOnOffNoti(int32_t type, int32_t mode); + oneway oemReleaseCompleteMessageInd(int32_t typer, OemSSReleaseComplete result); + oneway oemSapNoti(int32_t type, vec data); + oneway oemNrBearerAllocationChangeInd(int32_t type, int32_t status); + oneway oem5gStatusChangeInd(int32_t type, int32_t status); + oneway oemNrDcParamChangeInd(int32_t type, DcParam dcParam); + oneway oemNrSignalStrengthInd(int32_t type, NrSignalStrength nrSignalStrength); + oemLoadApnProfile(string select) generates (ApnProfile apnProf); + oemGetSettingValue(string key, string table) generates (int32_t value); +}; diff --git a/interfaces/radio/1.2/IRadioResponse.hal b/interfaces/radio/1.2/IRadioResponse.hal new file mode 100644 index 00000000..01549bbf --- /dev/null +++ b/interfaces/radio/1.2/IRadioResponse.hal @@ -0,0 +1,69 @@ +package vendor.samsung.hardware.radio@1.2; + +import android.hardware.radio@1.2::IRadioResponse; +import android.hardware.radio@1.0::LastCallFailCauseInfo; +import android.hardware.radio@1.0::RadioResponseInfo; + +interface IRadioResponse extends android.hardware.radio@1.2::IRadioResponse { + oneway secGetIccCardStatusReponse(RadioResponseInfo info, SecCardStatus cardStatus); //143 + oneway secSupplyNetworkDepersonalizationResponse(RadioResponseInfo info, int32_t remainingRetries); + oneway secAcceptCallResponse(RadioResponseInfo info); + oneway secDialResponse(RadioResponseInfo info); + oneway secGetCurrentCallsResponse(RadioResponseInfo info, vec calls); + oneway secGetSignalStrengthResponse(RadioResponseInfo info, SecSignalStrength sigStrength); + oneway secGetVoiceRegistrationStateResponse(RadioResponseInfo info, SecVoiceRegStateResult voiceRegResponse); + oneway secGetDataRegistrationStateResponse(RadioResponseInfo info, SecDataRegStateResult dataRegResponse); + oneway secExplicitCallTransferResponse(RadioResponseInfo info); + oneway secGetOperatorRespnse(RadioResponseInfo info, string longName, string shortName, string plmn, string epdgname); //153 + oneway oemSetBarringPasswordResponse(RadioResponseInfo info); + oneway secgetImsRegistrationStateReponse(RadioResponseInfo info, vec regState); + oneway secGetAvailableNetworkResponse(RadioResponseInfo info, vec networkInfo); + oneway oemDialEmergencyCallResponse(RadioResponseInfo info); + oneway oemCallDeflectionResponse(RadioResponseInfo info); + oneway oemModifyCallInitiateResponse(RadioResponseInfo info, LastCallFailCauseInfo failCauseInfo); + oneway oemSetImsCallListResponse(RadioResponseInfo info); + oneway oemGetPreferredNetworkListResponse(RadioResponseInfo info, vec infos); + oneway oemSetPreferredNetworkListResponse(RadioResponseInfo info); + oneway oemSendEncodedUSSDResponse(RadioResponseInfo info); //163 + oneway oemHoldCallResponse(RadioResponseInfo info); + oneway oemGetDisable2gResponse(RadioResponseInfo info, int32_t isDisable); + oneway oemSetDisable2gResponse(RadioResponseInfo info); + oneway oenGetAcbInfoResponse(RadioResponseInfo info, vec acbInfo); + oneway oemSetTransferCallResponse(RadioResponseInfo info); + oneway oemGetICBarringResponse(RadioResponseInfo info, string numberDateList); + oneway oemSetICBarringResponse(RadioResponseInfo info); + oneway oemQueryCnapResponse(RadioResponseInfo info, int32_t queryCNAP); + oneway oemRefreshNitzTimeResponse(RadioResponseInfo info); + oneway oemEnableUnsolResponseResponse(RadioResponseInfo info); //173 + oneway oemCancelTransferCallResponse(RadioResponseInfo info); + oneway oemAcknowledgeRilConnectedResponse(RadioResponseInfo info); + oneway oemGetPhoneBookStorageInfoResponse(RadioResponseInfo info, vec phoneBookInfo); + oneway oemUsimPbCapaResponse(RadioResponseInfo info, vec usimPbCapa); + oneway oemSetSimPowerResponse(RadioResponseInfo info, int32_t power); + oneway oemSetSimOnOffResponse(RadioResponseInfo info); + oneway oemSetSimInitEventResponse(RadioResponseInfo info); + oneway oemGetSimLockInfoResponse(RadioResponseInfo info, vec simLockInfO); + oneway oemSupplyIccPersoResponse(RadioResponseInfo info); + oneway oemChangeIccPersoResponse(RadioResponseInfo info); //183 + oneway oemGetPhoneBookEntryResponse(RadioResponseInfo info, OemSimPBResponse SimPBResponseInfo); + oneway oemAccessPhoneBookEntryResponse(RadioResponseInfo info, int32_t SimPbAccessResp); + oneway oemGetCellBroadcastConfigResponse(RadioResponseInfo info, OemCbConfigArgs configs); + oneway oemEmergencySearchResponse(RadioResponseInfo info, int32_t respEmergencySearch); + oneway oemEmergencyControlResponse(RadioResponseInfo info); + oneway oemGetAtrResponse(RadioResponseInfo info, string atr); + oneway oemSendCdmaSmsExpectMoreResponse(RadioResponseInfo info, SecSendSmsResult sms); + oneway secSendSmsResponse(RadioResponseInfo info, SecSendSmsResult sms); + oneway secSendSMSExpectMoreResponse(RadioResponseInfo info, SecSendSmsResult sms); + oneway secSendCdmaSmsResponse(RadioResponseInfo info, SecSendSmsResult sms); //193 + oneway secSendImsSmsResponse(RadioResponseInfo info, SecSendSmsResult sms); + oneway secSetDataAllowedResponse(RadioResponseInfo info); + oneway secGetCdmaRoamingPreferenceResponse(RadioResponseInfo info, int32_t n, int32_t m); + oneway secEnable5gResponse(RadioResponseInfo info); + oneway secDisable5gResponse(RadioResponseInfo info); + oneway secQuery5gStatusResponse(RadioResponseInfo info); + oneway secQueryNrDcParamResponse(RadioResponseInfo info, DcParam endcDcnr); + oneway secQueryNrBearerAllocationResponse(RadioResponseInfo info, int32_t bearerStatus); + oneway secQueryNrSignalStrengthResponse(RadioResponseInfo info, NrSignalStrength nrSignalStrength); + oneway oemQueryCsgListResponse(RadioResponseInfo info, vec csgInfos); + oneway oemSelectCsgManualResponse(RadioResponseInfo info); //205 +}; diff --git a/interfaces/radio/1.2/types.hal b/interfaces/radio/1.2/types.hal new file mode 100644 index 00000000..188857fe --- /dev/null +++ b/interfaces/radio/1.2/types.hal @@ -0,0 +1,209 @@ +package vendor.samsung.hardware.radio@1.2; + +import android.hardware.radio@1.0::AppStatus; +import android.hardware.radio@1.0::Dial; +import android.hardware.radio@1.0::OperatorInfo; +import android.hardware.radio@1.2::AudioQuality; +import android.hardware.radio@1.2::Call; +import android.hardware.radio@1.2::SignalStrength; +import android.hardware.radio@1.2::VoiceRegStateResult; +import android.hardware.radio@1.2::DataRegStateResult; + +struct SecSignalStrength { + SignalStrength base; + int32_t signalBar; +}; + +struct OemSSReleaseComplete { + int32_t size; + int32_t dataLen; + int32_t params; + int32_t status; + string data; +}; + +struct OemSimPBResponse { + vec lengthAlphas; + vec dataTypeAlphas; + vec alphaTags; + vec lengthNumbers; + vec dataTypeNumbers; + vec numbers; + int32_t recordIndex; + int32_t nextIndex; +}; + +struct OemCbConfigArgs { + int32_t bCBEnabled; + int32_t selectedId; + int32_t msgIdMaxCount; + int32_t msgIdCount; + string msgIDs; +}; + +struct SecSendSmsResult { + int32_t messageReg; + string ackPDU; + int32_t errorCode; + int32_t errorClass; +}; + +struct OemCsgInfo { + int32_t csgId; + string name; + string plmn; + int32_t rat; + int32_t category; + int32_t signalStrength; +}; + +struct SecAllowDataParam { + int32_t defaultDataPhoneId; + int32_t isDataPreferredDuringCall; +}; + +enum OemCallType : int32_t { + VOICE = 0, + VS_TX = 1, + TS_RX = 2, + VT = 3, +}; + +enum OemCallDomain : int32_t { + UNKNOWN = 0, + CS = 1, + PS = 2, + AUTOMATIC = 3, +}; + +struct OemCallDetails { + OemCallType callType; + OemCallDomain callDomain; + vec extras; +}; + +struct OemCallModify { + int32_t callIndex; + vec callDetails; +}; + +struct SecDial { + Dial base; + vec callDetails; +}; + +struct OemPreferredNetworkInfo { + int32_t index; + string oper; + string plmn; + int32_t gsmAct; + int32_t gsmCompactAct; + int32_t utranAct; + int32_t mode; +}; + +struct OemEncodedUSSD { + vec encodedUSSD; + int32_t ussdLength; + int32_t dcsCode; +}; + +struct OemAdnRecord { + vec name; + int32_t nameDCS; + int32_t namelength; + string number; + vec gsm8bitEmail; + int32_t gsm8bitEmaillength; + string anr; + string anrA; + string anrB; + string anrC; + vec sne; + int32_t sneLength; + int32_t sneDCS; + +}; + +struct OemImsCall { + int32_t state; + int32_t type; + int32_t isMt; + int32_t isMpty; + string number; +}; + +struct DcParam { + int32_t endc_available; + int32_t restrict_dcnr; +}; + +struct NrSignalStrength { + int32_t rsrp; + int32_t snr; +}; + +struct ApnProfile { + string apn; + string proto; + string roamingProto; + string user; + string pw; + string auth; +}; + +struct SecAppStatus { + AppStatus base; + int32_t pin1NumRetries; + int32_t puk1NumRetries; + int32_t pin2NumRetries; + int32_t puk2NumRetries; + int32_t persoUnblockRetries; +}; + +struct SecCardStatus { + int32_t cardState; + int32_t universalPinState; + int32_t gsmUmtsSubscriptionAppIndex; + int32_t cdmaSubscriptionAppIndex; + int32_t imsSubscriptionAppIndex; + vec applications; + int32_t physicalSlotId; + int32_t atr; + int32_t iccid; +}; + +struct SecVoiceRegStateResult { + VoiceRegStateResult base; + int32_t lac; + int32_t cid; + int32_t psVoiceSupport; + int32_t imsEmergencyCallSupport; + int32_t imsEmergencyCallBarring; + int32_t mobileState; + int32_t mobileRat; + bool isPsOnlyReg; +}; + +struct SecDataRegStateResult { + DataRegStateResult base; + int32_t lac; + int32_t cid; + int32_t tac; + int32_t snapshotStatus; + int32_t mobileState; + int32_t mobileRat; + int32_t mobileOptionalRat; +}; + +struct SecCall { + Call base; + AudioQuality audioQuality; + vec callDetails; +}; + +struct SecOperatorInfo { + OperatorInfo base; + string rat; + string lac; +};