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