Home
last modified time | relevance | path

Searched refs:forceStopPackage (Results 1 – 25 of 37) sorted by relevance

12

/cts/tests/app/src/android/app/cts/
DForceStopTest.java122 () -> mActivityManager.forceStopPackage(intent.getPackage())); in forceStopAndStartSimpleActivity()
143 () -> mActivityManager.forceStopPackage(packageName)); in testPackageStoppedState()
181 () -> mActivityManager.forceStopPackage(packageName)); in testPackageRestartedBroadcast()
233 () -> mActivityManager.forceStopPackage(packageName)); in testPackageUnstoppedBroadcast()
271 () -> mActivityManager.forceStopPackage(APP_PACKAGE)); in testBootCompletedBroadcasts_activity()
279 () -> mActivityManager.forceStopPackage(APP_PACKAGE)); in testBootCompletedBroadcasts_activity()
316 () -> mActivityManager.forceStopPackage(APP_PACKAGE)); in testBootCompletedBroadcasts_broadcast()
332 () -> mActivityManager.forceStopPackage(APP_PACKAGE)); in testBootCompletedBroadcasts_broadcast()
345 () -> mActivityManager.forceStopPackage(APP_PACKAGE)); in testApplicationStartInfoWasForceStopped_bindService()
358 () -> mActivityManager.forceStopPackage(APP_PACKAGE)); in testApplicationStartInfoWasForceStopped_bindService()
[all …]
DActivityManagerTest.java741 mActivityManager.forceStopPackage(PACKAGE_NAME_APP1); in runWithShellPermissionIdentity()
1066 () -> mActivityManager.forceStopPackage(SIMPLE_PACKAGE_NAME)); in testForceStopPackageWontRestartProcess()
1099 mActivityManager.forceStopPackage(SIMPLE_PACKAGE_NAME); in testForceStopPackageWontRestartProcess()
1148 mActivityManager.forceStopPackage(PACKAGE_NAME_APP1); in testAppNotResponding()
1188 mActivityManager.forceStopPackage(PACKAGE_NAME_WEDGED_STARTUP); in testAppNotRespondingOnStartup()
1299 mActivityManager.forceStopPackage(SIMPLE_PACKAGE_NAME); in testKillingPidsOnImperceptible()
1400 mActivityManager.forceStopPackage(PACKAGE_NAME_APP1); in testKillingAppChildProcess()
1551 mActivityManager.forceStopPackage(PACKAGE_NAME_APP1); in testTrimAppChildProcess()
1552 mActivityManager.forceStopPackage(PACKAGE_NAME_APP2); in testTrimAppChildProcess()
1553 mActivityManager.forceStopPackage(PACKAGE_NAME_APP3); in testTrimAppChildProcess()
[all …]
DActivityManagerFgsDelegateTest.java126 mActivityManager.forceStopPackage(pkgName); in cleanupResiduals()
873 mActivityManager.forceStopPackage(PACKAGE_NAME_APP1); in testFgsDelegateAfterForceStopPackage()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DMockTestActivityUtil.java176 return () -> TestUtils.forceStopPackage(TEST_ACTIVITY.getPackageName()); in launchSync()
213 return () -> TestUtils.forceStopPackage(TEST_ACTIVITY.getPackageName(), userId); in launchAsUser()
256 return () -> TestUtils.forceStopPackage(TEST_ACTIVITY.getPackageName(), userId); in launchSyncAsUser()
300 public static void forceStopPackage() { in forceStopPackage() method in MockTestActivityUtil
301 TestUtils.forceStopPackage(TEST_ACTIVITY.getPackageName()); in forceStopPackage()
DTestUtils.java290 public static void forceStopPackage(@NonNull String pkg) { in forceStopPackage() method in TestUtils
302 public static void forceStopPackage(@NonNull String pkg, int userId) { in forceStopPackage() method in TestUtils
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/
DForceStopTest.java146 forceStopPackage(Ime1Constants.PACKAGE, userId); in testImeRemainsEnabledAfterForceStopMain()
163 private static void forceStopPackage(String packageName, int userId) { in forceStopPackage() method in ForceStopTest
169 .forceStopPackage(packageName), in forceStopPackage()
/cts/tests/tests/provider/src/android/provider/cts/
DMultiAuthorityTest.java63 am.forceStopPackage("android.provider.apps.cts.multiauthority")); in killProviderProcess()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DActivityEmbeddingPolicyTests.java99 NestedShellPermission.run(() -> am.forceStopPackage("android.server.wm.jetpack.second")); in tearDown()
100 NestedShellPermission.run(() -> am.forceStopPackage("android.server.wm.jetpack.signed")); in tearDown()
DActivityEmbeddingCrossUidTests.java93 NestedShellPermission.run(() -> am.forceStopPackage("android.server.wm.jetpack.second")); in tearDown()
94 NestedShellPermission.run(() -> am.forceStopPackage("android.server.wm.jetpack.signed")); in tearDown()
/cts/tests/app/src/android/app/cts/fgs/bootcompleted/
DBootCompletedFgsStartTest.java123 am.forceStopPackage(TARGET_APP_CURRENT); in tearDown()
124 am.forceStopPackage(TARGET_APP_34); in tearDown()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DAppDataIsolationTests.java140 forceStopPackage(APPA_PKG); in testAppAbleToAccessItsDataAfterForceStop()
385 private void forceStopPackage(String packageName) throws Exception { in forceStopPackage() method in AppDataIsolationTests
/cts/tests/tests/systemui/src/android/systemui/cts/tv/
DTvTestBase.kt130 activityManager.forceStopPackage(packageName) in stopPackage()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DUserControlDisabledPackagesTest.java173 sActivityManager.forceStopPackage(testAppPackageName); in setUserControlDisabledPackages_launchActivity_verifyPackageNotStopped()
199 sActivityManager.forceStopPackage(testAppPackageName); in setUserControlDisabledPackages_launchActivity_verifyPackageStopped()
/cts/tests/input/src/android/input/cts/
DInputInjectionTest.kt216 activityManager.forceStopPackage(INPUT_INJECTION_PACKAGE) in <lambda>()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceSyncGroupTests.java87 SystemUtil.runWithShellPermissionIdentity(() -> am.forceStopPackage( in tearDown()
/cts/libs/rollback/src/com/android/cts/rollback/lib/
DRollbackUtils.java248 am.forceStopPackage(packageName); in launchPackageForCrash()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DUtils.java151 static void forceStopPackage(String packageName) { in forceStopPackage() method in Utils
/cts/tests/tests/car/src/android/car/app/cts/
DMultiUserMultiDisplayWindowSecurityTest.java267 runWithShellPermissionIdentity(() -> mActivityManager.forceStopPackage( in stopTestPackage()
/cts/tests/app/FgsTest/src/android/app/cts/fgstest/
DActivityManagerForegroundServiceTypeTest.java128 mActivityManager.forceStopPackage(TEST_PKG_NAME_CURRENT); in tearDown()
129 mActivityManager.forceStopPackage(TEST_PKG_NAME_API33); in tearDown()
/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/
DBaseBroadcastTest.java109 mAm.forceStopPackage(pkg); in tearDown()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java266 SystemUtil.runWithShellPermissionIdentity(() -> mAm.forceStopPackage(TEST_APP_PKG)); in cleanUp()
267 SystemUtil.runWithShellPermissionIdentity(() -> mAm.forceStopPackage(TEST_APP2_PKG)); in cleanUp()
1968 SystemUtil.runWithShellPermissionIdentity(() -> mAm.forceStopPackage(TEST_APP_PKG)); in testUsageSourceAttribution()
1990 SystemUtil.runWithShellPermissionIdentity(() -> mAm.forceStopPackage(TEST_APP_PKG)); in testTaskRootAttribution_finishingTaskRoot()
2063 SystemUtil.runWithShellPermissionIdentity(() -> mAm.forceStopPackage(TEST_APP_PKG)); in testSuddenDestroy()
2672 SystemUtil.runWithShellPermissionIdentity(() -> mAm.forceStopPackage(TEST_APP_PKG)); in startAndDestroyActivityWithLocus()
/cts/tests/tests/appop/src/android/app/appops/cts/
DForegroundModeAndActiveTest.kt550 am.forceStopPackage(TEST_SERVICE_PKG) in <lambda>()
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTestUtils.java381 getContext().getSystemService(ActivityManager.class).forceStopPackage(packageName); in forceStopApp()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodStartInputLifecycleTest.java263 MockTestActivityUtil.forceStopPackage(); in testShowingImeDuringSessionChange_doesntShowOnPreviousSession()
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/
DEventLogsTest.java652 .forceStopPackage(TEST_APP_PACKAGE_NAME); in killTestApp()

12