summaryrefslogtreecommitdiff
path: root/telephony/java/com/android/internal
diff options
context:
space:
mode:
authorJack Nudelman <jacknudelman@google.com>2020-09-24 14:30:19 -0700
committerJack Nudelman <jacknudelman@google.com>2020-12-03 19:41:31 +0000
commitd64c58744a8af031ed870e755617cf95f47793ae (patch)
tree2e4414229a303fb5a06cc09659f304918eb69611 /telephony/java/com/android/internal
parent138e2db12a90f494f2fc3cb2d6e6f033afec7438 (diff)
Add ThermalMitigation API to Telephony.
go/telephony-thermal-mitigation Test: make, cts Bug: 158872959 Change-Id: Ib4be5edf063e4c54e9238b0403f59e1621df671e Merged-In: Ib4be5edf063e4c54e9238b0403f59e1621df671e
Diffstat (limited to 'telephony/java/com/android/internal')
-rw-r--r--telephony/java/com/android/internal/telephony/ITelephony.aidl11
-rw-r--r--telephony/java/com/android/internal/telephony/RILConstants.java1
2 files changed, 12 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl
index 69525a887af9..7e1aee7c6a7b 100644
--- a/telephony/java/com/android/internal/telephony/ITelephony.aidl
+++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl
@@ -36,6 +36,7 @@ import android.telephony.CarrierRestrictionRules;
import android.telephony.CellIdentity;
import android.telephony.CellInfo;
import android.telephony.ClientRequestStats;
+import android.telephony.ThermalMitigationRequest;
import android.telephony.IccOpenLogicalChannelResponse;
import android.telephony.ICellInfoCallback;
import android.telephony.ModemActivityInfo;
@@ -2254,4 +2255,14 @@ interface ITelephony {
* @return CarrierBandwidth with bandwidth of both primary and secondary carrier.
*/
CarrierBandwidth getCarrierBandwidth(int subId);
+
+ /**
+ * Thermal mitigation request to control functionalities at modem.
+ *
+ * @param subId the id of the subscription
+ * @param thermalMitigationRequest holds the parameters necessary for the request.
+ * @throws InvalidThermalMitigationRequestException if the parametes are invalid.
+ */
+ int sendThermalMitigationRequest(int subId,
+ in ThermalMitigationRequest thermalMitigationRequest);
}
diff --git a/telephony/java/com/android/internal/telephony/RILConstants.java b/telephony/java/com/android/internal/telephony/RILConstants.java
index a2361a7d34a1..21cca4ca8204 100644
--- a/telephony/java/com/android/internal/telephony/RILConstants.java
+++ b/telephony/java/com/android/internal/telephony/RILConstants.java
@@ -520,6 +520,7 @@ public interface RILConstants {
int RIL_REQUEST_START_HANDOVER = 217;
int RIL_REQUEST_CANCEL_HANDOVER = 218;
int RIL_REQUEST_GET_SYSTEM_SELECTION_CHANNELS = 219;
+ int RIL_REQUEST_SET_DATA_THROTTLING = 221;
/* Responses begin */
int RIL_RESPONSE_ACKNOWLEDGEMENT = 800;