Home
last modified time | relevance | path

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

123

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageApplicationListPreferenceControllerTest.java78 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onDataLoaded_addPreference_hasOnePreference() local
80 appEntry.label = LABEL; in onDataLoaded_addPreference_hasOnePreference()
81 appEntry.sizeStr = SIZE_STR; in onDataLoaded_addPreference_hasOnePreference()
82 appEntry.icon = mContext.getDrawable(R.drawable.test_icon); in onDataLoaded_addPreference_hasOnePreference()
83 appEntry.info.packageName = PACKAGE_NAME; in onDataLoaded_addPreference_hasOnePreference()
84 apps.add(appEntry); in onDataLoaded_addPreference_hasOnePreference()
100 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() local
102 appEntry.label = LABEL; in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues()
103 appEntry.sizeStr = SIZE_STR; in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues()
104 appEntry.icon = mContext.getDrawable(R.drawable.test_icon); in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues()
[all …]
DStorageMediaCategoryDetailPreferenceControllerTest.java78 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onDataLoaded_addPreference_hasTwoPreferences() local
80 appEntry.label = LABEL; in onDataLoaded_addPreference_hasTwoPreferences()
81 appEntry.sizeStr = SIZE_STR; in onDataLoaded_addPreference_hasTwoPreferences()
82 appEntry.icon = mContext.getDrawable(R.drawable.test_icon); in onDataLoaded_addPreference_hasTwoPreferences()
83 appEntry.info.packageName = PACKAGE_NAME; in onDataLoaded_addPreference_hasTwoPreferences()
84 apps.add(appEntry); in onDataLoaded_addPreference_hasTwoPreferences()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppOpenByDefaultPreferenceControllerTest.java85 final AppEntry appEntry = mock(AppEntry.class); in displayPreference_noAppInfo_shouldDisablePreference() local
86 when(mFragment.getAppEntry()).thenReturn(appEntry); in displayPreference_noAppInfo_shouldDisablePreference()
95 final AppEntry appEntry = mock(AppEntry.class); in displayPreference_appNotInstalled_shouldDisablePreference() local
96 appEntry.info = new ApplicationInfo(); in displayPreference_appNotInstalled_shouldDisablePreference()
97 when(mFragment.getAppEntry()).thenReturn(appEntry); in displayPreference_appNotInstalled_shouldDisablePreference()
106 final AppEntry appEntry = mock(AppEntry.class); in displayPreference_appDisabled_shouldDisablePreference() local
107 appEntry.info = new ApplicationInfo(); in displayPreference_appDisabled_shouldDisablePreference()
108 appEntry.info.flags &= ApplicationInfo.FLAG_INSTALLED; in displayPreference_appDisabled_shouldDisablePreference()
109 appEntry.info.enabled = false; in displayPreference_appDisabled_shouldDisablePreference()
110 when(mFragment.getAppEntry()).thenReturn(appEntry); in displayPreference_appDisabled_shouldDisablePreference()
[all …]
DAppInfoDashboardFragmentTest.java122 final AppEntry appEntry = mock(AppEntry.class); in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue() local
123 appEntry.info = info; in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue()
127 assertThat(mFragment.shouldShowUninstallForAll(appEntry)).isTrue(); in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue()
138 final AppEntry appEntry = mock(AppEntry.class); in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse() local
139 appEntry.info = info; in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse()
143 assertThat(mFragment.shouldShowUninstallForAll(appEntry)).isFalse(); in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse()
175 final AppEntry appEntry = mock(AppEntry.class); in onPrepareOptionsMenuTestsSetup() local
176 appEntry.info = info; in onPrepareOptionsMenuTestsSetup()
177 mFragment.setAppEntry(appEntry); in onPrepareOptionsMenuTestsSetup()
256 final AppEntry appEntry = mock(AppEntry.class); in instantApps_noUninstallForAllButton() local
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/manageapplications/
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()
68 final ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in getCompositeFilter_filtersVolumeForVideo() local
69 appEntry.info = info; in getCompositeFilter_filtersVolumeForVideo()
71 assertThat(filter.filterApp(appEntry)).isTrue(); in getCompositeFilter_filtersVolumeForVideo()
84 final ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in getCompositeFilter_filtersVolumeForGames() local
85 appEntry.info = info; in getCompositeFilter_filtersVolumeForGames()
87 assertThat(filter.filterApp(appEntry)).isTrue(); in getCompositeFilter_filtersVolumeForGames()
117 final ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in getCompositeFilter_worksWithInstantApps() local
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationsSettingsPreferenceControllerTest.java80 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onDataLoaded_addPreference_hasOnePreference() local
82 appEntry.label = LABEL; in onDataLoaded_addPreference_hasOnePreference()
83 appEntry.sizeStr = SIZE_STR; in onDataLoaded_addPreference_hasOnePreference()
84 appEntry.icon = mContext.getDrawable(R.drawable.test_icon); in onDataLoaded_addPreference_hasOnePreference()
85 apps.add(appEntry); in onDataLoaded_addPreference_hasOnePreference()
101 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in preferenceClick_launchesDetailFragment() local
103 appEntry.label = LABEL; in preferenceClick_launchesDetailFragment()
104 appEntry.sizeStr = SIZE_STR; in preferenceClick_launchesDetailFragment()
105 appEntry.icon = mContext.getDrawable(R.drawable.test_icon); in preferenceClick_launchesDetailFragment()
106 apps.add(appEntry); in preferenceClick_launchesDetailFragment()
DApplicationListItemManagerTest.java89 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onRebuildComplete_shouldNotifyRegisteredListener() local
91 appEntry.label = LABEL; in onRebuildComplete_shouldNotifyRegisteredListener()
92 appEntry.sizeStr = SIZE_STR; in onRebuildComplete_shouldNotifyRegisteredListener()
93 appEntry.icon = mContext.getDrawable(R.drawable.test_icon); in onRebuildComplete_shouldNotifyRegisteredListener()
94 apps.add(appEntry); in onRebuildComplete_shouldNotifyRegisteredListener()
111 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener() local
113 appEntry.label = LABEL; in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener()
114 appEntry.sizeStr = SIZE_STR; in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener()
115 appEntry.icon = mContext.getDrawable(R.drawable.test_icon); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener()
116 apps.add(appEntry); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener()
/packages/apps/Settings/src/com/android/settings/notification/
DRecentNotifyingAppsPreferenceController.java246 final ApplicationsState.AppEntry appEntry = in displayRecentApps() local
248 if (appEntry == null) { in displayRecentApps()
260 pref.setTitle(appEntry.label); in displayRecentApps()
261 pref.setIcon(mIconDrawableFactory.getBadgedIcon(appEntry.info)); in displayRecentApps()
268 args.putInt(AppInfoBase.ARG_PACKAGE_UID, appEntry.info.uid); in displayRecentApps()
273 .setUserHandle(new UserHandle(UserHandle.getUserId(appEntry.info.uid))) in displayRecentApps()
277 pref.setSwitchEnabled(mNotificationBackend.isBlockable(mContext, appEntry.info)); in displayRecentApps()
281 pkgName, appEntry.info.uid, !blocked); in displayRecentApps()
285 !mNotificationBackend.getNotificationsBanned(pkgName, appEntry.info.uid)); in displayRecentApps()
302 final ApplicationsState.AppEntry appEntry = mApplicationsState.getEntry( in getDisplayableRecentAppList() local
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appops/
DAppOpsState.java470 AppEntry appEntry, AppOpsManager.OpEntry opEntry, boolean allowMerge, int switchOrder) { in addOp() argument
473 if (last.getAppEntry() == appEntry) { in addOp()
484 AppOpEntry entry = appEntry.getOpSwitch(opEntry.getOp()); in addOp()
489 entry = new AppOpEntry(pkgOps, opEntry, appEntry, switchOrder); 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()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/appops/
DAppOpsState.java470 AppEntry appEntry, AppOpsManager.OpEntry opEntry, boolean allowMerge, int switchOrder) { in addOp() argument
473 if (last.getAppEntry() == appEntry) { in addOp()
484 AppOpEntry entry = appEntry.getOpSwitch(opEntry.getOp()); in addOp()
489 entry = new AppOpEntry(pkgOps, opEntry, appEntry, switchOrder); 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()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
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()
231 final ApplicationsState.AppEntry appEntry = mApplicationsState.getEntry( in getDisplayableRecentAppList() local
233 if (appEntry == null) { in getDisplayableRecentAppList()
264 final ApplicationsState.AppEntry appEntry = in shouldIncludePkgInRecents() local
266 if (appEntry == null || appEntry.info == null || !AppUtils.isInstant(appEntry.info)) { in shouldIncludePkgInRecents()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/
DManageApplicationsTest.java364 final ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in applicationsAdapter_onBindViewHolder_notifications_wrongExtraInfo() local
365 appEntry.info = mock(ApplicationInfo.class); in applicationsAdapter_onBindViewHolder_notifications_wrongExtraInfo()
366 appEntry.extraInfo = mock(AppFilterItem.class); in applicationsAdapter_onBindViewHolder_notifications_wrongExtraInfo()
367 appList.add(appEntry); in applicationsAdapter_onBindViewHolder_notifications_wrongExtraInfo()
386 final ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in applicationsAdapter_onBindViewHolder_updateSwitch_notifications() local
387 appEntry.info = mock(ApplicationInfo.class); in applicationsAdapter_onBindViewHolder_updateSwitch_notifications()
388 appList.add(appEntry); in applicationsAdapter_onBindViewHolder_updateSwitch_notifications()
405 final ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in applicationsAdapter_onBindViewHolder_updateSwitch_notNotifications() local
406 appEntry.info = mock(ApplicationInfo.class); in applicationsAdapter_onBindViewHolder_updateSwitch_notNotifications()
407 appList.add(appEntry); in applicationsAdapter_onBindViewHolder_updateSwitch_notNotifications()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationListItemManager.java161 for (ApplicationsState.AppEntry appEntry : apps) { in onRebuildComplete()
162 String key = appEntry.label + appEntry.sizeStr; in onRebuildComplete()
163 if (isLoaded(appEntry.label, in onRebuildComplete()
164 appEntry.sizeStr, appEntry.icon)) { in onRebuildComplete()
DApplicationsSettingsPreferenceController.java50 for (ApplicationsState.AppEntry appEntry : apps) { in onDataLoaded()
52 createPreference(appEntry.label, appEntry.sizeStr, appEntry.icon, in onDataLoaded()
53 appEntry.info.packageName)); in onDataLoaded()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DAppOpsPreferenceControllerTest.java273 AppEntry appEntry = createAppEntry("test.package", /* uid= */ 1, /* isOpPermissible= */ in appFilter_removesNullExtraInfoEntries() local
275 appEntry.extraInfo = null; in appFilter_removesNullExtraInfoEntries()
277 assertThat(filter.filterApp(appEntry)).isFalse(); in appFilter_removesNullExtraInfoEntries()
289 AppEntry appEntry = mock(AppEntry.class); in createAppEntry() local
290 appEntry.info = info; in createAppEntry()
291 appEntry.label = packageName; in createAppEntry()
292 appEntry.extraInfo = extraInfo; in createAppEntry()
294 return appEntry; in createAppEntry()
DAppStatePremiumSmsBridgeTest.java76 AppEntry appEntry = mock(AppEntry.class); in createAppEntry() local
77 appEntry.info = info; in createAppEntry()
78 appEntry.label = packageName; in createAppEntry()
80 return appEntry; in createAppEntry()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageApplicationListPreferenceController.java53 for (ApplicationsState.AppEntry appEntry : apps) { in onDataLoaded()
55 createPreference(appEntry.label, appEntry.sizeStr, appEntry.icon, in onDataLoaded()
56 appEntry.info.packageName)); in onDataLoaded()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppOpenByDefaultPreferenceController.java48 final ApplicationsState.AppEntry appEntry = mParent.getAppEntry(); in displayPreference() local
49 if (appEntry == null || appEntry.info == null) { in displayPreference()
51 } else if ((appEntry.info.flags & ApplicationInfo.FLAG_INSTALLED) == 0 in displayPreference()
52 || !appEntry.info.enabled) { in displayPreference()
DAppInfoDashboardFragment.java291 void setAppEntry(ApplicationsState.AppEntry appEntry) { in setAppEntry() argument
292 mAppEntry = appEntry; in setAppEntry()
405 boolean shouldShowUninstallForAll(AppEntry appEntry) { in shouldShowUninstallForAll() argument
409 } else if (appEntry == null) { in shouldShowUninstallForAll()
411 } else if ((appEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in shouldShowUninstallForAll()
420 && (appEntry.info.flags & ApplicationInfo.FLAG_INSTALLED) != 0) { in shouldShowUninstallForAll()
422 } else if (AppUtils.isInstant(appEntry.info)) { in shouldShowUninstallForAll()
487 SettingsPreferenceFragment caller, AppEntry appEntry) { in startAppInfoFragment() argument
492 args.putString(ARG_PACKAGE_NAME, appEntry.info.packageName); in startAppInfoFragment()
493 args.putInt(ARG_PACKAGE_UID, appEntry.info.uid); in startAppInfoFragment()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DAppOpenByDefaultPreferenceController.java48 final ApplicationsState.AppEntry appEntry = mParent.getAppEntry(); in displayPreference() local
49 if (appEntry == null || appEntry.info == null) { in displayPreference()
51 } else if ((appEntry.info.flags & ApplicationInfo.FLAG_INSTALLED) == 0 in displayPreference()
52 || !appEntry.info.enabled) { in displayPreference()
DAppInfoDashboardFragment.java291 void setAppEntry(ApplicationsState.AppEntry appEntry) { in setAppEntry() argument
292 mAppEntry = appEntry; in setAppEntry()
405 boolean shouldShowUninstallForAll(AppEntry appEntry) { in shouldShowUninstallForAll() argument
409 } else if (appEntry == null) { in shouldShowUninstallForAll()
411 } else if ((appEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in shouldShowUninstallForAll()
420 && (appEntry.info.flags & ApplicationInfo.FLAG_INSTALLED) != 0) { in shouldShowUninstallForAll()
422 } else if (AppUtils.isInstant(appEntry.info)) { in shouldShowUninstallForAll()
487 SettingsPreferenceFragment caller, AppEntry appEntry) { in startAppInfoFragment() argument
492 args.putString(ARG_PACKAGE_NAME, appEntry.info.packageName); in startAppInfoFragment()
493 args.putInt(ARG_PACKAGE_UID, appEntry.info.uid); in startAppInfoFragment()
/packages/apps/Settings/src/com/android/settings/applications/
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()
DRecentAppsPreferenceController.java152 final ApplicationsState.AppEntry appEntry = in createAppEntity() local
154 if (appEntry == null) { in createAppEntity()
159 .setIcon(mIconDrawableFactory.getBadgedIcon(appEntry.info)) in createAppEntity()
160 .setTitle(appEntry.label) in createAppEntity()
166 R.string.application_info_label, pkgName, appEntry.info.uid, in createAppEntity()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
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()
DRecentAppsPreferenceController.java152 final ApplicationsState.AppEntry appEntry = in createAppEntity() local
154 if (appEntry == null) { in createAppEntity()
159 .setIcon(mIconDrawableFactory.getBadgedIcon(appEntry.info)) in createAppEntity()
160 .setTitle(appEntry.label) in createAppEntity()
166 R.string.application_info_label, pkgName, appEntry.info.uid, in createAppEntity()

123