use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.
the class ServiceStateTracker method registerForNrFrequencyChanged.
/**
* Registers for 5G NR frequency changed.
* @param h handler to notify
* @param what what code of message when delivered
* @param obj placed in Message.obj
*/
public void registerForNrFrequencyChanged(Handler h, int what, Object obj) {
Registrant r = new Registrant(h, what, obj);
mNrFrequencyChangedRegistrants.add(r);
}
use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.
the class ServiceStateTracker method registerForNetworkAttached.
/**
* Registration point for transition into network attached.
* @param h handler to notify
* @param what what code of message when delivered
* @param obj in Message.obj
*/
public void registerForNetworkAttached(Handler h, int what, Object obj) {
Registrant r = new Registrant(h, what, obj);
mNetworkAttachedRegistrants.add(r);
if (mSS.getState() == ServiceState.STATE_IN_SERVICE) {
r.notifyRegistrant();
}
}
use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.
the class ServiceStateTracker method registerForSubscriptionInfoReady.
/**
* Registration point for subscription info ready
* @param h handler to notify
* @param what what code of message when delivered
* @param obj placed in Message.obj
*/
public void registerForSubscriptionInfoReady(Handler h, int what, Object obj) {
Registrant r = new Registrant(h, what, obj);
mCdmaForSubscriptionInfoReadyRegistrants.add(r);
if (isMinInfoReady()) {
r.notifyRegistrant();
}
}
use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.
the class ImsPhoneCallTracker method registerForVoiceCallEnded.
@Override
public void registerForVoiceCallEnded(Handler h, int what, Object obj) {
Registrant r = new Registrant(h, what, obj);
mVoiceCallEndedRegistrants.add(r);
}
use of android.os.Registrant in project android_frameworks_opt_telephony by LineageOS.
the class PhoneSwitcher method registerForActivePhoneSwitch.
/**
* If preferred phone changes, or phone activation status changes, registrants
* will be notified.
*/
public void registerForActivePhoneSwitch(Handler h, int what, Object o) {
Registrant r = new Registrant(h, what, o);
mActivePhoneRegistrants.add(r);
r.notifyRegistrant();
}
Aggregations