use of com.android.smspush.WapPushManager in project android_frameworks_base by crdroidandroid.
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));
}
use of com.android.smspush.WapPushManager in project android_frameworks_base by crdroidandroid.
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));
}
use of com.android.smspush.WapPushManager in project android_frameworks_base by ResurrectionRemix.
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));
}
use of com.android.smspush.WapPushManager in project android_frameworks_base by ResurrectionRemix.
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));
}
use of com.android.smspush.WapPushManager in project android_frameworks_base by ParanoidAndroid.
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));
}
Aggregations