Home
last modified time | relevance | path

Searched refs:STUB_PACKAGE_NAME (Results 1 – 13 of 13) sorted by relevance

/cts/tests/app/AppStartTest/src/android/app/cts/
DActivityManagerAppStartInfoTest.java90 private static final String STUB_PACKAGE_NAME = "com.android.cts.startinfoapp"; field in ActivityManagerAppStartInfoTest
124 mStubPackageUid = mPackageManager.getPackageUid(STUB_PACKAGE_NAME, 0); in setUp()
129 executeShellCmd("am force-stop " + STUB_PACKAGE_NAME); in tearDown()
139 mPackageManager.getLaunchIntentForPackage(STUB_PACKAGE_NAME); in testLauncherStart()
144 verify(info, STUB_PACKAGE_NAME, STUB_PACKAGE_NAME, intent, in testLauncherStart()
158 executeShellCmd("am start -n " + STUB_PACKAGE_NAME + "/" + STUB_PACKAGE_NAME in testActivityStart()
164 intent.setComponent(ComponentName.createRelative(STUB_PACKAGE_NAME, in testActivityStart()
168 verify(info, STUB_PACKAGE_NAME, STUB_PACKAGE_NAME, intent, in testActivityStart()
184 executeShellCmd("am start -n " + STUB_PACKAGE_NAME + "/" + STUB_PACKAGE_NAME in testWasForceStopped()
189 executeShellCmd("am force-stop " + STUB_PACKAGE_NAME); in testWasForceStopped()
[all …]
/cts/tests/app/AppExitTest/src/android/app/cts/
DActivityManagerAppExitInfoTest.java108 private static final String STUB_PACKAGE_NAME = field in ActivityManagerAppExitInfoTest
118 private static final String STUB_PROCESS_NAME = STUB_PACKAGE_NAME;
196 mStubPackageUid = mContext.getPackageManager().getPackageUid(STUB_PACKAGE_NAME, 0); in setUp()
207 executeShellCmd("cmd deviceidle whitelist +" + STUB_PACKAGE_NAME); in setUp()
228 STUB_PACKAGE_NAME, in setUp()
298 executeShellCmd("cmd deviceidle whitelist -" + STUB_PACKAGE_NAME); in tearDown()
300 executeShellCmd("am force-stop " + STUB_PACKAGE_NAME); in tearDown()
419 intent.setClassName(STUB_PACKAGE_NAME, serviceName); in startService()
442 intent.setClassName(STUB_PACKAGE_NAME, serviceName); in startIsolatedService()
457 executeShellCmd("am clear-exit-info --user all " + STUB_PACKAGE_NAME); in clearHistoricalExitInfo()
[all …]
/cts/tests/app/src/android/app/cts/
DManageFsiTest.java45 private static final String STUB_PACKAGE_NAME = "android.app.stubs"; field in ManageFsiTest
62 intent.setData(Uri.parse("package:" + STUB_PACKAGE_NAME)); in testManageAppUseFsiIntent_ResolvesToActivity()
DActivityManagerProcessStateTest.java106 private static final String STUB_PACKAGE_NAME = "android.app.stubs"; field in ActivityManagerProcessStateTest
246 STUB_PACKAGE_NAME, STUB_PACKAGE_NAME, 0, null, receiver); in drainOrderedBroadcastQueue()
354 STUB_PACKAGE_NAME, android.Manifest.permission.PACKAGE_USAGE_STATS); in testUidImportanceListener()
364 STUB_PACKAGE_NAME, android.Manifest.permission.PACKAGE_USAGE_STATS); in testUidImportanceListener()
523 STUB_PACKAGE_NAME, android.Manifest.permission.PACKAGE_USAGE_STATS); in testBackgroundCheckService()
694 STUB_PACKAGE_NAME, android.Manifest.permission.PACKAGE_USAGE_STATS); in testBackgroundCheckStopsService()
863 STUB_PACKAGE_NAME, android.Manifest.permission.PACKAGE_USAGE_STATS); in testBackgroundCheckBroadcastService()
865 mInstrumentation, STUB_PACKAGE_NAME, mAllProcesses, WAIT_TIME); in testBackgroundCheckBroadcastService()
999 STUB_PACKAGE_NAME, android.Manifest.permission.PACKAGE_USAGE_STATS); in testBackgroundCheckActivityService()
1001 mInstrumentation, STUB_PACKAGE_NAME, mAllProcesses, WAIT_TIME); in testBackgroundCheckActivityService()
[all …]
DActivityManagerTest.java152 private static final String STUB_PACKAGE_NAME = "android.app.stubs"; field in ActivityManagerTest
385 launchActivity(STUB_PACKAGE_NAME, activityClass, activityOptions);
563 final String TEST_PROCESS = STUB_PACKAGE_NAME;
626 STUB_PACKAGE_NAME, 0);
690 intent.setClassName(STUB_PACKAGE_NAME, STUB_PACKAGE_NAME + "." + crashActivityName);
711 STUB_PACKAGE_NAME + ":" + crashActivityName);
728 STUB_PACKAGE_NAME + ":" + crashActivityName);
1199 final String remoteProcessName = STUB_PACKAGE_NAME + ":remote"; in testKillingPidsOnImperceptible()
1201 remoteIntent.setPackage(STUB_PACKAGE_NAME); in testKillingPidsOnImperceptible()
1301 executeAndLogShellCommand("am kill " + STUB_PACKAGE_NAME); in testKillingPidsOnImperceptible()
[all …]
DActivityManagerFgsDelegateTest.java75 static final String STUB_PACKAGE_NAME = "android.app.stubs"; field in ActivityManagerFgsDelegateTest
805 return String.format("%s/%s", STUB_PACKAGE_NAME, TestNotificationListener.class.getName()); in getNotificationListenerId()
809 return new ComponentName(STUB_PACKAGE_NAME, TestNotificationListener.class.getName()); in getNotificationListenerComponentName()
832 mScreenOnActivity = launchActivity(STUB_PACKAGE_NAME, activityClass, activityOptions); in startSubActivity()
DActivityManagerFgsBgStartTest.java101 static final String STUB_PACKAGE_NAME = "android.app.stubs"; field in ActivityManagerFgsBgStartTest
2447 notificationHelper.enableListener(STUB_PACKAGE_NAME); in testStartMediaPlaybackFromBg()
2467 new ComponentName(STUB_PACKAGE_NAME, TestNotificationListener.class.getName())); in testStartMediaPlaybackFromBg()
2480 notificationHelper.disableListener(STUB_PACKAGE_NAME); in testStartMediaPlaybackFromBg()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DSensitiveNotificationRedactionTest.kt86 PermissionUtils.grantPermission(STUB_PACKAGE_NAME, POST_NOTIFICATIONS) in setUp()
366 mNotificationHelper.disableListener(STUB_PACKAGE_NAME) in testListenerWithCdmAssociationGetsUnredacted()
367 mNotificationHelper.enableListener(STUB_PACKAGE_NAME) in testListenerWithCdmAssociationGetsUnredacted()
387 mNotificationHelper.disableListener(STUB_PACKAGE_NAME) in testListenerWithReceiveSensitiveNotificationsPermissionsGetsUnredacted()
388 mNotificationHelper.enableListener(STUB_PACKAGE_NAME) in testListenerWithReceiveSensitiveNotificationsPermissionsGetsUnredacted()
406 STUB_PACKAGE_NAME in testListenerWithReceiveSensitiveNotificationsAppOpGetsUnredacted()
416 mNotificationHelper.disableListener(STUB_PACKAGE_NAME) in testListenerWithReceiveSensitiveNotificationsAppOpGetsUnredacted()
417 mNotificationHelper.enableListener(STUB_PACKAGE_NAME) in testListenerWithReceiveSensitiveNotificationsAppOpGetsUnredacted()
446 mNotificationHelper.disableAssistant(STUB_PACKAGE_NAME) in testE2ERedaction_shouldRedact()
503 mNotificationHelper.disableAssistant(STUB_PACKAGE_NAME) in testE2ERedaction_shouldNotRedact()
DBaseNotificationManagerTest.java84 static final String STUB_PACKAGE_NAME = "android.app.stubs"; field in BaseNotificationManagerTest
133 mNotificationHelper.disableListener(STUB_PACKAGE_NAME); in baseSetUp()
134 mNotificationHelper.disableAssistant(STUB_PACKAGE_NAME); in baseSetUp()
164 mNotificationHelper.disableListener(STUB_PACKAGE_NAME); in baseTearDown()
165 mNotificationHelper.disableAssistant(STUB_PACKAGE_NAME); in baseTearDown()
200 mListener = mNotificationHelper.enableListener(STUB_PACKAGE_NAME); in setUpNotifListener()
DNotificationManagerTest.java219 private static final String STUB_PACKAGE_NAME = "android.app.stubs"; field in NotificationManagerTest
241 PermissionUtils.grantPermission(STUB_PACKAGE_NAME, POST_NOTIFICATIONS); in setUp()
292 PermissionUtils.revokePermission(STUB_PACKAGE_NAME, POST_NOTIFICATIONS); in tearDown()
490 final int previousState = PermissionUtils.getAppOp(STUB_PACKAGE_NAME, in verifyCanUseFullScreenIntent()
493 PermissionUtils.setAppOp(STUB_PACKAGE_NAME, in verifyCanUseFullScreenIntent()
505 PermissionUtils.setAppOp(STUB_PACKAGE_NAME, in verifyCanUseFullScreenIntent()
514 final boolean isPermissionGranted = PermissionUtils.isPermissionGranted(STUB_PACKAGE_NAME, in testCanSendFullScreenIntent_modeDefault_returnsIsPermissionGranted()
934 mListener = mNotificationHelper.enableListener(STUB_PACKAGE_NAME); in testSuspendPackage()
1194 mListener = mNotificationHelper.enableListener(STUB_PACKAGE_NAME); in testSuspendedPackageSendsNotification()
1244 mListener = mNotificationHelper.enableListener(STUB_PACKAGE_NAME); in testShowBadging_ranking()
[all …]
DNotificationManagerBubbleTest.java89 private static final String STUB_PACKAGE_NAME = "android.app.stubs"; field in NotificationManagerBubbleTest
100 PermissionUtils.grantPermission(STUB_PACKAGE_NAME, POST_NOTIFICATIONS); in setUp()
110 mNotificationHelper.disableListener(STUB_PACKAGE_NAME); in setUp()
131 PermissionUtils.revokePermission(STUB_PACKAGE_NAME, POST_NOTIFICATIONS); in tearDown()
344 mListener = mNotificationHelper.enableListener(STUB_PACKAGE_NAME); in testCanBubble_ranking()
DNotificationManagerZenTest.java191 mListener = mNotificationHelper.enableListener(STUB_PACKAGE_NAME); in setUp()
271 mNotificationHelper.disableListener(STUB_PACKAGE_NAME); in tearDown()
715 mListener = mNotificationHelper.enableListener(STUB_PACKAGE_NAME); in testGetSuppressedVisualEffectsOff_ranking()
741 mListener = mNotificationHelper.enableListener(STUB_PACKAGE_NAME); in testGetSuppressedVisualEffects_ranking()
1748 mListener = mNotificationHelper.enableListener(STUB_PACKAGE_NAME); in testRepeatCallers_repeatCallNotIntercepted_contactAfterPhone()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java220 private static final String STUB_PACKAGE_NAME = "com.android.cts.stub"; field in PackageManagerTest
336 STUB_PACKAGE_NAME, ".StubActivity");
338 STUB_PACKAGE_NAME, ".StubService");
2352 TestUtils.waitUntil("Waiting for the process " + STUB_PACKAGE_NAME in setComponentEnabledSettings_disableSelfAndStubApp_killStubApp()
2599 TestUtils.waitUntil("Waiting for the process " + STUB_PACKAGE_NAME + " to die", in testInstallUpdate_applicationIsKilled()
2621 addSplitDontKill(STUB_PACKAGE_NAME, STUB_PACKAGE_SPLIT); in testInstallUpdate_dontKill_applicationIsNotKilled()
2625 "Waiting for the process " + STUB_PACKAGE_NAME + " to die", in testInstallUpdate_dontKill_applicationIsNotKilled()