Search in sources :

Example 16 with WapPushManager

use of com.android.smspush.WapPushManager in project android_frameworks_base by DirtyUnicorns.

the class WapPushTest method utUpdatePackage.

protected void utUpdatePackage(boolean need_sig, boolean more_proc) {
    IWapPushManager iwapman = getInterface();
    // insert new data
    try {
        assertTrue(iwapman.updatePackage(Integer.toString(mAppIdValue), Integer.toString(mContentTypeValue), mPackageName, mClassName, WapPushManagerParams.APP_TYPE_SERVICE, need_sig, more_proc));
    } catch (RemoteException e) {
        assertTrue(false);
    }
    // verify the data
    WapPushManager wpman = getService();
    assertTrue(wpman.verifyData(Integer.toString(mAppIdValue), Integer.toString(mContentTypeValue), mPackageName, mClassName, WapPushManagerParams.APP_TYPE_SERVICE, need_sig, more_proc));
}
Also used : WapPushManager(com.android.smspush.WapPushManager) IWapPushManager(com.android.internal.telephony.IWapPushManager) IWapPushManager(com.android.internal.telephony.IWapPushManager) RemoteException(android.os.RemoteException)

Example 17 with WapPushManager

use of com.android.smspush.WapPushManager in project android_frameworks_base by AOSPA.

the class WapPushTest method utAddPackage.

/*
     * All methods need to start with 'test'.
     * Use various assert methods to pass/fail the test case.
     */
protected void utAddPackage(boolean need_sig, boolean more_proc) {
    IWapPushManager iwapman = getInterface();
    // insert new data
    try {
        assertTrue(iwapman.addPackage(Integer.toString(mAppIdValue), Integer.toString(mContentTypeValue), mPackageName, mClassName, WapPushManagerParams.APP_TYPE_SERVICE, need_sig, more_proc));
    } catch (RemoteException e) {
        assertTrue(false);
    }
    // verify the data
    WapPushManager wpman = getService();
    assertTrue(wpman.verifyData(Integer.toString(mAppIdValue), Integer.toString(mContentTypeValue), mPackageName, mClassName, WapPushManagerParams.APP_TYPE_SERVICE, need_sig, more_proc));
}
Also used : WapPushManager(com.android.smspush.WapPushManager) IWapPushManager(com.android.internal.telephony.IWapPushManager) IWapPushManager(com.android.internal.telephony.IWapPushManager) RemoteException(android.os.RemoteException)

Example 18 with WapPushManager

use of com.android.smspush.WapPushManager in project android_frameworks_base by ResurrectionRemix.

the class WapPushTest method utUpdatePackage.

protected void utUpdatePackage(boolean need_sig, boolean more_proc) {
    IWapPushManager iwapman = getInterface();
    // insert new data
    try {
        assertTrue(iwapman.updatePackage(Integer.toString(mAppIdValue), Integer.toString(mContentTypeValue), mPackageName, mClassName, WapPushManagerParams.APP_TYPE_SERVICE, need_sig, more_proc));
    } catch (RemoteException e) {
        assertTrue(false);
    }
    // verify the data
    WapPushManager wpman = getService();
    assertTrue(wpman.verifyData(Integer.toString(mAppIdValue), Integer.toString(mContentTypeValue), mPackageName, mClassName, WapPushManagerParams.APP_TYPE_SERVICE, need_sig, more_proc));
}
Also used : WapPushManager(com.android.smspush.WapPushManager) IWapPushManager(com.android.internal.telephony.IWapPushManager) IWapPushManager(com.android.internal.telephony.IWapPushManager) RemoteException(android.os.RemoteException)

Aggregations

RemoteException (android.os.RemoteException)18 IWapPushManager (com.android.internal.telephony.IWapPushManager)18 WapPushManager (com.android.smspush.WapPushManager)18