Home
last modified time | relevance | path

Searched refs:newCount (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiRecyclerView.java394 int newCount = adapter.getItemCount(); in onRestrictionsChanged() local
396 if (newCount == originalCount) { in onRestrictionsChanged()
400 if (newCount < originalCount) { in onRestrictionsChanged()
401 adapter.notifyItemRangeRemoved(newCount, originalCount - newCount); in onRestrictionsChanged()
403 adapter.notifyItemRangeInserted(originalCount, newCount - originalCount); in onRestrictionsChanged()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/
DPagedRecyclerView.java318 int newCount = mAdapter.getItemCount(); in updateCarUxRestrictions() local
320 if (newCount == originalCount) { in updateCarUxRestrictions()
324 if (newCount < originalCount) { in updateCarUxRestrictions()
326 newCount, originalCount - newCount); in updateCarUxRestrictions()
329 originalCount, newCount - originalCount); in updateCarUxRestrictions()
/packages/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/
DLeanbackKeyboardContainer.java1389 final int newCount = suggestions.size(); in updateSuggestions() local
1391 if (newCount < oldCount) { in updateSuggestions()
1393 mSuggestions.removeViews(newCount, oldCount-newCount); in updateSuggestions()
1394 } else if (newCount > oldCount) { in updateSuggestions()
1396 for (int i = oldCount; i < newCount; i++) { in updateSuggestions()
1403 for (int i = 0; i < newCount; i++) { in updateSuggestions()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactPickerFragment.java450 public void onContactChipsChanged(final int oldCount, final int newCount) { in onContactChipsChanged() argument
451 Assert.isTrue(oldCount != newCount); in onContactChipsChanged()
464 mHost.onParticipantCountChanged(ContactPickerData.getCanAddMoreParticipants(newCount)); in onContactChipsChanged()
DContactRecipientAutoCompleteView.java54 void onContactChipsChanged(int oldCount, int newCount); in onContactChipsChanged() argument
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSlotView.java287 int newCount = 0; in render() local
292 if ((r & RENDER_MORE_PASS) != 0) requestedSlot[newCount++] = i; in render()
294 requestCount = newCount; in render()