FileDocCategorySizeDatePackage
ISub.javaAPI DocAndroid 5.1 API34567Sat Mar 14 05:48:12 GMT 2015com.android.internal.telephony

ISub

public interface ISub implements android.os.IInterface

Fields Summary
Constructors Summary
Methods Summary
public intaddSubInfoRecord(java.lang.String iccId, int slotId)
Add a new SubscriptionInfo to subinfo database if needed

param
iccId the IccId of the SIM card
param
slotId the slot which the SIM is inserted
return
the URL of the newly created row or the updated row

public voidclearDefaultsForInactiveSubIds()

public intclearSubInfo()

public int[]getActiveSubIdList()

public intgetActiveSubInfoCount()

return
the number of active subscriptions

public intgetActiveSubInfoCountMax()

return
the maximum number of subscriptions this device will support at any one time.

public android.telephony.SubscriptionInfogetActiveSubscriptionInfo(int subId)
Get the active SubscriptionInfo with the subId key

param
subId The unique SubscriptionInfo key in database
return
SubscriptionInfo, maybe null if its not active

public android.telephony.SubscriptionInfogetActiveSubscriptionInfoForIccId(java.lang.String iccId)
Get the active SubscriptionInfo associated with the iccId

param
iccId the IccId of SIM card
return
SubscriptionInfo, maybe null if its not active

public android.telephony.SubscriptionInfogetActiveSubscriptionInfoForSimSlotIndex(int slotIdx)
Get the active SubscriptionInfo associated with the slotIdx

param
slotIdx the slot which the subscription is inserted
return
SubscriptionInfo, maybe null if its not active

public java.util.ListgetActiveSubscriptionInfoList()
Get the SubscriptionInfo(s) of the active subscriptions. The records will be sorted by {@link SubscriptionInfo#getSimSlotIndex} then by {@link SubscriptionInfo#getSubscriptionId}.

return
Sorted list of the currently {@link SubscriptionInfo} records available on the device.
  • If null is returned the current state is unknown but if a {@link OnSubscriptionsChangedListener} has been registered {@link OnSubscriptionsChangedListener#onSubscriptionsChanged} will be invoked in the future.
  • If the list is empty then there are no {@link SubscriptionInfo} records currently available.
  • if the list is non-empty the list is sorted by {@link SubscriptionInfo#getSimSlotIndex} then by {@link SubscriptionInfo#getSubscriptionId}.

public intgetAllSubInfoCount()

return
the count of all subscriptions in the database, this includes all subscriptions that have been seen.

public java.util.ListgetAllSubInfoList()

return
a list of all subscriptions in the database, this includes all subscriptions that have been seen.

public intgetDefaultDataSubId()
Get the default data subscription

return
Id of the data subscription

public intgetDefaultSmsSubId()

public intgetDefaultSubId()

public intgetDefaultVoiceSubId()

public intgetPhoneId(int subId)

public intgetSimStateForSubscriber(int subId)
Get the SIM state for the subscriber

return
SIM state as the ordinal of IccCardConstants.State

public intgetSlotId(int subId)

public int[]getSubId(int slotId)

public intsetDataRoaming(int roaming, int subId)
Set data roaming by simInfo index

param
roaming 0:Don't allow data when roaming, 1:Allow data when roaming
param
subId the unique SubscriptionInfo index in database
return
the number of records updated

public voidsetDefaultDataSubId(int subId)

public voidsetDefaultSmsSubId(int subId)

public voidsetDefaultVoiceSubId(int subId)

public intsetDisplayName(java.lang.String displayName, int subId)
Set display name by simInfo index

param
displayName the display name of SIM card
param
subId the unique SubscriptionInfo index in database
return
the number of records updated

public intsetDisplayNameUsingSrc(java.lang.String displayName, int subId, long nameSource)
Set display name by simInfo index with name source

param
displayName the display name of SIM card
param
subId the unique SubscriptionInfo index in database
param
nameSource, 0: DEFAULT_SOURCE, 1: SIM_SOURCE, 2: USER_INPUT
return
the number of records updated

public intsetDisplayNumber(java.lang.String number, int subId)
Set phone number by subId

param
number the phone number of the SIM
param
subId the unique SubscriptionInfo index in database
return
the number of records updated

public intsetIconTint(int tint, int subId)
Set SIM icon tint color by simInfo index

param
tint the icon tint color of the SIM
param
subId the unique SubscriptionInfo index in database
return
the number of records updated