/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/ |
D | ApplicationListItemManagerTest.java | 92 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onRebuildComplete_shouldNotifyRegisteredListener() local 94 appEntry.label = LABEL; in onRebuildComplete_shouldNotifyRegisteredListener() 95 appEntry.sizeStr = SIZE_STR; in onRebuildComplete_shouldNotifyRegisteredListener() 96 appEntry.icon = mContext.getDrawable(R.drawable.test_icon); in onRebuildComplete_shouldNotifyRegisteredListener() 97 apps.add(appEntry); in onRebuildComplete_shouldNotifyRegisteredListener() 114 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener() local 116 appEntry.label = LABEL; in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener() 117 appEntry.sizeStr = SIZE_STR; in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener() 118 appEntry.icon = mContext.getDrawable(R.drawable.test_icon); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener() 119 apps.add(appEntry); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/ |
D | StorageApplicationListPreferenceControllerTest.java | 78 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 …]
|
D | StorageMediaCategoryDetailPreferenceControllerTest.java | 78 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/legacy_unit/src/com/android/settings/applications/manageapplications/ |
D | ManageApplicationsUnitTest.java | 52 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/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppOpenByDefaultPreferenceControllerTest.java | 103 final AppEntry appEntry = mock(AppEntry.class); in displayPreference_noAppInfo_shouldDisablePreference() local 104 when(mFragment.getAppEntry()).thenReturn(appEntry); in displayPreference_noAppInfo_shouldDisablePreference() 113 final AppEntry appEntry = mock(AppEntry.class); in displayPreference_appNotInstalled_shouldDisablePreference() local 114 appEntry.info = new ApplicationInfo(); in displayPreference_appNotInstalled_shouldDisablePreference() 115 when(mFragment.getAppEntry()).thenReturn(appEntry); 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() 126 appEntry.info.flags &= ApplicationInfo.FLAG_INSTALLED; in displayPreference_appDisabled_shouldDisablePreference() 127 appEntry.info.enabled = false; in displayPreference_appDisabled_shouldDisablePreference() 128 when(mFragment.getAppEntry()).thenReturn(appEntry); in displayPreference_appDisabled_shouldDisablePreference() [all …]
|
D | AppInfoDashboardFragmentTest.java | 122 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/Car/Settings/tests/unit/src/com/android/car/settings/applications/ |
D | ApplicationsSettingsPreferenceControllerTest.java | 99 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()
|
D | RecentAppsListPreferenceControllerTest.java | 110 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()
|
/packages/apps/Car/Settings/src/com/android/car/settings/notifications/ |
D | RecentNotificationsAppsPreferenceController.java | 165 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()
|
D | NotificationsAppListPreferenceController.java | 62 for (ApplicationsState.AppEntry appEntry : apps) { in onDataLoaded() 64 createPreference(appEntry.label, appEntry.icon, in onDataLoaded() 65 appEntry.info.packageName, appEntry.info.uid)); in onDataLoaded()
|
/packages/apps/Settings/src/com/android/settings/applications/appops/ |
D | AppOpsState.java | 470 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/ |
D | RecentAppsPreferenceController.java | 158 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()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStateMediaManagementAppsBridge.java | 58 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()
|
D | RecentAppStatsMixin.java | 144 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()
|
D | AppsPreferenceController.java | 192 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()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | ApplicationsSettingsPreferenceController.java | 51 for (ApplicationsState.AppEntry appEntry : apps) { in onDataLoaded() 53 createPreference(appEntry.label, appEntry.sizeStr, appEntry.icon, in onDataLoaded() 54 appEntry.info.packageName)); in onDataLoaded()
|
D | RecentAppsItemManager.java | 142 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()
|
D | RecentAppsListPreferenceController.java | 100 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()
|
/packages/apps/Car/Settings/src/com/android/car/settings/storage/ |
D | StorageApplicationListPreferenceController.java | 54 for (ApplicationsState.AppEntry appEntry : apps) { in onDataLoaded() 56 createPreference(appEntry.label, appEntry.sizeStr, appEntry.icon, in onDataLoaded() 57 appEntry.info.packageName)); in onDataLoaded()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppOpenByDefaultPreferenceController.java | 56 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()
|
D | AppInfoDashboardFragment.java | 322 void setAppEntry(ApplicationsState.AppEntry appEntry) { in setAppEntry() argument 323 mAppEntry = appEntry; in setAppEntry() 436 boolean shouldShowUninstallForAll(AppEntry appEntry) { in shouldShowUninstallForAll() argument 440 } else if (appEntry == null) { in shouldShowUninstallForAll() 442 } else if ((appEntry.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in shouldShowUninstallForAll() 451 && (appEntry.info.flags & ApplicationInfo.FLAG_INSTALLED) != 0) { in shouldShowUninstallForAll() 453 } else if (AppUtils.isInstant(appEntry.info)) { in shouldShowUninstallForAll() 518 SettingsPreferenceFragment caller, AppEntry appEntry) { in startAppInfoFragment() argument 523 args.putString(ARG_PACKAGE_NAME, appEntry.info.packageName); in startAppInfoFragment() 524 args.putInt(ARG_PACKAGE_UID, appEntry.info.uid); in startAppInfoFragment()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/ |
D | AppOpsPreferenceControllerTest.java | 273 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()
|
D | AppStatePremiumSmsBridgeTest.java | 75 AppEntry appEntry = mock(AppEntry.class); in createAppEntry() local 76 appEntry.info = info; in createAppEntry() 77 appEntry.label = packageName; in createAppEntry() 79 return appEntry; in createAppEntry()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/ |
D | ManageApplicationsTest.java | 354 final ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in applicationsAdapter_onBindViewHolder_notifications_wrongExtraInfo() local 355 appEntry.info = mock(ApplicationInfo.class); in applicationsAdapter_onBindViewHolder_notifications_wrongExtraInfo() 356 appEntry.extraInfo = mock(AppFilterItem.class); in applicationsAdapter_onBindViewHolder_notifications_wrongExtraInfo() 357 appList.add(appEntry); in applicationsAdapter_onBindViewHolder_notifications_wrongExtraInfo() 377 final ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in applicationsAdapter_onBindViewHolder_updateSwitch_notifications() local 378 appEntry.info = mock(ApplicationInfo.class); in applicationsAdapter_onBindViewHolder_updateSwitch_notifications() 379 appList.add(appEntry); in applicationsAdapter_onBindViewHolder_updateSwitch_notifications() 397 final ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in applicationsAdapter_onBindViewHolder_updateSwitch_notNotifications() local 398 appEntry.info = mock(ApplicationInfo.class); in applicationsAdapter_onBindViewHolder_updateSwitch_notNotifications() 399 appList.add(appEntry); in applicationsAdapter_onBindViewHolder_updateSwitch_notNotifications() [all …]
|
/packages/apps/Settings/tests/componenttests/src/com/android/settingslib/applications/ |
D | ApplicationStateComponentTest.java | 55 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()
|