Home
last modified time | relevance | path

Searched refs:TEST_APP_PACKAGE (Results 1 – 25 of 52) sorted by relevance

123

/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerShellCommandMultiUserTest.kt95 private const val TEST_APP_PACKAGE = PackageManagerShellCommandInstallTest.TEST_APP_PACKAGE constant
176 uninstallPackageSilently(TEST_APP_PACKAGE) in setup()
177 assertFalse(PackageManagerShellCommandInstallTest.isAppInstalled(TEST_APP_PACKAGE)) in setup()
192 uninstallPackageSilently(TEST_APP_PACKAGE) in reset()
193 assertFalse(PackageManagerShellCommandInstallTest.isAppInstalled(TEST_APP_PACKAGE)) in reset()
194 assertEquals(null, PackageManagerShellCommandInstallTest.getSplits(TEST_APP_PACKAGE)) in reset()
211 assertTrue(isAppInstalledForUser(TEST_APP_PACKAGE, primaryUser)) in testGetFirstInstallTime()
213 getFirstInstallTimeAsUser(TEST_APP_PACKAGE, primaryUser) in testGetFirstInstallTime()
222 getFirstInstallTimeAsUser(TEST_APP_PACKAGE, primaryUser) in testGetFirstInstallTime()
231 assertTrue(isAppInstalledForUser(TEST_APP_PACKAGE, secondaryUser)) in testGetFirstInstallTime()
[all …]
DPackageManagerShellCommandInstallTest.java135 static final String TEST_APP_PACKAGE = "com.example.helloworld"; field in PackageManagerShellCommandInstallTest
329 uninstallPackageSilently(TEST_APP_PACKAGE); in onBefore()
349 uninstallPackageSilently(TEST_APP_PACKAGE); in onAfterClass()
375 assertTrue(isAppInstalled(TEST_APP_PACKAGE)); in testAppInstall()
392 String result = executeShellCommand("pm uninstall --user 999 " + TEST_APP_PACKAGE); in testAppUnInstallInvalidUser()
403 assertFalse(isAppInstalled(TEST_APP_PACKAGE)); in testAppInstallErr()
409 assertTrue(isAppInstalled(TEST_APP_PACKAGE)); in testAppInstallStdIn()
423 assertFalse(isAppInstalled(TEST_APP_PACKAGE)); in testAppInstallStdInErr()
430 assertTrue(isAppInstalled(TEST_APP_PACKAGE)); in testGetPackageStorageStats()
436 TEST_APP_PACKAGE, android.os.Process.myUserHandle()); in testGetPackageStorageStats()
[all …]
DPackageManagerShellCommandIncrementalTest.java108 private static final String TEST_APP_PACKAGE = "com.example.helloworld"; field in PackageManagerShellCommandIncrementalTest
160 uninstallPackageSilently(TEST_APP_PACKAGE); in onBefore()
165 uninstallPackageSilently(TEST_APP_PACKAGE); in onAfter()
209 assertTrue(isAppInstalled(TEST_APP_PACKAGE)); in testInstallWithIdSig()
216 assertTrue(isAppInstalled(TEST_APP_PACKAGE)); in testBug183952694Fixed()
231 assertTrue(isAppInstalled(TEST_APP_PACKAGE)); in testBug270117845Fixed()
291 assertTrue(isAppInstalled(TEST_APP_PACKAGE)); in testSpaceAllocatedForPackage()
297 String installPath = executeShellCommand(String.format("pm path %s", TEST_APP_PACKAGE)) in testSpaceAllocatedForPackage()
316 assertTrue(isAppInstalled(TEST_APP_PACKAGE)); in testSplitInstallWithIdSig()
320 assertEquals("base, config.mdpi", getSplits(TEST_APP_PACKAGE)); in testSplitInstallWithIdSig()
[all …]
/cts/hostsidetests/usage/src/android/app/usage/cts/
DAppIdleHostTest.java37 private static final String TEST_APP_PACKAGE = "android.app.usage.app"; field in AppIdleHostTest
77 TEST_APP_PACKAGE, TEST_APP_PACKAGE, TEST_APP_CLASS)); in startAndStopTestApp()
93 assertFalse(isAppIdle(TEST_APP_PACKAGE)); in testAppIsNotIdleAfterBeingLaunched()
121 setAppStandbyBucket(TEST_APP_PACKAGE, SB_ACTIVE); in testSetAppStandbyBucket()
122 assertEquals(SB_ACTIVE, getAppStandbyBucket(TEST_APP_PACKAGE)); in testSetAppStandbyBucket()
124 setAppStandbyBucket(TEST_APP_PACKAGE, 20); in testSetAppStandbyBucket()
125 assertEquals(20, getAppStandbyBucket(TEST_APP_PACKAGE)); in testSetAppStandbyBucket()
133 TEST_APP_PACKAGE, SB_FREQUENT, TEST_APP_PACKAGE2, SB_WORKING_SET); in testSetAppStandbyBuckets()
135 assertEquals(SB_FREQUENT, getAppStandbyBucket(TEST_APP_PACKAGE)); in testSetAppStandbyBuckets()
149 setAppStandbyBucket(TEST_APP_PACKAGE, SB_ACTIVE); in testOutOfBoundsStandbyBucket()
[all …]
/cts/hostsidetests/cpptools/src/com/android/cts/cpptools/
DRunasPermissionsTest.java30 private static final String TEST_APP_PACKAGE = "com.android.cts.domainsocketapp"; field in RunasPermissionsTest
34 TEST_APP_PACKAGE, TEST_APP_PACKAGE, TEST_APP_CLASS);
54 TEST_APP_PACKAGE, currentUser, CONNECTOR_EXE_NAME)); in testRunasCanConnectToAppsSocket()
57 TEST_APP_PACKAGE, currentUser, CONNECTOR_EXE_NAME)); in testRunasCanConnectToAppsSocket()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTestAppInterface.java78 static final String TEST_APP_PACKAGE = "android.jobscheduler.cts.jobtestapp"; field in TestAppInterface
79 private static final String TEST_APP_ACTIVITY = TEST_APP_PACKAGE + ".TestActivity";
80 private static final String TEST_APP_FGS = TEST_APP_PACKAGE + ".TestFgsService";
81 static final String TEST_APP_RECEIVER = TEST_APP_PACKAGE + ".TestJobSchedulerReceiver";
97 mTestPackageUid = mContext.getPackageManager().getPackageUid(TEST_APP_PACKAGE, 0); in TestAppInterface()
108 "am compat enable --no-kill ALLOW_TEST_API_ACCESS " + TEST_APP_PACKAGE); in TestAppInterface()
113 + TEST_APP_PACKAGE); in TestAppInterface()
115 SystemUtil.runShellCommand("am set-standby-bucket " + TEST_APP_PACKAGE + " rare"); in TestAppInterface()
118 SystemUtil.runShellCommand("cmd deviceidle whitelist -" + TEST_APP_PACKAGE); in TestAppInterface()
131 cancelJobsIntent.setComponent(new ComponentName(TEST_APP_PACKAGE, TEST_APP_RECEIVER)); in cleanup()
[all …]
DNotificationTest.java20 import static android.jobscheduler.cts.TestAppInterface.TEST_APP_PACKAGE;
160 mContext, TestAppInterface.TEST_APP_PACKAGE)) { in testNotificationRemovedOnForceStop() argument
190 mContext, TestAppInterface.TEST_APP_PACKAGE)) { in testNotificationRemovedOnPackageRestriction() argument
216 mContext.getPackageManager().getApplicationInfo(TEST_APP_PACKAGE, 0); in testNotificationRemovedOnPackageRestriction()
239 mContext, TestAppInterface.TEST_APP_PACKAGE)) { in testNotificationRemovedOnTaskManagerStop() argument
274 TEST_APP_PACKAGE); in testNotification_userInitiated_anrWhenNotProvided() argument
276 new TestNotificationListener.NotificationHelper(mContext, TEST_APP_PACKAGE)) { in testNotification_userInitiated_anrWhenNotProvided()
304 TEST_APP_PACKAGE); in testNotification_userInitiated_noAnrWhenProvided() argument
306 new TestNotificationListener.NotificationHelper(mContext, TEST_APP_PACKAGE)) { in testNotification_userInitiated_noAnrWhenProvided()
334 TEST_APP_PACKAGE); in testNotification_regular_noAnrWhenNotProvided() argument
[all …]
DExpeditedJobTest.java21 import static android.jobscheduler.cts.TestAppInterface.TEST_APP_PACKAGE;
65 AppOpsUtils.setOpMode(TEST_APP_PACKAGE, APP_OP_GET_USAGE_STATS, in setUp()
74 AppOpsUtils.reset(TEST_APP_PACKAGE); in tearDown()
DUserInitiatedJobTest.java22 import static android.jobscheduler.cts.TestAppInterface.TEST_APP_PACKAGE;
136 mContext, TestAppInterface.TEST_APP_PACKAGE)) { in testJobUidState() argument
198 mContext, TEST_APP_PACKAGE)) { in testRestrictedBalToTop() argument
216 mContext.getPackageManager().getApplicationInfo(TEST_APP_PACKAGE, 0); in testRestrictedBalToTop()
222 + " -r " + TEST_APP_PACKAGE); in testRestrictedBalToTop()
244 mContext, TEST_APP_PACKAGE)) { in testRestrictedToggling() argument
264 + " -r " + TEST_APP_PACKAGE); in testRestrictedToggling()
293 mContext.getPackageManager().getApplicationInfo(TEST_APP_PACKAGE, 0); in testRestrictedTopToBg()
316 mContext, TEST_APP_PACKAGE)) { in testRestrictedUidState() argument
346 mContext, TestAppInterface.TEST_APP_PACKAGE)) { in testSchedulingBal() argument
/cts/hostsidetests/backup/src/android/cts/backup/
DPreservedSettingsRestoreHostSideTest.java37 private static final String TEST_APP_PACKAGE = "android.cts.backup.preservedsettingsapp"; field in PreservedSettingsRestoreHostSideTest
38 private static final String TEST_APP_CLASS = TEST_APP_PACKAGE + ".PreservedSettingsRestoreTest";
50 uninstallPackage(TEST_APP_PACKAGE); in tearDown()
74 runDeviceTests(TEST_APP_PACKAGE, TEST_APP_CLASS, procedure); in runDeviceSideProcedure()
/cts/tests/framework/base/locale/util/src/android/localemanager/cts/util/
DLocaleConstants.java37 public static final String TEST_APP_PACKAGE = "android.localemanager.cts.app"; field in LocaleConstants
45 public static final ComponentName TEST_APP_MAIN_ACTIVITY = new ComponentName(TEST_APP_PACKAGE,
46 TEST_APP_PACKAGE + ".MainActivity");
69 public static final String TEST_APP_BROADCAST_RECEIVER = TEST_APP_PACKAGE
/cts/tests/framework/base/locale/src/android/localemanager/cts/
DLocaleManagerOverrideLocaleConfigTest.java23 import static android.localemanager.cts.util.LocaleConstants.TEST_APP_PACKAGE;
91 sTestAppContext = sContext.createPackageContext(TEST_APP_PACKAGE, 0); in setUp()
156 assertReceivedBroadcastContains(mTestAppCreationInfoProvider, TEST_APP_PACKAGE, in testGetOverrideLocaleConfig_getOverrideFromTestApp_returnCorrectLocaleConfig()
170 () -> sLocaleManager.setApplicationLocales(TEST_APP_PACKAGE, in testSetOverrideLocaleConfig_appLocalesNotInOverrideLocaleConfig_clearAppLocales()
174 assertLocalesCorrectlySetForAnotherApp(TEST_APP_PACKAGE, in testSetOverrideLocaleConfig_appLocalesNotInOverrideLocaleConfig_clearAppLocales()
183 assertLocalesCorrectlySetForAnotherApp(TEST_APP_PACKAGE, in testSetOverrideLocaleConfig_appLocalesNotInOverrideLocaleConfig_clearAppLocales()
202 () -> sLocaleManager.setApplicationLocales(TEST_APP_PACKAGE, in testSetOverrideLocaleConfig_appLocalesNotInAppLocaleConfig_clearAppLocales()
206 assertLocalesCorrectlySetForAnotherApp(TEST_APP_PACKAGE, in testSetOverrideLocaleConfig_appLocalesNotInAppLocaleConfig_clearAppLocales()
212 assertLocalesCorrectlySetForAnotherApp(TEST_APP_PACKAGE, in testSetOverrideLocaleConfig_appLocalesNotInAppLocaleConfig_clearAppLocales()
230 () -> sLocaleManager.setApplicationLocales(TEST_APP_PACKAGE, in testSetOverrideLocaleConfig_appLocalesInAppLocaleConfig_keepAppLocales()
[all …]
DLocaleManagerTests.java39 import static android.localemanager.cts.util.LocaleConstants.TEST_APP_PACKAGE;
183 setInstallerForPackage(TEST_APP_PACKAGE); in setUp()
185 bindToBroadcastReceiverOfApp(TEST_APP_PACKAGE, TEST_APP_BROADCAST_RECEIVER); in setUp()
351 sLocaleManager.setApplicationLocales(TEST_APP_PACKAGE, DEFAULT_APP_LOCALES), in testSetApplicationLocales_forAnotherAppInForeground_persistsAndSendsBroadcast()
353 assertLocalesCorrectlySetForAnotherApp(TEST_APP_PACKAGE, DEFAULT_APP_LOCALES); in testSetApplicationLocales_forAnotherAppInForeground_persistsAndSendsBroadcast()
356 assertReceivedBroadcastContains(mTestAppBroadcastInfoProvider, TEST_APP_PACKAGE, in testSetApplicationLocales_forAnotherAppInForeground_persistsAndSendsBroadcast()
360 assertReceivedBroadcastContains(mInstallerBroadcastInfoProvider, TEST_APP_PACKAGE, in testSetApplicationLocales_forAnotherAppInForeground_persistsAndSendsBroadcast()
374 sLocaleManager.setApplicationLocales(TEST_APP_PACKAGE, DEFAULT_APP_LOCALES), in testSetApplicationLocales_forAnotherAppInBackground_persistsAndSendsBroadcast()
377 assertLocalesCorrectlySetForAnotherApp(TEST_APP_PACKAGE, DEFAULT_APP_LOCALES); in testSetApplicationLocales_forAnotherAppInBackground_persistsAndSendsBroadcast()
380 assertReceivedBroadcastContains(mTestAppBroadcastInfoProvider, TEST_APP_PACKAGE, in testSetApplicationLocales_forAnotherAppInBackground_persistsAndSendsBroadcast()
[all …]
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DExactAlarmsTest.java112 private static final String TEST_APP_PACKAGE = "android.alarmmanager.alarmtestapp.cts"; field in ExactAlarmsTest
119 private final ComponentName mPermissionChangeReceiver = new ComponentName(TEST_APP_PACKAGE,
152 Utils.enableChange(AlarmManager.SCHEDULE_EXACT_ALARM_DENIED_BY_DEFAULT, TEST_APP_PACKAGE, in enableChanges()
160 Utils.resetChange(AlarmManager.SCHEDULE_EXACT_ALARM_DENIED_BY_DEFAULT, TEST_APP_PACKAGE); in resetChanges()
166 removeFromWhitelists(TEST_APP_PACKAGE); in removeFromWhitelists()
191 AppOpsUtils.reset(TEST_APP_PACKAGE); in resetAppOps()
218 setAppOp(TEST_APP_PACKAGE, AppOpsManager.MODE_DEFAULT); in noPermissionByDefault()
219 assertFalse(getCanScheduleExactAlarmFromTestApp(TEST_APP_PACKAGE)); in noPermissionByDefault()
224 revokeAppOp(TEST_APP_PACKAGE); in noPermissionWhenIgnored()
225 assertFalse(getCanScheduleExactAlarmFromTestApp(TEST_APP_PACKAGE)); in noPermissionWhenIgnored()
[all …]
DBackgroundRestrictedAlarmsTest.java69 private static final String TEST_APP_PACKAGE = "android.alarmmanager.alarmtestapp.cts"; field in BackgroundRestrictedAlarmsTest
70 private static final String TEST_APP_RECEIVER = TEST_APP_PACKAGE + ".TestAlarmScheduler";
104 mAlarmScheduler = new ComponentName(TEST_APP_PACKAGE, TEST_APP_RECEIVER); in setUp()
117 AppOpsUtils.setOpMode(TEST_APP_PACKAGE, OPSTR_RUN_ANY_IN_BACKGROUND, MODE_IGNORED); in setUp()
158 AppOpsUtils.setOpMode(TEST_APP_PACKAGE, OPSTR_RUN_ANY_IN_BACKGROUND, MODE_ALLOWED); in testRepeatingAlarmBlocked()
193 AppOpsUtils.setUidMode(Utils.getPackageUid(TEST_APP_PACKAGE), OPSTR_SCHEDULE_EXACT_ALARM, in testAlarmClockNotBlocked()
210 AppOpsUtils.reset(TEST_APP_PACKAGE); in tearDown()
235 SystemUtil.runShellCommand("am set-standby-bucket " + TEST_APP_PACKAGE + " " + bucket); in setAppStandbyBucket()
239 SystemUtil.runShellCommand("cmd deviceidle tempwhitelist -r " + TEST_APP_PACKAGE); in makeUidIdle()
240 SystemUtil.runShellCommand("am make-uid-idle " + TEST_APP_PACKAGE); in makeUidIdle()
DAppStandbyTests.java72 static final String TEST_APP_PACKAGE = "android.alarmmanager.alarmtestapp.cts"; field in AppStandbyTests
73 private static final String TEST_APP_RECEIVER = TEST_APP_PACKAGE + ".TestAlarmScheduler";
138 mAlarmScheduler = new ComponentName(TEST_APP_PACKAGE, TEST_APP_RECEIVER); in setUp()
142 AppOpsUtils.setUidMode(Utils.getPackageUid(TEST_APP_PACKAGE), OPSTR_SCHEDULE_EXACT_ALARM, in setUp()
284 cmd.append(TEST_APP_PACKAGE); in setPowerAllowlisted()
289 executeAndLog("am set-standby-bucket " + TEST_APP_PACKAGE + " " + bucket); in setTestAppStandbyBucket()
/cts/hostsidetests/os/src/android/os/cts/
DOsHostTests.java40 private static final String TEST_APP_PACKAGE = "android.os.app"; field in OsHostTests
45 TEST_APP_PACKAGE, TEST_APP_PACKAGE, TEST_NON_EXPORTED_ACTIVITY_CLASS);
50 TEST_APP_PACKAGE, TEST_APP_PACKAGE, TEST_FG_SERVICE_CLASS);
DProcfsHostTests.java35 private static final String TEST_APP_PACKAGE = "android.os.procfs"; field in ProcfsHostTests
41 TEST_APP_PACKAGE, TEST_APP_PACKAGE, TEST_APP_CLASS);
166 mDevice.uninstallPackage(TEST_APP_PACKAGE); in startTestApp()
/cts/hostsidetests/input/src/android/input/cts/hostside/
DInputAtomsTest.kt55 const val TEST_APP_PACKAGE = "android.input.cts.hostside.app" constant
56 const val EMULATE_INPUT_DEVICE_CLASS = "$TEST_APP_PACKAGE.EmulateInputDevice"
89 TEST_APP_PACKAGE, in testInputDeviceUsageAtom()
167 TEST_APP_PACKAGE, in testTouchpadUsageAtom_FingerAndPalmCounts()
188 TEST_APP_PACKAGE, in testTouchpadUsageAtom_TwoFingerSwipeCount()
208 TEST_APP_PACKAGE, in testTouchpadUsageAtom_ThreeFingerSwipeCount()
228 TEST_APP_PACKAGE, in testTouchpadUsageAtom_FourFingerSwipeCount()
248 TEST_APP_PACKAGE, in testTouchpadUsageAtom_PinchCount()
283 TEST_APP_PACKAGE, in testKeyboardConfiguredAtom()
321 TEST_APP_PACKAGE, in testKeyboardSystemEventsAtom()
/cts/tests/framework/base/locale/TestApp/src/android/localemanager/cts/app/
DMainActivity.java25 import static android.localemanager.cts.util.LocaleConstants.TEST_APP_PACKAGE;
78 TEST_APP_PACKAGE, locales)); in onCreate()
101 TEST_APP_PACKAGE, localeConfig.getSupportedLocales())); in onCreate()
124 TEST_APP_PACKAGE, locales)); in onConfigurationChanged()
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceActivityLegacyFlowTest.java49 static final String TEST_APP_PACKAGE = "android.preference.cts"; field in PreferenceActivityLegacyFlowTest
50 private static final String TEST_APP_ACTIVITY = TEST_APP_PACKAGE + ".PreferencesFromXml";
92 ComponentName testComponentName = new ComponentName(TEST_APP_PACKAGE, TEST_APP_ACTIVITY); in recreate()
/cts/hostsidetests/securitybulletin/test-apps/BUG-183410508/src/android/security/cts/BUG_183410508/
DDeviceTest.java22 import static android.security.cts.BUG_183410508.Constants.TEST_APP_PACKAGE;
101 TEST_APP_PACKAGE); in launchTestApp()
106 UiObject2 view = waitForView(By.pkg(TEST_APP_PACKAGE).depth(0)); in launchTestApp()
114 Uri uri = Uri.fromParts("package", TEST_APP_PACKAGE, /* fragment= */ null); in launchTapjackedActivity()
/cts/hostsidetests/securitybulletin/test-apps/BUG-183963253/src/android/security/cts/BUG_183963253/
DDeviceTest.java98 Constants.TEST_APP_PACKAGE); in launchTestApp()
103 UiObject2 view = waitForView(By.pkg(Constants.TEST_APP_PACKAGE).depth(0)); in launchTestApp()
114 UiObject2 view = waitForView(By.text(Constants.TEST_APP_PACKAGE)); in launchTapjackedActivity()
DConstants.java22 public static final String TEST_APP_PACKAGE = Constants.class.getPackage().getName(); field in Constants
/cts/hostsidetests/securitybulletin/test-apps/BUG-183613671/src/android/security/cts/BUG_183613671/
DConstants.java22 public static final String TEST_APP_PACKAGE = Constants.class.getPackage().getName(); field in Constants

123