Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DTwoTargetPreferenceTest.java45 private PreferenceViewHolder mViewHolder; field in TwoTargetPreferenceTest
58 mViewHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp()
60 mDivider = mViewHolder.findViewById(R.id.two_target_divider); in setUp()
61 mWidgetFrame = mViewHolder.findViewById(android.R.id.widget_frame); in setUp()
68 mPreference.onBindViewHolder(mViewHolder); in bind_noSecondTarget_shouldNotDrawDivider()
78 mPreference.onBindViewHolder(mViewHolder); in bind_hasSecondTarget_shouldNotDrawDivider()
88 mPreference.onBindViewHolder(mViewHolder); in bind_smallIcon_shouldUseSmallIconSize()
92 final LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) mViewHolder in bind_smallIcon_shouldUseSmallIconSize()
104 mPreference.onBindViewHolder(mViewHolder); in bind_mediumIcon_shouldUseMediumIconSize()
108 final LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) mViewHolder in bind_mediumIcon_shouldUseMediumIconSize()
[all …]
DRestrictedPreferenceHelperTest.java47 private PreferenceViewHolder mViewHolder; field in RestrictedPreferenceHelperTest
53 mViewHolder = PreferenceViewHolder.createInstanceForTests(mock(View.class)); in setUp()
60 when(mViewHolder.itemView.findViewById(android.R.id.summary)) in bindPreference_disabled_shouldDisplayDisabledSummary()
67 mHelper.onBindViewHolder(mViewHolder); in bindPreference_disabled_shouldDisplayDisabledSummary()
76 when(mViewHolder.itemView.findViewById(android.R.id.summary)) in bindPreference_notDisabled_shouldNotHideSummary()
84 mHelper.onBindViewHolder(mViewHolder); in bindPreference_notDisabled_shouldNotHideSummary()
DRestrictedSwitchPreferenceTest.java41 private PreferenceViewHolder mViewHolder; field in RestrictedSwitchPreferenceTest
51 mViewHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp()
52 mImageView = (ImageView) mViewHolder.findViewById(android.R.id.icon); in setUp()
59 mPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_setIconSize_shouldHaveCorrectLayoutParam()
67 mPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_notSetIconSize_shouldHaveCorrectLayoutParam()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaControlPanel.java77 private PlayerViewHolder mViewHolder; field in MediaControlPanel
132 return mViewHolder; in getView()
166 mViewHolder = vh; in attach()
183 if (mViewHolder == null) { in bind()
201 mViewHolder.getPlayer().setBackgroundTintList( in bind()
207 mViewHolder.getPlayer().setOnClickListener(v -> { in bind()
212 ImageView albumView = mViewHolder.getAlbumView(); in bind()
222 ImageView appIcon = mViewHolder.getAppIcon(); in bind()
231 TextView titleText = mViewHolder.getTitleText(); in bind()
235 TextView appName = mViewHolder.getAppName(); in bind()
[all …]
/frameworks/base/core/java/com/android/internal/widget/helper/
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); in destroyCallbacks()
673 && anim.mViewHolder.getAdapterPosition() != RecyclerView.NO_POSITION) { in postDispatchSwipe()
680 mCallback.onSwiped(anim.mViewHolder, swipeDir); in postDispatchSwipe()
881 if (anim.mViewHolder == viewHolder) { in endRecoverAnimation()
1012 final View view = anim.mViewHolder.itemView; in findChildView()
1123 if (anim.mViewHolder.itemView == target) { in findAnimation()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DRecyclerView.java4233 return ((LayoutParams) child.getLayoutParams()).mViewHolder; in getChildViewHolderInt()
5350 rvLayoutParams.mViewHolder = holder; in bindViewToPosition()
5574 rvLayoutParams.mViewHolder = holder; in tryGetViewHolderForPositionByDeadline()
7745 Log.d(TAG, "consuming pending invalidate on child " + lp.mViewHolder); in addViewInt()
10474 ViewHolder mViewHolder; field in RecyclerView.LayoutParams
10509 return mViewHolder.needsUpdate(); in viewNeedsUpdate()
10519 return mViewHolder.isInvalid(); in isViewInvalid()
10530 return mViewHolder.isRemoved(); in isItemRemoved()
10541 return mViewHolder.isUpdated(); in isItemChanged()
10549 return mViewHolder.getPosition(); in getViewPosition()
[all …]