Methods Summary |
---|
protected void | setUp()
super.setUp();
mPm = getContext().getPackageManager();
|
public void | testClearApplicationUserData()
try {
mPm.clearApplicationUserData(mPkgName, null);
fail("PackageManager.clearApplicationUserData" +
"did not throw SecurityException as expected");
} catch (SecurityException e) {
// expected
}
|
public void | testDeleteApplicationCacheFiles()
try {
mPm.deleteApplicationCacheFiles(mPkgName, null);
fail("PackageManager.deleteApplicationCacheFiles" +
"did not throw SecurityException as expected");
} catch (SecurityException e) {
// expected
}
|
public void | testDeletePackage()
try {
mPm.deletePackage(mPkgName, null, 0);
fail("PackageManager.deletePackage" +
"did not throw SecurityException as expected");
} catch (SecurityException e) {
// expected
}
|
public void | testFreeStorage1()
try {
mPm.freeStorage(100000, null);
fail("PackageManager.freeStorage " +
"did not throw SecurityException as expected");
} catch (SecurityException e) {
// expected
}
|
public void | testFreeStorage2()
try {
mPm.freeStorageAndNotify(100000, null);
fail("PackageManager.freeStorageAndNotify" +
" did not throw SecurityException as expected");
} catch (SecurityException e) {
// expected
}
|
public void | testGetPackageSize()
try {
mPm.getPackageSizeInfo(mPkgName, null);
fail("PackageManager.getPackageSizeInfo" +
"did not throw SecurityException as expected");
} catch (SecurityException e) {
// expected
}
|
public void | testInstallPackage()
TestInstallObserver observer = new TestInstallObserver();
try {
mPm.installPackage(null, observer, 0, null);
fail("PackageManager.installPackage" +
"did not throw SecurityException as expected");
} catch (SecurityException e) {
// expected
}
|