OSDN Git Service

TelephonyManager Carrier Network Change Notification
authorAndrew Flynn <flynn@google.com>
Wed, 15 Apr 2015 02:16:04 +0000 (22:16 -0400)
committerAndrew Flynn <flynn@google.com>
Wed, 15 Apr 2015 02:16:04 +0000 (22:16 -0400)
commit1f45264dd6b874d72ed901a2213c779d42d321c1
tree39d66f15cda3f7409d5b6ab09656efdab57fe1a3
parent7d43893bb998cb0909e021a9968ad3097246e43e
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
api/current.txt
api/system-current.txt
services/core/java/com/android/server/TelephonyRegistry.java
telephony/java/android/telephony/PhoneStateListener.java
telephony/java/android/telephony/TelephonyManager.java
telephony/java/com/android/internal/telephony/IPhoneStateListener.aidl
telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl