Search in sources :

Example 21 with Registrant

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

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

Example 22 with Registrant

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

the class ServiceStateTracker method registerForDataConnectionAttached.

/**
     * Registration point for transition into DataConnection attached.
     * @param h handler to notify
     * @param what what code of message when delivered
     * @param obj placed in Message.obj
     */
public void registerForDataConnectionAttached(Handler h, int what, Object obj) {
    Registrant r = new Registrant(h, what, obj);
    mAttachedRegistrants.add(r);
    if (getCurrentDataConnectionState() == ServiceState.STATE_IN_SERVICE) {
        r.notifyRegistrant();
    }
}
Also used : Registrant(android.os.Registrant)

Example 23 with Registrant

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

the class ServiceStateTracker method registerForRoamingOn.

/**
     * Registration point for combined roaming on
     * combined roaming is true when roaming is true and ONS differs SPN
     *
     * @param h handler to notify
     * @param what what code of message when delivered
     * @param obj placed in Message.obj
     */
public void registerForRoamingOn(Handler h, int what, Object obj) {
    Registrant r = new Registrant(h, what, obj);
    mRoamingOnRegistrants.add(r);
    if (ss.getRoaming()) {
        r.notifyRegistrant();
    }
}
Also used : Registrant(android.os.Registrant)

Example 24 with Registrant

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

the class ServiceStateTracker method registerForRoamingOff.

/**
     * Registration point for combined roaming off
     * combined roaming is true when roaming is true and ONS differs SPN
     *
     * @param h handler to notify
     * @param what what code of message when delivered
     * @param obj placed in Message.obj
     */
public void registerForRoamingOff(Handler h, int what, Object obj) {
    Registrant r = new Registrant(h, what, obj);
    mRoamingOffRegistrants.add(r);
    if (!ss.getRoaming()) {
        r.notifyRegistrant();
    }
}
Also used : Registrant(android.os.Registrant)

Example 25 with Registrant

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

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 (ss.getState() == ServiceState.STATE_IN_SERVICE) {
        r.notifyRegistrant();
    }
}
Also used : Registrant(android.os.Registrant)

Aggregations

Registrant (android.os.Registrant)45 AsyncResult (android.os.AsyncResult)5 Message (android.os.Message)2