/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/ |
D | ApplicationListItemManagerTest.java | 87 ArrayList<ApplicationsState.AppEntry> apps = new ArrayList<>(); in onRebuildComplete_shouldNotifyRegisteredListener() local 97 apps.add(appEntry); in onRebuildComplete_shouldNotifyRegisteredListener() 101 mApplicationListItemManager.onRebuildComplete(apps); in onRebuildComplete_shouldNotifyRegisteredListener() 103 verify(mAppListItemListener1).onDataLoaded(apps); in onRebuildComplete_shouldNotifyRegisteredListener() 104 verify(mAppListItemListener2).onDataLoaded(apps); in onRebuildComplete_shouldNotifyRegisteredListener() 109 ArrayList<ApplicationsState.AppEntry> apps = new ArrayList<>(); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener() local 119 apps.add(appEntry); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener() 124 mApplicationListItemManager.onRebuildComplete(apps); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener() 126 verify(mAppListItemListener1).onDataLoaded(apps); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener() 127 verify(mAppListItemListener2, times(0)).onDataLoaded(apps); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener() [all …]
|
D | ApplicationsSettingsPreferenceControllerTest.java | 75 ArrayList<ApplicationsState.AppEntry> apps = new ArrayList<>(); in onDataLoaded_addPreference_hasOnePreference() local 85 apps.add(appEntry); in onDataLoaded_addPreference_hasOnePreference() 87 mController.onDataLoaded(apps); in onDataLoaded_addPreference_hasOnePreference() 96 ArrayList<ApplicationsState.AppEntry> apps = new ArrayList<>(); in preferenceClick_launchesDetailFragment() local 106 apps.add(appEntry); in preferenceClick_launchesDetailFragment() 108 mController.onDataLoaded(apps); in preferenceClick_launchesDetailFragment()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppStateNotificationBridgeTest.java | 209 ArrayList<AppEntry> apps = new ArrayList<>(); in testLoadAllExtraInfo_noEvents() local 210 apps.add(getMockAppEntry(PKG1)); in testLoadAllExtraInfo_noEvents() 211 when(mSession.getAllApps()).thenReturn(apps); in testLoadAllExtraInfo_noEvents() 214 assertThat(apps.get(0).extraInfo).isNull(); in testLoadAllExtraInfo_noEvents() 232 ArrayList<AppEntry> apps = new ArrayList<>(); in testLoadAllExtraInfo_multipleEventsAgg() local 233 apps.add(getMockAppEntry(PKG1)); in testLoadAllExtraInfo_multipleEventsAgg() 234 when(mSession.getAllApps()).thenReturn(apps); in testLoadAllExtraInfo_multipleEventsAgg() 237 assertThat(((NotificationsSentState) apps.get(0).extraInfo).sentCount).isEqualTo(7); in testLoadAllExtraInfo_multipleEventsAgg() 238 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(6); in testLoadAllExtraInfo_multipleEventsAgg() 239 assertThat(((NotificationsSentState) apps.get(0).extraInfo).avgSentDaily).isEqualTo(1); in testLoadAllExtraInfo_multipleEventsAgg() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
D | AllAppsFragment.java | 16 package com.android.tv.settings.device.apps; 134 public void onRebuildComplete(ArrayList<ApplicationsState.AppEntry> apps) { in onActivityCreated() 135 updateAppList(mInstalledPreferenceGroup, apps); in onActivityCreated() 147 public void onRebuildComplete(ArrayList<ApplicationsState.AppEntry> apps) { in onActivityCreated() 148 updateAppList(mDisabledPreferenceGroup, apps); in onActivityCreated() 162 public void onRebuildComplete(ArrayList<ApplicationsState.AppEntry> apps) { in onActivityCreated() 163 updateAppList(mOtherPreferenceGroup, apps); in onActivityCreated() 187 ArrayList<ApplicationsState.AppEntry> apps = in rebuildInstalled() local 189 if (apps != null) { in rebuildInstalled() 190 updateAppList(mInstalledPreferenceGroup, apps); in rebuildInstalled() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/pictureinpicture/ |
D | PictureInPictureSettingsTest.java | 94 List<Pair<ApplicationInfo, Integer>> apps = mFragment.collectPipApps(PRIMARY_USER_ID); in testCollectPipApps() local 95 assertThat(containsPackages(apps, primaryP1, profileP2)).isTrue(); in testCollectPipApps() 96 assertThat(containsPackages(apps, primaryP2, profileP1)).isFalse(); in testCollectPipApps() 115 List<Pair<ApplicationInfo, Integer>> apps = mFragment.collectPipApps(PRIMARY_USER_ID); in testAppSort() local 116 apps.sort(new PictureInPictureSettings.AppComparator(null)); in testAppSort() 117 assertThat(isOrdered(apps, primaryP1, profileP1, primaryP2, profileP2, primaryP3)).isTrue(); in testAppSort() 120 private boolean containsPackages(List<Pair<ApplicationInfo, Integer>> apps, in containsPackages() argument 124 for (Pair<ApplicationInfo, Integer> app : apps) { in containsPackages() 137 private boolean isOrdered(List<Pair<ApplicationInfo, Integer>> apps, PackageInfo... packages) { in isOrdered() argument 138 if (apps.size() != packages.length) { in isOrdered() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/enterprise/ |
D | EnterpriseSetDefaultAppsListPreferenceController.java | 85 List<UserAppInfo> apps = mApplicationFeatureProvider. in buildAppList() local 88 if (apps.isEmpty()) { in buildAppList() 93 mUsers.add(apps.get(0).userInfo); in buildAppList() 98 for (UserAppInfo userAppInfo : apps) { in buildAppList() 142 EnumMap<EnterpriseDefaultApps, List<ApplicationInfo>> apps) { in createPreferences() argument 147 final List<ApplicationInfo> appsForCategory = apps.get(typeOfDefault); in createPreferences() 160 private CharSequence buildSummaryString(Context context, List<ApplicationInfo> apps) { in buildSummaryString() argument 161 final CharSequence[] appNames = new String[apps.size()]; in buildSummaryString() 162 for (int i = 0; i < apps.size(); i++) { in buildSummaryString() 163 appNames[i] = apps.get(i).loadLabel(mPm); in buildSummaryString() [all …]
|
/packages/apps/Settings/src/com/android/settings/enterprise/ |
D | EnterpriseSetDefaultAppsListPreferenceController.java | 85 List<UserAppInfo> apps = mApplicationFeatureProvider. in buildAppList() local 88 if (apps.isEmpty()) { in buildAppList() 93 mUsers.add(apps.get(0).userInfo); in buildAppList() 98 for (UserAppInfo userAppInfo : apps) { in buildAppList() 142 EnumMap<EnterpriseDefaultApps, List<ApplicationInfo>> apps) { in createPreferences() argument 147 final List<ApplicationInfo> appsForCategory = apps.get(typeOfDefault); in createPreferences() 160 private CharSequence buildSummaryString(Context context, List<ApplicationInfo> apps) { in buildSummaryString() argument 161 final CharSequence[] appNames = new String[apps.size()]; in buildSummaryString() 162 for (int i = 0; i < apps.size(); i++) { in buildSummaryString() 163 appNames[i] = apps.get(i).loadLabel(mPm); in buildSummaryString() [all …]
|
/packages/apps/Tag/src/com/android/apps/tag/message/ |
D | NdefMessageParser.java | 17 package com.android.apps.tag.message; 19 import com.android.apps.tag.record.ImageRecord; 20 import com.android.apps.tag.record.MimeRecord; 21 import com.android.apps.tag.record.ParsedNdefRecord; 22 import com.android.apps.tag.record.SmartPoster; 23 import com.android.apps.tag.record.TextRecord; 24 import com.android.apps.tag.record.UnknownRecord; 25 import com.android.apps.tag.record.UriRecord; 26 import com.android.apps.tag.record.VCardRecord;
|
D | ParsedNdefMessage.java | 17 package com.android.apps.tag.message; 19 import com.android.apps.tag.R; 20 import com.android.apps.tag.record.ParsedNdefRecord; 21 import com.android.apps.tag.record.SmartPoster; 22 import com.android.apps.tag.record.UriRecord;
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | RemoteAnimationTargetSet.java | 34 public final RemoteAnimationTargetCompat[] apps; field in RemoteAnimationTargetSet 38 public RemoteAnimationTargetSet(RemoteAnimationTargetCompat[] apps, int targetMode) { in RemoteAnimationTargetSet() argument 41 if (apps != null) { in RemoteAnimationTargetSet() 42 for (RemoteAnimationTargetCompat target : apps) { in RemoteAnimationTargetSet() 52 this.unfilteredApps = apps; in RemoteAnimationTargetSet() 53 this.apps = filteredApps.toArray(new RemoteAnimationTargetCompat[filteredApps.size()]); in RemoteAnimationTargetSet() 59 for (RemoteAnimationTargetCompat target : apps) { in findTask() 68 for (RemoteAnimationTargetCompat target : apps) { in isAnimatingHome()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/ |
D | ManageApplicationsController.java | 17 package com.android.tv.settings.device.apps.specialaccess; 67 public void onRebuildComplete(ArrayList<ApplicationsState.AppEntry> apps) { 68 updateAppList(apps); 117 ArrayList<ApplicationsState.AppEntry> apps = mAppSession.rebuild(filter, mComparator); in updateAppList() local 118 if (apps != null) { in updateAppList() 119 updateAppList(apps); in updateAppList() 123 private void updateAppList(ArrayList<ApplicationsState.AppEntry> apps) { in updateAppList() argument 125 final List<Preference> newList = new ArrayList<>(apps.size() + 1); in updateAppList() 126 for (final ApplicationsState.AppEntry entry : apps) { in updateAppList()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/ |
D | StorageApplicationListPreferenceControllerTest.java | 73 ArrayList<ApplicationsState.AppEntry> apps = new ArrayList<>(); in onDataLoaded_addPreference_hasOnePreference() local 84 apps.add(appEntry); in onDataLoaded_addPreference_hasOnePreference() 86 mController.onDataLoaded(apps); in onDataLoaded_addPreference_hasOnePreference() 95 ArrayList<ApplicationsState.AppEntry> apps = new ArrayList<>(); in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() local 106 apps.add(appEntry); in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() 108 mController.onDataLoaded(apps); in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() 110 apps.clear(); in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() 116 apps.add(appEntry); in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues() 118 mController.onDataLoaded(apps); in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/ |
D | PermissionApps.java | 177 List<PackageInfo> apps = (mPmCache != null) ? mPmCache.getPackages( in getPackageInfos() local 179 if (apps != null) { in getPackageInfos() 181 final int appCount = apps.size(); in getPackageInfos() 183 final PackageInfo app = apps.get(i); in getPackageInfos() 185 apps = new ArrayList<>(1); in getPackageInfos() 186 apps.add(app); in getPackageInfos() 187 return apps; in getPackageInfos() 191 return apps; in getPackageInfos() 200 apps = new ArrayList<>(1); in getPackageInfos() 201 apps.add(packageInfo); in getPackageInfos() [all …]
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/ |
D | RuntimePermissionsUpgradeController.java | 88 final List<PackageInfo> apps = context.getPackageManager() in whitelistAllSystemAppPermissions() local 96 final int appCount = apps.size(); in whitelistAllSystemAppPermissions() 98 final PackageInfo app = apps.get(i); in whitelistAllSystemAppPermissions() 138 final List<PackageInfo> apps = context.getPackageManager() in onUpgradeLocked() local 141 final int appCount = apps.size(); in onUpgradeLocked() 163 final PackageInfo app = apps.get(i); in onUpgradeLocked() 194 final PackageInfo app = apps.get(i); in onUpgradeLocked() 224 final PackageInfo app = apps.get(i); in onUpgradeLocked() 247 final PackageInfo app = apps.get(i); in onUpgradeLocked() 288 final PackageInfo pkgInfo = apps.get(i); in onUpgradeLocked()
|
/packages/apps/Settings/src/com/android/settings/applications/managedomainurls/ |
D | DomainAppPreferenceController.java | 96 public void onRebuildComplete(ArrayList<AppEntry> apps) { in onRebuildComplete() argument 100 rebuildAppList(mDomainAppList, apps); in onRebuildComplete() 148 final ArrayList<AppEntry> apps = mSession.rebuild( in rebuild() local 150 if (apps != null) { in rebuild() 151 onRebuildComplete(apps); in rebuild() 155 private void rebuildAppList(PreferenceGroup group, ArrayList<AppEntry> apps) { in rebuildAppList() argument 157 final int size = apps.size(); in rebuildAppList() 161 final AppEntry entry = apps.get(i); in rebuildAppList()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/managedomainurls/ |
D | DomainAppPreferenceController.java | 96 public void onRebuildComplete(ArrayList<AppEntry> apps) { in onRebuildComplete() argument 100 rebuildAppList(mDomainAppList, apps); in onRebuildComplete() 148 final ArrayList<AppEntry> apps = mSession.rebuild( in rebuild() local 150 if (apps != null) { in rebuild() 151 onRebuildComplete(apps); in rebuild() 155 private void rebuildAppList(PreferenceGroup group, ArrayList<AppEntry> apps) { in rebuildAppList() argument 157 final int size = apps.size(); in rebuildAppList() 161 final AppEntry entry = apps.get(i); in rebuildAppList()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appops/ |
D | AppOpsCategory.java | 137 @Override public void deliverResult(List<AppOpEntry> apps) { in deliverResult() argument 141 if (apps != null) { in deliverResult() 142 onReleaseResources(apps); in deliverResult() 145 List<AppOpEntry> oldApps = apps; in deliverResult() 146 mApps = apps; in deliverResult() 151 super.deliverResult(apps); in deliverResult() 203 @Override public void onCanceled(List<AppOpEntry> apps) { in onCanceled() argument 204 super.onCanceled(apps); in onCanceled() 208 onReleaseResources(apps); in onCanceled() 238 protected void onReleaseResources(List<AppOpEntry> apps) { in onReleaseResources() argument
|
/packages/apps/Settings/src/com/android/settings/applications/appops/ |
D | AppOpsCategory.java | 137 @Override public void deliverResult(List<AppOpEntry> apps) { in deliverResult() argument 141 if (apps != null) { in deliverResult() 142 onReleaseResources(apps); in deliverResult() 145 List<AppOpEntry> oldApps = apps; in deliverResult() 146 mApps = apps; in deliverResult() 151 super.deliverResult(apps); in deliverResult() 203 @Override public void onCanceled(List<AppOpEntry> apps) { in onCanceled() argument 204 super.onCanceled(apps); in onCanceled() 208 onReleaseResources(apps); in onCanceled() 238 protected void onReleaseResources(List<AppOpEntry> apps) { in onReleaseResources() argument
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | ZenModeAllBypassingAppsPreferenceController.java | 103 List<ApplicationsState.AppEntry> apps = mAppSession.rebuild(filter, in updateNotificationChannelList() local 105 if (apps != null) { in updateNotificationChannelList() 106 updateNotificationChannelList(apps); in updateNotificationChannelList() 111 void updateNotificationChannelList(List<ApplicationsState.AppEntry> apps) { in updateNotificationChannelList() argument 112 if (mPreferenceScreen == null || apps == null) { in updateNotificationChannelList() 117 for (ApplicationsState.AppEntry entry : apps) { in updateNotificationChannelList() 172 public void onRebuildComplete(ArrayList<ApplicationsState.AppEntry> apps) { 173 updateNotificationChannelList(apps);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | ApplicationListPreferenceControllerTest.java | 103 ArgumentCaptor<Preference> apps = ArgumentCaptor.forClass(Preference.class); in checkNumberAndTitlesOfApps() local 104 verify(mScreen, times(3)).addPreference(apps.capture()); in checkNumberAndTitlesOfApps() 108 for (Preference p : apps.getAllValues()) { in checkNumberAndTitlesOfApps() 129 final List<UserAppInfo> apps = new ArrayList<>(); in buildApplicationList() local 131 apps.add(new UserAppInfo(user, buildInfo(MAIN_USER_APP_UID, APP_1, 0, 0))); in buildApplicationList() 132 apps.add(new UserAppInfo(user, buildInfo(MAIN_USER_APP_UID, APP_2, 0, 0))); in buildApplicationList() 133 apps.add(new UserAppInfo(user, buildInfo(MANAGED_PROFILE_APP_UID, APP_3, 0, 0))); in buildApplicationList() 134 callback.onListOfAppsResult(apps); in buildApplicationList()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | ZenModeAllBypassingAppsPreferenceController.java | 103 List<ApplicationsState.AppEntry> apps = mAppSession.rebuild(filter, in updateNotificationChannelList() local 105 if (apps != null) { in updateNotificationChannelList() 106 updateNotificationChannelList(apps); in updateNotificationChannelList() 111 void updateNotificationChannelList(List<ApplicationsState.AppEntry> apps) { in updateNotificationChannelList() argument 112 if (mPreferenceScreen == null || apps == null) { in updateNotificationChannelList() 117 for (ApplicationsState.AppEntry entry : apps) { in updateNotificationChannelList() 172 public void onRebuildComplete(ArrayList<ApplicationsState.AppEntry> apps) { 173 updateNotificationChannelList(apps);
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/ |
D | PredictionUiStateManager.java | 193 .setPredictedApps(mCurrentState.apps); in applyState() 232 state.apps = Collections.EMPTY_LIST; in parseLastState() 236 state.apps = new ArrayList<>(); in parseLastState() 248 state.apps.add(new ComponentKeyMapper(mContext, key, mDynamicItemCache)); in parseLastState() 263 int total = state.apps.size(); in updateDependencies() 265 ComponentKeyMapper mapper = state.apps.get(i); in updateDependencies() 307 || mCurrentState.apps.isEmpty() != newState.apps.isEmpty()) { in canApplyPredictions() 348 final List<ComponentKeyMapper> predictedApps = manager.getCurrentState().apps; in fillInPredictedRank() 358 public List<ComponentKeyMapper> apps; field in PredictionState
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | StorageItemPreferenceControllerTest.java | 285 final StorageItemPreference apps = new StorageItemPreference(mContext); in testMeasurementCompletedUpdatesPreferences() local 302 .thenReturn(apps); in testMeasurementCompletedUpdatesPreferences() 327 assertThat(apps.getSummary().toString()).isEqualTo("0.09 GB"); in testMeasurementCompletedUpdatesPreferences() 341 final StorageItemPreference apps = spy(new StorageItemPreference(mContext)); in settingUserIdAppliesNewIcons() local 342 apps.setIcon(R.drawable.ic_storage_apps); in settingUserIdAppliesNewIcons() 361 .thenReturn(apps); in settingUserIdAppliesNewIcons() 370 verify(apps, times(2)).setIcon(nullable(Drawable.class)); in settingUserIdAppliesNewIcons() 380 final StorageItemPreference apps = new StorageItemPreference(mContext); in displayPreference_dontHideFilePreferenceWhenEmulatedInternalStorageUsed() local 395 .thenReturn(apps); in displayPreference_dontHideFilePreferenceWhenEmulatedInternalStorageUsed() 410 final StorageItemPreference apps = new StorageItemPreference(mContext); in displayPreference_hideFilePreferenceWhenEmulatedStorageUnreadable() local [all …]
|
/packages/apps/Settings/tests/uitests/assets/ |
D | search_results_list | 150 Default apps;app_default_settings_screen 151 Default apps;number_enterprise_set_default_apps 162 Device admin apps;device_admin_settings 163 Device admin apps;device_administrators 164 Device admin apps;manage_device_admin 177 Display over other apps;system_alert_window 237 Force allow apps on external;force_allow_on_external 266 Install unknown apps;manage_external_sources 267 Installed apps;installed_apps_web_action 269 Instant apps;instant_app_web_action_toggle [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/ |
D | UnrestrictedDataAccessPreferenceController.java | 124 public void onRebuildComplete(ArrayList<AppEntry> apps) { in onRebuildComplete() argument 125 if (apps == null) { in onRebuildComplete() 132 final int N = apps.size(); in onRebuildComplete() 134 final AppEntry entry = apps.get(i); in onRebuildComplete() 204 final ArrayList<AppEntry> apps = mSession.rebuild(mFilter, in rebuild() local 206 if (apps != null) { in rebuild() 207 onRebuildComplete(apps); in rebuild()
|