Home
last modified time | relevance | path

Searched refs:appEntry (Results 1 – 25 of 57) sorted by relevance

123

/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
H A DApplicationListItemManagerTest.java94 appEntry.label = LABEL; in onRebuildComplete_shouldNotifyRegisteredListener()
95 appEntry.sizeStr = SIZE_STR; in onRebuildComplete_shouldNotifyRegisteredListener()
97 apps.add(appEntry); in onRebuildComplete_shouldNotifyRegisteredListener()
116 appEntry.label = LABEL; in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener()
117 appEntry.sizeStr = SIZE_STR; in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener()
119 apps.add(appEntry); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener()
140 appEntry.label = LABEL; in onRebuildComplete_calledAgainImmediately_shouldNotRunSecondCallImmediately()
141 appEntry.sizeStr = SIZE_STR; in onRebuildComplete_calledAgainImmediately_shouldNotRunSecondCallImmediately()
143 apps.add(appEntry); in onRebuildComplete_calledAgainImmediately_shouldNotRunSecondCallImmediately()
162 appEntry.label = LABEL; in onRebuildComplete_calledAgainImmediately_shouldRunSecondCallAfterUpdateInterval()
[all …]
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/
H A DStorageApplicationListPreferenceControllerTest.java100 appEntry.label = LABEL; in onDataLoaded_addPreference_hasOnePreference()
101 appEntry.sizeStr = SIZE_STR; in onDataLoaded_addPreference_hasOnePreference()
103 appEntry.info.packageName = PACKAGE_NAME; in onDataLoaded_addPreference_hasOnePreference()
104 apps.add(appEntry); in onDataLoaded_addPreference_hasOnePreference()
122 appEntry.label = LABEL; in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues()
123 appEntry.sizeStr = SIZE_STR; in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues()
125 appEntry.info.packageName = PACKAGE_NAME; in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues()
126 apps.add(appEntry); in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues()
132 appEntry.label = LABEL; in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues()
133 appEntry.sizeStr = UPDATED_SIZE_STR; in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues()
[all …]
H A DStorageMediaCategoryDetailPreferenceControllerTest.java98 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onDataLoaded_addPreference_hasTwoPreferences() local
100 appEntry.label = LABEL; in onDataLoaded_addPreference_hasTwoPreferences()
101 appEntry.sizeStr = SIZE_STR; in onDataLoaded_addPreference_hasTwoPreferences()
102 appEntry.icon = mContext.getDrawable(R.drawable.test_icon); in onDataLoaded_addPreference_hasTwoPreferences()
103 appEntry.info.packageName = PACKAGE_NAME; in onDataLoaded_addPreference_hasTwoPreferences()
104 apps.add(appEntry); in onDataLoaded_addPreference_hasTwoPreferences()
/aosp12/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/applications/manageapplications/
H A DManageApplicationsUnitTest.java52 final ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in getCompositeFilter_filtersVolumeForAudio() local
53 appEntry.info = info; in getCompositeFilter_filtersVolumeForAudio()
55 assertThat(filter.filterApp(appEntry)).isTrue(); in getCompositeFilter_filtersVolumeForAudio()
69 appEntry.info = info; in getCompositeFilter_filtersVolumeForVideo()
71 assertThat(filter.filterApp(appEntry)).isTrue(); in getCompositeFilter_filtersVolumeForVideo()
85 appEntry.info = info; in getCompositeFilter_filtersVolumeForGames()
87 assertThat(filter.filterApp(appEntry)).isTrue(); in getCompositeFilter_filtersVolumeForGames()
118 appEntry.info = info; in getCompositeFilter_worksWithInstantApps()
120 assertThat(composedFilter.filterApp(appEntry)).isTrue(); in getCompositeFilter_worksWithInstantApps()
134 appEntry.info = info; in getCompositeFilter_worksForLegacyPrivateSettings()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
H A DAppOpenByDefaultPreferenceControllerTest.java103 final AppEntry appEntry = mock(AppEntry.class); in displayPreference_noAppInfo_shouldDisablePreference() local
113 final AppEntry appEntry = mock(AppEntry.class); in displayPreference_appNotInstalled_shouldDisablePreference() local
114 appEntry.info = new ApplicationInfo(); in displayPreference_appNotInstalled_shouldDisablePreference()
124 final AppEntry appEntry = mock(AppEntry.class); in displayPreference_appDisabled_shouldDisablePreference() local
125 appEntry.info = new ApplicationInfo(); in displayPreference_appDisabled_shouldDisablePreference()
127 appEntry.info.enabled = false; in displayPreference_appDisabled_shouldDisablePreference()
137 final AppEntry appEntry = mock(AppEntry.class); in displayPreference_appEnabled_shouldNotDisablePreference() local
138 appEntry.info = new ApplicationInfo(); in displayPreference_appEnabled_shouldNotDisablePreference()
140 appEntry.info.enabled = true; in displayPreference_appEnabled_shouldNotDisablePreference()
200 final AppEntry appEntry = mock(AppEntry.class); in updateState_notBrowserApp_notInstantApp_shouldShowPreferenceAndSetSummary() local
[all …]
H A DAppInfoDashboardFragmentTest.java122 final AppEntry appEntry = mock(AppEntry.class); in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue() local
123 appEntry.info = info; in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue()
138 final AppEntry appEntry = mock(AppEntry.class); in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse() local
139 appEntry.info = info; in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse()
176 appEntry.info = info; in onPrepareOptionsMenuTestsSetup()
177 mFragment.setAppEntry(appEntry); in onPrepareOptionsMenuTestsSetup()
257 appEntry.info = info; in instantApps_noUninstallForAllButton()
356 appEntry.info = mock(ApplicationInfo.class); in startAppInfoFragment_noCrashOnNullArgs()
359 caller, appEntry); in startAppInfoFragment_noCrashOnNullArgs()
368 appEntry.info = mock(ApplicationInfo.class); in startAppInfoFragment_includesNewAndOldArgs()
[all …]
H A DAppHeaderViewPreferenceControllerTest.java92 final ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in refreshUi_shouldRefreshButton() local
94 appEntry.label = appLabel; in refreshUi_shouldRefreshButton()
99 appEntry.info = info; in refreshUi_shouldRefreshButton()
100 when(mFragment.getAppEntry()).thenReturn(appEntry); in refreshUi_shouldRefreshButton()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
H A DApplicationsSettingsPreferenceControllerTest.java99 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onDataLoaded_addPreference_hasOnePreference() local
101 appEntry.label = LABEL; in onDataLoaded_addPreference_hasOnePreference()
102 appEntry.sizeStr = SIZE_STR; in onDataLoaded_addPreference_hasOnePreference()
103 appEntry.icon = mContext.getDrawable(R.drawable.test_icon); in onDataLoaded_addPreference_hasOnePreference()
104 apps.add(appEntry); in onDataLoaded_addPreference_hasOnePreference()
121 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in preferenceClick_launchesDetailFragment() local
123 appEntry.label = LABEL; in preferenceClick_launchesDetailFragment()
124 appEntry.sizeStr = SIZE_STR; in preferenceClick_launchesDetailFragment()
125 appEntry.icon = mContext.getDrawable(R.drawable.test_icon); in preferenceClick_launchesDetailFragment()
126 apps.add(appEntry); in preferenceClick_launchesDetailFragment()
H A DRecentAppsListPreferenceControllerTest.java110 ApplicationsState.AppEntry appEntry = createAppEntry(MOCK_APP_NAME_1); in onRecentAppsLoaded_displaysApps() local
113 .thenReturn(appEntry); in onRecentAppsLoaded_displaysApps()
117 assertThat(mPreferenceCategory.getPreference(0).getTitle()).isEqualTo(appEntry.label); in onRecentAppsLoaded_displaysApps()
129 ApplicationsState.AppEntry appEntry = createAppEntry(MOCK_APP_NAME_1); in onRecentAppsLoaded_doesNotDisplayInvalidApps() local
132 .thenReturn(appEntry); in onRecentAppsLoaded_doesNotDisplayInvalidApps()
180 ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in createAppEntry() local
181 appEntry.info = mApplicationInfo; in createAppEntry()
182 appEntry.label = label; in createAppEntry()
183 return appEntry; in createAppEntry()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/notifications/
H A DRecentNotificationsAppsPreferenceController.java165 ApplicationsState.AppEntry appEntry = mApplicationsState.getEntry( in getDisplayableRecentAppList() local
167 if (appEntry == null || isSystemApp(appEntry)) { in getDisplayableRecentAppList()
189 ApplicationsState.AppEntry appEntry = in displayRecentApps() local
191 if (appEntry == null || appEntry.label == null) { in displayRecentApps()
202 pref.setTitle(appEntry.label); in displayRecentApps()
203 pref.setIcon(appEntry.icon); in displayRecentApps()
213 toggleNotificationsSetting(pkgName, appEntry.info.uid, newValue); in displayRecentApps()
218 pref.setSecondaryActionChecked(areNotificationsEnabled(pkgName, appEntry.info.uid)); in displayRecentApps()
231 private boolean isSystemApp(ApplicationsState.AppEntry appEntry) { in isSystemApp() argument
232 return !ApplicationsState.FILTER_DOWNLOADED_AND_LAUNCHER_AND_INSTANT.filterApp(appEntry); in isSystemApp()
H A DNotificationsAppListPreferenceController.java62 for (ApplicationsState.AppEntry appEntry : apps) { in onDataLoaded()
64 createPreference(appEntry.label, appEntry.icon, in onDataLoaded()
65 appEntry.info.packageName, appEntry.info.uid)); in onDataLoaded()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
H A DRecentAppsPreferenceController.java158 final ApplicationsState.AppEntry appEntry = in displayRecentApps() local
160 if (appEntry == null) { in displayRecentApps()
171 pref.setTitle(appEntry.label); in displayRecentApps()
172 pref.setIcon(mIconDrawableFactory.getBadgedIcon(appEntry.info)); in displayRecentApps()
237 final ApplicationsState.AppEntry appEntry = mApplicationsState.getEntry( in getDisplayableRecentAppList() local
239 if (appEntry == null) { in getDisplayableRecentAppList()
270 final ApplicationsState.AppEntry appEntry = in shouldIncludePkgInRecents() local
272 if (appEntry == null || appEntry.info == null || !AppUtils.isInstant(appEntry.info)) { in shouldIncludePkgInRecents()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/
H A DAppStateMediaManagementAppsBridge.java58 final AppEntry appEntry = allApps.get(i); in loadAllExtraInfo() local
59 if (appEntry.extraInfo instanceof PermissionState) { in loadAllExtraInfo()
60 updateExtraInfo(appEntry, appEntry.info.packageName, appEntry.info.uid); in loadAllExtraInfo()
H A DRecentAppStatsMixin.java144 final ApplicationsState.AppEntry appEntry = mApplicationsState.getEntry( in loadDisplayableRecentApps() local
146 if (appEntry == null) { in loadDisplayableRecentApps()
180 final ApplicationsState.AppEntry appEntry = in shouldIncludePkgInRecents() local
182 if (appEntry == null || appEntry.info == null || !AppUtils.isInstant(appEntry.info)) { in shouldIncludePkgInRecents()
H A DAppsPreferenceController.java192 final ApplicationsState.AppEntry appEntry = in displayRecentApps() local
194 if (appEntry == null) { in displayRecentApps()
206 pref.setTitle(appEntry.label); in displayRecentApps()
207 pref.setIcon(Utils.getBadgedIcon(mContext, appEntry.info)); in displayRecentApps()
214 R.string.application_info_label, pkgName, appEntry.info.uid, in displayRecentApps()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/applications/
H A DApplicationsSettingsPreferenceController.java51 for (ApplicationsState.AppEntry appEntry : apps) { in onDataLoaded()
53 createPreference(appEntry.label, appEntry.sizeStr, appEntry.icon, in onDataLoaded()
54 appEntry.info.packageName)); in onDataLoaded()
H A DRecentAppsItemManager.java142 ApplicationsState.AppEntry appEntry = mApplicationsState.getEntry( in loadDisplayableRecentApps() local
144 if (appEntry == null) { in loadDisplayableRecentApps()
180 ApplicationsState.AppEntry appEntry = in shouldIncludePkgInRecents() local
182 if (appEntry == null || appEntry.info == null || !AppUtils.isInstant(appEntry.info)) { in shouldIncludePkgInRecents()
H A DRecentAppsListPreferenceController.java100 ApplicationsState.AppEntry appEntry = mApplicationsState.getEntry(pkgName, mUserId); in createPreference() local
102 if (appEntry == null) { in createPreference()
107 pref.setTitle(appEntry.label); in createPreference()
108 pref.setIcon(appEntry.icon); in createPreference()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/appops/
H A DAppOpsState.java473 if (last.getAppEntry() == appEntry) { in addOp()
484 AppOpEntry entry = appEntry.getOpSwitch(opEntry.getOp()); in addOp()
505 AppEntry appEntry = appEntries.get(packageName); in getAppEntry() local
506 if (appEntry == null) { in getAppEntry()
517 appEntry = new AppEntry(this, appInfo); in getAppEntry()
518 appEntry.loadLabel(context); in getAppEntry()
519 appEntries.put(packageName, appEntry); in getAppEntry()
521 return appEntry; in getAppEntry()
560 if (appEntry == null) { in buildState()
588 if (appEntry == null) { in buildState()
[all …]
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/storage/
H A DStorageApplicationListPreferenceController.java54 for (ApplicationsState.AppEntry appEntry : apps) { in onDataLoaded()
56 createPreference(appEntry.label, appEntry.sizeStr, appEntry.icon, in onDataLoaded()
57 appEntry.info.packageName)); in onDataLoaded()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/appinfo/
H A DAppOpenByDefaultPreferenceController.java56 final ApplicationsState.AppEntry appEntry = mParent.getAppEntry(); in displayPreference() local
57 if (appEntry == null || appEntry.info == null) { in displayPreference()
59 } else if ((appEntry.info.flags & ApplicationInfo.FLAG_INSTALLED) == 0 in displayPreference()
60 || !appEntry.info.enabled) { in displayPreference()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/specialaccess/
H A DAppStatePremiumSmsBridgeTest.java75 ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in createAppEntry() local
76 appEntry.info = info; in createAppEntry()
77 appEntry.label = packageName; in createAppEntry()
79 return appEntry; in createAppEntry()
H A DAppOpsPreferenceControllerTest.java271 ApplicationsState.AppEntry appEntry = createAppEntry("test.package", in appFilter_removesNullExtraInfoEntries() local
273 appEntry.extraInfo = null; in appFilter_removesNullExtraInfoEntries()
275 assertThat(filter.filterApp(appEntry)).isFalse(); in appFilter_removesNullExtraInfoEntries()
288 ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in createAppEntry() local
289 appEntry.info = info; in createAppEntry()
290 appEntry.label = packageName; in createAppEntry()
291 appEntry.extraInfo = extraInfo; in createAppEntry()
293 return appEntry; in createAppEntry()
/aosp12/packages/apps/Settings/tests/componenttests/src/com/android/settingslib/applications/
H A DApplicationStateComponentTest.java55 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mRuntimeApplication, in createAppEntry() local
57 appEntry.label = label; in createAppEntry()
58 appEntry.mounted = true; in createAppEntry()
59 return appEntry; in createAppEntry()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
H A DApplicationsStateRoboTest.java237 appEntry.label = "label"; in createAppEntry()
238 appEntry.mounted = true; in createAppEntry()
239 return appEntry; in createAppEntry()
248 AppEntry appEntry = createAppEntry(appInfo, id); in addApp() local
249 mApplicationsState.mAppEntries.add(appEntry); in addApp()
263 for (AppEntry appEntry : appEntries) { in findAppEntry()
264 if (appEntry.id == id) { in findAppEntry()
265 return appEntry; in findAppEntry()
284 for (AppEntry appEntry : appEntries) { in testDefaultSession_isResumed_LoadsAll()
285 assertThat(appEntry.size).isGreaterThan(0L); in testDefaultSession_isResumed_LoadsAll()
[all …]

123