Home
last modified time | relevance | path

Searched refs:itemPosition (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Dialer/java/com/android/incallui/rtt/impl/
DRttChatAdapter.java101 public void onBindViewHolder(ViewHolder viewHolder, int itemPosition) { in onBindViewHolder() argument
102 switch (getItemViewType(itemPosition)) { in onBindViewHolder()
107 int messagePosition = toMessagePosition(itemPosition); in onBindViewHolder()
151 private int toMessagePosition(int itemPosition) { in toMessagePosition() argument
153 return itemPosition - 1; in toMessagePosition()
155 return itemPosition; in toMessagePosition()
/packages/apps/ThemePicker/src/com/android/customization/picker/common/ui/view/
DItemSpacing.kt26 override fun getItemOffsets(outRect: Rect, itemPosition: Int, parent: RecyclerView) { in getItemOffsets()
27 val addSpacingToStart = itemPosition > 0 in getItemOffsets()
28 val addSpacingToEnd = itemPosition < (parent.adapter?.itemCount ?: 0) - 1 in getItemOffsets()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DScrollableLayoutManager.java106 int itemPosition = holder.getLayoutPosition(); in computeVerticalScrollOffset() local
107 if (itemPosition < 0) { in computeVerticalScrollOffset()
110 return getPaddingTop() + getItemsHeight(adapter, itemPosition) - getDecoratedTop(child); in computeVerticalScrollOffset()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DConfirmDialogFragment.java65 void onConfirm(int tag, boolean confirmed, int itemPosition); in onConfirm() argument
178 private void informCaller(boolean confirmed, int itemPosition) { in informCaller() argument
189 listener.onConfirm(getTagInCaller(), confirmed, itemPosition); in informCaller() local
DToggleSubscriptionDialogActivity.java162 public void onConfirm(int tag, boolean confirmed, int itemPosition) { in onConfirm() argument
212 if (itemPosition != -1) { in onConfirm()
213 removedSubInfo = (mActiveSubInfos != null) ? mActiveSubInfos.get(itemPosition) in onConfirm()
DDeleteEuiccSubscriptionDialogActivity.java99 public void onConfirm(int tag, boolean confirmed, int itemPosition) { in onConfirm() argument
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DGalleryActionBar.java373 public boolean onNavigationItemSelected(int itemPosition, long itemId) { in onNavigationItemSelected() argument
374 if (itemPosition != mCurrentIndex && mClusterRunner != null in onNavigationItemSelected()
381 mAlbumModeListener.onAlbumModeSelected(itemPosition); in onNavigationItemSelected()
383 mClusterRunner.doCluster(sClusterItems[itemPosition].action); in onNavigationItemSelected()
/packages/apps/Settings/src/com/android/settings/sim/
DSwitchToEsimConfirmDialogActivity.java105 public void onConfirm(int tag, boolean confirmed, int itemPosition) { in onConfirm() argument
DDsdsDialogActivity.java88 public void onConfirm(int tag, boolean confirmed, int itemPosition) { in onConfirm() argument
/packages/apps/Calendar/src/com/android/calendar/
DAllInOneActivity.kt1017 override fun onNavigationItemSelected(itemPosition: Int, itemId: Long): Boolean { in onNavigationItemSelected()
1018 when (itemPosition) { in onNavigationItemSelected()
1034 Log.w(TAG, "ItemSelected event from unknown button: $itemPosition") in onNavigationItemSelected()
1036 TAG, "CurrentView:" + mCurrentView + " Button:" + itemPosition + in onNavigationItemSelected()