Home
last modified time | relevance | path

Searched refs:TEST_APP_NAME (Results 1 – 25 of 59) sorted by relevance

123

/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaplTestsTaskbar.java20 import static com.android.launcher3.util.TestConstants.AppNames.TEST_APP_NAME;
71 getTaskbar().getAppIcon(TEST_APP_NAME).launch(TEST_APP_PACKAGE); in testLaunchApp()
82 getTaskbar().getAppIcon(TEST_APP_NAME).openMenu(); in testOpenMenu()
87 getTaskbar().getAppIcon(TEST_APP_NAME) in testLaunchShortcut()
96 getTaskbar().getAppIcon(TEST_APP_NAME).dragToSplitscreen( in testLaunchAppInSplitscreen()
109 getTaskbar().getAppIcon(TEST_APP_NAME) in testLaunchShortcutInSplitscreen()
117 getTaskbar().openAllApps().getAppIcon(TEST_APP_NAME).launch(TEST_APP_PACKAGE); in testLaunchApp_fromTaskbarAllApps()
122 getTaskbar().openAllApps().getAppIcon(TEST_APP_NAME).openMenu(); in testOpenMenu_fromTaskbarAllApps()
128 .getAppIcon(TEST_APP_NAME) in testLaunchShortcut_fromTaskbarAllApps()
138 .getAppIcon(TEST_APP_NAME) in testLaunchAppInSplitscreen_fromTaskbarAllApps()
[all …]
DTaplTestsTransientTaskbar.java19 import static com.android.launcher3.util.TestConstants.AppNames.TEST_APP_NAME;
40 getTaskbar().getAppIcon(TEST_APP_NAME).launch(TEST_APP_PACKAGE); in testShowTaskbarUnstashHintOnHover()
48 getTaskbar().getAppIcon(TEST_APP_NAME).launch(TEST_APP_PACKAGE); in testUnstashTaskbarOnScreenBottomEdgeHover()
56 getTaskbar().getAppIcon(TEST_APP_NAME).launch(TEST_APP_PACKAGE); in testHoverBelowHintedTaskbarToUnstash()
64 getTaskbar().getAppIcon(TEST_APP_NAME).launch(TEST_APP_PACKAGE); in testClickHoveredTaskbarToGoHome()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/
DConnectedAppFragmentTest.kt55 import com.android.healthconnect.controller.tests.utils.TEST_APP_NAME in <lambda>()
127 TEST_APP_NAME, in <lambda>()
158 EXTRA_PACKAGE_NAME to TEST_APP_PACKAGE_NAME, EXTRA_APP_NAME to TEST_APP_NAME)) in <lambda>()
185 EXTRA_PACKAGE_NAME to TEST_APP_PACKAGE_NAME, EXTRA_APP_NAME to TEST_APP_NAME)) in <lambda>()
214 EXTRA_PACKAGE_NAME to TEST_APP_PACKAGE_NAME, EXTRA_APP_NAME to TEST_APP_NAME)) in <lambda>()
245 EXTRA_PACKAGE_NAME to TEST_APP_PACKAGE_NAME, EXTRA_APP_NAME to TEST_APP_NAME)) in <lambda>()
288 EXTRA_PACKAGE_NAME to TEST_APP_PACKAGE_NAME, EXTRA_APP_NAME to TEST_APP_NAME)) in <lambda>()
318 EXTRA_PACKAGE_NAME to TEST_APP_PACKAGE_NAME, EXTRA_APP_NAME to TEST_APP_NAME)) in <lambda>()
342 bundleOf(EXTRA_PACKAGE_NAME to TEST_APP_PACKAGE_NAME, EXTRA_APP_NAME to TEST_APP_NAME)) in <lambda>()
370 bundleOf(EXTRA_PACKAGE_NAME to TEST_APP_PACKAGE_NAME, EXTRA_APP_NAME to TEST_APP_NAME)) in <lambda>()
[all …]
DMockedConnectedAppFragmentTest.kt36 import com.android.healthconnect.controller.tests.utils.TEST_APP_NAME
93 Constants.EXTRA_APP_NAME to TEST_APP_NAME)) in exerciseRoutesAlwaysAllow_revokeExercise_notLastReadPermission_showsDialog()
103 … "$TEST_APP_NAME requires exercise access in order for exercise routes to be enabled")) in exerciseRoutesAlwaysAllow_revokeExercise_notLastReadPermission_showsDialog()
146 Constants.EXTRA_APP_NAME to TEST_APP_NAME)) in exerciseRoutesAlwaysAllow_revokeExercise_lastReadPermission_showsDialog()
156 … "$TEST_APP_NAME requires exercise access in order for exercise routes to be enabled")) in exerciseRoutesAlwaysAllow_revokeExercise_lastReadPermission_showsDialog()
189 Constants.EXTRA_APP_NAME to TEST_APP_NAME)) in exerciseRoutesAskEveryTime_revokeExercise_lastReadPermission_doesNotShowDialog()
DConnectedAppsFragmentTest.kt54 import com.android.healthconnect.controller.tests.utils.TEST_APP_NAME
125 onView(withText(TEST_APP_NAME)).check(matches(isDisplayed())) in appName_navigatesToManageAppPermissions()
126 onView(withText(TEST_APP_NAME)).perform(click()) in appName_navigatesToManageAppPermissions()
145 onView(withText(TEST_APP_NAME)).check(matches(isDisplayed())) in test_allowedApps()
156 onView(withText(TEST_APP_NAME)).check(matches(isDisplayed())) in test_deniedApps()
228 onView(withText(TEST_APP_NAME)).check(matches(isDisplayed())) in inactiveApp_showsInactiveApps()
241 onView(withText(TEST_APP_NAME)).check(matches(isDisplayed())) in whenClickOnInactiveApp_showsDeleteDataDialog()
245 onView(withText("Permanently delete $TEST_APP_NAME data from all time?")) in whenClickOnInactiveApp_showsDeleteDataDialog()
318 onView(withText(TEST_APP_NAME)).check(matches(isDisplayed())) in test_all()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
DZenModeBehaviorFooterPreferenceControllerTest.java62 private static final String TEST_APP_NAME = "test_app"; field in ZenModeBehaviorFooterPreferenceControllerTest
161 injectedManualRule.enabler = TEST_APP_NAME; in deprecatedZenModeAlarms_appManualRule_setFooterTitle()
162 when(mConfigWrapper.getOwnerCaption(injectedManualRule.enabler)).thenReturn(TEST_APP_NAME); in deprecatedZenModeAlarms_appManualRule_setFooterTitle()
168 com.android.settings.R.string.zen_mode_app_set_behavior, TEST_APP_NAME)); in deprecatedZenModeAlarms_appManualRule_setFooterTitle()
191 injectedManualRule.enabler = TEST_APP_NAME; in deprecatedZenModeNoInterruptions_appManualRule_setFooterTitle()
192 when(mConfigWrapper.getOwnerCaption(injectedManualRule.enabler)).thenReturn(TEST_APP_NAME); in deprecatedZenModeNoInterruptions_appManualRule_setFooterTitle()
198 com.android.settings.R.string.zen_mode_app_set_behavior, TEST_APP_NAME)); in deprecatedZenModeNoInterruptions_appManualRule_setFooterTitle()
210 when(injectedRule.component.getPackageName()).thenReturn(TEST_APP_NAME); in deprecatedZenModeAlarms_automaticRule_setFooterTitle()
218 com.android.settings.R.string.zen_mode_app_set_behavior, TEST_APP_NAME)); in deprecatedZenModeAlarms_automaticRule_setFooterTitle()
230 when(injectedRule.component.getPackageName()).thenReturn(TEST_APP_NAME); in deprecatedZenModeNoInterruptions_automaticRule_setFooterTitle()
[all …]
DZenModeSettingsFooterPreferenceControllerTest.java63 private static final String TEST_APP_NAME = "test_app"; field in ZenModeSettingsFooterPreferenceControllerTest
137 TEST_APP_NAME)); in testDefaultNotifPolicy_app_manualRule_setFooterTitle()
268 injectedManualRule.enabler = TEST_APP_NAME; in injectManualRuleFromApp()
269 when(mConfigWrapper.getOwnerCaption(injectedManualRule.enabler)).thenReturn(TEST_APP_NAME); in injectManualRuleFromApp()
295 when(injectedRule.component.getPackageName()).thenReturn(TEST_APP_NAME); in injectNewAutomaticRule()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/graphicsdriver/
DGraphicsDriverAppPreferenceControllerTest.java64 private static final String TEST_APP_NAME = "testApp"; field in GraphicsDriverAppPreferenceControllerTest
182 mController.createListPreference(mContext, TEST_PKG_NAME, TEST_APP_NAME); in createPreference_configDefault_shouldSetDefaultAttributes()
185 assertThat(preference.getTitle()).isEqualTo(TEST_APP_NAME); in createPreference_configDefault_shouldSetDefaultAttributes()
198 mController.createListPreference(mContext, TEST_PKG_NAME, TEST_APP_NAME); in createPreference_configProduction_DRIVER_shouldSetProductionDriverAttributes()
201 assertThat(preference.getTitle()).isEqualTo(TEST_APP_NAME); in createPreference_configProduction_DRIVER_shouldSetProductionDriverAttributes()
214 mController.createListPreference(mContext, TEST_PKG_NAME, TEST_APP_NAME); in createPreference_configPRERELEASE_DRIVER_shouldSetPrereleaseDriverAttributes()
217 assertThat(preference.getTitle()).isEqualTo(TEST_APP_NAME); in createPreference_configPRERELEASE_DRIVER_shouldSetPrereleaseDriverAttributes()
230 mController.createListPreference(mContext, TEST_PKG_NAME, TEST_APP_NAME); in createPreference_configSystem_shouldSetSystemAttributes()
233 assertThat(preference.getTitle()).isEqualTo(TEST_APP_NAME); in createPreference_configSystem_shouldSetSystemAttributes()
246 mController.createListPreference(mContext, TEST_PKG_NAME, TEST_APP_NAME); in onPreferenceChange_selectDefault_shouldUpdateAttributesAndSettingsGlobal()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/request/
DMedicalPermissionsFragmentTest.kt49 import com.android.healthconnect.controller.tests.utils.TEST_APP_NAME in <lambda>()
97 TEST_APP_NAME, in <lambda>()
125 onView(withText("Allow $TEST_APP_NAME to access Health Connect?")) in <lambda>()
133 … "You can learn how $TEST_APP_NAME handles your data in the developer's privacy policy")) in <lambda>()
139 hasDescendant(withText("Allow \u201C$TEST_APP_NAME\u201D to read")))) in <lambda>()
141 onView(withText("Allow \u201C$TEST_APP_NAME\u201D to read")).check(matches(isDisplayed())) in <lambda>()
146 hasDescendant(withText("Allow \u201C$TEST_APP_NAME\u201D to write")))) in <lambda>()
148 onView(withText("Allow \u201C$TEST_APP_NAME\u201D to write")).check(matches(isDisplayed())) in <lambda>()
168 onView(withText("Allow $TEST_APP_NAME to access Health Connect?")) in <lambda>()
176 … "You can learn how $TEST_APP_NAME handles your data in the developer's privacy policy")) in <lambda>()
[all …]
DFitnessPermissionsFragmentTest.kt49 import com.android.healthconnect.controller.tests.utils.TEST_APP_NAME in <lambda>()
93 TEST_APP_NAME, in <lambda>()
121 onView(withText("Allow $TEST_APP_NAME to access Health Connect?")) in <lambda>()
131 … "You can learn how $TEST_APP_NAME handles your data in the developer's privacy policy")) in <lambda>()
137 hasDescendant(withText("Allow \u201C$TEST_APP_NAME\u201D to read")))) in <lambda>()
139 onView(withText("Allow \u201C$TEST_APP_NAME\u201D to read")).check(matches(isDisplayed())) in <lambda>()
144 hasDescendant(withText("Allow \u201C$TEST_APP_NAME\u201D to write")))) in <lambda>()
146 onView(withText("Allow \u201C$TEST_APP_NAME\u201D to write")).check(matches(isDisplayed())) in <lambda>()
167 onView(withText("Allow $TEST_APP_NAME to access Health Connect?")) in <lambda>()
175 … "You can learn how $TEST_APP_NAME handles your data in the developer's privacy policy")) in <lambda>()
DAdditionalPermissionsFragmentTest.kt36 import com.android.healthconnect.controller.tests.utils.TEST_APP_NAME
98 AppMetadata(TEST_APP_PACKAGE_NAME, TEST_APP_NAME, null))) in displaysCombinedAdditionalPermissions()
103 onView(withText("Allow additional access for $TEST_APP_NAME?")) in displaysCombinedAdditionalPermissions()
140 AppMetadata(TEST_APP_PACKAGE_NAME, TEST_APP_NAME, null))) in displaysBackgroundReadPermission()
145 onView(withText("Allow $TEST_APP_NAME to access data in the background?")) in displaysBackgroundReadPermission()
170 AppMetadata(TEST_APP_PACKAGE_NAME, TEST_APP_NAME, null))) in displaysHistoryReadPermission()
175 onView(withText("Allow $TEST_APP_NAME to access past data?")).check(matches(isDisplayed())) in displaysHistoryReadPermission()
201 AppMetadata(TEST_APP_PACKAGE_NAME, TEST_APP_NAME, null))) in toggleOn_updatesAdditionalPermission()
225 AppMetadata(TEST_APP_PACKAGE_NAME, TEST_APP_NAME, null))) in toggleOff_updatesAdditionalPermission()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DMenstruationPeriodFormatterTest.kt29 import com.android.healthconnect.controller.tests.utils.TEST_APP_NAME
73 header = TEST_APP_NAME, in <lambda>()
74 headerA11y = TEST_APP_NAME, in <lambda>()
92 header = TEST_APP_NAME, in format_lastDay_formatsMenstruationPeriod()
93 headerA11y = TEST_APP_NAME, in format_lastDay_formatsMenstruationPeriod()
/packages/apps/Launcher3/tests/src/com/android/launcher3/appiconmenu/
DTaplAppIconMenuTest.java18 import static com.android.launcher3.util.TestConstants.AppNames.TEST_APP_NAME;
59 final AppIconMenu menu = allApps.getAppIcon(TEST_APP_NAME).openDeepShortcutMenu(); in testLaunchMenuItem()
84 allApps.getAppIcon(TEST_APP_NAME).dragToWorkspace(false, false); in testLaunchHomeScreenMenuItem()
86 TEST_APP_NAME).openDeepShortcutMenu(); in testLaunchHomeScreenMenuItem()
/packages/apps/Launcher3/tests/src/com/android/launcher3/dragging/
DTaplDragTest.java23 import static com.android.launcher3.util.TestConstants.AppNames.TEST_APP_NAME;
127 .getAppIcon(TEST_APP_NAME) in testDragShortcut()
156 allApps.getAppIcon(TEST_APP_NAME) in testDragShortcutToMultipleWorkspaceCells()
204 allApps.getAppIcon(TEST_APP_NAME).dragToWorkspace(false, false); in testDragAppIcon()
205 mLauncher.getWorkspace().getWorkspaceAppIcon(TEST_APP_NAME).launch(getAppPackageName()); in testDragAppIcon()
228 final HomeAppIcon launcherTestAppIcon = createShortcutInCenterIfNotExist(TEST_APP_NAME); in testDragAppIconToMultipleWorkspaceCells()
DTaplUninstallRemoveTest.java24 import static com.android.launcher3.util.TestConstants.AppNames.TEST_APP_NAME;
64 for (String appName : new String[]{GMAIL_APP_NAME, STORE_APP_NAME, TEST_APP_NAME}) { in testDeleteFromWorkspace()
186 .getAppIcon(TEST_APP_NAME) in testAddDeleteShortcutOnHotseat()
189 mLauncher.getWorkspace().getHotseatAppIcon(TEST_APP_NAME)); in testAddDeleteShortcutOnHotseat()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/appdata/
DAppDataFragmentTest.kt36 import com.android.healthconnect.controller.tests.utils.TEST_APP_NAME
62 TEST_APP_NAME, in setup()
75 Constants.EXTRA_APP_NAME to TEST_APP_NAME)) in allDataFragment_noData_noDataMessageDisplayed()
104 Constants.EXTRA_APP_NAME to TEST_APP_NAME)) in appDataFragment_dataPresent_populatedDataTypesDisplayed()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/classifier/
DClassifierInputManagerTest.java62 private static final String TEST_APP_NAME = "Name for App"; field in ClassifierInputManagerTest
134 doReturn(TEST_APP_NAME).when(mAppResources).getString(anyInt()); in testGetClassifierInput_appName()
143 assertThat(classifierInput).isEqualTo(TEST_APP_NAME); in testGetClassifierInput_appName()
163 doReturn(TEST_APP_NAME, TEST_APP_DESCRIPTION).when(mAppResources).getString(anyInt()); in testGetClassifierInput_multipleFields()
183 TEST_APP_NAME, in testGetClassifierInput_multipleFields()
/packages/modules/AdServices/adservices/apk/tests/settings/src/com/android/adservices/ui/settings/
DAppConsentSettingsUiAutomatorTest.java54 private static final String TEST_APP_NAME = "com.example.adservices.samples.ui.consenttestapp"; field in AppConsentSettingsUiAutomatorTest
56 "/data/local/tmp/cts/install/" + TEST_APP_NAME + ".apk";
57 private static final String TEST_APP_ACTIVITY_NAME = TEST_APP_NAME + ".MainActivity";
59 new ComponentName(TEST_APP_NAME, TEST_APP_ACTIVITY_NAME);
91 ShellUtils.runShellCommand("pm uninstall --user 0 " + TEST_APP_NAME); in teardown()
330 sDevice.wait(Until.hasObject(By.pkg(TEST_APP_NAME).depth(0)), LAUNCH_TIMEOUT); in initiateTestAppConsent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/defaultapps/
DDefaultAppPreferenceControllerTest.java47 private static final String TEST_APP_NAME = "test"; field in DefaultAppPreferenceControllerTest
70 when(mController.mAppInfo.loadLabel()).thenReturn(TEST_APP_NAME); in updateState_hasDefaultApp_shouldUpdateAppName()
74 verify(mPreference).setSummary(TEST_APP_NAME); in updateState_hasDefaultApp_shouldUpdateAppName()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/deletion/
DDeletionFragmentTest.kt42 import com.android.healthconnect.controller.tests.utils.TEST_APP_NAME
166 packageName = TEST_APP_PACKAGE_NAME, appName = TEST_APP_NAME) in deleteAppData_timeRangeDialog_showsCorrectText()
182 … "This permanently deletes $TEST_APP_NAME data added to Health\u00A0Connect in the chosen" + in deleteAppData_timeRangeDialog_showsCorrectText()
606 packageName = TEST_APP_PACKAGE_NAME, appName = TEST_APP_NAME) in deleteAppData_confirmationDialogForOneDay_showsCorrectText()
626 onView(withText("Permanently delete $TEST_APP_NAME data from the last 24 hours?")) in deleteAppData_confirmationDialogForOneDay_showsCorrectText()
641 packageName = TEST_APP_PACKAGE_NAME, appName = TEST_APP_NAME) in deleteAppData_confirmationDialogForOneWeek_showsCorrectText()
660 onView(withText("Permanently delete $TEST_APP_NAME data from the last 7 days?")) in deleteAppData_confirmationDialogForOneWeek_showsCorrectText()
675 packageName = TEST_APP_PACKAGE_NAME, appName = TEST_APP_NAME) in deleteAppData_confirmationDialogForOneMonth_showsCorrectText()
695 onView(withText("Permanently delete $TEST_APP_NAME data from the last 30 days?")) in deleteAppData_confirmationDialogForOneMonth_showsCorrectText()
710 packageName = TEST_APP_PACKAGE_NAME, appName = TEST_APP_NAME) in deleteAppData_confirmationDialogForAllTime_showsCorrectText()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/entries/api/
DLoadDataAggregationsUseCaseTest.kt24 import com.android.healthconnect.controller.tests.utils.TEST_APP_NAME in <lambda>()
99 FormattedEntry.FormattedAggregation("100 steps", "100 steps", TEST_APP_NAME) in <lambda>()
121 val expected = FormattedEntry.FormattedAggregation("1 km", "1 kilometer", TEST_APP_NAME) in <lambda>()
144 FormattedEntry.FormattedAggregation("1,500 Cal", "1,500 calories", TEST_APP_NAME) in <lambda>()
167 FormattedEntry.FormattedAggregation("11h 5m", "11 hours 5 minutes", TEST_APP_NAME) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/settings/
DSettingsManageAppPermissionsFragmentTest.kt54 import com.android.healthconnect.controller.tests.utils.TEST_APP_NAME in <lambda>()
123 TEST_APP_NAME, in <lambda>()
287 "$TEST_APP_NAME can read data added after October 20, 2022" + in <lambda>()
289 "Data you share with $TEST_APP_NAME is covered by their privacy policy")) in <lambda>()
315 "$TEST_APP_NAME can read data added after October 20, 2022" + in <lambda>()
317 "Data you share with $TEST_APP_NAME is covered by their privacy policy")) in <lambda>()
344 "$TEST_APP_NAME can read data added after October 20, 2022" + in <lambda>()
346 "Data you share with $TEST_APP_NAME is covered by their privacy policy")) in <lambda>()
449 …nect is ready to be integrated with your Android system. If you give $TEST_APP_NAME access now, so… in <lambda>()
500 …u'll get a notification when the process is complete and you can use $TEST_APP_NAME with Health Co… in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/selectabledeletion/
DDeletionTypeTest.kt7 import com.android.healthconnect.controller.tests.utils.TEST_APP_NAME
40 packageName = TEST_APP_PACKAGE_NAME, appName = TEST_APP_NAME) in deletionTypeAppData_isParcelable()
84 appName = TEST_APP_NAME) in deletionTypeHealthPermissionTypesFromApp_isParcelable()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/
DDataSourcesFragmentTest.kt48 import com.android.healthconnect.controller.tests.utils.TEST_APP_NAME in <lambda>()
188 hasDescendant(withText("1")), hasDescendant(withText(TEST_APP_NAME)))))) in <lambda>()
255 hasDescendant(withText("1")), hasDescendant(withText(TEST_APP_NAME)))))) in <lambda>()
360 hasDescendant(withText("1")), hasDescendant(withText(TEST_APP_NAME)))))) in <lambda>()
427 hasDescendant(withText("1")), hasDescendant(withText(TEST_APP_NAME)))))) in <lambda>()
494 hasDescendant(withText("1")), hasDescendant(withText(TEST_APP_NAME)))))) in <lambda>()
564 hasDescendant(withText("1")), hasDescendant(withText(TEST_APP_NAME)))))) in <lambda>()
611 hasDescendant(withText(TEST_APP_NAME)), in <lambda>()
699 hasDescendant(withText(TEST_APP_NAME)), in <lambda>()
746 hasDescendant(withText(TEST_APP_NAME)), in <lambda>()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DBluetoothDashboardFragmentTest.java31 private static final String TEST_APP_NAME = "com.testapp.settings"; field in BluetoothDashboardFragmentTest
44 assertThat(mFragment.isAlwaysDiscoverable(TEST_APP_NAME, TEST_ACTION)).isFalse(); in isAlwaysDiscoverable_callingAppIsNotFromSystemApp_returnsFalse()

123