Home
last modified time | relevance | path

Searched refs:mHighlightPosition (Results 1 – 5 of 5) sorted by relevance

/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DHighlightableAdapter.java50 private int mHighlightPosition; field in HighlightableAdapter
84 holder.itemView.setSelected(mHighlightPosition == position); in onBindViewHolder()
105 if (mHighlightPosition == position) { in updateBackground()
121 if (mHighlightPosition < 0) { in requestHighlight()
124 mRecyclerView.getView().post(() -> notifyItemChanged(mHighlightPosition)); in requestHighlight()
130 notifyItemChanged(mHighlightPosition); in requestHighlight()
131 mHighlightPosition = newPosition; in requestHighlight()
166 mHighlightPosition = getPositionFromTitle(mHighlightTitle); in afterTextChanged()
174 mRecyclerView.getView().post(() -> mRecyclerView.scrollToPosition(mHighlightPosition)); in onSearchEnded()
178 mHighlightPosition = to; in afterFavClicked()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DHighlightablePreferenceGroupAdapter.java38 private int mHighlightPosition = RecyclerView.NO_POSITION; field in HighlightablePreferenceGroupAdapter
65 if (position == mHighlightPosition) { in updateBackground()
88 int oldPosition = mHighlightPosition; in requestHighlight()
89 mHighlightPosition = position; in requestHighlight()
103 if (mHighlightPosition < 0) { in clearHighlight()
106 int oldPosition = mHighlightPosition; in clearHighlight()
107 mHighlightPosition = RecyclerView.NO_POSITION; in clearHighlight()
/packages/apps/Settings/src/com/android/settings/widget/
DHighlightablePreferenceGroupAdapter.java69 private int mHighlightPosition = RecyclerView.NO_POSITION; field in HighlightablePreferenceGroupAdapter
126 if (position == mHighlightPosition in updateBackground()
166 recyclerView.smoothScrollToPosition(mHighlightPosition); in requestHighlight()
167 highlightAndFocusTargetItem(recyclerView, mHighlightPosition); in requestHighlight()
176 notifyItemChanged(mHighlightPosition); in highlightAndFocusTargetItem()
183 notifyItemChanged(mHighlightPosition); in highlightAndFocusTargetItem()
206 if (allowHighlight && mHighlightPosition != position) { in ensureHighlightPosition()
209 mHighlightPosition = position; in ensureHighlightPosition()
222 mHighlightPosition = RecyclerView.NO_POSITION; in requestRemoveHighlightDelayed()
DHighlightableTopLevelPreferenceAdapter.java65 private int mHighlightPosition = RecyclerView.NO_POSITION; field in HighlightableTopLevelPreferenceAdapter
105 if (position == mHighlightPosition in updateBackground()
123 final int previousPosition = mHighlightPosition; in requestHighlight()
126 mHighlightPosition = RecyclerView.NO_POSITION; in requestHighlight()
150 mHighlightPosition = position; in requestHighlight()
159 if (position == mHighlightPosition) { in requestHighlight()
163 mHighlightPosition = position; in requestHighlight()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DHighlightablePreferenceGroupAdapter.java59 private int mHighlightPosition = RecyclerView.NO_POSITION; field in HighlightablePreferenceGroupAdapter
83 if (position == mHighlightPosition in updateBackground()
124 recyclerView.smoothScrollToPosition(mHighlightPosition); in requestHighlight()
133 notifyItemChanged(mHighlightPosition); in requestHighlight()
149 if (allowHighlight && mHighlightPosition != position) { in ensureHighlightPosition()
152 mHighlightPosition = position; in ensureHighlightPosition()
166 mHighlightPosition = RecyclerView.NO_POSITION; in requestRemoveHighlightDelayed()