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

Commit 26342500 authored by Pankaj Kanwar's avatar Pankaj Kanwar Committed by Android (Google) Code Review
Browse files

Merge "Create Public API which exposes if the device is in a state where...

Merge "Create Public API which exposes if the device is in a state where simultaneous voice and data are possible."
parents fd7ad6fa d68f4b1a
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1791,6 +1791,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_*