summaryrefslogtreecommitdiffstats
path: root/radio
diff options
context:
space:
mode:
authorAmruth Ramachandran2018-09-10 22:48:49 -0500
committerAmruth Ramachandran2018-09-20 11:37:01 -0500
commitd146a72e2fe8f53c0786cde744f936fbf4777a55 (patch)
tree67f7334c3a2185034c48cfe25d7eaf51501d3321 /radio
parente1ca153525a1f78ea91780e3d8f9bbadfd426748 (diff)
downloadplatform-hardware-interfaces-d146a72e2fe8f53c0786cde744f936fbf4777a55.tar.gz
platform-hardware-interfaces-d146a72e2fe8f53c0786cde744f936fbf4777a55.tar.xz
platform-hardware-interfaces-d146a72e2fe8f53c0786cde744f936fbf4777a55.zip
Radio HAL: Add VoPS network support
Update 1.3 HAL: - Added DataRegStateResult - Added LteVopsInfo - Added getDataRegistrationStateResponse_1_3 Bug:112194535 Test: Compiled. VTS tests to be added in separate gerrit Change-Id: I1996bb0dbfb1c585668b097c206296d5d8e3c8d0
Diffstat (limited to 'radio')
-rw-r--r--radio/1.3/Android.bp2
-rw-r--r--radio/1.3/IRadioResponse.hal14
-rw-r--r--radio/1.3/types.hal39
3 files changed, 55 insertions, 0 deletions
diff --git a/radio/1.3/Android.bp b/radio/1.3/Android.bp
index 042df6c5..5ac38cd9 100644
--- a/radio/1.3/Android.bp
+++ b/radio/1.3/Android.bp
@@ -20,8 +20,10 @@ hidl_interface {
20 ], 20 ],
21 types: [ 21 types: [
22 "AccessNetwork", 22 "AccessNetwork",
23 "DataRegStateResult",
23 "EmergencyNumber", 24 "EmergencyNumber",
24 "EmergencyServiceCategory", 25 "EmergencyServiceCategory",
26 "LteVopsInfo",
25 ], 27 ],
26 gen_java: true, 28 gen_java: true,
27} 29}
diff --git a/radio/1.3/IRadioResponse.hal b/radio/1.3/IRadioResponse.hal
index 6912d0ae..3604953e 100644
--- a/radio/1.3/IRadioResponse.hal
+++ b/radio/1.3/IRadioResponse.hal
@@ -71,4 +71,18 @@ interface IRadioResponse extends @1.2::IRadioResponse {
71 * RadioError:CANCELLED 71 * RadioError:CANCELLED
72 */ 72 */
73 oneway emergencyDialResponse(RadioResponseInfo info); 73 oneway emergencyDialResponse(RadioResponseInfo info);
74
75 /**
76 * @param info Response info struct containing response type, serial no. and error
77 * @param dataRegResponse Current Data registration response as defined by DataRegStateResult in
78 * types.hal
79 *
80 * Valid errors returned:
81 * RadioError:NONE
82 * RadioError:RADIO_NOT_AVAILABLE
83 * RadioError:INTERNAL_ERR
84 * RadioError:NOT_PROVISIONED
85 */
86 oneway getDataRegistrationStateResponse_1_3(RadioResponseInfo info,
87 DataRegStateResult dataRegResponse);
74}; 88};
diff --git a/radio/1.3/types.hal b/radio/1.3/types.hal
index c04451f5..d472ca72 100644
--- a/radio/1.3/types.hal
+++ b/radio/1.3/types.hal
@@ -16,7 +16,10 @@
16 16
17package android.hardware.radio@1.3; 17package android.hardware.radio@1.3;
18 18
19import @1.0::RegState;
19import @1.2::AccessNetwork; 20import @1.2::AccessNetwork;
21import @1.2::CellIdentity;
22import @1.2::DataRegStateResult;
20 23
21enum AccessNetwork : @1.2::AccessNetwork { 24enum AccessNetwork : @1.2::AccessNetwork {
22 /** 25 /**
@@ -81,3 +84,39 @@ enum EmergencyServiceCategory : int32_t {
81 MIEC = 1 << 5, // Manually Initiated eCall (MIeC) 84 MIEC = 1 << 5, // Manually Initiated eCall (MIeC)
82 AIEC = 1 << 6, // Automatically Initiated eCall (AIeC) 85 AIEC = 1 << 6, // Automatically Initiated eCall (AIeC)
83}; 86};
87
88/**
89 * Type to define the LTE specific network capabilities for voice over PS including
90 * emergency and normal voice calls.
91 */
92struct LteVopsInfo {
93 /**
94 * This indicates if camped network support VoLTE services. This information is received
95 * from LTE network during LTE NAS registration procedure through LTE ATTACH ACCEPT/TAU
96 * ACCEPT. Refer 3GPP 24.301 EPS network feature support -> IMS VoPS
97 */
98 bool isVopsSupported;
99 /**
100 * This indicates if camped network support VoLTE emergency bearers. This information
101 * is received from LTE network through two sources:
102 * a. During LTE NAS registration procedure through LTE ATTACH ACCEPT/TAU ACCEPT. Refer
103 * 3GPP 24.301 EPS network feature support -> EMC BS
104 * b. In case device is not registered on network. Refer 3GPP 25.331 LTE RRC
105 * SIB1 : ims-EmergencySupport-r9
106 * If device is registered on LTE, then this field indicates (a).
107 * In case of limited service on LTE this field indicates (b).
108 */
109 bool isEmcBearerSupported;
110};
111
112struct DataRegStateResult {
113 @1.2::DataRegStateResult base;
114 /**
115 * Network capabilities for voice over PS services. This info is valid only
116 * on LTE network and must be present when device is camped on LTE. vopsInfo
117 * will be empty when device is camped only on 2G/3G .
118 */
119 safe_union VopsInfo {
120 LteVopsInfo lteVopsInfo; // LTE network capability
121 } vopsInfo;
122};