summaryrefslogtreecommitdiffstats
path: root/telephony/java/com/android
diff options
context:
space:
mode:
authorAndrew Flynn <flynn@google.com>2015-04-14 22:16:04 -0400
committerAndrew Flynn <flynn@google.com>2015-04-14 22:16:04 -0400
commit1f45264dd6b874d72ed901a2213c779d42d321c1 (patch)
tree39d66f15cda3f7409d5b6ab09656efdab57fe1a3 /telephony/java/com/android
parent7d43893bb998cb0909e021a9968ad3097246e43e (diff)
downloadframeworks_base-1f45264dd6b874d72ed901a2213c779d42d321c1.zip
frameworks_base-1f45264dd6b874d72ed901a2213c779d42d321c1.tar.gz
frameworks_base-1f45264dd6b874d72ed901a2213c779d42d321c1.tar.bz2
TelephonyManager Carrier Network Change Notification
Adds a way for a carrier app to notify the system that an intended network change is starting or ending. This can be used by a system PhoneStateListener to provide custom UI or perform other actions during this period. - Adds new public TelephonyManager API: notifyCarrierNetworkChange(boolean) - Adds new @hide PhoneStateListener method: onCarrierNetworkChange(boolean) - Functionality merely serves as a pass-through of data from an app to a PhoneStateListener (SystemUI for the intended use case) - Protected by MODIFY_PHONE_STATE permission or hasCarrierPrivileges(). Bug: 11392659 Change-Id: I3199e21ec1ac124198f44b86c1534dd3ff1f6858
Diffstat (limited to 'telephony/java/com/android')
-rw-r--r--telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl1
-rw-r--r--telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl1
2 files changed, 2 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl b/telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl
index cea62ba..cbedb95 100644
--- a/telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl
+++ b/telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl
@@ -44,5 +44,6 @@ oneway interface IPhoneStateListener {
void onDataConnectionRealTimeInfoChanged(in DataConnectionRealTimeInfo dcRtInfo);
void onVoLteServiceStateChanged(in VoLteServiceState lteState);
void onOemHookRawEvent(in byte[] rawData);
+ void onCarrierNetworkChange(in boolean active);
}
diff --git a/telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl b/telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl
index 7d8a8d6..76b69ce 100644
--- a/telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl
+++ b/telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl
@@ -69,4 +69,5 @@ interface ITelephonyRegistry {
void notifyVoLteServiceStateChanged(in VoLteServiceState lteState);
void notifyOemHookRawEventForSubscriber(in int subId, in byte[] rawData);
void notifySubscriptionInfoChanged();
+ void notifyCarrierNetworkChange(in boolean active);
}