diff options
author | Rambo Wang <rambowang@google.com> | 2020-12-17 09:06:01 -0800 |
---|---|---|
committer | Rambo Wang <rambowang@google.com> | 2021-01-20 21:14:41 -0800 |
commit | e86cb24b57e544eaa81db98decbc075cd487da1c (patch) | |
tree | 45e4881e143435e714c3effd5930a0c0272a5744 /telephony/java/com | |
parent | e61da845fa58a019629db982615d9e16b937e3e9 (diff) |
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
Diffstat (limited to 'telephony/java/com')
-rw-r--r-- | telephony/java/com/android/internal/telephony/ITelephony.aidl | 14 |
1 files changed, 14 insertions, 0 deletions
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); } |