Searched refs:mViewHolder (Results 1 - 24 of 24) sorted by relevance

/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
H A DGuidedActionStylistTest.java52 private GuidedActionsStylist.ViewHolder mViewHolder; field in class:GuidedActionStylistTest
74 mViewHolder = mGuidedActionsStylist.onCreateViewHolder(new FrameLayout(mContext));
89 mGuidedActionsStylist.onBindViewHolder(mViewHolder, mGuidedAction);
98 assertTrue((mViewHolder.mTitleView.getInputType() & InputType.TYPE_TEXT_FLAG_MULTI_LINE)
100 assertTrue((mViewHolder.mDescriptionView.getInputType()
114 mGuidedActionsStylist.onBindViewHolder(mViewHolder, mGuidedAction);
123 assertEquals(mViewHolder.mTitleView.getMaxLines(), DEFAULT_MAX_LINES);
124 assertEquals(mViewHolder.mDescriptionView.getMaxLines(), DEFAULT_MAX_LINES);
140 mGuidedActionsStylist.onBindViewHolder(mViewHolder, mGuidedAction);
142 assertTrue(Arrays.equals(mViewHolder
[all...]
H A DPlaybackGlueHostImplWithViewHolder.java33 protected PlaybackRowPresenter.ViewHolder mViewHolder; field in class:PlaybackGlueHostImplWithViewHolder
57 if (mViewHolder == null && mPlaybackRowPresenter != null && mRow != null) {
58 mViewHolder = (PlaybackRowPresenter.ViewHolder)
61 mPlaybackRowPresenter.onBindViewHolder(mViewHolder, mRow);
62 mRootView.addView(mViewHolder.view, mLayoutWidth, mLayoutHeight);
67 if (mViewHolder instanceof PlaybackSeekUi) {
68 ((PlaybackSeekUi) mViewHolder).setPlaybackSeekUiClient(mChainedClient);
75 if (mViewHolder != null) {
76 mPlaybackRowPresenter.onUnbindRowViewHolder(mViewHolder);
77 mPlaybackRowPresenter.onBindViewHolder(mViewHolder, mRo
[all...]
H A DPlaybackTransportRowPresenterTest.java57 PlaybackTransportRowPresenter.ViewHolder mViewHolder; field in class:PlaybackTransportRowPresenterTest
93 mViewHolder = (PlaybackTransportRowPresenter.ViewHolder) mHost.mViewHolder;
95 mViewHolder.mDescriptionViewHolder;
96 mNumbThumbs = mViewHolder.mThumbsBar.getChildCount();
132 assertEquals(mViewHolder.mThumbHeroIndex, heroIndex);
141 assertEquals(mViewHolder.mThumbHeroIndex, heroIndex);
143 int start = Math.max(0, mViewHolder.mThumbHeroIndex - mNumbThumbs / 2);
144 int end = Math.min(positions.length - 1, mViewHolder.mThumbHeroIndex + mNumbThumbs / 2);
146 mViewHolder
[all...]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DDetailsOverviewSharedElementHelper.java62 ViewHolder mViewHolder; field in class:DetailsOverviewSharedElementHelper
79 ImageView imageView = mViewHolder.mImageView;
99 ImageView imageView = mViewHolder.mImageView;
115 ImageView imageView = mViewHolder.mImageView;
136 if (mViewHolder == null || mViewHolder.mOverviewFrame != overviewView) {
144 View imageView = mViewHolder.mImageView;
150 final View rightPanel = mViewHolder.mRightPanel;
159 mViewHolder.mActionsRow.setVisibility(View.INVISIBLE);
160 mViewHolder
[all...]
H A DFullWidthDetailsOverviewSharedElementHelper.java66 ViewHolder mViewHolder; field in class:FullWidthDetailsOverviewSharedElementHelper
124 mViewHolder = vh;
128 if (mViewHolder != null) {
131 + mViewHolder.getOverviewView());
133 ViewCompat.setTransitionName(mViewHolder.getLogoViewHolder().view, null);
138 mViewHolder.getDetailsDescriptionFrame().postOnAnimation(new Runnable() {
142 Log.d(TAG, "setTransitionName "+mViewHolder.getOverviewView());
144 ViewCompat.setTransitionName(mViewHolder.getLogoViewHolder().view,
157 if (mViewHolder.getActionsRow().isFocused()) {
158 mViewHolder
[all...]
H A DDetailsOverviewRowPresenter.java72 DetailsOverviewRowPresenter.ViewHolder mViewHolder; field in class:DetailsOverviewRowPresenter.ActionsItemBridgeAdapter
75 mViewHolder = viewHolder;
80 if (mViewHolder.getOnItemViewClickedListener() != null
86 if (mViewHolder.getOnItemViewClickedListener() != null) {
87 mViewHolder.getOnItemViewClickedListener().onItemClicked(
89 mViewHolder, mViewHolder.getRow());
100 if (mViewHolder.getOnItemViewClickedListener() != null
108 viewHolder.itemView.removeOnLayoutChangeListener(mViewHolder.mLayoutChangeListener);
109 viewHolder.itemView.addOnLayoutChangeListener(mViewHolder
[all...]
H A DFullWidthDetailsOverviewRowPresenter.java113 FullWidthDetailsOverviewRowPresenter.ViewHolder mViewHolder; field in class:FullWidthDetailsOverviewRowPresenter.ActionsItemBridgeAdapter
116 mViewHolder = viewHolder;
121 if (mViewHolder.getOnItemViewClickedListener() != null
127 if (mViewHolder.getOnItemViewClickedListener() != null) {
128 mViewHolder.getOnItemViewClickedListener().onItemClicked(
130 mViewHolder, mViewHolder.getRow());
141 if (mViewHolder.getOnItemViewClickedListener() != null
149 viewHolder.itemView.removeOnLayoutChangeListener(mViewHolder.mLayoutChangeListener);
150 viewHolder.itemView.addOnLayoutChangeListener(mViewHolder
[all...]
H A DFocusHighlightHelper.java292 ItemBridgeAdapter.ViewHolder mViewHolder; field in class:FocusHighlightHelper.HeaderItemFocusHighlight.HeaderFocusAnimator
304 mViewHolder = (ItemBridgeAdapter.ViewHolder) ((RecyclerView) parent)
311 Presenter presenter = mViewHolder.getPresenter();
314 ((RowHeaderPresenter.ViewHolder) mViewHolder.getViewHolder()), level);
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
H A DTwoTargetPreferenceTest.java41 private PreferenceViewHolder mViewHolder; field in class:TwoTargetPreferenceTest
54 mViewHolder = PreferenceViewHolder.createInstanceForTests(mRootView);
56 mDivider = mViewHolder.findViewById(R.id.two_target_divider);
57 mWidgetFrame = mViewHolder.findViewById(android.R.id.widget_frame);
64 mPreference.onBindViewHolder(mViewHolder);
74 mPreference.onBindViewHolder(mViewHolder);
84 mPreference.onBindViewHolder(mViewHolder);
88 final LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) mViewHolder
100 mPreference.onBindViewHolder(mViewHolder);
104 final LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) mViewHolder
[all...]
H A DRestrictedPreferenceHelperTest.java46 private PreferenceViewHolder mViewHolder; field in class:RestrictedPreferenceHelperTest
52 mViewHolder = PreferenceViewHolder.createInstanceForTests(mock(View.class));
59 when(mViewHolder.itemView.findViewById(android.R.id.summary))
66 mHelper.onBindViewHolder(mViewHolder);
75 when(mViewHolder.itemView.findViewById(android.R.id.summary))
83 mHelper.onBindViewHolder(mViewHolder);
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
H A DAnimatedRecyclerView.java124 mRunningAnimations.put(anim.mViewHolder, anim);
183 if (anim.mViewHolder == item) {
240 dispatchChangeFinished(mViewHolder, true);
245 dispatchChangeStarting(mViewHolder, true);
264 MyViewHolder mViewHolder; field in class:AnimatedRecyclerView.ItemChangeAnimator
268 mViewHolder = viewHolder;
269 mMaxX = mViewHolder.itemView.getWidth();
270 mStartRatio = mViewHolder.textView.getTranslationX() / mMaxX;
276 mValueAnimator.setTarget(mViewHolder.itemView);
282 mViewHolder
[all...]
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
H A DAnimatedRecyclerView.java124 mRunningAnimations.put(anim.mViewHolder, anim);
183 if (anim.mViewHolder == item) {
240 dispatchChangeFinished(mViewHolder, true);
245 dispatchChangeStarting(mViewHolder, true);
264 MyViewHolder mViewHolder; field in class:AnimatedRecyclerView.ItemChangeAnimator
268 mViewHolder = viewHolder;
269 mMaxX = mViewHolder.itemView.getWidth();
270 mStartRatio = mViewHolder.textView.getTranslationX() / mMaxX;
276 mValueAnimator.setTarget(mViewHolder.itemView);
282 mViewHolder
[all...]
/frameworks/base/core/java/com/android/internal/widget/helper/
H A DItemTouchHelper.java315 endRecoverAnimation(animation.mViewHolder, true);
316 if (mPendingCleanup.remove(animation.mViewHolder.itemView)) {
317 mCallback.clearView(mRecyclerView, animation.mViewHolder);
319 select(animation.mViewHolder, animation.mActionState);
484 mCallback.clearView(mRecyclerView, recoverAnimation.mViewHolder);
673 && anim.mViewHolder.getAdapterPosition() != RecyclerView.NO_POSITION) {
680 mCallback.onSwiped(anim.mViewHolder, swipeDir);
881 if (anim.mViewHolder == viewHolder) {
1012 final View view = anim.mViewHolder.itemView;
1123 if (anim.mViewHolder
2290 final ViewHolder mViewHolder; field in class:ItemTouchHelper.RecoverAnimation
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DItemTouchHelper.java325 endRecoverAnimation(animation.mViewHolder, true);
326 if (mPendingCleanup.remove(animation.mViewHolder.itemView)) {
327 mCallback.clearView(mRecyclerView, animation.mViewHolder);
329 select(animation.mViewHolder, animation.mActionState);
494 mCallback.clearView(mRecyclerView, recoverAnimation.mViewHolder);
696 && anim.mViewHolder.getAdapterPosition() != RecyclerView.NO_POSITION) {
703 mCallback.onSwiped(anim.mViewHolder, swipeDir);
904 if (anim.mViewHolder == viewHolder) {
1033 final View view = anim.mViewHolder.itemView;
1144 if (anim.mViewHolder
2359 final ViewHolder mViewHolder; field in class:ItemTouchHelper.RecoverAnimation
[all...]
H A DRecyclerView.java4563 return ((LayoutParams) child.getLayoutParams()).mViewHolder;
5759 rvLayoutParams.mViewHolder = holder;
5987 rvLayoutParams.mViewHolder = holder;
8298 Log.d(TAG, "consuming pending invalidate on child " + lp.mViewHolder);
11301 ViewHolder mViewHolder; field in class:RecyclerView.LayoutParams
11336 return mViewHolder.needsUpdate();
11346 return mViewHolder.isInvalid();
11357 return mViewHolder.isRemoved();
11368 return mViewHolder.isUpdated();
11376 return mViewHolder
[all...]
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/media/
H A DPlaybackBannerControlGlueTest.java69 PlaybackControlsRowPresenter.ViewHolder mViewHolder; field in class:PlaybackBannerControlGlueTest
185 mViewHolder = (PlaybackControlsRowPresenter.ViewHolder)
187 presenter.onBindViewHolder(mViewHolder, mGlue.getControlsRow());
H A DPlaybackTransportControlGlueTest.java71 PlaybackTransportRowPresenter.ViewHolder mViewHolder; field in class:PlaybackTransportControlGlueTest
94 mViewHolder = (PlaybackTransportRowPresenter.ViewHolder)
96 presenter.onBindViewHolder(mViewHolder, mGlue.getControlsRow());
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DChildHelperTest.java58 lp.mViewHolder = mockViewHolder;
H A DBaseLinearLayoutManagerTest.java612 TestViewHolder vh = (TestViewHolder) lp.mViewHolder;
H A DBaseRecyclerViewInstrumentationTest.java621 Item item = ((TestViewHolder) lp.mViewHolder).mBoundItem;
H A DBaseStaggeredGridLayoutManagerTest.java761 TestViewHolder vh = (TestViewHolder) lp.mViewHolder;
H A DStaggeredGridLayoutManagerBaseConfigSetTest.java573 TestViewHolder vh = (TestViewHolder) layoutParams.mViewHolder;
H A DRecyclerViewLayoutTest.java3719 RecyclerView.ViewHolder vh = lp.mViewHolder;
/frameworks/base/core/java/com/android/internal/widget/
H A DRecyclerView.java4218 return ((LayoutParams) child.getLayoutParams()).mViewHolder;
5334 rvLayoutParams.mViewHolder = holder;
5558 rvLayoutParams.mViewHolder = holder;
7729 Log.d(TAG, "consuming pending invalidate on child " + lp.mViewHolder);
10458 ViewHolder mViewHolder; field in class:RecyclerView.LayoutParams
10493 return mViewHolder.needsUpdate();
10503 return mViewHolder.isInvalid();
10514 return mViewHolder.isRemoved();
10525 return mViewHolder.isUpdated();
10533 return mViewHolder
[all...]

Completed in 223 milliseconds