public class UiccCard extends Object
Modifier and Type | Field and Description |
---|---|
protected static boolean |
DBG |
static String |
EXTRA_ICC_CARD_ADDED |
protected static String |
LOG_TAG |
protected Handler |
mHandler |
Modifier | Constructor and Description |
---|---|
protected |
UiccCard() |
|
UiccCard(Context c,
CommandsInterface ci,
IccCardStatus ics) |
|
UiccCard(Context c,
CommandsInterface ci,
IccCardStatus ics,
int phoneId) |
Modifier and Type | Method and Description |
---|---|
boolean |
areCarrierPriviligeRulesLoaded()
Returns true iff carrier privileges rules are null (dont need to be loaded) or loaded.
|
protected void |
createAndUpdateCatService() |
void |
dispose() |
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
protected void |
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
UiccCardApplication |
getApplication(int family) |
UiccCardApplication |
getApplicationByType(int type)
Returns the SIM application of the specified type.
|
UiccCardApplication |
getApplicationIndex(int index) |
IccCardStatus.CardState |
getCardState() |
List<String> |
getCarrierPackageNamesForIntent(PackageManager packageManager,
Intent intent)
Exposes
UiccCarrierPrivilegeRules.getCarrierPackageNamesForIntent . |
int |
getCarrierPrivilegeStatus(PackageInfo packageInfo)
Exposes
UiccCarrierPrivilegeRules.getCarrierPrivilegeStatus . |
int |
getCarrierPrivilegeStatus(PackageManager packageManager,
String packageName)
Exposes
UiccCarrierPrivilegeRules.getCarrierPrivilegeStatus . |
int |
getCarrierPrivilegeStatus(Signature signature,
String packageName)
Exposes
UiccCarrierPrivilegeRules.getCarrierPrivilegeStatus . |
int |
getCarrierPrivilegeStatusForCurrentTransaction(PackageManager packageManager)
Exposes
UiccCarrierPrivilegeRules.getCarrierPrivilegeStatusForCurrentTransaction . |
CatService |
getCatService() |
String |
getIccId() |
int |
getNumApplications() |
String |
getOperatorBrandOverride() |
int |
getPhoneId() |
IccCardStatus.PinState |
getUniversalPinState() |
boolean |
hasCarrierPrivilegeRules()
Returns true if there are some carrier privilege rules loaded and specified.
|
void |
iccCloseLogicalChannel(int channel,
Message response)
Exposes
CommandsInterface.iccCloseLogicalChannel |
void |
iccExchangeSimIO(int fileID,
int command,
int p1,
int p2,
int p3,
String pathID,
Message response)
Exposes
CommandsInterface.iccIO |
void |
iccOpenLogicalChannel(String AID,
Message response)
Exposes
CommandsInterface.iccOpenLogicalChannel |
void |
iccTransmitApduBasicChannel(int cla,
int command,
int p1,
int p2,
int p3,
String data,
Message response)
Exposes
CommandsInterface.iccTransmitApduBasicChannel |
void |
iccTransmitApduLogicalChannel(int channel,
int cla,
int command,
int p1,
int p2,
int p3,
String data,
Message response)
Exposes
CommandsInterface.iccTransmitApduLogicalChannel |
boolean |
isApplicationOnIcc(IccCardApplicationStatus.AppType type) |
void |
registerForAbsent(Handler h,
int what,
Object obj)
Notifies handler of any transition into State.ABSENT
|
void |
registerForCarrierPrivilegeRulesLoaded(Handler h,
int what,
Object obj)
Notifies handler when carrier privilege rules are loaded.
|
boolean |
resetAppWithAid(String aid)
Resets the application with the input AID.
|
void |
sendEnvelopeWithStatus(String contents,
Message response)
Exposes
CommandsInterface.sendEnvelopeWithStatus |
boolean |
setOperatorBrandOverride(String brand) |
void |
unregisterForAbsent(Handler h) |
void |
unregisterForCarrierPrivilegeRulesLoaded(Handler h) |
void |
update(Context c,
CommandsInterface ci,
IccCardStatus ics) |
protected static final String LOG_TAG
protected static final boolean DBG
public static final String EXTRA_ICC_CARD_ADDED
protected Handler mHandler
public UiccCard(Context c, CommandsInterface ci, IccCardStatus ics)
public UiccCard(Context c, CommandsInterface ci, IccCardStatus ics, int phoneId)
protected UiccCard()
public void dispose()
public void update(Context c, CommandsInterface ci, IccCardStatus ics)
protected void createAndUpdateCatService()
public CatService getCatService()
protected void finalize()
Object
finalize
method to dispose of
system resources or to perform other cleanup.
The general contract of finalize
is that it is invoked
if and when the JavaTM virtual
machine has determined that there is no longer any
means by which this object can be accessed by any thread that has
not yet died, except as a result of an action taken by the
finalization of some other object or class which is ready to be
finalized. The finalize
method may take any action, including
making this object available again to other threads; the usual purpose
of finalize
, however, is to perform cleanup actions before
the object is irrevocably discarded. For example, the finalize method
for an object that represents an input/output connection might perform
explicit I/O transactions to break the connection before the object is
permanently discarded.
The finalize
method of class Object
performs no
special action; it simply returns normally. Subclasses of
Object
may override this definition.
The Java programming language does not guarantee which thread will
invoke the finalize
method for any given object. It is
guaranteed, however, that the thread that invokes finalize will not
be holding any user-visible synchronization locks when finalize is
invoked. If an uncaught exception is thrown by the finalize method,
the exception is ignored and finalization of that object terminates.
After the finalize
method has been invoked for an object, no
further action is taken until the Java virtual machine has again
determined that there is no longer any means by which this object can
be accessed by any thread that has not yet died, including possible
actions by other objects or classes which are ready to be finalized,
at which point the object may be discarded.
The finalize
method is never invoked more than once by a Java
virtual machine for any given object.
Any exception thrown by the finalize
method causes
the finalization of this object to be halted, but is otherwise
ignored.
public void registerForAbsent(Handler h, int what, Object obj)
public void unregisterForAbsent(Handler h)
public void registerForCarrierPrivilegeRulesLoaded(Handler h, int what, Object obj)
public void unregisterForCarrierPrivilegeRulesLoaded(Handler h)
public boolean isApplicationOnIcc(IccCardApplicationStatus.AppType type)
public IccCardStatus.CardState getCardState()
public IccCardStatus.PinState getUniversalPinState()
public UiccCardApplication getApplication(int family)
public UiccCardApplication getApplicationIndex(int index)
public UiccCardApplication getApplicationByType(int type)
type
- ICC application type (@see com.android.internal.telephony.PhoneConstants#APPTYPE_xxx)public boolean resetAppWithAid(String aid)
public void iccOpenLogicalChannel(String AID, Message response)
CommandsInterface.iccOpenLogicalChannel
public void iccCloseLogicalChannel(int channel, Message response)
CommandsInterface.iccCloseLogicalChannel
public void iccTransmitApduLogicalChannel(int channel, int cla, int command, int p1, int p2, int p3, String data, Message response)
CommandsInterface.iccTransmitApduLogicalChannel
public void iccTransmitApduBasicChannel(int cla, int command, int p1, int p2, int p3, String data, Message response)
CommandsInterface.iccTransmitApduBasicChannel
public void iccExchangeSimIO(int fileID, int command, int p1, int p2, int p3, String pathID, Message response)
CommandsInterface.iccIO
public void sendEnvelopeWithStatus(String contents, Message response)
CommandsInterface.sendEnvelopeWithStatus
public int getNumApplications()
public int getPhoneId()
public boolean areCarrierPriviligeRulesLoaded()
public boolean hasCarrierPrivilegeRules()
public int getCarrierPrivilegeStatus(Signature signature, String packageName)
UiccCarrierPrivilegeRules.getCarrierPrivilegeStatus
.public int getCarrierPrivilegeStatus(PackageManager packageManager, String packageName)
UiccCarrierPrivilegeRules.getCarrierPrivilegeStatus
.public int getCarrierPrivilegeStatus(PackageInfo packageInfo)
UiccCarrierPrivilegeRules.getCarrierPrivilegeStatus
.public int getCarrierPrivilegeStatusForCurrentTransaction(PackageManager packageManager)
UiccCarrierPrivilegeRules.getCarrierPrivilegeStatusForCurrentTransaction
.public List<String> getCarrierPackageNamesForIntent(PackageManager packageManager, Intent intent)
UiccCarrierPrivilegeRules.getCarrierPackageNamesForIntent
.public boolean setOperatorBrandOverride(String brand)
public String getOperatorBrandOverride()
public String getIccId()
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)