summaryrefslogtreecommitdiffstats
path: root/radio/1.6/IRadio.hal
diff options
context:
space:
mode:
authorMengjun Leng <quic_mengju@quicinc.com>2021-03-16 10:09:20 +0800
committerSukanya Rajkhowa <sukanyar@quicinc.com>2021-03-23 10:33:58 -0700
commit48966f0583e327e28066c17bfa3b342f417abd7c (patch)
tree8c7e4c43253b9ba74abc517b57f8a45efc4b2739 /radio/1.6/IRadio.hal
parent442a08d3ee2b0a38fca873da22d4e317ea5b7e45 (diff)
downloadplatform_hardware_interfaces-48966f0583e327e28066c17bfa3b342f417abd7c.tar.gz
platform_hardware_interfaces-48966f0583e327e28066c17bfa3b342f417abd7c.tar.bz2
platform_hardware_interfaces-48966f0583e327e28066c17bfa3b342f417abd7c.zip
Optimize SIM phonebook feature with new batch APIs
1. Declare new request and response for loading and updating SIM contacts. 2. Add data dispatch function for new reponse and request APIs. Bug: 23044962 Change-Id: I43d196c84558d7951d85bc938672091edeb378ec
Diffstat (limited to 'radio/1.6/IRadio.hal')
-rw-r--r--radio/1.6/IRadio.hal39
1 files changed, 39 insertions, 0 deletions
diff --git a/radio/1.6/IRadio.hal b/radio/1.6/IRadio.hal
index d20133235e..a4e8811993 100644
--- a/radio/1.6/IRadio.hal
+++ b/radio/1.6/IRadio.hal
@@ -544,4 +544,43 @@ interface IRadio extends @1.5::IRadio {
* as the input param.
*/
oneway setCarrierInfoForImsiEncryption_1_6(int32_t serial, @1.6::ImsiEncryptionInfo imsiEncryptionInfo);
+
+ /**
+ * Get the local and global phonebook records from the SIM card.
+ * This should be called again after a simPhonebookChanged notification is received.
+ *
+ * The phonebook records are received via IRadioIndication.simPhonebookRecordsReceived()
+ *
+ * @param serial Serial number of request.
+ *
+ * Response callback is IRadioResponse.getSimPhonebookRecordsResponse()
+ */
+ oneway getSimPhonebookRecords(int32_t serial);
+
+ /**
+ * Get the phone book capacity
+ *
+ * @param serial Serial number of request.
+ *
+ * Response function is defined from IRadioResponse.getSimPhonebookCapacityResponse()
+ */
+ oneway getSimPhonebookCapacity(int32_t serial);
+
+ /**
+ * Insert, delete or update a phonebook record on the SIM card.
+ * If the index of recordInfo is 0, the phonebook record will be added to global or
+ * local phonebook, and global phonebook has higher priority than local phonebook.
+ *
+ * If the fields in the recordInfo are all empty except for the index, the phonebook
+ * record specified by the index will be deleted.
+ *
+ * The indication simPhonebookChanged will be called after every successful call of
+ * updateSimPhonebookRecords.
+ *
+ * @param serial Serial number of request.
+ * @param recordInfo Details of the record to insert, delete or update.
+ *
+ * Response callback is IRadioResponse.updateSimPhonebookRecordsResponse()
+ */
+ oneway updateSimPhonebookRecords(int32_t serial, PhonebookRecordInfo recordInfo);
};