Methods Summary |
---|
public java.lang.String | getCompleteVoiceMailNumber()
return getCompleteVoiceMailNumberForSubscriber(getDefaultSubscription());
|
public java.lang.String | getCompleteVoiceMailNumberForSubscriber(int subId)
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(subId);
if (phoneSubInfoProxy != null) {
return phoneSubInfoProxy.getCompleteVoiceMailNumber();
} else {
Rlog.e(TAG,"getCompleteVoiceMailNumber phoneSubInfoProxy" +
" is null for Subscription:" + subId);
return null;
}
|
private int | getDefaultSubscription()
return PhoneFactory.getDefaultSubscription();
|
public java.lang.String | getDeviceId()
return getDeviceIdForPhone(SubscriptionManager.getPhoneId(getDefaultSubscription()));
|
public java.lang.String | getDeviceIdForPhone(int phoneId)
Phone phone = getPhone(phoneId);
if (phone != null) {
return phone.getDeviceId();
} else {
Rlog.e(TAG,"getDeviceIdForPhone phone " + phoneId + " is null");
return null;
}
|
public java.lang.String | getDeviceSvn()
return getDeviceSvnUsingSubId(getDefaultSubscription());
|
public java.lang.String | getDeviceSvnUsingSubId(int subId)
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(subId);
if (phoneSubInfoProxy != null) {
return phoneSubInfoProxy.getDeviceSvn();
} else {
Rlog.e(TAG,"getDeviceSvn phoneSubInfoProxy is null");
return null;
}
|
public java.lang.String | getGroupIdLevel1()
return getGroupIdLevel1ForSubscriber(getDefaultSubscription());
|
public java.lang.String | getGroupIdLevel1ForSubscriber(int subId)
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(subId);
if (phoneSubInfoProxy != null) {
return phoneSubInfoProxy.getGroupIdLevel1();
} else {
Rlog.e(TAG,"getGroupIdLevel1 phoneSubInfoProxy is" +
" null for Subscription:" + subId);
return null;
}
|
public java.lang.String | getIccSerialNumber()Retrieves the serial number of the ICC, if applicable.
return getIccSerialNumberForSubscriber(getDefaultSubscription());
|
public java.lang.String | getIccSerialNumberForSubscriber(int subId)
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(subId);
if (phoneSubInfoProxy != null) {
return phoneSubInfoProxy.getIccSerialNumber();
} else {
Rlog.e(TAG,"getIccSerialNumber phoneSubInfoProxy is" +
" null for Subscription:" + subId);
return null;
}
|
public java.lang.String | getIccSimChallengeResponse(int subId, int appType, java.lang.String data)
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(subId);
return phoneSubInfoProxy.getIccSimChallengeResponse(subId, appType, data);
|
public java.lang.String | getImeiForSubscriber(int subId)
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(subId);
if (phoneSubInfoProxy != null) {
return phoneSubInfoProxy.getImei();
} else {
Rlog.e(TAG,"getDeviceId phoneSubInfoProxy is null" +
" for Subscription:" + subId);
return null;
}
|
public java.lang.String | getIsimChallengeResponse(java.lang.String nonce)
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(getDefaultSubscription());
return phoneSubInfoProxy.getIsimChallengeResponse(nonce);
|
public java.lang.String | getIsimDomain()
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(getDefaultSubscription());
return phoneSubInfoProxy.getIsimDomain();
|
public java.lang.String | getIsimImpi()
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(getDefaultSubscription());
return phoneSubInfoProxy.getIsimImpi();
|
public java.lang.String[] | getIsimImpu()
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(getDefaultSubscription());
return phoneSubInfoProxy.getIsimImpu();
|
public java.lang.String | getIsimIst()
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(getDefaultSubscription());
return phoneSubInfoProxy.getIsimIst();
|
public java.lang.String[] | getIsimPcscf()
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(getDefaultSubscription());
return phoneSubInfoProxy.getIsimPcscf();
|
public java.lang.String | getLine1AlphaTag()
return getLine1AlphaTagForSubscriber(getDefaultSubscription());
|
public java.lang.String | getLine1AlphaTagForSubscriber(int subId)
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(subId);
if (phoneSubInfoProxy != null) {
return phoneSubInfoProxy.getLine1AlphaTag();
} else {
Rlog.e(TAG,"getLine1AlphaTag phoneSubInfoProxy is" +
" null for Subscription:" + subId);
return null;
}
|
public java.lang.String | getLine1Number()
return getLine1NumberForSubscriber(getDefaultSubscription());
|
public java.lang.String | getLine1NumberForSubscriber(int subId)
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(subId);
if (phoneSubInfoProxy != null) {
return phoneSubInfoProxy.getLine1Number();
} else {
Rlog.e(TAG,"getLine1Number phoneSubInfoProxy is" +
" null for Subscription:" + subId);
return null;
}
|
public java.lang.String | getMsisdn()
return getMsisdnForSubscriber(getDefaultSubscription());
|
public java.lang.String | getMsisdnForSubscriber(int subId)
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(subId);
if (phoneSubInfoProxy != null) {
return phoneSubInfoProxy.getMsisdn();
} else {
Rlog.e(TAG,"getMsisdn phoneSubInfoProxy is" +
" null for Subscription:" + subId);
return null;
}
|
public java.lang.String | getNaiForSubscriber(int subId)
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(subId);
if (phoneSubInfoProxy != null) {
return phoneSubInfoProxy.getNai();
} else {
Rlog.e(TAG,"getNai phoneSubInfoProxy is null" +
" for Subscription:" + subId);
return null;
}
|
private PhoneProxy | getPhone(int phoneId)
if (phoneId < 0 || phoneId >= TelephonyManager.getDefault().getPhoneCount()) {
phoneId = 0;
}
return (PhoneProxy) mPhone[phoneId];
|
private com.android.internal.telephony.PhoneSubInfoProxy | getPhoneSubInfoProxy(int subId)get Phone sub info proxy object based on subId.
int phoneId = SubscriptionManager.getPhoneId(subId);
try {
return getPhone(phoneId).getPhoneSubInfoProxy();
} catch (NullPointerException e) {
Rlog.e(TAG, "Exception is :" + e.toString() + " For subId :" + subId);
e.printStackTrace();
return null;
}
|
public java.lang.String | getSubscriberId()
return getSubscriberIdForSubscriber(getDefaultSubscription());
|
public java.lang.String | getSubscriberIdForSubscriber(int subId)
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(subId);
if (phoneSubInfoProxy != null) {
return phoneSubInfoProxy.getSubscriberId();
} else {
Rlog.e(TAG,"getSubscriberId phoneSubInfoProxy is" +
" null for Subscription:" + subId);
return null;
}
|
public java.lang.String | getVoiceMailAlphaTag()
return getVoiceMailAlphaTagForSubscriber(getDefaultSubscription());
|
public java.lang.String | getVoiceMailAlphaTagForSubscriber(int subId)
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(subId);
if (phoneSubInfoProxy != null) {
return phoneSubInfoProxy.getVoiceMailAlphaTag();
} else {
Rlog.e(TAG,"getVoiceMailAlphaTag phoneSubInfoProxy is" +
" null for Subscription:" + subId);
return null;
}
|
public java.lang.String | getVoiceMailNumber()
return getVoiceMailNumberForSubscriber(getDefaultSubscription());
|
public java.lang.String | getVoiceMailNumberForSubscriber(int subId)
PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(subId);
if (phoneSubInfoProxy != null) {
return phoneSubInfoProxy.getVoiceMailNumber();
} else {
Rlog.e(TAG,"getVoiceMailNumber phoneSubInfoProxy is" +
" null for Subscription:" + subId);
return null;
}
|