From e86cb24b57e544eaa81db98decbc075cd487da1c Mon Sep 17 00:00:00 2001 From: Rambo Wang Date: Thu, 17 Dec 2020 09:06:01 -0800 Subject: Support new APIs in TelephonyManager to set/clear signal update request Introduce set/clearSignalStrengthUpdateRequest in TelephonyManager and ITelephony to support customized signal request from applications. Bug: 164432835 Test: atest android.telephony.cts.TelephonyManagerTest Change-Id: I749376872915a91b9514884547140eaf969dba0e --- .../java/com/android/internal/telephony/ITelephony.aidl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'telephony/java/com') diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl index 541ec040d4dd..f5662692d84b 100644 --- a/telephony/java/com/android/internal/telephony/ITelephony.aidl +++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl @@ -49,6 +49,7 @@ import android.telephony.RadioAccessFamily; import android.telephony.RadioAccessSpecifier; import android.telephony.ServiceState; import android.telephony.SignalStrength; +import android.telephony.SignalStrengthUpdateRequest; import android.telephony.TelephonyHistogram; import android.telephony.VisualVoicemailSmsFilterSettings; import android.telephony.emergency.EmergencyNumber; @@ -2367,4 +2368,17 @@ interface ITelephony { * their mobile plan. */ String getMobileProvisioningUrl(); + + /** + * Set a SignalStrengthUpdateRequest to receive notification when Signal Strength breach the + * specified thresholds. + */ + void setSignalStrengthUpdateRequest(int subId, in SignalStrengthUpdateRequest request, + String callingPackage); + + /** + * Clear a SignalStrengthUpdateRequest from system. + */ + void clearSignalStrengthUpdateRequest(int subId, in SignalStrengthUpdateRequest request, + String callingPackage); } -- cgit v1.2.3