Skip to content

Commit

Permalink
ril: sehradiomanager: Add support for AIDL sehradio
Browse files Browse the repository at this point in the history
* Based on TrebleDroid/platform_frameworks_opt_telephony@f41efd6

Co-Authored-By: Pierre-Hugues Husson <phh@phh.me>
Change-Id: I25a2422b364d2118cb447e6e64e166e8e112fb18
  • Loading branch information
2 people authored and Stricted committed Jun 21, 2024
1 parent edfe823 commit a9e71cf
Show file tree
Hide file tree
Showing 54 changed files with 1,497 additions and 21 deletions.
23 changes: 23 additions & 0 deletions interfaces/radio/network/aidl/Android.bp
Original file line number Diff line number Diff line change
@@ -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",
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b6801a5cca21eab5f8034f5bec4c6a01ef856157
Original file line number Diff line number Diff line change
@@ -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 <name>-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);
}
Original file line number Diff line number Diff line change
@@ -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 <name>-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);
}
Original file line number Diff line number Diff line change
@@ -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 <name>-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);
}
Original file line number Diff line number Diff line change
@@ -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 <name>-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;
}
Original file line number Diff line number Diff line change
@@ -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 <name>-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;
}
Original file line number Diff line number Diff line change
@@ -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 <name>-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;
}
Original file line number Diff line number Diff line change
@@ -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 <name>-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;
}
Original file line number Diff line number Diff line change
@@ -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 <name>-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;
}
Original file line number Diff line number Diff line change
@@ -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 <name>-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;
}
Original file line number Diff line number Diff line change
@@ -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 <name>-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;
}
Original file line number Diff line number Diff line change
@@ -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 <name>-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;
}
Loading

0 comments on commit a9e71cf

Please sign in to comment.