From: Tim Zimmermann Date: Sat, 16 Mar 2024 11:37:07 +0000 (+0100) Subject: ril: sehradiomanager: Add support for AIDL sehradio X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a9e71cf27ffc07732a0db9f0953483cf0ff7e906;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git ril: sehradiomanager: Add support for AIDL sehradio * Based on https://github.com/TrebleDroid/platform_frameworks_opt_telephony/commit/f41efd654ac6a0f0b714996cf97501665ab288c0 Co-Authored-By: Pierre-Hugues Husson Change-Id: I25a2422b364d2118cb447e6e64e166e8e112fb18 --- diff --git a/interfaces/radio/network/aidl/Android.bp b/interfaces/radio/network/aidl/Android.bp new file mode 100644 index 0000000..390f5f8 --- /dev/null +++ b/interfaces/radio/network/aidl/Android.bp @@ -0,0 +1,23 @@ +aidl_interface { + name: "vendor.samsung.hardware.radio.network", + vendor_available: true, + srcs: [ + "vendor/samsung/hardware/radio/network/*.aidl", + ], + stability: "vintf", + backend: { + cpp: { + enabled: true, + }, + java: { + sdk_version: "module_current", + }, + }, + versions_with_info: [ + { + version: "1", + imports: [], + }, + ], + owner: "samsung", +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/.hash b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/.hash new file mode 100644 index 0000000..4c11220 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/.hash @@ -0,0 +1 @@ +b6801a5cca21eab5f8034f5bec4c6a01ef856157 diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/ISehRadioNetwork.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/ISehRadioNetwork.aidl new file mode 100644 index 0000000..14309ff --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/ISehRadioNetwork.aidl @@ -0,0 +1,46 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +interface ISehRadioNetwork { + oneway void emergencyControl(); + oneway void emergencySearch(); + oneway void getAvailableNetworks(); + oneway void getCnap(); + oneway void getCsgList(); + oneway void getDisable2g(); + oneway void getNrIconType(); + oneway void getNrMode(); + oneway void getPreferredNetworkList(); + oneway void getRoamingNetworkInfoViaBLE(); + oneway void getVendorSpecificConfiguration(); + oneway void selectCsgManual(); + oneway void sendEncodedUssd(); + oneway void sendRequestRaw(); + oneway void sendRequestStrings(); + oneway void setCurrentNetworkInfoViaBLE(); + oneway void setDisable2g(); + oneway void setImsCallList(); + oneway void setNrMode(int serial, int mode, boolean force); + oneway void setPreferredNetworkList(); + oneway void setResponseFunctions(in vendor.samsung.hardware.radio.network.ISehRadioNetworkResponse response, in vendor.samsung.hardware.radio.network.ISehRadioNetworkIndication indication); + oneway void setRoamingNetworkInfoViaBLE(); + oneway void setScanResultViaBLE(); + oneway void setVendorSpecificConfiguration(int serial, in vendor.samsung.hardware.radio.network.SehVendorConfiguration[] configurations); +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/ISehRadioNetworkIndication.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/ISehRadioNetworkIndication.aidl new file mode 100644 index 0000000..a5669a1 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/ISehRadioNetworkIndication.aidl @@ -0,0 +1,36 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +interface ISehRadioNetworkIndication { + oneway void acbInfo(int type, in int[] acbInfo); + oneway void callDetailsChanged(int type, in vendor.samsung.hardware.radio.network.SehCallDetails[] callDetails); + oneway void csFallback(int type, int state); + oneway void currentNetworkScanIsrequested(int type, byte mode); + oneway void eriInfoReceived(int type, in vendor.samsung.hardware.radio.network.SehEriInfo eriInfo); + oneway void execute(int type, String cmd); + oneway void extendedRegistrationState(int type, in vendor.samsung.hardware.radio.network.SehExtendedRegStateResult state); + oneway void imsPreferenceChanged(int type, in int[] imsPref); + oneway void needTurnOnRadioIndication(int type); + oneway void nrBearerAllocationChanged(int type, int status); + oneway void nrIconTypeChanged(int type, int nrIconType); + oneway void roamingNetworkScanIsRequested(int type, in byte[] scanData); + oneway void signalLevelInfoChanged(int type, in vendor.samsung.hardware.radio.network.SehSignalBar signalBarInfo); + oneway void vendorConfigurationChanged(int type, in vendor.samsung.hardware.radio.network.SehVendorConfiguration[] configurations); +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/ISehRadioNetworkResponse.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/ISehRadioNetworkResponse.aidl new file mode 100644 index 0000000..67ff707 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/ISehRadioNetworkResponse.aidl @@ -0,0 +1,45 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +interface ISehRadioNetworkResponse { + oneway void emergencyControlResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void emergencySearchResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, int respEmergenySearch); + oneway void getAvailableNetworksResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, in vendor.samsung.hardware.radio.network.SehOperatorInfo[] networksInfo); + oneway void getCnapResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, int m); + oneway void getCsgListResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, in vendor.samsung.hardware.radio.network.SehCsgInfo[] csgInfos); + oneway void getDisable2gResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, int isDisable); + oneway void getNrIconTypeResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, int nrIconType); + oneway void getNrModeResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, int nrMode); + oneway void getPreferredNetworkListResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, in vendor.samsung.hardware.radio.network.SehPreferredNetworkInfo[] infos); + oneway void getRoamingNetworkInfoViaBLEResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, in vendor.samsung.hardware.radio.network.SehRoamingNetworkInfo[] networkInfo); + oneway void getVendorSpecificConfigurationResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, in vendor.samsung.hardware.radio.network.SehVendorConfiguration configurations); + oneway void selectCsgManualResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void sendEncodedUssdResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void sendRequestRawResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, in byte[] data); + oneway void sendRequestStringsResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, in String[] data); + oneway void setCurrentNetworkInfoViaBLEResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void setDisable2gResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void setImsCallListResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void setNrModeResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void setPreferredNetworkListResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void setRoamingNetworkInfoViaBLEResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void setScanResultViaBLEResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void setVendorSpecificConfigurationResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehArfcnInfo.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehArfcnInfo.aidl new file mode 100644 index 0000000..70a4f29 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehArfcnInfo.aidl @@ -0,0 +1,25 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehArfcnInfo { + byte rat; + int band; + int arfcn; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehCallDetails.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehCallDetails.aidl new file mode 100644 index 0000000..6eccfaf --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehCallDetails.aidl @@ -0,0 +1,24 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehCallDetails { + int callType; + String[] extras; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehCsgInfo.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehCsgInfo.aidl new file mode 100644 index 0000000..3202736 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehCsgInfo.aidl @@ -0,0 +1,28 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehCsgInfo { + int csgId; + String name; + String plmn; + int rat; + int category; + int signalStrength; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehEriInfo.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehEriInfo.aidl new file mode 100644 index 0000000..e2914a6 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehEriInfo.aidl @@ -0,0 +1,26 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehEriInfo { + String eriText; + byte roamingIndicator; + byte iconIndex; + byte iconMode; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehExtendedRegStateResult.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehExtendedRegStateResult.aidl new file mode 100644 index 0000000..107250a --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehExtendedRegStateResult.aidl @@ -0,0 +1,30 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehExtendedRegStateResult { + int unprocessedDataRegState; + int unprocessedVoiceRegState; + boolean isValid; + int snapshotStatus; + int unprocessedDataRat; + int mobileOptionalRat; + int imsEmergencyCallBarring; + boolean isPsOnlyReg; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehOperatorInfo.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehOperatorInfo.aidl new file mode 100644 index 0000000..a9620ab --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehOperatorInfo.aidl @@ -0,0 +1,28 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehOperatorInfo { + String alphaLong; + String alphaShort; + String operatorNumeric; + int status; + String rat; + String lac; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehPreferredNetworkInfo.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehPreferredNetworkInfo.aidl new file mode 100644 index 0000000..0147d64 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehPreferredNetworkInfo.aidl @@ -0,0 +1,29 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehPreferredNetworkInfo { + int index; + String oper; + String plmn; + int gsmAct; + int gsmCompactAct; + int utranAct; + int mode; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehRadioResponseInfo.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehRadioResponseInfo.aidl new file mode 100644 index 0000000..9309709 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehRadioResponseInfo.aidl @@ -0,0 +1,25 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehRadioResponseInfo { + int error; + int serial; + int type; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehRoamingNetworkInfo.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehRoamingNetworkInfo.aidl new file mode 100644 index 0000000..6bd88c5 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehRoamingNetworkInfo.aidl @@ -0,0 +1,28 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehRoamingNetworkInfo { + byte[] plmn; + byte rat; + byte regState; + byte opResult; + byte[] date; + vendor.samsung.hardware.radio.network.SehArfcnInfo[] arfcnInfo; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehSignalBar.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehSignalBar.aidl new file mode 100644 index 0000000..fbdb349 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehSignalBar.aidl @@ -0,0 +1,29 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehSignalBar { + int cdmaLevel; + int evdoLevel; + int gsmLevel; + int wcdmaLevel; + int tdscdmaLevel; + int lteLevel; + int nrLevel; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehVendorConfiguration.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehVendorConfiguration.aidl new file mode 100644 index 0000000..1216dcf --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/1/vendor/samsung/hardware/radio/network/SehVendorConfiguration.aidl @@ -0,0 +1,24 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehVendorConfiguration { + String name; + String value; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/ISehRadioNetwork.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/ISehRadioNetwork.aidl new file mode 100644 index 0000000..14309ff --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/ISehRadioNetwork.aidl @@ -0,0 +1,46 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +interface ISehRadioNetwork { + oneway void emergencyControl(); + oneway void emergencySearch(); + oneway void getAvailableNetworks(); + oneway void getCnap(); + oneway void getCsgList(); + oneway void getDisable2g(); + oneway void getNrIconType(); + oneway void getNrMode(); + oneway void getPreferredNetworkList(); + oneway void getRoamingNetworkInfoViaBLE(); + oneway void getVendorSpecificConfiguration(); + oneway void selectCsgManual(); + oneway void sendEncodedUssd(); + oneway void sendRequestRaw(); + oneway void sendRequestStrings(); + oneway void setCurrentNetworkInfoViaBLE(); + oneway void setDisable2g(); + oneway void setImsCallList(); + oneway void setNrMode(int serial, int mode, boolean force); + oneway void setPreferredNetworkList(); + oneway void setResponseFunctions(in vendor.samsung.hardware.radio.network.ISehRadioNetworkResponse response, in vendor.samsung.hardware.radio.network.ISehRadioNetworkIndication indication); + oneway void setRoamingNetworkInfoViaBLE(); + oneway void setScanResultViaBLE(); + oneway void setVendorSpecificConfiguration(int serial, in vendor.samsung.hardware.radio.network.SehVendorConfiguration[] configurations); +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/ISehRadioNetworkIndication.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/ISehRadioNetworkIndication.aidl new file mode 100644 index 0000000..a5669a1 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/ISehRadioNetworkIndication.aidl @@ -0,0 +1,36 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +interface ISehRadioNetworkIndication { + oneway void acbInfo(int type, in int[] acbInfo); + oneway void callDetailsChanged(int type, in vendor.samsung.hardware.radio.network.SehCallDetails[] callDetails); + oneway void csFallback(int type, int state); + oneway void currentNetworkScanIsrequested(int type, byte mode); + oneway void eriInfoReceived(int type, in vendor.samsung.hardware.radio.network.SehEriInfo eriInfo); + oneway void execute(int type, String cmd); + oneway void extendedRegistrationState(int type, in vendor.samsung.hardware.radio.network.SehExtendedRegStateResult state); + oneway void imsPreferenceChanged(int type, in int[] imsPref); + oneway void needTurnOnRadioIndication(int type); + oneway void nrBearerAllocationChanged(int type, int status); + oneway void nrIconTypeChanged(int type, int nrIconType); + oneway void roamingNetworkScanIsRequested(int type, in byte[] scanData); + oneway void signalLevelInfoChanged(int type, in vendor.samsung.hardware.radio.network.SehSignalBar signalBarInfo); + oneway void vendorConfigurationChanged(int type, in vendor.samsung.hardware.radio.network.SehVendorConfiguration[] configurations); +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/ISehRadioNetworkResponse.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/ISehRadioNetworkResponse.aidl new file mode 100644 index 0000000..67ff707 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/ISehRadioNetworkResponse.aidl @@ -0,0 +1,45 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +interface ISehRadioNetworkResponse { + oneway void emergencyControlResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void emergencySearchResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, int respEmergenySearch); + oneway void getAvailableNetworksResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, in vendor.samsung.hardware.radio.network.SehOperatorInfo[] networksInfo); + oneway void getCnapResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, int m); + oneway void getCsgListResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, in vendor.samsung.hardware.radio.network.SehCsgInfo[] csgInfos); + oneway void getDisable2gResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, int isDisable); + oneway void getNrIconTypeResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, int nrIconType); + oneway void getNrModeResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, int nrMode); + oneway void getPreferredNetworkListResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, in vendor.samsung.hardware.radio.network.SehPreferredNetworkInfo[] infos); + oneway void getRoamingNetworkInfoViaBLEResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, in vendor.samsung.hardware.radio.network.SehRoamingNetworkInfo[] networkInfo); + oneway void getVendorSpecificConfigurationResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, in vendor.samsung.hardware.radio.network.SehVendorConfiguration configurations); + oneway void selectCsgManualResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void sendEncodedUssdResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void sendRequestRawResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, in byte[] data); + oneway void sendRequestStringsResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info, in String[] data); + oneway void setCurrentNetworkInfoViaBLEResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void setDisable2gResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void setImsCallListResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void setNrModeResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void setPreferredNetworkListResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void setRoamingNetworkInfoViaBLEResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void setScanResultViaBLEResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); + oneway void setVendorSpecificConfigurationResponse(in vendor.samsung.hardware.radio.network.SehRadioResponseInfo info); +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehArfcnInfo.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehArfcnInfo.aidl new file mode 100644 index 0000000..70a4f29 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehArfcnInfo.aidl @@ -0,0 +1,25 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehArfcnInfo { + byte rat; + int band; + int arfcn; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehCallDetails.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehCallDetails.aidl new file mode 100644 index 0000000..6eccfaf --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehCallDetails.aidl @@ -0,0 +1,24 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehCallDetails { + int callType; + String[] extras; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehCsgInfo.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehCsgInfo.aidl new file mode 100644 index 0000000..3202736 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehCsgInfo.aidl @@ -0,0 +1,28 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehCsgInfo { + int csgId; + String name; + String plmn; + int rat; + int category; + int signalStrength; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehEriInfo.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehEriInfo.aidl new file mode 100644 index 0000000..e2914a6 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehEriInfo.aidl @@ -0,0 +1,26 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehEriInfo { + String eriText; + byte roamingIndicator; + byte iconIndex; + byte iconMode; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehExtendedRegStateResult.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehExtendedRegStateResult.aidl new file mode 100644 index 0000000..107250a --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehExtendedRegStateResult.aidl @@ -0,0 +1,30 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehExtendedRegStateResult { + int unprocessedDataRegState; + int unprocessedVoiceRegState; + boolean isValid; + int snapshotStatus; + int unprocessedDataRat; + int mobileOptionalRat; + int imsEmergencyCallBarring; + boolean isPsOnlyReg; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehOperatorInfo.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehOperatorInfo.aidl new file mode 100644 index 0000000..a9620ab --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehOperatorInfo.aidl @@ -0,0 +1,28 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehOperatorInfo { + String alphaLong; + String alphaShort; + String operatorNumeric; + int status; + String rat; + String lac; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehPreferredNetworkInfo.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehPreferredNetworkInfo.aidl new file mode 100644 index 0000000..0147d64 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehPreferredNetworkInfo.aidl @@ -0,0 +1,29 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehPreferredNetworkInfo { + int index; + String oper; + String plmn; + int gsmAct; + int gsmCompactAct; + int utranAct; + int mode; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehRadioResponseInfo.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehRadioResponseInfo.aidl new file mode 100644 index 0000000..9309709 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehRadioResponseInfo.aidl @@ -0,0 +1,25 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehRadioResponseInfo { + int error; + int serial; + int type; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehRoamingNetworkInfo.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehRoamingNetworkInfo.aidl new file mode 100644 index 0000000..6bd88c5 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehRoamingNetworkInfo.aidl @@ -0,0 +1,28 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehRoamingNetworkInfo { + byte[] plmn; + byte rat; + byte regState; + byte opResult; + byte[] date; + vendor.samsung.hardware.radio.network.SehArfcnInfo[] arfcnInfo; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehSignalBar.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehSignalBar.aidl new file mode 100644 index 0000000..fbdb349 --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehSignalBar.aidl @@ -0,0 +1,29 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehSignalBar { + int cdmaLevel; + int evdoLevel; + int gsmLevel; + int wcdmaLevel; + int tdscdmaLevel; + int lteLevel; + int nrLevel; +} diff --git a/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehVendorConfiguration.aidl b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehVendorConfiguration.aidl new file mode 100644 index 0000000..1216dcf --- /dev/null +++ b/interfaces/radio/network/aidl/aidl_api/vendor.samsung.hardware.radio.network/current/vendor/samsung/hardware/radio/network/SehVendorConfiguration.aidl @@ -0,0 +1,24 @@ +/////////////////////////////////////////////////////////////////////////////// +// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // +/////////////////////////////////////////////////////////////////////////////// + +// This file is a snapshot of an AIDL file. Do not edit it manually. There are +// two cases: +// 1). this is a frozen version file - do not edit this in any case. +// 2). this is a 'current' file. If you make a backwards compatible change to +// the interface (from the latest frozen version), the build system will +// prompt you to update this file with `m -update-api`. +// +// You must not make a backward incompatible change to any AIDL file built +// with the aidl_interface module type with versions property set. The module +// type is used to build AIDL files in a way that they can be used across +// independently updatable components of the system. If a device is shipped +// with such a backward incompatible change, it has a high risk of breaking +// later when a module using the interface is updated, e.g., Mainline modules. + +package vendor.samsung.hardware.radio.network; +@VintfStability +parcelable SehVendorConfiguration { + String name; + String value; +} diff --git a/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/ISehRadioNetwork.aidl b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/ISehRadioNetwork.aidl new file mode 100644 index 0000000..360a913 --- /dev/null +++ b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/ISehRadioNetwork.aidl @@ -0,0 +1,33 @@ +package vendor.samsung.hardware.radio.network; + +import vendor.samsung.hardware.radio.network.ISehRadioNetworkResponse; +import vendor.samsung.hardware.radio.network.ISehRadioNetworkIndication; +import vendor.samsung.hardware.radio.network.SehVendorConfiguration; + +@VintfStability +interface ISehRadioNetwork { + oneway void emergencyControl(); + oneway void emergencySearch(); + oneway void getAvailableNetworks(); + oneway void getCnap(); + oneway void getCsgList(); + oneway void getDisable2g(); + oneway void getNrIconType(); + oneway void getNrMode(); + oneway void getPreferredNetworkList(); + oneway void getRoamingNetworkInfoViaBLE(); + oneway void getVendorSpecificConfiguration(); + oneway void selectCsgManual(); + oneway void sendEncodedUssd(); + oneway void sendRequestRaw(); + oneway void sendRequestStrings(); + oneway void setCurrentNetworkInfoViaBLE(); + oneway void setDisable2g(); + oneway void setImsCallList(); + oneway void setNrMode(int serial, int mode, boolean force); + oneway void setPreferredNetworkList(); + oneway void setResponseFunctions(in ISehRadioNetworkResponse response, in ISehRadioNetworkIndication indication); + oneway void setRoamingNetworkInfoViaBLE(); + oneway void setScanResultViaBLE(); + oneway void setVendorSpecificConfiguration(int serial, in SehVendorConfiguration[] configurations); +} diff --git a/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/ISehRadioNetworkIndication.aidl b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/ISehRadioNetworkIndication.aidl new file mode 100644 index 0000000..8125415 --- /dev/null +++ b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/ISehRadioNetworkIndication.aidl @@ -0,0 +1,25 @@ +package vendor.samsung.hardware.radio.network; + +import vendor.samsung.hardware.radio.network.SehCallDetails; +import vendor.samsung.hardware.radio.network.SehEriInfo; +import vendor.samsung.hardware.radio.network.SehExtendedRegStateResult; +import vendor.samsung.hardware.radio.network.SehSignalBar; +import vendor.samsung.hardware.radio.network.SehVendorConfiguration; + +@VintfStability +interface ISehRadioNetworkIndication { + oneway void acbInfo(int type, in int[] acbInfo); + oneway void callDetailsChanged(int type, in SehCallDetails[] callDetails); + oneway void csFallback(int type, int state); + oneway void currentNetworkScanIsrequested(int type, byte mode); + oneway void eriInfoReceived(int type, in SehEriInfo eriInfo); + oneway void execute(int type, String cmd); + oneway void extendedRegistrationState(int type, in SehExtendedRegStateResult state); + oneway void imsPreferenceChanged(int type, in int[] imsPref); + oneway void needTurnOnRadioIndication(int type); + oneway void nrBearerAllocationChanged(int type, int status); + oneway void nrIconTypeChanged(int type, int nrIconType); + oneway void roamingNetworkScanIsRequested(int type, in byte[] scanData); + oneway void signalLevelInfoChanged(int type, in SehSignalBar signalBarInfo); + oneway void vendorConfigurationChanged(int type, in SehVendorConfiguration[] configurations); +} diff --git a/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/ISehRadioNetworkResponse.aidl b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/ISehRadioNetworkResponse.aidl new file mode 100644 index 0000000..e3eede0 --- /dev/null +++ b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/ISehRadioNetworkResponse.aidl @@ -0,0 +1,40 @@ +package vendor.samsung.hardware.radio.network; + +import vendor.samsung.hardware.radio.network.SehCallDetails; +import vendor.samsung.hardware.radio.network.SehEriInfo; +import vendor.samsung.hardware.radio.network.SehExtendedRegStateResult; +import vendor.samsung.hardware.radio.network.SehSignalBar; +import vendor.samsung.hardware.radio.network.SehVendorConfiguration; +import vendor.samsung.hardware.radio.network.SehRadioResponseInfo; +import vendor.samsung.hardware.radio.network.SehOperatorInfo; +import vendor.samsung.hardware.radio.network.SehCsgInfo; +import vendor.samsung.hardware.radio.network.SehPreferredNetworkInfo; +import vendor.samsung.hardware.radio.network.SehRoamingNetworkInfo; + +@VintfStability +interface ISehRadioNetworkResponse { + oneway void emergencyControlResponse(in SehRadioResponseInfo info); + oneway void emergencySearchResponse(in SehRadioResponseInfo info, int respEmergenySearch); + oneway void getAvailableNetworksResponse(in SehRadioResponseInfo info, in SehOperatorInfo[] networksInfo); + oneway void getCnapResponse(in SehRadioResponseInfo info, int m); + oneway void getCsgListResponse(in SehRadioResponseInfo info, in SehCsgInfo[] csgInfos); + oneway void getDisable2gResponse(in SehRadioResponseInfo info, int isDisable); + oneway void getNrIconTypeResponse(in SehRadioResponseInfo info, int nrIconType); + oneway void getNrModeResponse(in SehRadioResponseInfo info, int nrMode); + oneway void getPreferredNetworkListResponse(in SehRadioResponseInfo info, in SehPreferredNetworkInfo[] infos); + oneway void getRoamingNetworkInfoViaBLEResponse(in SehRadioResponseInfo info, in SehRoamingNetworkInfo[] networkInfo); + oneway void getVendorSpecificConfigurationResponse(in SehRadioResponseInfo info, in SehVendorConfiguration configurations); + oneway void selectCsgManualResponse(in SehRadioResponseInfo info); + oneway void sendEncodedUssdResponse(in SehRadioResponseInfo info); + oneway void sendRequestRawResponse(in SehRadioResponseInfo info, in byte[] data); + oneway void sendRequestStringsResponse(in SehRadioResponseInfo info, in String[] data); + oneway void setCurrentNetworkInfoViaBLEResponse(in SehRadioResponseInfo info); + oneway void setDisable2gResponse(in SehRadioResponseInfo info); + oneway void setImsCallListResponse(in SehRadioResponseInfo info); + oneway void setNrModeResponse(in SehRadioResponseInfo info); + oneway void setPreferredNetworkListResponse(in SehRadioResponseInfo info); + oneway void setRoamingNetworkInfoViaBLEResponse(in SehRadioResponseInfo info); + oneway void setScanResultViaBLEResponse(in SehRadioResponseInfo info); + oneway void setVendorSpecificConfigurationResponse(in SehRadioResponseInfo info); + +} diff --git a/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehArfcnInfo.aidl b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehArfcnInfo.aidl new file mode 100644 index 0000000..a697ee6 --- /dev/null +++ b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehArfcnInfo.aidl @@ -0,0 +1,10 @@ +package vendor.samsung.hardware.radio.network; + +import vendor.samsung.hardware.radio.network.SehArfcnInfo; + +@VintfStability +parcelable SehArfcnInfo { +byte rat; +int band; +int arfcn; +} diff --git a/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehCallDetails.aidl b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehCallDetails.aidl new file mode 100644 index 0000000..ba829fd --- /dev/null +++ b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehCallDetails.aidl @@ -0,0 +1,7 @@ +package vendor.samsung.hardware.radio.network; + +@VintfStability +parcelable SehCallDetails { + int callType; + String[] extras; +} diff --git a/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehCsgInfo.aidl b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehCsgInfo.aidl new file mode 100644 index 0000000..e24249c --- /dev/null +++ b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehCsgInfo.aidl @@ -0,0 +1,11 @@ +package vendor.samsung.hardware.radio.network; + +@VintfStability +parcelable SehCsgInfo { +int csgId; +String name; +String plmn; +int rat; +int category; +int signalStrength; +} diff --git a/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehEriInfo.aidl b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehEriInfo.aidl new file mode 100644 index 0000000..e538cb1 --- /dev/null +++ b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehEriInfo.aidl @@ -0,0 +1,9 @@ +package vendor.samsung.hardware.radio.network; + +@VintfStability +parcelable SehEriInfo { +String eriText; +byte roamingIndicator; +byte iconIndex; +byte iconMode; +} diff --git a/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehExtendedRegStateResult.aidl b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehExtendedRegStateResult.aidl new file mode 100644 index 0000000..fbf0521 --- /dev/null +++ b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehExtendedRegStateResult.aidl @@ -0,0 +1,13 @@ +package vendor.samsung.hardware.radio.network; + +@VintfStability +parcelable SehExtendedRegStateResult { + int unprocessedDataRegState; + int unprocessedVoiceRegState; + boolean isValid; + int snapshotStatus; + int unprocessedDataRat; + int mobileOptionalRat; + int imsEmergencyCallBarring; + boolean isPsOnlyReg; +} diff --git a/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehOperatorInfo.aidl b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehOperatorInfo.aidl new file mode 100644 index 0000000..9bc4d72 --- /dev/null +++ b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehOperatorInfo.aidl @@ -0,0 +1,11 @@ +package vendor.samsung.hardware.radio.network; + +@VintfStability +parcelable SehOperatorInfo { +String alphaLong; +String alphaShort; +String operatorNumeric; +int status; +String rat; +String lac; +} diff --git a/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehPreferredNetworkInfo.aidl b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehPreferredNetworkInfo.aidl new file mode 100644 index 0000000..69dc8b6 --- /dev/null +++ b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehPreferredNetworkInfo.aidl @@ -0,0 +1,12 @@ +package vendor.samsung.hardware.radio.network; + +@VintfStability +parcelable SehPreferredNetworkInfo { +int index; +String oper; +String plmn; +int gsmAct; +int gsmCompactAct; +int utranAct; +int mode; +} diff --git a/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehRadioResponseInfo.aidl b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehRadioResponseInfo.aidl new file mode 100644 index 0000000..77fa860 --- /dev/null +++ b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehRadioResponseInfo.aidl @@ -0,0 +1,8 @@ +package vendor.samsung.hardware.radio.network; + +@VintfStability +parcelable SehRadioResponseInfo { + int error; + int serial; + int type; +} diff --git a/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehRoamingNetworkInfo.aidl b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehRoamingNetworkInfo.aidl new file mode 100644 index 0000000..ff91e80 --- /dev/null +++ b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehRoamingNetworkInfo.aidl @@ -0,0 +1,13 @@ +package vendor.samsung.hardware.radio.network; + +import vendor.samsung.hardware.radio.network.SehArfcnInfo; + +@VintfStability +parcelable SehRoamingNetworkInfo { +byte[] plmn; +byte rat; +byte regState; +byte opResult; +byte[] date; +SehArfcnInfo[] arfcnInfo; +} diff --git a/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehSignalBar.aidl b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehSignalBar.aidl new file mode 100644 index 0000000..e6ca976 --- /dev/null +++ b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehSignalBar.aidl @@ -0,0 +1,12 @@ +package vendor.samsung.hardware.radio.network; + +@VintfStability +parcelable SehSignalBar { + int cdmaLevel; + int evdoLevel; + int gsmLevel; + int wcdmaLevel; + int tdscdmaLevel; + int lteLevel; + int nrLevel; +} diff --git a/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehVendorConfiguration.aidl b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehVendorConfiguration.aidl new file mode 100644 index 0000000..b0ac6d0 --- /dev/null +++ b/interfaces/radio/network/aidl/vendor/samsung/hardware/radio/network/SehVendorConfiguration.aidl @@ -0,0 +1,7 @@ +package vendor.samsung.hardware.radio.network; + +@VintfStability +parcelable SehVendorConfiguration { + String name; + String value; +} diff --git a/ril/sehradiomanager/Android.bp b/ril/sehradiomanager/Android.bp index 8ff0de2..0a974f5 100644 --- a/ril/sehradiomanager/Android.bp +++ b/ril/sehradiomanager/Android.bp @@ -9,19 +9,23 @@ cc_binary { vendor: true, relative_install_path: "hw", srcs: [ - "SehRadioIndication.cpp", - "SehRadioResponse.cpp", + "aidl/SehRadioNetworkIndication.cpp", + "aidl/SehRadioNetworkResponse.cpp", + "hidl/SehRadioIndication.cpp", + "hidl/SehRadioResponse.cpp", "sehradiomanager.cpp", ], init_rc: ["sehradiomanager.rc"], shared_libs: [ "libbase", "libbinder", + "libbinder_ndk", "libhidlbase", "libutils", "vendor.samsung.hardware.radio@2.0", "vendor.samsung.hardware.radio@2.1", "vendor.samsung.hardware.radio@2.2", + "vendor.samsung.hardware.radio.network-V1-ndk", ], cflags: ["-Wno-unused-parameter"], } diff --git a/ril/sehradiomanager/SehRadioIndication.cpp b/ril/sehradiomanager/SehRadioIndication.cpp deleted file mode 100644 index 5be32d6..0000000 --- a/ril/sehradiomanager/SehRadioIndication.cpp +++ /dev/null @@ -1,204 +0,0 @@ -/* - * Copyright (C) 2024 The LineageOS Project - * - * SPDX-License-Identifier: Apache-2.0 - */ - -#define LOG_TAG "SehRadioIndication" - -//#define DEBUG - -#include "SehRadioIndication.h" - -#include - -namespace vendor { -namespace samsung { -namespace hardware { -namespace radio { -namespace V2_2 { -namespace implementation { - -using ::android::hardware::Void; - -void l(std::string line) { -#ifdef DEBUG - LOG(INFO) << line; -#endif -} - -Return SehRadioIndication::acbInfoChanged(int32_t type, const hidl_vec& acbInfo) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::csFallback(int32_t type, int32_t state) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::imsPreferenceChanged(int32_t type, - const hidl_vec& imsPref) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::voiceRadioBearerHandoverStatusChanged(int32_t type, - int32_t state) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::timerStatusChangedInd(int32_t type, - const hidl_vec& eventNoti) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::modemCapabilityIndication(int32_t type, - const hidl_vec& data) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::needTurnOnRadioIndication(int32_t type) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::simPhonebookReadyIndication(int32_t type) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::phonebookInitCompleteIndication(int32_t type) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::deviceReadyNoti(int32_t type) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::stkSmsSendResultIndication(int32_t type, int32_t result) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::stkCallControlResultIndication(int32_t type, - const hidl_string& cmd) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::simSwapStateChangedIndication(int32_t type, int32_t state) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::simCountMismatchedIndication(int32_t type, int32_t state) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::simOnOffStateChangedNotify(int32_t type, int32_t mode) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::releaseCompleteMessageIndication( - int32_t type, const V2_0::SehSsReleaseComplete& result) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::sapNotify(int32_t type, const hidl_vec& data) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::nrBearerAllocationChanged(int32_t type, int32_t status) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::nrNetworkTypeAdded(int32_t type, int32_t status) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::rrcStateChanged(int32_t type, const V2_0::SehRrcStateInfo& state) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::configModemCapabilityChangeNoti( - int32_t type, const V2_0::SehConfigModemCapability& configModemCapa) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::needApnProfileIndication(const hidl_string& select) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::needSettingValueIndication(const hidl_string& key, - const hidl_string& table) { - l(__func__); - return -1; -} - -Return SehRadioIndication::execute(int32_t type, const hidl_string& cmd) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::signalLevelInfoChanged(int32_t type, - const V2_0::SehSignalBar& signalBarInfo) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::extendedRegistrationState( - int32_t type, const V2_0::SehExtendedRegStateResult& state) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::needPacketUsage(const hidl_string& iface, - needPacketUsage_cb hidl_cb) { - V2_0::SehPacketUsage usage; - hidl_cb(0, usage); - return Void(); -} - -Return SehRadioIndication::nrIconTypeChanged(uint32_t type, uint32_t nrIconType) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::callDetailsChanged( - uint32_t type, const hidl_vec& callDetails) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::vendorConfigurationChanged( - uint32_t type, const hidl_vec& configurations) { - l(__func__); - return Void(); -} - -Return SehRadioIndication::eriInfoReceived(uint32_t type, const SehEriInfo& eriInfo) { - l(__func__); - return Void(); -} - -} // namespace implementation -} // namespace V2_2 -} // namespace radio -} // namespace hardware -} // namespace samsung -} // namespace vendor diff --git a/ril/sehradiomanager/SehRadioIndication.h b/ril/sehradiomanager/SehRadioIndication.h deleted file mode 100644 index b0fe8a3..0000000 --- a/ril/sehradiomanager/SehRadioIndication.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (C) 2024 The LineageOS Project - * - * SPDX-License-Identifier: Apache-2.0 - */ - -#pragma once - -#include -#include - -namespace vendor { -namespace samsung { -namespace hardware { -namespace radio { -namespace V2_2 { -namespace implementation { - -using ::android::hardware::hidl_string; -using ::android::hardware::hidl_vec; -using ::android::hardware::Return; - -class SehRadioIndication : public ISehRadioIndication { - public: - Return acbInfoChanged(int32_t type, const hidl_vec& acbInfo) override; - Return csFallback(int32_t type, int32_t state) override; - Return imsPreferenceChanged(int32_t type, const hidl_vec& imsPref) override; - Return voiceRadioBearerHandoverStatusChanged(int32_t type, int32_t state) override; - Return timerStatusChangedInd(int32_t type, const hidl_vec& eventNoti) override; - Return modemCapabilityIndication(int32_t type, const hidl_vec& data) override; - Return needTurnOnRadioIndication(int32_t type) override; - Return simPhonebookReadyIndication(int32_t type) override; - Return phonebookInitCompleteIndication(int32_t type) override; - Return deviceReadyNoti(int32_t type) override; - Return stkSmsSendResultIndication(int32_t type, int32_t result) override; - Return stkCallControlResultIndication(int32_t type, const hidl_string& cmd) override; - Return simSwapStateChangedIndication(int32_t type, int32_t state) override; - Return simCountMismatchedIndication(int32_t type, int32_t state) override; - Return simOnOffStateChangedNotify(int32_t type, int32_t mode) override; - Return releaseCompleteMessageIndication( - int32_t type, const V2_0::SehSsReleaseComplete& result) override; - Return sapNotify(int32_t type, const hidl_vec& data) override; - Return nrBearerAllocationChanged(int32_t type, int32_t status) override; - Return nrNetworkTypeAdded(int32_t type, int32_t status) override; - Return rrcStateChanged(int32_t type, const V2_0::SehRrcStateInfo& state) override; - Return configModemCapabilityChangeNoti( - int32_t type, const V2_0::SehConfigModemCapability& configModemCapa) override; - Return needApnProfileIndication(const hidl_string& select) override; - Return needSettingValueIndication(const hidl_string& key, - const hidl_string& table) override; - Return execute(int32_t type, const hidl_string& cmd) override; - Return signalLevelInfoChanged(int32_t type, - const V2_0::SehSignalBar& signalBarInfo) override; - Return extendedRegistrationState(int32_t type, - const V2_0::SehExtendedRegStateResult& state) override; - Return needPacketUsage(const hidl_string& iface, needPacketUsage_cb hidl_cb) override; - Return nrIconTypeChanged(uint32_t type, uint32_t nrIconType) override; - Return callDetailsChanged(uint32_t type, - const hidl_vec& callDetails) override; - Return vendorConfigurationChanged( - uint32_t type, const hidl_vec& configurations) override; - Return eriInfoReceived(uint32_t type, const SehEriInfo& eriInfo) override; -}; - -} // namespace implementation -} // namespace V2_2 -} // namespace radio -} // namespace hardware -} // namespace samsung -} // namespace vendor diff --git a/ril/sehradiomanager/SehRadioResponse.cpp b/ril/sehradiomanager/SehRadioResponse.cpp deleted file mode 100644 index c95eca1..0000000 --- a/ril/sehradiomanager/SehRadioResponse.cpp +++ /dev/null @@ -1,221 +0,0 @@ -/* - * Copyright (C) 2024 The LineageOS Project - * - * SPDX-License-Identifier: Apache-2.0 - */ - -#define LOG_TAG "SehRadioResponse" - -#include "SehRadioResponse.h" - -namespace vendor { -namespace samsung { -namespace hardware { -namespace radio { -namespace V2_2 { -namespace implementation { - -using ::android::hardware::Void; - -Return SehRadioResponse::getIccCardStatusResponse() { - return Void(); -} - -Return SehRadioResponse::supplyNetworkDepersonalizationResponse( - const RadioResponseInfo& info) { - return Void(); -} - -Return SehRadioResponse::dialResponse(const RadioResponseInfo& info) { - return Void(); -} - -Return SehRadioResponse::getCurrentCallsResponse() { - return Void(); -} - -Return SehRadioResponse::getImsRegistrationStateResponse() { - return Void(); -} - -Return SehRadioResponse::setImsCallListResponse(const RadioResponseInfo& info) { - return Void(); -} - -Return SehRadioResponse::getPreferredNetworkListResponse() { - return Void(); -} - -Return SehRadioResponse::setPreferredNetworkListResponse(const RadioResponseInfo& info) { - return Void(); -} - -Return SehRadioResponse::sendEncodedUssdResponse(const RadioResponseInfo& info) { - return Void(); -} - -Return SehRadioResponse::getDisable2gResponse(const RadioResponseInfo& info, - int32_t isDisable) { - return Void(); -} - -Return SehRadioResponse::setDisable2gResponse(const RadioResponseInfo& info) { - return Void(); -} - -Return SehRadioResponse::getCnapResponse(const RadioResponseInfo& info, int32_t m) { - return Void(); -} - -Return SehRadioResponse::getPhonebookStorageInfoResponse() { - return Void(); -} - -Return SehRadioResponse::getUsimPhonebookCapabilityResponse( - const RadioResponseInfo& info, const hidl_vec& phonebookCapability) { - return Void(); -} - -Return SehRadioResponse::setSimOnOffResponse(const RadioResponseInfo& info) { - return Void(); -} - -Return SehRadioResponse::setSimInitEventResponse(const RadioResponseInfo& info) { - return Void(); -} - -Return SehRadioResponse::getSimLockInfoResponse() { - return Void(); -} - -Return SehRadioResponse::supplyIccPersonalizationResponse(const RadioResponseInfo& info) { - return Void(); -} - -Return SehRadioResponse::changeIccPersonalizationResponse(const RadioResponseInfo& info) { - return Void(); -} - -Return SehRadioResponse::getPhonebookEntryResponse() { - return Void(); -} - -Return SehRadioResponse::accessPhonebookEntryResponse(const RadioResponseInfo& info, - int32_t simPhonebookAccessResp) { - return Void(); -} - -Return SehRadioResponse::getCellBroadcastConfigResponse() { - return Void(); -} - -Return SehRadioResponse::emergencySearchResponse(const RadioResponseInfo& info, - int32_t respEmergencySearch) { - return Void(); -} - -Return SehRadioResponse::emergencyControlResponse(const RadioResponseInfo& info) { - return Void(); -} - -Return SehRadioResponse::getAtrResponse(const RadioResponseInfo& info, - const hidl_string& atr) { - return Void(); -} - -Return SehRadioResponse::sendCdmaSmsExpectMoreResponse() { - return Void(); -} - -Return SehRadioResponse::sendSmsResponse() { - return Void(); -} - -Return SehRadioResponse::sendSMSExpectMoreResponse() { - return Void(); -} - -Return SehRadioResponse::sendCdmaSmsResponse() { - return Void(); -} - -Return SehRadioResponse::sendImsSmsResponse() { - return Void(); -} - -Return SehRadioResponse::getStoredMsgCountFromSimResponse() { - return Void(); -} - -Return SehRadioResponse::readSmsFromSimResponse() { - return Void(); -} - -Return SehRadioResponse::writeSmsToSimResponse(const RadioResponseInfo& info, int32_t index) { - return Void(); -} - -Return SehRadioResponse::setDataAllowedResponse(const RadioResponseInfo& info) { - return Void(); -} - -Return SehRadioResponse::getCsgListResponse() { - return Void(); -} - -Return SehRadioResponse::selectCsgManualResponse(const RadioResponseInfo& info) { - return Void(); -} - -Return SehRadioResponse::setMobileDataSettingResponse(const RadioResponseInfo& info) { - return Void(); -} - -Return SehRadioResponse::sendRequestRawResponse(const RadioResponseInfo& info, - const hidl_vec& data) { - return Void(); -} - -Return SehRadioResponse::sendRequestStringsResponse(const RadioResponseInfo& info, - const hidl_vec& data) { - return Void(); -} - -Return SehRadioResponse::setNrModeResponse(const RadioResponseInfo& info) { - return Void(); -} - -Return SehRadioResponse::getNrModeResponse(const RadioResponseInfo& info, uint32_t nrMode) { - return Void(); -} - -Return SehRadioResponse::getNrIconResponse(const RadioResponseInfo& info, - uint32_t nrIconType) { - return Void(); -} - -Return SehRadioResponse::getIccCardStatusResponse_2_1(const RadioResponseInfo& info, - const V2_1::SehCardStatus& cardStatus) { - return Void(); -} - -Return SehRadioResponse::setNrModeResponse_2_2(const RadioResponseInfo& info) { - return Void(); -} - -Return SehRadioResponse::getVendorSpecificConfigurationResponse( - const RadioResponseInfo& info, const hidl_vec& configurations) { - return Void(); -} - -Return SehRadioResponse::setVendorSpecificConfigurationResponse( - const RadioResponseInfo& info) { - return Void(); -} - -} // namespace implementation -} // namespace V2_2 -} // namespace radio -} // namespace hardware -} // namespace samsung -} // namespace vendor diff --git a/ril/sehradiomanager/SehRadioResponse.h b/ril/sehradiomanager/SehRadioResponse.h deleted file mode 100644 index 476a8f2..0000000 --- a/ril/sehradiomanager/SehRadioResponse.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (C) 2024 The LineageOS Project - * - * SPDX-License-Identifier: Apache-2.0 - */ - -#pragma once - -#include -#include - -namespace vendor { -namespace samsung { -namespace hardware { -namespace radio { -namespace V2_2 { -namespace implementation { - -using ::android::hardware::hidl_string; -using ::android::hardware::hidl_vec; -using ::android::hardware::Return; -using ::android::hardware::radio::V1_0::RadioResponseInfo; - -class SehRadioResponse : public ISehRadioResponse { - public: - Return getIccCardStatusResponse() override; - Return supplyNetworkDepersonalizationResponse(const RadioResponseInfo& info) override; - Return dialResponse(const RadioResponseInfo& info) override; - Return getCurrentCallsResponse() override; - Return getImsRegistrationStateResponse() override; - Return setImsCallListResponse(const RadioResponseInfo& info) override; - Return getPreferredNetworkListResponse() override; - Return setPreferredNetworkListResponse(const RadioResponseInfo& info) override; - Return sendEncodedUssdResponse(const RadioResponseInfo& info) override; - Return getDisable2gResponse(const RadioResponseInfo& info, int32_t isDisable) override; - Return setDisable2gResponse(const RadioResponseInfo& info) override; - Return getCnapResponse(const RadioResponseInfo& info, int32_t m) override; - Return getPhonebookStorageInfoResponse() override; - Return getUsimPhonebookCapabilityResponse( - const RadioResponseInfo& info, const hidl_vec& phonebookCapability) override; - Return setSimOnOffResponse(const RadioResponseInfo& info) override; - Return setSimInitEventResponse(const RadioResponseInfo& info) override; - Return getSimLockInfoResponse() override; - Return supplyIccPersonalizationResponse(const RadioResponseInfo& info) override; - Return changeIccPersonalizationResponse(const RadioResponseInfo& info) override; - Return getPhonebookEntryResponse() override; - Return accessPhonebookEntryResponse(const RadioResponseInfo& info, - int32_t simPhonebookAccessResp) override; - Return getCellBroadcastConfigResponse() override; - Return emergencySearchResponse(const RadioResponseInfo& info, - int32_t respEmergencySearch) override; - Return emergencyControlResponse(const RadioResponseInfo& info) override; - Return getAtrResponse(const RadioResponseInfo& info, const hidl_string& atr) override; - Return sendCdmaSmsExpectMoreResponse() override; - Return sendSmsResponse() override; - Return sendSMSExpectMoreResponse() override; - Return sendCdmaSmsResponse() override; - Return sendImsSmsResponse() override; - Return getStoredMsgCountFromSimResponse() override; - Return readSmsFromSimResponse() override; - Return writeSmsToSimResponse(const RadioResponseInfo& info, int32_t index) override; - Return setDataAllowedResponse(const RadioResponseInfo& info) override; - Return getCsgListResponse() override; - Return selectCsgManualResponse(const RadioResponseInfo& info) override; - Return setMobileDataSettingResponse(const RadioResponseInfo& info) override; - Return sendRequestRawResponse(const RadioResponseInfo& info, - const hidl_vec& data) override; - Return sendRequestStringsResponse(const RadioResponseInfo& info, - const hidl_vec& data) override; - Return setNrModeResponse(const RadioResponseInfo& info) override; - Return getNrModeResponse(const RadioResponseInfo& info, uint32_t nrMode) override; - Return getNrIconResponse(const RadioResponseInfo& info, uint32_t nrIconType) override; - Return getIccCardStatusResponse_2_1(const RadioResponseInfo& info, - const V2_1::SehCardStatus& cardStatus) override; - Return setNrModeResponse_2_2(const RadioResponseInfo& info) override; - Return getVendorSpecificConfigurationResponse( - const RadioResponseInfo& info, - const hidl_vec& configurations) override; - Return setVendorSpecificConfigurationResponse(const RadioResponseInfo& info) override; -}; - -} // namespace implementation -} // namespace V2_2 -} // namespace radio -} // namespace hardware -} // namespace samsung -} // namespace vendor diff --git a/ril/sehradiomanager/aidl/SehRadioNetworkIndication.cpp b/ril/sehradiomanager/aidl/SehRadioNetworkIndication.cpp new file mode 100644 index 0000000..62f1b30 --- /dev/null +++ b/ril/sehradiomanager/aidl/SehRadioNetworkIndication.cpp @@ -0,0 +1,115 @@ +/* + * Copyright (C) 2024 The LineageOS Project + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#define LOG_TAG "SehRadioNetworkIndication" + +//#define DEBUG + +#include "SehRadioNetworkIndication.h" + +#include + +namespace aidl { +namespace vendor { +namespace samsung { +namespace hardware { +namespace radio { +namespace network { +namespace implementation { + +void l(std::string line) { +#ifdef DEBUG + LOG(INFO) << line; +#endif +} + +ndk::ScopedAStatus SehRadioNetworkIndication::acbInfo(int32_t type, + const std::vector& acbInfo) { + l(__func__); + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkIndication::callDetailsChanged( + int32_t type, const std::vector& callDetails) { + l(__func__); + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkIndication::csFallback(int32_t type, int32_t state) { + l(__func__); + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkIndication::currentNetworkScanIsrequested(int32_t type, + int8_t mode) { + l(__func__); + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkIndication::eriInfoReceived(int32_t type, + const SehEriInfo& eriInfo) { + l(__func__); + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkIndication::execute(int32_t type, const std::string& cmd) { + l(__func__); + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkIndication::extendedRegistrationState( + int32_t type, const SehExtendedRegStateResult& state) { + l(__func__); + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkIndication::imsPreferenceChanged( + int32_t type, const std::vector& imsPref) { + l(__func__); + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkIndication::needTurnOnRadioIndication(int32_t type) { + l(__func__); + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkIndication::nrBearerAllocationChanged(int32_t type, + int32_t status) { + l(__func__); + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkIndication::nrIconTypeChanged(int32_t type, int32_t nrIconType) { + l(__func__); + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkIndication::roamingNetworkScanIsRequested( + int32_t type, const std::vector& scanData) { + l(__func__); + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkIndication::signalLevelInfoChanged( + int32_t type, const SehSignalBar& signalBarInfo) { + l(__func__); + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkIndication::vendorConfigurationChanged( + int32_t type, const std::vector& configurations) { + l(__func__); + return ndk::ScopedAStatus::ok(); +} + +} // namespace implementation +} // namespace network +} // namespace radio +} // namespace hardware +} // namespace samsung +} // namespace vendor +} // namespace aidl diff --git a/ril/sehradiomanager/aidl/SehRadioNetworkIndication.h b/ril/sehradiomanager/aidl/SehRadioNetworkIndication.h new file mode 100644 index 0000000..5140db9 --- /dev/null +++ b/ril/sehradiomanager/aidl/SehRadioNetworkIndication.h @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2024 The LineageOS Project + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#pragma once + +#include + +namespace aidl { +namespace vendor { +namespace samsung { +namespace hardware { +namespace radio { +namespace network { +namespace implementation { + +class SehRadioNetworkIndication : public BnSehRadioNetworkIndication { + public: + ndk::ScopedAStatus acbInfo(int32_t type, const std::vector& acbInfo) override; + ndk::ScopedAStatus callDetailsChanged(int32_t type, + const std::vector& callDetails) override; + ndk::ScopedAStatus csFallback(int32_t type, int32_t state) override; + ndk::ScopedAStatus currentNetworkScanIsrequested(int32_t type, int8_t mode) override; + ndk::ScopedAStatus eriInfoReceived(int32_t type, const SehEriInfo& eriInfo) override; + ndk::ScopedAStatus execute(int32_t type, const std::string& cmd) override; + ndk::ScopedAStatus extendedRegistrationState(int32_t type, + const SehExtendedRegStateResult& state) override; + ndk::ScopedAStatus imsPreferenceChanged(int32_t type, + const std::vector& imsPref) override; + ndk::ScopedAStatus needTurnOnRadioIndication(int32_t type) override; + ndk::ScopedAStatus nrBearerAllocationChanged(int32_t type, int32_t status) override; + ndk::ScopedAStatus nrIconTypeChanged(int32_t type, int32_t nrIconType) override; + ndk::ScopedAStatus roamingNetworkScanIsRequested(int32_t type, + const std::vector& scanData) override; + ndk::ScopedAStatus signalLevelInfoChanged(int32_t type, + const SehSignalBar& signalBarInfo) override; + ndk::ScopedAStatus vendorConfigurationChanged( + int32_t type, const std::vector& configurations) override; +}; + +} // namespace implementation +} // namespace network +} // namespace radio +} // namespace hardware +} // namespace samsung +} // namespace vendor +} // namespace aidl diff --git a/ril/sehradiomanager/aidl/SehRadioNetworkResponse.cpp b/ril/sehradiomanager/aidl/SehRadioNetworkResponse.cpp new file mode 100644 index 0000000..f934433 --- /dev/null +++ b/ril/sehradiomanager/aidl/SehRadioNetworkResponse.cpp @@ -0,0 +1,136 @@ +/* + * Copyright (C) 2024 The LineageOS Project + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include "SehRadioNetworkResponse.h" + +namespace aidl { +namespace vendor { +namespace samsung { +namespace hardware { +namespace radio { +namespace network { +namespace implementation { + +ndk::ScopedAStatus SehRadioNetworkResponse::emergencyControlResponse( + const SehRadioResponseInfo& info) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::emergencySearchResponse( + const SehRadioResponseInfo& info, int respEmergencySearch) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::getAvailableNetworksResponse( + const SehRadioResponseInfo& info, const std::vector& networksInfo) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::getCnapResponse(const SehRadioResponseInfo& info, + int32_t m) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::getCsgListResponse( + const SehRadioResponseInfo& info, const std::vector& csgInfos) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::getDisable2gResponse(const SehRadioResponseInfo& info, + int32_t isDisable) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::getNrIconTypeResponse(const SehRadioResponseInfo& info, + int32_t nrIconType) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::getNrModeResponse(const SehRadioResponseInfo& info, + int32_t nrMode) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::getPreferredNetworkListResponse( + const SehRadioResponseInfo& info, const std::vector& infos) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::getRoamingNetworkInfoViaBLEResponse( + const SehRadioResponseInfo& info, const std::vector& networkInfo) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::getVendorSpecificConfigurationResponse( + const SehRadioResponseInfo& info, const SehVendorConfiguration& configurations) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::selectCsgManualResponse( + const SehRadioResponseInfo& info) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::sendEncodedUssdResponse( + const SehRadioResponseInfo& info) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::sendRequestRawResponse( + const SehRadioResponseInfo& info, const std::vector& data) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::sendRequestStringsResponse( + const SehRadioResponseInfo& info, const std::vector& data) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::setCurrentNetworkInfoViaBLEResponse( + const SehRadioResponseInfo& info) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::setDisable2gResponse(const SehRadioResponseInfo& info) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::setImsCallListResponse( + const SehRadioResponseInfo& info) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::setNrModeResponse(const SehRadioResponseInfo& info) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::setPreferredNetworkListResponse( + const SehRadioResponseInfo& info) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::setRoamingNetworkInfoViaBLEResponse( + const SehRadioResponseInfo& info) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::setScanResultViaBLEResponse( + const SehRadioResponseInfo& info) { + return ndk::ScopedAStatus::ok(); +} + +ndk::ScopedAStatus SehRadioNetworkResponse::setVendorSpecificConfigurationResponse( + const SehRadioResponseInfo& info) { + return ndk::ScopedAStatus::ok(); +} + +} // namespace implementation +} // namespace network +} // namespace radio +} // namespace hardware +} // namespace samsung +} // namespace vendor +} // namespace aidl diff --git a/ril/sehradiomanager/aidl/SehRadioNetworkResponse.h b/ril/sehradiomanager/aidl/SehRadioNetworkResponse.h new file mode 100644 index 0000000..d40e1ad --- /dev/null +++ b/ril/sehradiomanager/aidl/SehRadioNetworkResponse.h @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2024 The LineageOS Project + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#pragma once + +#include + +namespace aidl { +namespace vendor { +namespace samsung { +namespace hardware { +namespace radio { +namespace network { +namespace implementation { + +class SehRadioNetworkResponse : public BnSehRadioNetworkResponse { + public: + ndk::ScopedAStatus emergencyControlResponse(const SehRadioResponseInfo& info) override; + ndk::ScopedAStatus emergencySearchResponse(const SehRadioResponseInfo& info, + int respEmergencySearch) override; + ndk::ScopedAStatus getAvailableNetworksResponse( + const SehRadioResponseInfo& info, + const std::vector& networksInfo) override; + ndk::ScopedAStatus getCnapResponse(const SehRadioResponseInfo& info, int32_t m) override; + ndk::ScopedAStatus getCsgListResponse(const SehRadioResponseInfo& info, + const std::vector& csgInfos) override; + ndk::ScopedAStatus getDisable2gResponse(const SehRadioResponseInfo& info, + int32_t isDisable) override; + ndk::ScopedAStatus getNrIconTypeResponse(const SehRadioResponseInfo& info, + int32_t nrIconType) override; + ndk::ScopedAStatus getNrModeResponse(const SehRadioResponseInfo& info, int32_t nrMode) override; + ndk::ScopedAStatus getPreferredNetworkListResponse( + const SehRadioResponseInfo& info, + const std::vector& infos) override; + ndk::ScopedAStatus getRoamingNetworkInfoViaBLEResponse( + const SehRadioResponseInfo& info, + const std::vector& networkInfo) override; + ndk::ScopedAStatus getVendorSpecificConfigurationResponse( + const SehRadioResponseInfo& info, + const SehVendorConfiguration& configurations) override; + ndk::ScopedAStatus selectCsgManualResponse(const SehRadioResponseInfo& info) override; + ndk::ScopedAStatus sendEncodedUssdResponse(const SehRadioResponseInfo& info) override; + ndk::ScopedAStatus sendRequestRawResponse(const SehRadioResponseInfo& info, + const std::vector& data) override; + ndk::ScopedAStatus sendRequestStringsResponse(const SehRadioResponseInfo& info, + const std::vector& data) override; + ndk::ScopedAStatus setCurrentNetworkInfoViaBLEResponse( + const SehRadioResponseInfo& info) override; + ndk::ScopedAStatus setDisable2gResponse(const SehRadioResponseInfo& info) override; + ndk::ScopedAStatus setImsCallListResponse(const SehRadioResponseInfo& info) override; + ndk::ScopedAStatus setNrModeResponse(const SehRadioResponseInfo& info) override; + ndk::ScopedAStatus setPreferredNetworkListResponse(const SehRadioResponseInfo& info) override; + ndk::ScopedAStatus setRoamingNetworkInfoViaBLEResponse( + const SehRadioResponseInfo& info) override; + ndk::ScopedAStatus setScanResultViaBLEResponse(const SehRadioResponseInfo& info) override; + ndk::ScopedAStatus setVendorSpecificConfigurationResponse( + const SehRadioResponseInfo& info) override; +}; + +} // namespace implementation +} // namespace network +} // namespace radio +} // namespace hardware +} // namespace samsung +} // namespace vendor +} // namespace aidl diff --git a/ril/sehradiomanager/hidl/SehRadioIndication.cpp b/ril/sehradiomanager/hidl/SehRadioIndication.cpp new file mode 100644 index 0000000..5be32d6 --- /dev/null +++ b/ril/sehradiomanager/hidl/SehRadioIndication.cpp @@ -0,0 +1,204 @@ +/* + * Copyright (C) 2024 The LineageOS Project + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#define LOG_TAG "SehRadioIndication" + +//#define DEBUG + +#include "SehRadioIndication.h" + +#include + +namespace vendor { +namespace samsung { +namespace hardware { +namespace radio { +namespace V2_2 { +namespace implementation { + +using ::android::hardware::Void; + +void l(std::string line) { +#ifdef DEBUG + LOG(INFO) << line; +#endif +} + +Return SehRadioIndication::acbInfoChanged(int32_t type, const hidl_vec& acbInfo) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::csFallback(int32_t type, int32_t state) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::imsPreferenceChanged(int32_t type, + const hidl_vec& imsPref) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::voiceRadioBearerHandoverStatusChanged(int32_t type, + int32_t state) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::timerStatusChangedInd(int32_t type, + const hidl_vec& eventNoti) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::modemCapabilityIndication(int32_t type, + const hidl_vec& data) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::needTurnOnRadioIndication(int32_t type) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::simPhonebookReadyIndication(int32_t type) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::phonebookInitCompleteIndication(int32_t type) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::deviceReadyNoti(int32_t type) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::stkSmsSendResultIndication(int32_t type, int32_t result) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::stkCallControlResultIndication(int32_t type, + const hidl_string& cmd) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::simSwapStateChangedIndication(int32_t type, int32_t state) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::simCountMismatchedIndication(int32_t type, int32_t state) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::simOnOffStateChangedNotify(int32_t type, int32_t mode) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::releaseCompleteMessageIndication( + int32_t type, const V2_0::SehSsReleaseComplete& result) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::sapNotify(int32_t type, const hidl_vec& data) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::nrBearerAllocationChanged(int32_t type, int32_t status) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::nrNetworkTypeAdded(int32_t type, int32_t status) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::rrcStateChanged(int32_t type, const V2_0::SehRrcStateInfo& state) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::configModemCapabilityChangeNoti( + int32_t type, const V2_0::SehConfigModemCapability& configModemCapa) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::needApnProfileIndication(const hidl_string& select) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::needSettingValueIndication(const hidl_string& key, + const hidl_string& table) { + l(__func__); + return -1; +} + +Return SehRadioIndication::execute(int32_t type, const hidl_string& cmd) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::signalLevelInfoChanged(int32_t type, + const V2_0::SehSignalBar& signalBarInfo) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::extendedRegistrationState( + int32_t type, const V2_0::SehExtendedRegStateResult& state) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::needPacketUsage(const hidl_string& iface, + needPacketUsage_cb hidl_cb) { + V2_0::SehPacketUsage usage; + hidl_cb(0, usage); + return Void(); +} + +Return SehRadioIndication::nrIconTypeChanged(uint32_t type, uint32_t nrIconType) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::callDetailsChanged( + uint32_t type, const hidl_vec& callDetails) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::vendorConfigurationChanged( + uint32_t type, const hidl_vec& configurations) { + l(__func__); + return Void(); +} + +Return SehRadioIndication::eriInfoReceived(uint32_t type, const SehEriInfo& eriInfo) { + l(__func__); + return Void(); +} + +} // namespace implementation +} // namespace V2_2 +} // namespace radio +} // namespace hardware +} // namespace samsung +} // namespace vendor diff --git a/ril/sehradiomanager/hidl/SehRadioIndication.h b/ril/sehradiomanager/hidl/SehRadioIndication.h new file mode 100644 index 0000000..b0fe8a3 --- /dev/null +++ b/ril/sehradiomanager/hidl/SehRadioIndication.h @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2024 The LineageOS Project + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#pragma once + +#include +#include + +namespace vendor { +namespace samsung { +namespace hardware { +namespace radio { +namespace V2_2 { +namespace implementation { + +using ::android::hardware::hidl_string; +using ::android::hardware::hidl_vec; +using ::android::hardware::Return; + +class SehRadioIndication : public ISehRadioIndication { + public: + Return acbInfoChanged(int32_t type, const hidl_vec& acbInfo) override; + Return csFallback(int32_t type, int32_t state) override; + Return imsPreferenceChanged(int32_t type, const hidl_vec& imsPref) override; + Return voiceRadioBearerHandoverStatusChanged(int32_t type, int32_t state) override; + Return timerStatusChangedInd(int32_t type, const hidl_vec& eventNoti) override; + Return modemCapabilityIndication(int32_t type, const hidl_vec& data) override; + Return needTurnOnRadioIndication(int32_t type) override; + Return simPhonebookReadyIndication(int32_t type) override; + Return phonebookInitCompleteIndication(int32_t type) override; + Return deviceReadyNoti(int32_t type) override; + Return stkSmsSendResultIndication(int32_t type, int32_t result) override; + Return stkCallControlResultIndication(int32_t type, const hidl_string& cmd) override; + Return simSwapStateChangedIndication(int32_t type, int32_t state) override; + Return simCountMismatchedIndication(int32_t type, int32_t state) override; + Return simOnOffStateChangedNotify(int32_t type, int32_t mode) override; + Return releaseCompleteMessageIndication( + int32_t type, const V2_0::SehSsReleaseComplete& result) override; + Return sapNotify(int32_t type, const hidl_vec& data) override; + Return nrBearerAllocationChanged(int32_t type, int32_t status) override; + Return nrNetworkTypeAdded(int32_t type, int32_t status) override; + Return rrcStateChanged(int32_t type, const V2_0::SehRrcStateInfo& state) override; + Return configModemCapabilityChangeNoti( + int32_t type, const V2_0::SehConfigModemCapability& configModemCapa) override; + Return needApnProfileIndication(const hidl_string& select) override; + Return needSettingValueIndication(const hidl_string& key, + const hidl_string& table) override; + Return execute(int32_t type, const hidl_string& cmd) override; + Return signalLevelInfoChanged(int32_t type, + const V2_0::SehSignalBar& signalBarInfo) override; + Return extendedRegistrationState(int32_t type, + const V2_0::SehExtendedRegStateResult& state) override; + Return needPacketUsage(const hidl_string& iface, needPacketUsage_cb hidl_cb) override; + Return nrIconTypeChanged(uint32_t type, uint32_t nrIconType) override; + Return callDetailsChanged(uint32_t type, + const hidl_vec& callDetails) override; + Return vendorConfigurationChanged( + uint32_t type, const hidl_vec& configurations) override; + Return eriInfoReceived(uint32_t type, const SehEriInfo& eriInfo) override; +}; + +} // namespace implementation +} // namespace V2_2 +} // namespace radio +} // namespace hardware +} // namespace samsung +} // namespace vendor diff --git a/ril/sehradiomanager/hidl/SehRadioResponse.cpp b/ril/sehradiomanager/hidl/SehRadioResponse.cpp new file mode 100644 index 0000000..c95eca1 --- /dev/null +++ b/ril/sehradiomanager/hidl/SehRadioResponse.cpp @@ -0,0 +1,221 @@ +/* + * Copyright (C) 2024 The LineageOS Project + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#define LOG_TAG "SehRadioResponse" + +#include "SehRadioResponse.h" + +namespace vendor { +namespace samsung { +namespace hardware { +namespace radio { +namespace V2_2 { +namespace implementation { + +using ::android::hardware::Void; + +Return SehRadioResponse::getIccCardStatusResponse() { + return Void(); +} + +Return SehRadioResponse::supplyNetworkDepersonalizationResponse( + const RadioResponseInfo& info) { + return Void(); +} + +Return SehRadioResponse::dialResponse(const RadioResponseInfo& info) { + return Void(); +} + +Return SehRadioResponse::getCurrentCallsResponse() { + return Void(); +} + +Return SehRadioResponse::getImsRegistrationStateResponse() { + return Void(); +} + +Return SehRadioResponse::setImsCallListResponse(const RadioResponseInfo& info) { + return Void(); +} + +Return SehRadioResponse::getPreferredNetworkListResponse() { + return Void(); +} + +Return SehRadioResponse::setPreferredNetworkListResponse(const RadioResponseInfo& info) { + return Void(); +} + +Return SehRadioResponse::sendEncodedUssdResponse(const RadioResponseInfo& info) { + return Void(); +} + +Return SehRadioResponse::getDisable2gResponse(const RadioResponseInfo& info, + int32_t isDisable) { + return Void(); +} + +Return SehRadioResponse::setDisable2gResponse(const RadioResponseInfo& info) { + return Void(); +} + +Return SehRadioResponse::getCnapResponse(const RadioResponseInfo& info, int32_t m) { + return Void(); +} + +Return SehRadioResponse::getPhonebookStorageInfoResponse() { + return Void(); +} + +Return SehRadioResponse::getUsimPhonebookCapabilityResponse( + const RadioResponseInfo& info, const hidl_vec& phonebookCapability) { + return Void(); +} + +Return SehRadioResponse::setSimOnOffResponse(const RadioResponseInfo& info) { + return Void(); +} + +Return SehRadioResponse::setSimInitEventResponse(const RadioResponseInfo& info) { + return Void(); +} + +Return SehRadioResponse::getSimLockInfoResponse() { + return Void(); +} + +Return SehRadioResponse::supplyIccPersonalizationResponse(const RadioResponseInfo& info) { + return Void(); +} + +Return SehRadioResponse::changeIccPersonalizationResponse(const RadioResponseInfo& info) { + return Void(); +} + +Return SehRadioResponse::getPhonebookEntryResponse() { + return Void(); +} + +Return SehRadioResponse::accessPhonebookEntryResponse(const RadioResponseInfo& info, + int32_t simPhonebookAccessResp) { + return Void(); +} + +Return SehRadioResponse::getCellBroadcastConfigResponse() { + return Void(); +} + +Return SehRadioResponse::emergencySearchResponse(const RadioResponseInfo& info, + int32_t respEmergencySearch) { + return Void(); +} + +Return SehRadioResponse::emergencyControlResponse(const RadioResponseInfo& info) { + return Void(); +} + +Return SehRadioResponse::getAtrResponse(const RadioResponseInfo& info, + const hidl_string& atr) { + return Void(); +} + +Return SehRadioResponse::sendCdmaSmsExpectMoreResponse() { + return Void(); +} + +Return SehRadioResponse::sendSmsResponse() { + return Void(); +} + +Return SehRadioResponse::sendSMSExpectMoreResponse() { + return Void(); +} + +Return SehRadioResponse::sendCdmaSmsResponse() { + return Void(); +} + +Return SehRadioResponse::sendImsSmsResponse() { + return Void(); +} + +Return SehRadioResponse::getStoredMsgCountFromSimResponse() { + return Void(); +} + +Return SehRadioResponse::readSmsFromSimResponse() { + return Void(); +} + +Return SehRadioResponse::writeSmsToSimResponse(const RadioResponseInfo& info, int32_t index) { + return Void(); +} + +Return SehRadioResponse::setDataAllowedResponse(const RadioResponseInfo& info) { + return Void(); +} + +Return SehRadioResponse::getCsgListResponse() { + return Void(); +} + +Return SehRadioResponse::selectCsgManualResponse(const RadioResponseInfo& info) { + return Void(); +} + +Return SehRadioResponse::setMobileDataSettingResponse(const RadioResponseInfo& info) { + return Void(); +} + +Return SehRadioResponse::sendRequestRawResponse(const RadioResponseInfo& info, + const hidl_vec& data) { + return Void(); +} + +Return SehRadioResponse::sendRequestStringsResponse(const RadioResponseInfo& info, + const hidl_vec& data) { + return Void(); +} + +Return SehRadioResponse::setNrModeResponse(const RadioResponseInfo& info) { + return Void(); +} + +Return SehRadioResponse::getNrModeResponse(const RadioResponseInfo& info, uint32_t nrMode) { + return Void(); +} + +Return SehRadioResponse::getNrIconResponse(const RadioResponseInfo& info, + uint32_t nrIconType) { + return Void(); +} + +Return SehRadioResponse::getIccCardStatusResponse_2_1(const RadioResponseInfo& info, + const V2_1::SehCardStatus& cardStatus) { + return Void(); +} + +Return SehRadioResponse::setNrModeResponse_2_2(const RadioResponseInfo& info) { + return Void(); +} + +Return SehRadioResponse::getVendorSpecificConfigurationResponse( + const RadioResponseInfo& info, const hidl_vec& configurations) { + return Void(); +} + +Return SehRadioResponse::setVendorSpecificConfigurationResponse( + const RadioResponseInfo& info) { + return Void(); +} + +} // namespace implementation +} // namespace V2_2 +} // namespace radio +} // namespace hardware +} // namespace samsung +} // namespace vendor diff --git a/ril/sehradiomanager/hidl/SehRadioResponse.h b/ril/sehradiomanager/hidl/SehRadioResponse.h new file mode 100644 index 0000000..476a8f2 --- /dev/null +++ b/ril/sehradiomanager/hidl/SehRadioResponse.h @@ -0,0 +1,87 @@ +/* + * Copyright (C) 2024 The LineageOS Project + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#pragma once + +#include +#include + +namespace vendor { +namespace samsung { +namespace hardware { +namespace radio { +namespace V2_2 { +namespace implementation { + +using ::android::hardware::hidl_string; +using ::android::hardware::hidl_vec; +using ::android::hardware::Return; +using ::android::hardware::radio::V1_0::RadioResponseInfo; + +class SehRadioResponse : public ISehRadioResponse { + public: + Return getIccCardStatusResponse() override; + Return supplyNetworkDepersonalizationResponse(const RadioResponseInfo& info) override; + Return dialResponse(const RadioResponseInfo& info) override; + Return getCurrentCallsResponse() override; + Return getImsRegistrationStateResponse() override; + Return setImsCallListResponse(const RadioResponseInfo& info) override; + Return getPreferredNetworkListResponse() override; + Return setPreferredNetworkListResponse(const RadioResponseInfo& info) override; + Return sendEncodedUssdResponse(const RadioResponseInfo& info) override; + Return getDisable2gResponse(const RadioResponseInfo& info, int32_t isDisable) override; + Return setDisable2gResponse(const RadioResponseInfo& info) override; + Return getCnapResponse(const RadioResponseInfo& info, int32_t m) override; + Return getPhonebookStorageInfoResponse() override; + Return getUsimPhonebookCapabilityResponse( + const RadioResponseInfo& info, const hidl_vec& phonebookCapability) override; + Return setSimOnOffResponse(const RadioResponseInfo& info) override; + Return setSimInitEventResponse(const RadioResponseInfo& info) override; + Return getSimLockInfoResponse() override; + Return supplyIccPersonalizationResponse(const RadioResponseInfo& info) override; + Return changeIccPersonalizationResponse(const RadioResponseInfo& info) override; + Return getPhonebookEntryResponse() override; + Return accessPhonebookEntryResponse(const RadioResponseInfo& info, + int32_t simPhonebookAccessResp) override; + Return getCellBroadcastConfigResponse() override; + Return emergencySearchResponse(const RadioResponseInfo& info, + int32_t respEmergencySearch) override; + Return emergencyControlResponse(const RadioResponseInfo& info) override; + Return getAtrResponse(const RadioResponseInfo& info, const hidl_string& atr) override; + Return sendCdmaSmsExpectMoreResponse() override; + Return sendSmsResponse() override; + Return sendSMSExpectMoreResponse() override; + Return sendCdmaSmsResponse() override; + Return sendImsSmsResponse() override; + Return getStoredMsgCountFromSimResponse() override; + Return readSmsFromSimResponse() override; + Return writeSmsToSimResponse(const RadioResponseInfo& info, int32_t index) override; + Return setDataAllowedResponse(const RadioResponseInfo& info) override; + Return getCsgListResponse() override; + Return selectCsgManualResponse(const RadioResponseInfo& info) override; + Return setMobileDataSettingResponse(const RadioResponseInfo& info) override; + Return sendRequestRawResponse(const RadioResponseInfo& info, + const hidl_vec& data) override; + Return sendRequestStringsResponse(const RadioResponseInfo& info, + const hidl_vec& data) override; + Return setNrModeResponse(const RadioResponseInfo& info) override; + Return getNrModeResponse(const RadioResponseInfo& info, uint32_t nrMode) override; + Return getNrIconResponse(const RadioResponseInfo& info, uint32_t nrIconType) override; + Return getIccCardStatusResponse_2_1(const RadioResponseInfo& info, + const V2_1::SehCardStatus& cardStatus) override; + Return setNrModeResponse_2_2(const RadioResponseInfo& info) override; + Return getVendorSpecificConfigurationResponse( + const RadioResponseInfo& info, + const hidl_vec& configurations) override; + Return setVendorSpecificConfigurationResponse(const RadioResponseInfo& info) override; +}; + +} // namespace implementation +} // namespace V2_2 +} // namespace radio +} // namespace hardware +} // namespace samsung +} // namespace vendor diff --git a/ril/sehradiomanager/sehradiomanager.cpp b/ril/sehradiomanager/sehradiomanager.cpp index f9d3c99..4cd7cdf 100644 --- a/ril/sehradiomanager/sehradiomanager.cpp +++ b/ril/sehradiomanager/sehradiomanager.cpp @@ -6,68 +6,90 @@ #define LOG_TAG "SehRadioManager" -#include "SehRadioIndication.h" -#include "SehRadioResponse.h" +#include "aidl/SehRadioNetworkIndication.h" +#include "aidl/SehRadioNetworkResponse.h" +#include "hidl/SehRadioIndication.h" +#include "hidl/SehRadioResponse.h" #include #include #include #include -#include +#include +#include +#include #include using android::sp; +using android::String16; using android::base::GetIntProperty; using android::base::ReadFileToString; using android::base::Split; -using android::hardware::configureRpcThreadpool; using android::hardware::hidl_vec; -using android::hardware::joinRpcThreadpool; +using aidl::vendor::samsung::hardware::radio::network::ISehRadioNetwork; +using aidl::vendor::samsung::hardware::radio::network::implementation::SehRadioNetworkIndication; +using aidl::vendor::samsung::hardware::radio::network::implementation::SehRadioNetworkResponse; using vendor::samsung::hardware::radio::V2_2::ISehRadio; using vendor::samsung::hardware::radio::V2_2::SehVendorConfiguration; using vendor::samsung::hardware::radio::V2_2::implementation::SehRadioIndication; using vendor::samsung::hardware::radio::V2_2::implementation::SehRadioResponse; -hidl_vec LoadConfiguration(std::string data) { - std::vector config; +using AidlVendorConfig = aidl::vendor::samsung::hardware::radio::network::SehVendorConfiguration; + +template +std::vector LoadConfiguration(std::string data) { + std::vector config; for (std::string line : Split(data, "\n")) { if (line == "\0") break; std::vector parts = Split(line, "="); if (parts.size() == 2) { - config.push_back(SehVendorConfiguration(parts[0], parts[1])); + config.push_back(C(parts[0], parts[1])); LOG(INFO) << line; } else { LOG(ERROR) << "Invalid data: " << line; } } - return hidl_vec(config); + return config; } int main() { - int slotCount = GetIntProperty("ro.vendor.multisim.simslotcount", 1); - configureRpcThreadpool(slotCount * 2 + 1, true); + ABinderProcess_setThreadPoolMaxThreadCount(0); + ABinderProcess_startThreadPool(); std::string content; if (!ReadFileToString("/vendor/etc/sehradiomanager.conf", &content)) { LOG(WARNING) << "Could not read config, setting defaults"; content = "FW_READY=1"; } - auto config = LoadConfiguration(content); + int slotCount = GetIntProperty("ro.vendor.multisim.simslotcount", 1); for (int slot = 1; slot <= slotCount; slot++) { - auto samsungIndication = sp::make(); - auto samsungResponse = sp::make(); - auto svc = ISehRadio::getService("slot" + std::to_string(slot)); - svc->setResponseFunction(samsungResponse, samsungIndication); - svc->setVendorSpecificConfiguration(0x3232, config); + auto slotName = "slot" + std::to_string(slot); + auto aidlSvcName = std::string(ISehRadioNetwork::descriptor) + "/" + slotName; + if (AServiceManager_isDeclared(aidlSvcName.c_str())) { + auto config = LoadConfiguration(content); + auto samsungIndication = ndk::SharedRefBase::make(); + auto samsungResponse = ndk::SharedRefBase::make(); + auto svc = ISehRadioNetwork::fromBinder( + ndk::SpAIBinder(AServiceManager_waitForService(aidlSvcName.c_str()))); + svc->setResponseFunctions(samsungResponse, samsungIndication); + svc->setVendorSpecificConfiguration(0x4242, config); + } else { + auto config = LoadConfiguration(content); + auto samsungIndication = sp::make(); + auto samsungResponse = sp::make(); + auto svc = ISehRadio::getService(slotName); + svc->setResponseFunction(samsungResponse, samsungIndication); + svc->setVendorSpecificConfiguration(0x3232, hidl_vec(config)); + } LOG(INFO) << "Done (slot" << slot << ")"; } - joinRpcThreadpool(); - return 1; + ABinderProcess_joinThreadPool(); + return EXIT_FAILURE; // should not reach }