summaryrefslogtreecommitdiff
path: root/telephony/java/com
diff options
context:
space:
mode:
authorJordan Liu <jminjie@google.com>2020-11-24 13:57:45 -0800
committerJordan Liu <jminjie@google.com>2020-12-09 13:34:58 -0800
commita10b7825055537e49f72a233791bbd04c0f89123 (patch)
treeea349c39d3081a8ea7785e652510bec17b056979 /telephony/java/com
parent5e3a035a3d848aef6813073228b488d4555e994d (diff)
Add API for setting SIM power "synchronously"
Bug: 171433370 Test: manual Change-Id: I958d6c3a46cc6e99e8addf2628361e37bc178464 Merged-In: I958d6c3a46cc6e99e8addf2628361e37bc178464
Diffstat (limited to 'telephony/java/com')
-rw-r--r--telephony/java/com/android/internal/telephony/ITelephony.aidl11
1 files changed, 10 insertions, 1 deletions
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl
index 4895fffa5849..6cbe8d04db89 100644
--- a/telephony/java/com/android/internal/telephony/ITelephony.aidl
+++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl
@@ -1668,10 +1668,19 @@ interface ITelephony {
* @param slotIndex SIM slot id
* @param state State of SIM (power down, power up, pass through)
* @hide
- * */
+ */
void setSimPowerStateForSlot(int slotIndex, int state);
/**
+ * Set SIM card power state.
+ * @param slotIndex SIM slot id
+ * @param state State of SIM (power down, power up, pass through)
+ * @param callback callback to receive result info
+ * @hide
+ */
+ void setSimPowerStateForSlotWithCallback(int slotIndex, int state, IIntegerConsumer callback);
+
+ /**
* Returns a list of Forbidden PLMNs from the specified SIM App
* Returns null if the query fails.
*