Home
last modified time | relevance | path

Searched refs:appNames (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceController.java139 CharSequence[] appNames = new String[apps.size()]; in buildSummaryString() local
141 appNames[i] = apps.get(i).loadLabel(mPm); in buildSummaryString()
145 return appNames[0]; in buildSummaryString()
147 return context.getString(R.string.app_names_concatenation_template_2, appNames[0], in buildSummaryString()
148 appNames[1]); in buildSummaryString()
150 return context.getString(R.string.app_names_concatenation_template_3, appNames[0], in buildSummaryString()
151 appNames[1], appNames[2]); in buildSummaryString()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceControllerTest.java305 private CharSequence getSummary(CharSequence[] appNames) { in getSummary() argument
306 switch (appNames.length) { in getSummary()
308 return appNames[0]; in getSummary()
311 appNames[0], appNames[1]); in getSummary()
314 appNames[0], appNames[1], appNames[2]); in getSummary()
319 String... appNames) { in setEnterpriseSetDefaultApps() argument
321 int size = appNames.length; in setEnterpriseSetDefaultApps()
324 String appName = appNames[i]; in setEnterpriseSetDefaultApps()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceController.java174 final CharSequence[] appNames = new String[apps.size()]; in buildSummaryString() local
176 appNames[i] = apps.get(i).loadLabel(mPm); in buildSummaryString()
179 return appNames[0]; in buildSummaryString()
181 return context.getString(R.string.app_names_concatenation_template_2, appNames[0], in buildSummaryString()
182 appNames[1]); in buildSummaryString()
184 return context.getString(R.string.app_names_concatenation_template_3, appNames[0], in buildSummaryString()
185 appNames[1], appNames[2]); in buildSummaryString()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceController.java170 final CharSequence[] appNames = new String[apps.size()]; in buildSummaryString() local
172 appNames[i] = apps.get(i).loadLabel(mPm); in buildSummaryString()
175 return appNames[0]; in buildSummaryString()
177 return context.getString(R.string.app_names_concatenation_template_2, appNames[0], in buildSummaryString()
178 appNames[1]); in buildSummaryString()
180 return context.getString(R.string.app_names_concatenation_template_3, appNames[0], in buildSummaryString()
181 appNames[1], appNames[2]); in buildSummaryString()
/packages/apps/OnDeviceAppPrediction/src/com/android/apppredictionservice/
DPredictionService.java65 private final List<String> appNames = new ArrayList<>(5); field in PredictionService
119 appNames.add(appName); in onCreate()
174 for (String packageName:appNames) { in onAppTargetEvent()
182 appNames.remove(appNames.size() - 1); in onAppTargetEvent()
183 appNames.add(0, mostRecentComponent); in onAppTargetEvent()
186 editor.putString(appNameKeys[i], appNames.get(i)); in onAppTargetEvent()
/packages/apps/Launcher3/tests/src/com/android/launcher3/dragging/
DTaplUninstallRemoveTest.java149 final String[] appNames = Arrays.copyOfRange( in uninstallWorkspaceIcon() local
153 for (int i = 0; i < appNames.length; ++i) { in uninstallWorkspaceIcon()
154 Log.d(UIOBJECT_STALE_ELEMENT, "creatingShortcut for: " + appNames[i]); in uninstallWorkspaceIcon()
155 createShortcutIfNotExist(appNames[i], gridPositions[i]); in uninstallWorkspaceIcon()
160 assertThat(initialPositions.keySet()).containsAtLeastElementsIn(appNames); in uninstallWorkspaceIcon()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/
DManageApplicationsTest.java421 final String[] appNames = {"Apricot", "Banana", "Cantaloupe", "Fig", "Mango"}; in applicationsAdapter_filterSearch_emptyQuery_shouldShowFullList() local
422 ReflectionHelpers.setField(adapter, "mOriginalEntries", getTestAppList(appNames)); in applicationsAdapter_filterSearch_emptyQuery_shouldShowFullList()
435 final String[] appNames = {"Apricot", "Banana", "Cantaloupe", "Fig", "Mango"}; in applicationsAdapter_filterSearch_noMatch_shouldShowEmptyList() local
436 ReflectionHelpers.setField(adapter, "mOriginalEntries", getTestAppList(appNames)); in applicationsAdapter_filterSearch_noMatch_shouldShowEmptyList()
448 final String[] appNames = {"Apricot", "Banana", "Cantaloupe", "Fig", "Mango"}; in applicationsAdapter_filterSearch_shouldShowMatchedItemsOnly() local
449 ReflectionHelpers.setField(adapter, "mOriginalEntries", getTestAppList(appNames)); in applicationsAdapter_filterSearch_shouldShowMatchedItemsOnly()
630 private ArrayList<AppEntry> getTestAppList(String[] appNames) { in getTestAppList() argument
632 for (String name : appNames) { in getTestAppList()
/packages/apps/Settings/src/com/android/settings/notification/modes/
DZenModeAppsLinkPreferenceController.java94 Set<String> appNames = getAppsBypassingDnd(apps); in updateAppsBypassingDndSummaryText() local
95 mPreference.setSummary(mSummaryHelper.getAppsSummary(mZenMode, appNames)); in updateAppsBypassingDndSummaryText()
/packages/apps/Car/Provision/src/com/android/car/provision/
DDefaultActivity.java345 String[] appNames = new String[sSupportedDpcApps.size()]; in updateUi() local
347 appNames[i] = sSupportedDpcApps.get(i).name; in updateUi()
350 android.R.layout.simple_spinner_item, appNames)); in updateUi()
351 mDpcAppsSpinner.setSelection(appNames.length - 1); in updateUi()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/
DMeasurementDaoTest.java640 final Uri[] appNames = in testGetUninstalledAppNamesContainingData_withDataInTriggerAndSource() local
643 insertSourceForPackageName(appNames); in testGetUninstalledAppNamesContainingData_withDataInTriggerAndSource()
644 insertTriggerForPackageName(appNames); in testGetUninstalledAppNamesContainingData_withDataInTriggerAndSource()