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

Commit c96a4407 authored by Susheel nyamala's avatar Susheel nyamala Committed by Ricardo Cerqueira
Browse files

Add support for icc operator numeric

Change-Id: I55dd21a473827b8a7dc5e6ccba21ceb626403b0b
CRs-Fixed: 727780
parent 30b8fe21
Loading
Loading
Loading
Loading
+15 −0
Original line number Original line Diff line number Diff line
@@ -1261,6 +1261,21 @@ public class TelephonyManager {
        }
        }
    }
    }


    /**
     * Returns the icc operator numeric for a given subId
     *
     */
    /** {@hide} */
    public String getIccOperatorNumeric(long subId) {
       try{
            return getITelephony().getIccOperatorNumeric(subId);
       } catch (RemoteException ex) {
           return null;
       } catch (NullPointerException ex) {
           return null;
       }
    }

    /** Unknown network class. {@hide} */
    /** Unknown network class. {@hide} */
    public static final int NETWORK_CLASS_UNKNOWN = 0;
    public static final int NETWORK_CLASS_UNKNOWN = 0;
    /** Class of broadly defined "2G" networks. {@hide} */
    /** Class of broadly defined "2G" networks. {@hide} */
+7 −0
Original line number Original line Diff line number Diff line
@@ -446,6 +446,13 @@ interface ITelephony {
      */
      */
    int getVoiceNetworkTypeForSubscriber(long subId);
    int getVoiceNetworkTypeForSubscriber(long subId);


    /**
      * Return icc operator numeric for given subId
      * @param subId user preferred subId.
      * Returns icc operator numeric
      */
    String getIccOperatorNumeric(long subId);

    /**
    /**
     * Return true if an ICC card is present
     * Return true if an ICC card is present
     */
     */