Home
last modified time | relevance | path

Searched refs:apps (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateNotificationBridgeTest.java209 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/
DAllAppsFragment.java16 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/
DPictureInPictureSettingsTest.java94 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/apps/Settings/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceController.java85 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/enterprise/
DEnterpriseSetDefaultAppsListPreferenceController.java85 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/
DNdefMessageParser.java17 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;
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationListItemManagerTest.java84 ArrayList<ApplicationsState.AppEntry> apps = new ArrayList<>(); in onRebuildComplete_shouldNotifyRegisteredListener() local
94 apps.add(appEntry); in onRebuildComplete_shouldNotifyRegisteredListener()
98 mApplicationListItemManager.onRebuildComplete(apps); in onRebuildComplete_shouldNotifyRegisteredListener()
100 verify(mAppListItemListener1).onDataLoaded(apps); in onRebuildComplete_shouldNotifyRegisteredListener()
101 verify(mAppListItemListener2).onDataLoaded(apps); in onRebuildComplete_shouldNotifyRegisteredListener()
106 ArrayList<ApplicationsState.AppEntry> apps = new ArrayList<>(); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener() local
116 apps.add(appEntry); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener()
121 mApplicationListItemManager.onRebuildComplete(apps); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener()
123 verify(mAppListItemListener1).onDataLoaded(apps); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener()
124 verify(mAppListItemListener2, times(0)).onDataLoaded(apps); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener()
DApplicationsSettingsPreferenceControllerTest.java75 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/Launcher3/quickstep/src/com/android/quickstep/util/
DRemoteAnimationTargetSet.java34 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/
DManageApplicationsController.java17 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/Launcher/src/com/android/car/carlauncher/
DAppLauncherUtils.java80 LauncherAppsInfo(@NonNull Map<String, AppMetaData> apps, in LauncherAppsInfo() argument
82 mApplications = apps; in LauncherAppsInfo()
139 Map<String, AppMetaData> apps = new HashMap<>( in getAllLauncherApps() local
147 if (shouldAdd(packageName, apps, blackList)) { in getAllLauncherApps()
160 apps.put(packageName, appMetaData); in getAllLauncherApps()
167 if (shouldAdd(packageName, apps, blackList)) { in getAllLauncherApps()
179 apps.put(packageName, appMetaData); in getAllLauncherApps()
183 return new LauncherAppsInfo(apps, mediaServicesMap); in getAllLauncherApps()
186 private static boolean shouldAdd(String packageName, Map<String, AppMetaData> apps, in shouldAdd() argument
188 return !apps.containsKey(packageName) && !blackList.contains(packageName); in shouldAdd()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageApplicationListPreferenceControllerTest.java73 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/
DPermissionApps.java177 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/managedomainurls/
DDomainAppPreferenceController.java96 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/apps/Settings/src/com/android/settings/applications/managedomainurls/
DDomainAppPreferenceController.java96 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/apps/PermissionController/src/com/android/packageinstaller/permission/service/
DRuntimePermissionsUpgradeController.java86 final List<PackageInfo> apps = context.getPackageManager() in whitelistAllSystemAppPermissions() local
91 final int appCount = apps.size(); in whitelistAllSystemAppPermissions()
93 final PackageInfo app = apps.get(i); in whitelistAllSystemAppPermissions()
129 final List<PackageInfo> apps = context.getPackageManager() in onUpgradeLocked() local
132 final int appCount = apps.size(); in onUpgradeLocked()
154 final PackageInfo app = apps.get(i); in onUpgradeLocked()
185 final PackageInfo app = apps.get(i); in onUpgradeLocked()
215 final PackageInfo app = apps.get(i); in onUpgradeLocked()
238 final PackageInfo app = apps.get(i); in onUpgradeLocked()
/packages/apps/Settings/src/com/android/settings/applications/appops/
DAppOpsCategory.java137 @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/applications/appops/
DAppOpsCategory.java137 @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/
DZenModeAllBypassingAppsPreferenceController.java103 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/src/com/android/settings/notification/
DZenModeAllBypassingAppsPreferenceController.java103 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/
DApplicationListPreferenceControllerTest.java103 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/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/
DPredictionUiStateManager.java183 .setPredictedApps(mCurrentState.apps); in applyState()
222 state.apps = Collections.EMPTY_LIST; in parseLastState()
226 state.apps = new ArrayList<>(); in parseLastState()
238 state.apps.add(new ComponentKeyMapper(mContext, key, mDynamicItemCache)); in parseLastState()
253 int total = state.apps.size(); in updateDependencies()
255 ComponentKeyMapper mapper = state.apps.get(i); in updateDependencies()
297 || mCurrentState.apps.isEmpty() != newState.apps.isEmpty()) { in canApplyPredictions()
324 public List<ComponentKeyMapper> apps; field in PredictionState
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DStorageItemPreferenceControllerTest.java285 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/
Dsearch_results_list150 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/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsStore.java62 public void setApps(List<AppInfo> apps) { in setApps() argument
64 addOrUpdateApps(apps); in setApps()
90 public void addOrUpdateApps(List<AppInfo> apps) { in addOrUpdateApps() argument
91 for (AppInfo app : apps) { in addOrUpdateApps()
100 public void removeApps(List<AppInfo> apps) { in removeApps() argument
101 for (AppInfo app : apps) { in removeApps()

12345678910>>...12