summaryrefslogtreecommitdiffstats
path: root/radio/1.6/IRadio.hal
diff options
context:
space:
mode:
authorThiƩbaud Weksteen <tweek@google.com>2020-08-21 16:46:07 +0200
committerThiƩbaud Weksteen <tweek@google.com>2020-11-04 10:46:08 +0100
commit5ae16f33f3be458656d2a1c955d2cf05a2758efb (patch)
treeb5f95dad112b4f48b17517b9664de895b71c607e /radio/1.6/IRadio.hal
parent762a556c11b270c1ca7b2aa495aefa90a036957e (diff)
downloadplatform_hardware_interfaces-5ae16f33f3be458656d2a1c955d2cf05a2758efb.tar.gz
platform_hardware_interfaces-5ae16f33f3be458656d2a1c955d2cf05a2758efb.tar.bz2
platform_hardware_interfaces-5ae16f33f3be458656d2a1c955d2cf05a2758efb.zip
Add setAllowedNetworkTypeBitmap
There are currently two methods that cover the network family types: setPreferredNetworkType and setPreferredNetworkTypeBitmap. They both serve a similar purpose and have been previously interpreted as a suggestion to the modem on the type of networks requested by the OS. This change introduces a new method (setAllowedNetworkTypeBitmap) which will coexist with these methods. This new method must be interpreted as a strict set of Radio Access Technology (RAT) that should be accepted by the modem. For instance, one may first use setAllowedNetworkTypeBitmap to exclude 2G technology from the list of usable RAT. Then, they may use setPreferredNetworkType to describe their preference for 4G. Test: mm Bug: 171791177 Change-Id: I7f5fdf9bf5a80c47e9ad838b740b2d6e40ffea60 Merged-In: I7f5fdf9bf5a80c47e9ad838b740b2d6e40ffea60
Diffstat (limited to 'radio/1.6/IRadio.hal')
-rw-r--r--radio/1.6/IRadio.hal15
1 files changed, 15 insertions, 0 deletions
diff --git a/radio/1.6/IRadio.hal b/radio/1.6/IRadio.hal
index eb20542e7e..747b2f2ddc 100644
--- a/radio/1.6/IRadio.hal
+++ b/radio/1.6/IRadio.hal
@@ -21,6 +21,7 @@ import @1.0::CdmaSmsMessage;
import @1.0::GsmSmsMessage;
import @1.1::CardPowerState;
import @1.2::DataRequestReason;
+import @1.4::RadioAccessFamily;
import @1.5::IRadio;
import @1.5::AccessNetwork;
import @1.5::DataProfileInfo;
@@ -305,4 +306,18 @@ interface IRadio extends @1.5::IRadio {
* Response function is IRadioResponse.cancelHandoverResponse()
*/
oneway cancelHandover(int32_t serial, int32_t callId);
+
+ /**
+ * Requests to set the network type for searching and registering.
+ *
+ * Instruct the radio to *only* accept the types of network provided. This
+ * is stronger than setPreferredNetworkType which is a suggestion.
+ *
+ * @param serial Serial number of request.
+ * @param networkTypeBitmap a 32-bit bearer bitmap of RadioAccessFamily
+ *
+ * Response callbask is IRadioResponse.setNetworkTypeBitmapResponse()
+ */
+ oneway setAllowedNetworkTypeBitmap(
+ uint32_t serial, bitfield<RadioAccessFamily> networkTypeBitmap);
};