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

Commit 161475cb authored by pkanwar's avatar pkanwar Committed by Pankaj Kanwar
Browse files

Create Public API which exposes if the device is in a state where simultaneous

voice and data are possible.

BUG: 32912296
Test: Not required.
Change-Id: If603aa37c774157f0a3af12ca4ac6bafad94340d
Merged-In: If603aa37c774157f0a3af12ca4ac6bafad94340d
parent bdeb8539
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -38218,6 +38218,7 @@ package android.telephony {
    method public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel(java.lang.String, int);
    method public java.lang.String iccTransmitApduBasicChannel(int, int, int, int, int, java.lang.String);
    method public java.lang.String iccTransmitApduLogicalChannel(int, int, int, int, int, int, java.lang.String);
    method public boolean isConcurrentVoiceAndDataAllowed();
    method public boolean isHearingAidCompatibilitySupported();
    method public boolean isNetworkRoaming();
    method public boolean isSmsCapable();
+1 −0
Original line number Diff line number Diff line
@@ -41435,6 +41435,7 @@ package android.telephony {
    method public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel(java.lang.String, int);
    method public java.lang.String iccTransmitApduBasicChannel(int, int, int, int, int, java.lang.String);
    method public java.lang.String iccTransmitApduLogicalChannel(int, int, int, int, int, int, java.lang.String);
    method public boolean isConcurrentVoiceAndDataAllowed();
    method public boolean isDataConnectivityPossible();
    method public boolean isHearingAidCompatibilitySupported();
    method public boolean isIdle();
+1 −0
Original line number Diff line number Diff line
@@ -38317,6 +38317,7 @@ package android.telephony {
    method public android.telephony.IccOpenLogicalChannelResponse iccOpenLogicalChannel(java.lang.String, int);
    method public java.lang.String iccTransmitApduBasicChannel(int, int, int, int, int, java.lang.String);
    method public java.lang.String iccTransmitApduLogicalChannel(int, int, int, int, int, int, java.lang.String);
    method public boolean isConcurrentVoiceAndDataAllowed();
    method public boolean isHearingAidCompatibilitySupported();
    method public boolean isNetworkRoaming();
    method public boolean isSmsCapable();
+14 −0
Original line number Diff line number Diff line
@@ -5056,6 +5056,20 @@ public class TelephonyManager {
        }
    }

   /*
    * @return true, if the device is currently on a technology (e.g. UMTS or LTE) which can support
    * voice and data simultaneously. This can change based on location or network condition.
    */
    public boolean isConcurrentVoiceAndDataAllowed() {
        try {
            ITelephony telephony = getITelephony();
            return (telephony == null ? false : telephony.isConcurrentVoiceAndDataAllowed(mSubId));
        } catch (RemoteException e) {
            Log.e(TAG, "Error calling ITelephony#isConcurrentVoiceAndDataAllowed", e);
        }
        return false;
    }

    /** @hide */
    @SystemApi
    public boolean handlePinMmi(String dialString) {
+6 −0
Original line number Diff line number Diff line
@@ -491,6 +491,12 @@ interface ITelephony {
     */
    int getVoiceMessageCountForSubscriber(int subId);

    /**
      * Returns true if current state supports both voice and data
      * simultaneously. This can change based on location or network condition.
      */
    boolean isConcurrentVoiceAndDataAllowed(int subId);

    oneway void setVisualVoicemailEnabled(String callingPackage,
            in PhoneAccountHandle accountHandle, boolean enabled);