/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/picker/ |
H A D | WidgetsDiffReporterTest.java | 130 List<WidgetsListBaseEntry> newList = List.of( in headersOnly_emptyListToNonEmpty_shouldInvokeNotifyDataSetChanged() local 141 assertThat(currentList).containsExactlyElementsIn(newList); in headersOnly_emptyListToNonEmpty_shouldInvokeNotifyDataSetChanged() 150 List<WidgetsListBaseEntry> newList = List.of(); in headersOnly_nonEmptyToEmptyList_shouldInvokeNotifyDataSetChanged() local 181 assertThat(currentList).containsExactlyElementsIn(newList); in headersOnly_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks() 204 assertThat(currentList).containsExactlyElementsIn(newList); in headersContentsMix_itemAddedAndRemovedInTheNewList_shouldInvokeCorrectCallbacks() 213 List<WidgetsListBaseEntry> newList = in headersContentsMix_userInteractWithHeader_shouldInvokeCorrectCallbacks() local 222 assertThat(currentList).containsExactlyElementsIn(newList); in headersContentsMix_userInteractWithHeader_shouldInvokeCorrectCallbacks() 231 List<WidgetsListBaseEntry> newList = List.of( in headersContentsMix_headerWidgetsModified_shouldInvokeCorrectCallbacks() local 243 assertThat(currentList).containsExactlyElementsIn(newList); in headersContentsMix_headerWidgetsModified_shouldInvokeCorrectCallbacks() 252 List<WidgetsListBaseEntry> newList = List.of( in headersContentsMix_contentMaxSpanSizeModified_shouldInvokeCorrectCallbacks() local [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/media/metrics/ |
H A D | MediaMetricsManagerService.java | 111 List<String> newList = getListLocked(PLAYER_METRICS_APP_ALLOWLIST); in updateConfigs() local 112 if (newList != null || mMode != MEDIA_METRICS_MODE_ALLOWLIST) { in updateConfigs() 115 mAllowlist = newList; in updateConfigs() 117 newList = getListLocked(PLAYER_METRICS_PER_APP_ATTRIBUTION_ALLOWLIST); in updateConfigs() 118 if (newList != null || mMode != MEDIA_METRICS_MODE_ALLOWLIST) { in updateConfigs() 119 mNoUidAllowlist = newList; in updateConfigs() 121 newList = getListLocked(PLAYER_METRICS_APP_BLOCKLIST); in updateConfigs() 122 if (newList != null || mMode != MEDIA_METRICS_MODE_BLOCKLIST) { in updateConfigs() 123 mBlockList = newList; in updateConfigs() 126 if (newList != null || mMode != MEDIA_METRICS_MODE_BLOCKLIST) { in updateConfigs() [all …]
|
/aosp12/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/ |
H A D | LockTargetStateAnalysis.java | 100 List<LockTarget> newList = new ArrayList<>(state1.getTargets()); in merge() local 102 if (!newList.contains(otherTarget)) { in merge() 103 newList.add(otherTarget); in merge() 107 return new LockTargetState(base.getType(), newList); in merge()
|
/aosp12/build/soong/partner/bpfix/extensions/ |
H A D | headers.go | 61 newList := make([]parser.Expression, 0, len(list.Values)) 68 newList = append(newList, item) 71 list.Values = newList
|
/aosp12/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/browse/ |
H A D | MediaBrowserViewModelImpl.java | 124 @Nullable List<MediaItemMetadata> oldList, @Nullable List<MediaItemMetadata> newList) { in computeRemovedItems() argument 130 if (newList == null || newList.isEmpty()) { in computeRemovedItems() 136 itemsById.removeAll(newList); in computeRemovedItems()
|
/aosp12/packages/apps/Car/libs/car-qc-lib/tests/unit/src/com/android/car/qc/ |
H A D | QCListTest.java | 50 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()
|
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/ |
H A D | ManageApplicationsController.java | 125 final List<Preference> newList = new ArrayList<>(apps.size() + 1); in updateAppList() local 133 newList.add(mCallback.bindPreference(recycle, entry)); in updateAppList() 142 if (newList.size() > 0) { in updateAppList() 143 for (Preference prefToAdd : newList) { in updateAppList()
|
/aosp12/packages/apps/Settings/src/com/android/settings/development/ |
H A D | WirelessDebuggingFragment.java | 317 Map<String, PairDevice> newList = mAdbManager.getPairedDevices(); in onEnabled() local 318 updatePairedDevicePreferences(newList); in onEnabled() 348 private void updatePairedDevicePreferences(Map<String, PairDevice> newList) { in updatePairedDevicePreferences() argument 351 if (newList == null) { in updatePairedDevicePreferences() 359 for (Map.Entry<String, PairDevice> entry : newList.entrySet()) { in updatePairedDevicePreferences() 377 if (newList.get(entry.getKey()) == null) { in updatePairedDevicePreferences() 384 p.setPairedDevice(newList.get(entry.getKey())); in updatePairedDevicePreferences() 391 newList.entrySet()) { in updatePairedDevicePreferences()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/profiles/ |
H A D | ProfilesBasePreferenceController.java | 110 List<Preference> newList) { in profileListsAreDifferent() argument 111 if (currentList.size() != newList.size()) { in profileListsAreDifferent() 117 if (preferencesAreDifferent(currentList.get(i), newList.get(i))) { in profileListsAreDifferent()
|
/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/ |
H A D | CarNotificationDiff.java | 51 @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()
|
/aosp12/frameworks/av/media/libstagefright/ |
H A D | MediaExtractorFactory.cpp | 286 std::shared_ptr<std::list<sp<ExtractorPlugin>>> newList(new std::list<sp<ExtractorPlugin>>()); in LoadExtractors() local 298 "/extractors", &dlextinfo, *newList); in LoadExtractors() 308 "/extractors", NULL, *newList); in LoadExtractors() 314 "/extractors", NULL, *newList); in LoadExtractors() 316 newList->sort(compareFunc); in LoadExtractors() 317 gPlugins = newList; in LoadExtractors()
|
/aosp12/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/ |
H A D | SearchResultDiffCallback.java | 33 List<? extends SearchResult> newList) { in SearchResultDiffCallback() argument 35 mNewList = newList; in SearchResultDiffCallback()
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/fallback/ |
H A D | FallbackRecentsView.java | 177 ArrayList<GroupTask> newList = new ArrayList<>(taskGroups.size() + 1); in applyLoadPlan() local 178 newList.addAll(taskGroups); in applyLoadPlan() 179 newList.add(new GroupTask( in applyLoadPlan() 182 taskGroups = newList; in applyLoadPlan()
|
/aosp12/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/ |
H A D | JobSchedulerWrapper.java | 262 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()
|
/aosp12/packages/apps/TV/src/com/android/tv/onboarding/ |
H A D | SetupSourcesFragment.java | 257 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()
|
/aosp12/frameworks/base/core/java/android/hardware/ |
H A D | SystemSensorManager.java | 517 List<Sensor> oldList, List<Sensor> newList, List<Sensor> updated, in diffSortedSensorList() argument 524 if (j < oldList.size() && (i >= newList.size() in diffSortedSensorList() 525 || newList.get(i).getHandle() > oldList.get(j).getHandle())) { in diffSortedSensorList() 531 } else if (i < newList.size() && (j >= oldList.size() in diffSortedSensorList() 532 || newList.get(i).getHandle() < oldList.get(j).getHandle())) { in diffSortedSensorList() 535 added.add(newList.get(i)); in diffSortedSensorList() 538 updated.add(newList.get(i)); in diffSortedSensorList() 541 } else if (i < newList.size() && j < oldList.size() in diffSortedSensorList() 542 && newList.get(i).getHandle() == oldList.get(j).getHandle()) { in diffSortedSensorList()
|
/aosp12/packages/services/Telephony/src/com/android/phone/ |
H A D | ShortcutViewUtils.java | 332 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()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
H A D | SimSelectorView.java | 137 public void bindData(final List<SubscriptionListEntry> newList) { in bindData() argument 139 addAll(newList); in bindData()
|
/aosp12/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/ |
H A D | ProcessErrorsTest.java | 269 List<ProcessErrorStateInfo> newList = new ArrayList<ProcessErrorStateInfo>(errList.size()); in reportWrappedListContents() local 271 newList.add(err.info); in reportWrappedListContents() 273 return reportListContents(newList); in reportWrappedListContents()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | BluetoothControllerImpl.java | 253 List<CachedBluetoothDevice> newList = new ArrayList<>(); in updateConnected() local 262 newList.add(device); in updateConnected() 266 if (newList.isEmpty() && state == BluetoothAdapter.STATE_CONNECTED) { in updateConnected() 273 mConnectedDevices.addAll(newList); in updateConnected()
|
/aosp12/art/tools/dexfuzz/src/dexfuzz/fuzzers/ |
H A D | Fuzzer.java | 338 List<Executor> newList = new ArrayList<Executor>(); in analyseResults() local 339 newList.add(executor); in analyseResults() 340 outputMap.put(output, newList); in analyseResults()
|
/aosp12/packages/apps/Settings/src/com/android/settings/localepicker/ |
H A D | LocaleDragAndDropAdapter.java | 266 final Locale[] newList = new Locale[count]; in doTheUpdate() local 270 newList[i] = li.getLocale(); in doTheUpdate() 273 final LocaleList ll = new LocaleList(newList); in doTheUpdate()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | PackageTagsListTest.java | 154 PackageTagsList newList = PackageTagsList.CREATOR.createFromParcel(parcel); in testWriteToParcel() local 157 assertEquals(list, newList); in testWriteToParcel()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/ |
H A D | SettingsActivity.java | 125 public void setSettingsItems(final List<SettingsItem> newList) { in setSettingsItems() argument 127 addAll(newList); in setSettingsItems()
|
/aosp12/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | HdmiUtils.java | 309 List<T> newList = new ArrayList<>(); in mergeToUnmodifiableList() local 310 newList.addAll(a); in mergeToUnmodifiableList() 311 newList.addAll(b); in mergeToUnmodifiableList() 312 return Collections.unmodifiableList(newList); in mergeToUnmodifiableList()
|