Home
last modified time | relevance | path

Searched refs:newList (Results 1 – 25 of 33) sorted by relevance

12

/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/specialaccess/
DManageApplicationsController.java125 final List<PreferenceCompat> newList = new ArrayList<>(apps.size() + 1); in updateAppList() local
128 newList.add(mCallback.createAppPreference(entry)); in updateAppList()
130 newList.add(new PreferenceCompat(HEADER_KEY)); in updateAppList()
131 if (newList.size() == 1) { in updateAppList()
132 newList.add(mCallback.getEmptyPreference()); in updateAppList()
134 mUIUpdateCallback.notifyUpdateAll(mStateIdentifier, newList); in updateAppList()
/packages/apps/Car/systemlibs/car-qc-lib/tests/unit/src/com/android/car/qc/
DQCListTest.java50 QCList newList = writeAndLoadFromBundle(list); in createFromParcel_accurateData() local
51 assertThat(newList.getType()).isEqualTo(QC_TYPE_LIST); in createFromParcel_accurateData()
52 assertThat(newList.getRows().size()).isEqualTo(1); in createFromParcel_accurateData()
/packages/apps/Settings/src/com/android/settings/development/
DWirelessDebuggingFragment.java320 FingerprintAndPairDevice[] newList = mAdbManager.getPairedDevices(); in onEnabled() local
322 for (FingerprintAndPairDevice pair : newList) { in onEnabled()
355 private void updatePairedDevicePreferences(Map<String, PairDevice> newList) { in updatePairedDevicePreferences() argument
358 if (newList == null) { in updatePairedDevicePreferences()
366 for (Map.Entry<String, PairDevice> entry : newList.entrySet()) { in updatePairedDevicePreferences()
384 if (newList.get(entry.getKey()) == null) { in updatePairedDevicePreferences()
391 p.setPairedDevice(newList.get(entry.getKey())); in updatePairedDevicePreferences()
398 newList.entrySet()) { in updatePairedDevicePreferences()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DManageApplicationsController.java136 final List<Preference> newList = new ArrayList<>(apps.size() + 1); in updateAppList() local
144 newList.add(mCallback.bindPreference(recycle, entry)); in updateAppList()
153 if (newList.size() > 0) { in updateAppList()
154 for (Preference prefToAdd : newList) { in updateAppList()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationDiff.java51 @NonNull List<NotificationGroup> newList) { in CarNotificationDiff() argument
52 this(context, oldList, newList, ContentLimitingAdapter.UNLIMITED); in CarNotificationDiff()
56 @NonNull List<NotificationGroup> newList, int maxItems) { in CarNotificationDiff() argument
59 mNewList = newList; in CarNotificationDiff()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DProfilesBasePreferenceController.java112 List<Preference> newList) { in profileListsAreDifferent() argument
113 if (currentList.size() != newList.size()) { in profileListsAreDifferent()
119 if (preferencesAreDifferent(currentList.get(i), newList.get(i))) { in profileListsAreDifferent()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/
DLauncherItemDiffCallback.java31 public LauncherItemDiffCallback(List<LauncherItem> oldList, List<LauncherItem> newList) { in LauncherItemDiffCallback() argument
33 mNewList = newList; in LauncherItemDiffCallback()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/
DSearchResultDiffCallback.java33 List<? extends SearchResult> newList) { in SearchResultDiffCallback() argument
35 mNewList = newList; in SearchResultDiffCallback()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DWirelessDebuggingFragment.java221 FingerprintAndPairDevice[] newList = mAdbManager.getPairedDevices(); in updatePreferenceState() local
223 for (FingerprintAndPairDevice pair : newList) { in updatePreferenceState()
307 private void updatePairedDevicePreferences(Map<String, PairDevice> newList) { in updatePairedDevicePreferences() argument
308 if (newList == null) { in updatePairedDevicePreferences()
316 if (!newList.containsKey(p.getKey())) { in updatePairedDevicePreferences()
320 p.setPairedDevice(newList.get(p.getKey())); in updatePairedDevicePreferences()
326 newList.entrySet()) { in updatePairedDevicePreferences()
/packages/apps/TV/src/com/android/tv/onboarding/
DSetupSourcesFragment.java257 List<TvInputInfo> newList = new ArrayList<>(mInputs); in buildInputs() local
259 newList.remove(input); in buildInputs()
261 if (newList.size() > 0 && mSetupUtils.isNewInput(newList.get(0).getId())) { in buildInputs()
262 mNewlyAddedInputId = newList.get(0).getId(); in buildInputs()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DJobSchedulerWrapper.java262 private synchronized List<JobInfo> newJobsSince(List<JobInfo> oldList, List<JobInfo> newList) { in newJobsSince() argument
263 return findDiffBetween(newList, oldList); in newJobsSince()
267 List<JobInfo> oldList, List<JobInfo> newList) { in completedJobsSince() argument
269 List<JobInfo> completedJobsList = findDiffBetween(oldList, newList); in completedJobsSince()
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DThresholdGroup.java43 ArrayList<Threshold> newList = new ArrayList<>(ths); in alignGroupId() local
44 for (Threshold th : newList) { in alignGroupId()
47 return newList; in alignGroupId()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/fallback/
DFallbackRecentsView.java201 ArrayList<GroupTask> newList = new ArrayList<>(taskGroups.size() + 1); in applyLoadPlan() local
202 newList.addAll(taskGroups); in applyLoadPlan()
203 newList.add(new GroupTask(mHomeTask, null, null)); in applyLoadPlan()
204 taskGroups = newList; in applyLoadPlan()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/
DDataSourcesViewModel.kt233 fun setEditedPriorityList(newList: List<AppMetadata>) { in <lambda>()
234 _editedPriorityList.value = newList in <lambda>()
237 fun setEditedPotentialAppSources(newList: List<AppMetadata>) { in <lambda>()
238 _editedPotentialAppSources.value = newList in <lambda>()
/packages/services/Telephony/src/com/android/phone/
DShortcutViewUtils.java332 List<EmergencyNumber> newList = new ArrayList<>(emergencyNumberList.size()); in removeCarrierSpecificPrefixes() local
357 if (!newList.contains(newNumber)) { in removeCarrierSpecificPrefixes()
358 newList.add(newNumber); in removeCarrierSpecificPrefixes()
361 return newList; in removeCarrierSpecificPrefixes()
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplayPanoManager/src/com/android/car/pano/manager/reorder/
DReorderAppCardViewAdapter.kt98 newList: MutableList<AppCardContainer>, in <lambda>()
103 newList.forEach { in <lambda>()
DReorderAppCardTouchHelper.kt89 fun setAppCards(newList: MutableList<AppCardContainer>, from: Optional<Int>, to: Optional<Int>) in onRowMoved()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DSimSelectorView.java137 public void bindData(final List<SubscriptionListEntry> newList) { in bindData() argument
139 addAll(newList); in bindData()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissiontypes/
DHealthPermissionTypesViewModel.kt96 fun setEditedPriorityList(newList: List<AppMetadata>) { in setEditedPriorityList()
97 _editedPriorityList.postValue(newList) in setEditedPriorityList()
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DSettingsActivity.java125 public void setSettingsItems(final List<SettingsItem> newList) { in setSettingsItems() argument
127 addAll(newList); in setSettingsItems()
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleDragAndDropAdapter.java315 final Locale[] newList = new Locale[count]; in doTheUpdate() local
319 newList[i] = li.getLocale(); in doTheUpdate()
322 final LocaleList ll = new LocaleList(newList); in doTheUpdate()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DLinkedNode.java68 public static <T extends LinkedNode> List<T> newList() { in newList() method in LinkedNode
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAlphabeticalAppsList.java471 MyDiffCallback(List<AdapterItem> oldList, List<AdapterItem> newList) { in MyDiffCallback() argument
473 mNewList = newList; in MyDiffCallback()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/
DPeopleAndOptionsFragment.java253 public void updateParticipants(final List<ParticipantData> newList) { in updateParticipants() argument
255 addAll(newList); in updateParticipants()
/packages/services/Car/service/src/com/android/car/hal/fakevhal/
DFakeVehicleStub.java598 SparseArray<ConfigDeclaration> result, SparseArray<ConfigDeclaration> newList) { in combineConfigDeclarations() argument
599 for (int i = 0; i < newList.size(); i++) { in combineConfigDeclarations()
600 result.put(newList.keyAt(i), newList.valueAt(i)); in combineConfigDeclarations()

12