use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.
the class IccRecords method registerForNewSms.
public void registerForNewSms(Handler h, int what, Object obj) {
Registrant r = new Registrant(h, what, obj);
mNewSmsRegistrants.add(r);
}
use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.
the class IccRecords method registerForSpnUpdate.
public void registerForSpnUpdate(Handler h, int what, Object obj) {
if (mDestroyed.get()) {
return;
}
Registrant r = new Registrant(h, what, obj);
mSpnUpdatedRegistrants.add(r);
if (!TextUtils.isEmpty(mSpn)) {
r.notifyRegistrant(new AsyncResult(null, null, null));
}
}
use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.
the class IccRecords method registerForRecordsOverride.
public void registerForRecordsOverride(Handler h, int what, Object obj) {
if (mDestroyed.get()) {
return;
}
Registrant r = new Registrant(h, what, obj);
mRecordsOverrideRegistrants.add(r);
if (getRecordsLoaded()) {
r.notifyRegistrant(new AsyncResult(null, null, null));
}
}
use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.
the class UiccCardApplication method registerForDetected.
public void registerForDetected(Handler h, int what, Object obj) {
synchronized (mLock) {
Registrant r = new Registrant(h, what, obj);
mDetectedRegistrants.add(r);
notifyDetectedRegistrantsIfNeeded(r);
}
}
use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.
the class UiccCardApplication method registerForNetworkLocked.
/**
* Notifies handler of any transition into State.NETWORK_LOCKED
*/
protected void registerForNetworkLocked(Handler h, int what, Object obj) {
synchronized (mLock) {
Registrant r = new Registrant(h, what, obj);
mNetworkLockedRegistrants.add(r);
notifyNetworkLockedRegistrantsIfNeeded(r);
}
}
Aggregations