Search in sources :

Example 56 with Registrant

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);
}
Also used : Registrant(android.os.Registrant)

Example 57 with Registrant

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();
    }
}
Also used : Registrant(android.os.Registrant)

Example 58 with Registrant

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();
    }
}
Also used : Registrant(android.os.Registrant)

Example 59 with Registrant

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);
}
Also used : Registrant(android.os.Registrant)

Example 60 with Registrant

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();
}
Also used : Registrant(android.os.Registrant)

Aggregations

Registrant (android.os.Registrant)139 AsyncResult (android.os.AsyncResult)19 Message (android.os.Message)5 RegistrantList (android.os.RegistrantList)4 NetworkRegistrationInfo (android.telephony.NetworkRegistrationInfo)2 IllegalArgumentException (java.lang.IllegalArgumentException)2 UnsupportedAppUsage (android.compat.annotation.UnsupportedAppUsage)1 PhysicalChannelConfig (android.telephony.PhysicalChannelConfig)1 SubscriptionInfo (android.telephony.SubscriptionInfo)1 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)1