Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63b0a340 authored by chen xu's avatar chen xu
Browse files

new System API for sim voice activation state.

Bug: 119233925
Test: telephony unit test
Change-Id: I06e8de063d312b683261216326b1c8674ab4479e
parent b8740842
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -5161,8 +5161,10 @@ package android.telephony {
  public class PhoneStateListener {
    method public void onRadioPowerStateChanged(int);
    method public void onSrvccStateChanged(int);
    method public void onVoiceActivationStateChanged(int);
    field public static final int LISTEN_RADIO_POWER_STATE_CHANGED = 8388608; // 0x800000
    field public static final int LISTEN_SRVCC_STATE_CHANGED = 16384; // 0x4000
    field public static final int LISTEN_VOICE_ACTIVATION_STATE = 131072; // 0x20000
  }

  public class ServiceState implements android.os.Parcelable {
+27 −27
Original line number Diff line number Diff line
@@ -244,6 +244,7 @@ public class PhoneStateListener {
     * @see #onVoiceActivationStateChanged
     * @hide
     */
    @SystemApi
    public static final int LISTEN_VOICE_ACTIVATION_STATE                   = 0x00020000;

    /**
@@ -630,8 +631,8 @@ public class PhoneStateListener {
     * @param state is the current SIM voice activation state
     * @hide
     */
    public void onVoiceActivationStateChanged(int state) {

    @SystemApi
    public void onVoiceActivationStateChanged(@TelephonyManager.SimActivationState int state) {
    }

    /**
@@ -639,8 +640,7 @@ public class PhoneStateListener {
     * @param state is the current SIM data activation state
     * @hide
     */
    public void onDataActivationStateChanged(int state) {

    public void onDataActivationStateChanged(@TelephonyManager.SimActivationState int state) {
    }

    /**