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

Commit d68f4b1a authored by pkanwar's avatar pkanwar
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: I4c2e21e9f2abcbeae63cd4235d802649c1208630
parent 66489431
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1784,6 +1784,15 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {
        }
    }

    /**
     * @return true, if the device is in a state where both voice and data
     * are supported simultaneously. This can change based on location or network condition.
     */
    public boolean isConcurrentVoiceAndDataAllowed() {
        ServiceStateTracker sst = getServiceStateTracker();
        return sst == null ? false : sst.isConcurrentVoiceAndDataAllowed();
    }

    /**
     *  Requests to set the CDMA roaming preference
     * @param cdmaRoamingType one of  CDMA_RM_*