Search in sources :

Example 71 with Registrant

use of android.os.Registrant in project XobotOS by xamarin.

the class CDMAPhone method registerForNvLoaded.

public void registerForNvLoaded(Handler h, int what, Object obj) {
    Registrant r = new Registrant(h, what, obj);
    mNvLoadedRegistrants.add(r);
}
Also used : Registrant(android.os.Registrant)

Example 72 with Registrant

use of android.os.Registrant in project XobotOS by xamarin.

the class CdmaCallTracker method registerForVoiceCallStarted.

//***** Instance Methods
//***** Public Methods
public void registerForVoiceCallStarted(Handler h, int what, Object obj) {
    Registrant r = new Registrant(h, what, obj);
    voiceCallStartedRegistrants.add(r);
    // Notify if in call when registering
    if (state != Phone.State.IDLE) {
        r.notifyRegistrant(new AsyncResult(null, null, null));
    }
}
Also used : Registrant(android.os.Registrant) AsyncResult(android.os.AsyncResult)

Example 73 with Registrant

use of android.os.Registrant in project XobotOS by xamarin.

the class CdmaCallTracker method registerForCallWaiting.

public void registerForCallWaiting(Handler h, int what, Object obj) {
    Registrant r = new Registrant(h, what, obj);
    callWaitingRegistrants.add(r);
}
Also used : Registrant(android.os.Registrant)

Example 74 with Registrant

use of android.os.Registrant in project XobotOS by xamarin.

the class IccCard method registerForNetworkLocked.

/**
     * Notifies handler of any transition into State.NETWORK_LOCKED
     */
public void registerForNetworkLocked(Handler h, int what, Object obj) {
    Registrant r = new Registrant(h, what, obj);
    mNetworkLockedRegistrants.add(r);
    if (getState() == State.NETWORK_LOCKED) {
        r.notifyRegistrant();
    }
}
Also used : Registrant(android.os.Registrant)

Example 75 with Registrant

use of android.os.Registrant in project XobotOS by xamarin.

the class BaseCommands method registerForCdmaOtaProvision.

public void registerForCdmaOtaProvision(Handler h, int what, Object obj) {
    Registrant r = new Registrant(h, what, obj);
    mOtaProvisionRegistrants.add(r);
}
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