Handler.Callback
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_INTERNAL_SIM_STATE_CHANGED |
Constructor and Description |
---|
IccCardProxy(Context context,
CommandsInterface ci,
int phoneId) |
Modifier and Type | Method and Description |
---|---|
void |
changeIccFdnPassword(String oldPassword,
String newPassword,
Message onComplete)
Change the ICC password used in ICC fdn enable
When the operation is complete, onComplete will be sent to its handler
|
void |
changeIccLockPassword(String oldPassword,
String newPassword,
Message onComplete)
Change the ICC password used in ICC pin lock
When the operation is complete, onComplete will be sent to its handler
|
void |
dispose() |
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
boolean |
getIccFdnAvailable()
Check whether fdn (fixed dialing number) service is available.
|
boolean |
getIccFdnEnabled()
Check whether ICC fdn (fixed dialing number) is enabled
This is a sync call which returns the cached pin enabled state
|
IccFileHandler |
getIccFileHandler() |
boolean |
getIccLockEnabled()
Check whether ICC pin lock is enabled
This is a sync call which returns the cached pin enabled state
|
boolean |
getIccPin2Blocked() |
boolean |
getIccPuk2Blocked() |
IccRecords |
getIccRecord() |
IccRecords |
getIccRecords() |
boolean |
getIccRecordsLoaded() |
String |
getServiceProviderName()
Returns service provider name stored in ICC card.
|
IccCardConstants.State |
getState() |
void |
handleMessage(Message msg)
Subclasses must implement this to receive messages.
|
boolean |
hasIccCard() |
boolean |
isApplicationOnIcc(IccCardApplicationStatus.AppType type)
Checks if an Application of specified type present on the card
|
void |
registerForAbsent(Handler h,
int what,
Object obj)
Notifies handler of any transition into State.ABSENT
|
void |
registerForLocked(Handler h,
int what,
Object obj)
Notifies handler of any transition into State.isPinLocked()
|
void |
registerForNetworkLocked(Handler h,
int what,
Object obj)
Notifies handler of any transition into State.NETWORK_LOCKED
|
void |
setIccFdnEnabled(boolean enabled,
String password,
Message onComplete)
Set the ICC fdn enabled or disabled
When the operation is complete, onComplete will be sent to its handler
|
void |
setIccLockEnabled(boolean enabled,
String password,
Message onComplete)
Set the ICC pin lock enabled or disabled
When the operation is complete, onComplete will be sent to its handler
|
void |
setVoiceRadioTech(int radioTech) |
void |
supplyNetworkDepersonalization(String pin,
Message onComplete)
Supply Network depersonalization code to the RIL
|
void |
supplyPin(String pin,
Message onComplete)
Supply the ICC PIN to the ICC
When the operation is complete, onComplete will be sent to its
Handler.
|
void |
supplyPin2(String pin2,
Message onComplete)
Supply the ICC PIN2 to the ICC
|
void |
supplyPuk(String puk,
String newPin,
Message onComplete)
Supply the ICC PUK to the ICC
|
void |
supplyPuk2(String puk2,
String newPin2,
Message onComplete)
Supply the ICC PUK2 to the ICC
|
void |
unregisterForAbsent(Handler h) |
void |
unregisterForLocked(Handler h) |
void |
unregisterForNetworkLocked(Handler h) |
dispatchMessage, dump, getLooper, getMessageName, getTraceName, hasCallbacks, hasMessages, hasMessages, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, post, postAtFrontOfQueue, postAtTime, postAtTime, postDelayed, removeCallbacks, removeCallbacks, removeCallbacksAndMessages, removeMessages, removeMessages, runWithScissors, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed, toString
public static final String ACTION_INTERNAL_SIM_STATE_CHANGED
public IccCardProxy(Context context, CommandsInterface ci, int phoneId)
public void dispose()
public void setVoiceRadioTech(int radioTech)
public void handleMessage(Message msg)
Handler
handleMessage
in class Handler
public boolean getIccRecordsLoaded()
public IccCardConstants.State getState()
public IccRecords getIccRecords()
getIccRecords
in interface IccCard
public IccFileHandler getIccFileHandler()
getIccFileHandler
in interface IccCard
public void registerForAbsent(Handler h, int what, Object obj)
registerForAbsent
in interface IccCard
public void unregisterForAbsent(Handler h)
unregisterForAbsent
in interface IccCard
public void registerForNetworkLocked(Handler h, int what, Object obj)
registerForNetworkLocked
in interface IccCard
public void unregisterForNetworkLocked(Handler h)
unregisterForNetworkLocked
in interface IccCard
public void registerForLocked(Handler h, int what, Object obj)
registerForLocked
in interface IccCard
public void unregisterForLocked(Handler h)
unregisterForLocked
in interface IccCard
public void supplyPin(String pin, Message onComplete)
IccCard
public void supplyPuk(String puk, String newPin, Message onComplete)
IccCard
public void supplyPin2(String pin2, Message onComplete)
IccCard
supplyPin2
in interface IccCard
public void supplyPuk2(String puk2, String newPin2, Message onComplete)
IccCard
supplyPuk2
in interface IccCard
public void supplyNetworkDepersonalization(String pin, Message onComplete)
IccCard
supplyNetworkDepersonalization
in interface IccCard
public boolean getIccLockEnabled()
IccCard
getIccLockEnabled
in interface IccCard
public boolean getIccFdnEnabled()
IccCard
getIccFdnEnabled
in interface IccCard
public boolean getIccFdnAvailable()
IccCard
getIccFdnAvailable
in interface IccCard
public boolean getIccPin2Blocked()
getIccPin2Blocked
in interface IccCard
public boolean getIccPuk2Blocked()
getIccPuk2Blocked
in interface IccCard
public void setIccLockEnabled(boolean enabled, String password, Message onComplete)
IccCard
setIccLockEnabled
in interface IccCard
enabled
- "true" for locked "false" for unlocked.password
- needed to change the ICC pin state, aka. Pin1onComplete
- onComplete.obj will be an AsyncResult
((AsyncResult)onComplete.obj).exception == null on success
((AsyncResult)onComplete.obj).exception != null on failpublic void setIccFdnEnabled(boolean enabled, String password, Message onComplete)
IccCard
setIccFdnEnabled
in interface IccCard
enabled
- "true" for locked "false" for unlocked.password
- needed to change the ICC fdn enable, aka Pin2onComplete
- onComplete.obj will be an AsyncResult
((AsyncResult)onComplete.obj).exception == null on success
((AsyncResult)onComplete.obj).exception != null on failpublic void changeIccLockPassword(String oldPassword, String newPassword, Message onComplete)
IccCard
changeIccLockPassword
in interface IccCard
oldPassword
- is the old passwordnewPassword
- is the new passwordonComplete
- onComplete.obj will be an AsyncResult
((AsyncResult)onComplete.obj).exception == null on success
((AsyncResult)onComplete.obj).exception != null on failpublic void changeIccFdnPassword(String oldPassword, String newPassword, Message onComplete)
IccCard
changeIccFdnPassword
in interface IccCard
oldPassword
- is the old passwordnewPassword
- is the new passwordonComplete
- onComplete.obj will be an AsyncResult
((AsyncResult)onComplete.obj).exception == null on success
((AsyncResult)onComplete.obj).exception != null on failpublic String getServiceProviderName()
IccCard
Please use this value when display Service Provider Name in idle mode
Usage of this provider name in the UI is a common carrier requirement. Also available via Android property "gsm.sim.operator.alpha"
getServiceProviderName
in interface IccCard
public boolean isApplicationOnIcc(IccCardApplicationStatus.AppType type)
IccCard
isApplicationOnIcc
in interface IccCard
type
- is AppType to look forpublic boolean hasIccCard()
hasIccCard
in interface IccCard
public IccRecords getIccRecord()
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)