Home
last modified time | relevance | path

Searched refs:uninstallPackage (Results 1 – 25 of 30) sorted by relevance

12

/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDevicePackageFuncTest.java57 mTestDevice.uninstallPackage(WifiHelper.INSTRUMENTATION_PKG); in setUp()
85 mTestDevice.uninstallPackage(WifiHelper.INSTRUMENTATION_PKG); in testInstallListUninstall_basic()
116 mTestDevice.uninstallPackage(WifiHelper.INSTRUMENTATION_PKG); in testIsPackageInstalled_basic()
150 mTestDevice.uninstallPackage(WifiHelper.INSTRUMENTATION_PKG); in testInstallListUninstall_forUser()
DWifiHelperTest.java223 when(mMockDevice.uninstallPackage(WifiHelper.INSTRUMENTATION_PKG)).thenReturn(null); in testCleanPackage()
/tools/tradefederation/core/javatests/com/android/tradefed/device/helper/
DTelephonyHelperTest.java57 when(mDevice.uninstallPackage(TelephonyHelper.PACKAGE_NAME)).thenReturn(null); in testGetSimInfo()
96 when(mDevice.uninstallPackage(TelephonyHelper.PACKAGE_NAME)).thenReturn(null); in testGetSimInfo_instrumentationFailed()
116 when(mDevice.uninstallPackage(TelephonyHelper.PACKAGE_NAME)).thenReturn(null); in testGetSimInfo_simTest_not_run()
135 when(mDevice.uninstallPackage(TelephonyHelper.PACKAGE_NAME)).thenReturn(null); in testGetSimInfo_simTest_failed()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DAppSetupTest.java361 when(mMockDevice.uninstallPackage("com.fake1")).thenReturn(null); in testSetup_uninstallAll()
365 verify(mMockDevice, times(2)).uninstallPackage("com.fake1"); in testSetup_uninstallAll()
378 when(mMockDevice.uninstallPackage("com.fake1")).thenReturn("error"); in testSetup_uninstallAll_fails()
387 verify(mMockDevice, times(3)).uninstallPackage("com.fake1"); in testSetup_uninstallAll_fails()
DInstallAllTestZipAppsSetupTest.java151 verify(mMockTestDevice, times(3)).uninstallPackage((String) any()); in testSuccess()
169 verify(mMockTestDevice, times(3)).uninstallPackage((String) any()); in testForceQueryableSuccess()
186 verify(mMockTestDevice, times(3)).uninstallPackage((String) any()); in testDeviceApi34ForceQueryableIsFalse()
DAppSetupFuncTest.java60 getDevice().uninstallPackage(WifiHelper.INSTRUMENTATION_PKG); in testSetupTeardown()
DInstallApexModuleTargetPreparerTest.java581 when(mMockDevice.uninstallPackage(Mockito.any())).thenReturn(null); in testSetupAndTearDown_Optimize_APEXANDAPK_UnInstallAPKAndReboot()
589 verify(mMockDevice, times(2)).uninstallPackage(Mockito.any()); in testSetupAndTearDown_Optimize_APEXANDAPK_UnInstallAPKAndReboot()
614 when(mMockDevice.uninstallPackage(Mockito.any())).thenReturn(null); in testSetupAndTearDown_Optimize_APEXANDAPK_UnInstallAPEXANDReboot()
622 verify(mMockDevice, times(2)).uninstallPackage(Mockito.any()); in testSetupAndTearDown_Optimize_APEXANDAPK_UnInstallAPEXANDReboot()
694 when(mMockDevice.uninstallPackage(Mockito.any())).thenReturn(null); in testSetupAndTearDown_Optimize_MultipleAPEX_UninstallThenInstallAndReboot()
703 verify(mMockDevice, times(1)).uninstallPackage(Mockito.any()); in testSetupAndTearDown_Optimize_MultipleAPEX_UninstallThenInstallAndReboot()
733 when(mMockDevice.uninstallPackage(Mockito.any())).thenReturn(null); in testSetupAndTearDown_Optimize_MultipleAPEX_UninstallAndReboot()
740 verify(mMockDevice, times(1)).uninstallPackage(Mockito.any()); in testSetupAndTearDown_Optimize_MultipleAPEX_UninstallAndReboot()
2411 when(mMockDevice.uninstallPackage(APK_PACKAGE_NAME)).thenReturn(null); in testSetupAndTearDown_throwExceptionModulesNotPreloaded()
2422 verify(mMockDevice, times(1)).uninstallPackage(APK_PACKAGE_NAME); in testSetupAndTearDown_throwExceptionModulesNotPreloaded()
DTestAppInstallSetupTest.java542 when(mMockTestDevice.uninstallPackage(PACKAGE_NAME)).thenReturn(null); in testInstallFailedUpdateIncompatible()
547 when(mMockTestDevice.uninstallPackage(PACKAGE_NAME)).thenReturn(null); in testInstallFailedUpdateIncompatible()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DAppSetup.java220 String result = device.uninstallPackage(pkgName); in tearDown()
251 String result = device.uninstallPackage(pkg); in uninstallAllApps()
DInstallAllTestZipAppsSetup.java262 String msg = device.uninstallPackage(packageName); in tearDown()
DAllTestAppsInstallSetup.java218 String msg = device.uninstallPackage(packageName); in tearDown()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4Test.java923 public final String uninstallPackage(String pkgName) throws DeviceNotAvailableException { in uninstallPackage() method in BaseHostJUnit4Test
924 return getDevice().uninstallPackage(pkgName); in uninstallPackage()
934 public final String uninstallPackage(ITestDevice device, String pkgName) in uninstallPackage() method in BaseHostJUnit4Test
936 return device.uninstallPackage(pkgName); in uninstallPackage()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DTestAppInstallSetup.java471 uninstallPackage(getDevice(), packageName); in tearDown()
551 uninstallPackage(testDevice, packageName); in installSinglePackage()
721 protected void uninstallPackage(ITestDevice device, String packageName) in uninstallPackage() method in TestAppInstallSetup
725 msg = device.uninstallPackage(packageName); in uninstallPackage()
DInstallApexModuleTargetPreparer.java343 uninstallPackage(device, m); in optimizeModuleInstallation()
348 uninstallPackage(device, packageName); in optimizeModuleInstallation()
452 uninstallPackage(device, apkPkgName); in moduleTearDown()
/tools/tradefederation/core/src/com/android/tradefed/device/helper/
DTelephonyHelper.java136 device.uninstallPackage(PACKAGE_NAME); in getSimInfo()
/tools/tradefederation/contrib/src/com/android/performance/tests/
DAppIncrementalInstallTest.java186 mDevice.uninstallPackage(packageName); in installAndTime()
DAppInstallTest.java236 mDevice.uninstallPackage(packageName); in installAndTime()
/tools/platform-compat/java/android/compat/testing/
DClasspaths.java139 device.uninstallPackage(packageName); in runDeviceTests()
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/test/
DPerformanceTest.java211 mDevice.uninstallPackage(mApk.getPackageName()); in tearDown()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DITestDevice.java219 public String uninstallPackage(String packageName) throws DeviceNotAvailableException; in uninstallPackage() method
DStubDevice.java320 public String uninstallPackage(String packageName) throws InstallException { in uninstallPackage() method in StubDevice
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/contentprovider/
DContentProviderHandler.java175 mDevice.uninstallPackage(PACKAGE_NAME); in tearDown()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4TestTest.java413 when(mMockDevice.uninstallPackage("fakepackage")).thenReturn(null);
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java635 public String uninstallPackage(final String packageName) throws DeviceNotAvailableException { in uninstallPackage() method in TestDevice
637 return uninstallPackage(packageName, /* extraArgs= */ null); in uninstallPackage()
640 private String uninstallPackage(String packageName, @Nullable String extraArgs) in uninstallPackage() method in TestDevice
666 return uninstallPackage(packageName, "--user " + userId); in uninstallPackageForUser()
DWifiHelper.java892 String output = mDevice.uninstallPackage(INSTRUMENTATION_PKG); in cleanUp()

12