use of android.os.Registrant in project XobotOS by xamarin.
the class BaseCommands method registerForCallStateChanged.
public void registerForCallStateChanged(Handler h, int what, Object obj) {
Registrant r = new Registrant(h, what, obj);
mCallStateRegistrants.add(r);
}
use of android.os.Registrant in project XobotOS by xamarin.
the class BaseCommands method registerForCdmaPrlChanged.
@Override
public void registerForCdmaPrlChanged(Handler h, int what, Object obj) {
Registrant r = new Registrant(h, what, obj);
mCdmaPrlChangedRegistrants.add(r);
}
use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.
the class IccCardProxy method registerForLocked.
/**
* Notifies handler of any transition into State.isPinLocked()
*/
@Override
public void registerForLocked(Handler h, int what, Object obj) {
synchronized (mLock) {
Registrant r = new Registrant(h, what, obj);
mPinLockedRegistrants.add(r);
if (getState().isPinLocked()) {
r.notifyRegistrant();
}
}
}
use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.
the class UiccController method registerForIccChanged.
// Notifies when card status changes
public void registerForIccChanged(Handler h, int what, Object obj) {
synchronized (mLock) {
Registrant r = new Registrant(h, what, obj);
mIccChangedRegistrants.add(r);
// Notify registrant right after registering, so that it will get the latest ICC status,
// otherwise which may not happen until there is an actual change in ICC status.
r.notifyRegistrant();
}
}
use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.
the class SubscriptionMonitorMock method registerForSubscriptionChanged.
@Override
public void registerForSubscriptionChanged(int phoneId, Handler h, int what, Object o) {
validatePhoneId(phoneId);
Registrant r = new Registrant(h, what, o);
mSubscriptionsChangedRegistrants[phoneId].add(r);
r.notifyRegistrant();
}
Aggregations