Search in sources :

Example 1 with WapPushManager

use of com.android.smspush.WapPushManager in project platform_frameworks_base by android.

the class WapPushTest method utDeletePackage.

protected void utDeletePackage() {
    IWapPushManager iwapman = getInterface();
    try {
        assertTrue(iwapman.deletePackage(Integer.toString(mAppIdValue), Integer.toString(mContentTypeValue), mPackageName, mClassName));
    } catch (RemoteException e) {
        assertTrue(false);
    }
    // verify the data
    WapPushManager wpman = getService();
    assertTrue(!wpman.isDataExist(Integer.toString(mAppIdValue), Integer.toString(mContentTypeValue), mPackageName, mClassName));
}
Also used : WapPushManager(com.android.smspush.WapPushManager) IWapPushManager(com.android.internal.telephony.IWapPushManager) IWapPushManager(com.android.internal.telephony.IWapPushManager) RemoteException(android.os.RemoteException)

Example 2 with WapPushManager

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

the class WapPushTest method utDeletePackage.

protected void utDeletePackage() {
    IWapPushManager iwapman = getInterface();
    try {
        assertTrue(iwapman.deletePackage(Integer.toString(mAppIdValue), Integer.toString(mContentTypeValue), mPackageName, mClassName));
    } catch (RemoteException e) {
        assertTrue(false);
    }
    // verify the data
    WapPushManager wpman = getService();
    assertTrue(!wpman.isDataExist(Integer.toString(mAppIdValue), Integer.toString(mContentTypeValue), mPackageName, mClassName));
}
Also used : WapPushManager(com.android.smspush.WapPushManager) IWapPushManager(com.android.internal.telephony.IWapPushManager) IWapPushManager(com.android.internal.telephony.IWapPushManager) RemoteException(android.os.RemoteException)

Example 3 with WapPushManager

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

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 4 with WapPushManager

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

the class WapPushTest method utDeletePackage.

protected void utDeletePackage() {
    IWapPushManager iwapman = getInterface();
    try {
        assertTrue(iwapman.deletePackage(Integer.toString(mAppIdValue), Integer.toString(mContentTypeValue), mPackageName, mClassName));
    } catch (RemoteException e) {
        assertTrue(false);
    }
    // verify the data
    WapPushManager wpman = getService();
    assertTrue(!wpman.isDataExist(Integer.toString(mAppIdValue), Integer.toString(mContentTypeValue), mPackageName, mClassName));
}
Also used : WapPushManager(com.android.smspush.WapPushManager) IWapPushManager(com.android.internal.telephony.IWapPushManager) IWapPushManager(com.android.internal.telephony.IWapPushManager) RemoteException(android.os.RemoteException)

Example 5 with WapPushManager

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

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)

Aggregations

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