/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/unit/src/com/android/car/settings/storage/ |
D | StorageApplicationListPreferenceControllerTest.java | 98 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onDataLoaded_addPreference_hasOnePreference() local 100 appEntry.label = LABEL; in onDataLoaded_addPreference_hasOnePreference() 101 appEntry.sizeStr = SIZE_STR; in onDataLoaded_addPreference_hasOnePreference() 102 appEntry.icon = mContext.getDrawable(R.drawable.test_icon); in onDataLoaded_addPreference_hasOnePreference() 103 appEntry.info.packageName = PACKAGE_NAME; in onDataLoaded_addPreference_hasOnePreference() 104 apps.add(appEntry); in onDataLoaded_addPreference_hasOnePreference() 120 ApplicationsState.AppEntry appEntry = new ApplicationsState.AppEntry(mContext, appInfo, in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() local 122 appEntry.label = LABEL; in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() 123 appEntry.sizeStr = SIZE_STR; in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() 124 appEntry.icon = mContext.getDrawable(R.drawable.test_icon); in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() [all …]
|
D | StorageMediaCategoryDetailPreferenceControllerTest.java | 98 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()
|
/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 | AppStoragePreferenceControllerTest.java | 106 final AppEntry appEntry = mock(AppEntry.class); in displayPreference_appIsInstalled_preferenceShouldEnable() local 107 appEntry.info = new ApplicationInfo(); in displayPreference_appIsInstalled_preferenceShouldEnable() 108 appEntry.info.flags = ApplicationInfo.FLAG_INSTALLED; in displayPreference_appIsInstalled_preferenceShouldEnable() 109 mController.mAppEntry = appEntry; in displayPreference_appIsInstalled_preferenceShouldEnable() 120 final AppEntry appEntry = mock(AppEntry.class); in displayPreference_appIsNotInstalled_preferenceShouldDisable() local 121 appEntry.info = new ApplicationInfo(); in displayPreference_appIsNotInstalled_preferenceShouldDisable() 122 mController.mAppEntry = appEntry; in displayPreference_appIsNotInstalled_preferenceShouldDisable() 133 final AppEntry appEntry = mock(AppEntry.class); in updateState_hasAppEntry_shouldUpdatePreferenceSummary() local 134 appEntry.info = new ApplicationInfo(); in updateState_hasAppEntry_shouldUpdatePreferenceSummary() 135 mController.mAppEntry = appEntry; in updateState_hasAppEntry_shouldUpdatePreferenceSummary()
|
D | AppInfoDashboardFragmentTest.java | 123 final AppEntry appEntry = mock(AppEntry.class); in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue() local 124 appEntry.info = info; in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue() 128 assertThat(mFragment.shouldShowUninstallForAll(appEntry)).isTrue(); in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue() 139 final AppEntry appEntry = mock(AppEntry.class); in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse() local 140 appEntry.info = info; in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse() 144 assertThat(mFragment.shouldShowUninstallForAll(appEntry)).isFalse(); in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse() 178 final AppEntry appEntry = mock(AppEntry.class); in onPrepareOptionsMenuTestsSetup() local 179 appEntry.info = info; in onPrepareOptionsMenuTestsSetup() 180 mFragment.setAppEntry(appEntry); in onPrepareOptionsMenuTestsSetup() 259 final AppEntry appEntry = mock(AppEntry.class); in instantApps_noUninstallForAllButton() local [all …]
|
D | AppDataUsagePreferenceControllerTest.java | 104 final AppEntry appEntry = mock(AppEntry.class); in onResume_isAvailable_shouldRestartDataLoader() local 105 appEntry.info = new ApplicationInfo(); in onResume_isAvailable_shouldRestartDataLoader() 106 when(mFragment.getAppEntry()).thenReturn(appEntry); in onResume_isAvailable_shouldRestartDataLoader() 152 final AppEntry appEntry = mock(AppEntry.class); in displayPreference_appIsInstalled_preferenceShouldEnable() local 153 appEntry.info = new ApplicationInfo(); in displayPreference_appIsInstalled_preferenceShouldEnable() 154 appEntry.info.flags = ApplicationInfo.FLAG_INSTALLED; in displayPreference_appIsInstalled_preferenceShouldEnable() 155 mController.mAppEntry = appEntry; in displayPreference_appIsInstalled_preferenceShouldEnable() 167 final AppEntry appEntry = mock(AppEntry.class); in displayPreference_appIsNotInstalled_preferenceShouldDisable() local 168 appEntry.info = new ApplicationInfo(); in displayPreference_appIsNotInstalled_preferenceShouldDisable() 169 mController.mAppEntry = appEntry; in displayPreference_appIsNotInstalled_preferenceShouldDisable()
|
D | TimeSpentInAppPreferenceControllerTest.java | 145 final ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in displayPreference_appIsInstalled_preferenceShouldEnable() local 146 appEntry.info = new ApplicationInfo(); in displayPreference_appIsInstalled_preferenceShouldEnable() 147 appEntry.info.flags = ApplicationInfo.FLAG_INSTALLED; in displayPreference_appIsInstalled_preferenceShouldEnable() 148 mController.mAppEntry = appEntry; in displayPreference_appIsInstalled_preferenceShouldEnable() 159 final ApplicationsState.AppEntry appEntry = mock(ApplicationsState.AppEntry.class); in displayPreference_appIsNotInstalled_preferenceShouldDisable() local 160 appEntry.info = new ApplicationInfo(); in displayPreference_appIsNotInstalled_preferenceShouldDisable() 161 mController.mAppEntry = appEntry; in displayPreference_appIsNotInstalled_preferenceShouldDisable()
|
/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/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/ |
D | RecentAppsPreferenceController.java | 136 final ApplicationsState.AppEntry appEntry = in displayRecentApps() local 138 if (appEntry == null) { in displayRecentApps() 144 pref.setTitle(appEntry.label); in displayRecentApps() 145 pref.setIcon(mIconDrawableFactory.getBadgedIcon(appEntry.info)); in displayRecentApps() 193 final ApplicationsState.AppEntry appEntry = mApplicationsState.getEntry( in getDisplayableRecentAppList() local 195 if (appEntry == null) { in getDisplayableRecentAppList() 226 final ApplicationsState.AppEntry appEntry = in shouldIncludePkgInRecents() local 228 if (appEntry == null || appEntry.info == null || !AppUtils.isInstant(appEntry.info)) { in shouldIncludePkgInRecents()
|
/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/Car/Settings/src/com/android/car/settings/applications/ |
D | RecentAppsListPreferenceController.java | 101 ApplicationsState.AppEntry appEntry = mApplicationsState.getEntry(pkgName, mUserId); in createPreference() local 103 if (appEntry == null) { in createPreference() 108 pref.setTitle(appEntry.label); in createPreference() 109 if (appEntry.icon == null) { in createPreference() 110 pref.setIcon(Utils.getBadgedIcon(context, appEntry.info)); in createPreference() 112 pref.setIcon(appEntry.icon); in createPreference()
|
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()
|
/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()
|
/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()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/specialaccess/ |
D | AppOpsPreferenceControllerTest.java | 271 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()
|
D | AppStatePremiumSmsBridgeTest.java | 75 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()
|