use of com.android.internal.telephony.IPhoneSubInfo in project android_frameworks_base by crdroidandroid.
the class TelephonyManager method getNai.
/**
* Returns the NAI. Return null if NAI is not available.
*
* @param slotId of which Nai is returned
*/
/** {@hide}*/
public String getNai(int slotId) {
int[] subId = SubscriptionManager.getSubId(slotId);
try {
IPhoneSubInfo info = getSubscriberInfo();
if (info == null)
return null;
String nai = info.getNaiForSubscriber(subId[0], mContext.getOpPackageName());
if (Log.isLoggable(TAG, Log.VERBOSE)) {
Rlog.v(TAG, "Nai = " + nai);
}
return nai;
} catch (RemoteException ex) {
return null;
} catch (NullPointerException ex) {
return null;
}
}
Aggregations