/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/ |
D | MediaOutputAdapterTest.java | 91 private MediaOutputAdapter.MediaDeviceViewHolder mViewHolder; field in MediaOutputAdapterTest 121 mViewHolder = (MediaOutputAdapter.MediaDeviceViewHolder) mMediaOutputAdapter in setUp() 123 mSpyMediaOutputSeekbar = spy(mViewHolder.mSeekBar); in setUp() 147 mViewHolder = (MediaOutputAdapter.MediaDeviceViewHolder) mMediaOutputAdapter in onBindViewHolder_bindPairNew_verifyView() 152 mMediaOutputAdapter.onBindViewHolder(mViewHolder, 2); in onBindViewHolder_bindPairNew_verifyView() 154 assertThat(mViewHolder.mTitleText.getVisibility()).isEqualTo(View.VISIBLE); in onBindViewHolder_bindPairNew_verifyView() 155 assertThat(mViewHolder.mTwoLineLayout.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindPairNew_verifyView() 156 assertThat(mViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindPairNew_verifyView() 157 assertThat(mViewHolder.mCheckBox.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindPairNew_verifyView() 158 assertThat(mViewHolder.mTitleText.getText()).isEqualTo(mContext.getText( in onBindViewHolder_bindPairNew_verifyView() [all …]
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/widget/ |
D | UsageProgressBarPreferenceTest.java | 48 private PreferenceViewHolder mViewHolder; field in UsageProgressBarPreferenceTest 57 mViewHolder = PreferenceViewHolder.createInstanceForTests(rootView); in setUp() 64 mUsageProgressBarPreference.onBindViewHolder(mViewHolder); in setUsageSummary_noNumber_noAbsoluteSizeSpan() 66 final TextView usageSummary = (TextView) mViewHolder.findViewById(R.id.usage_summary); in setUsageSummary_noNumber_noAbsoluteSizeSpan() 76 mUsageProgressBarPreference.onBindViewHolder(mViewHolder); in setUsageSummary_integerNumber_findAbsoluteSizeSpan() 78 final TextView usageSummary = (TextView) mViewHolder.findViewById(R.id.usage_summary); in setUsageSummary_integerNumber_findAbsoluteSizeSpan() 91 mUsageProgressBarPreference.onBindViewHolder(mViewHolder); in setUsageSummary_floatingPointNumber_findAbsoluteSizeSpan() 93 final TextView usageSummary = (TextView) mViewHolder.findViewById(R.id.usage_summary); in setUsageSummary_floatingPointNumber_findAbsoluteSizeSpan() 106 mUsageProgressBarPreference.onBindViewHolder(mViewHolder); in setUsageSummary_commaFloatingPointNumber_findAbsoluteSizeSpan() 108 final TextView usageSummary = (TextView) mViewHolder.findViewById(R.id.usage_summary); in setUsageSummary_commaFloatingPointNumber_findAbsoluteSizeSpan() [all …]
|
D | SettingsSpinnerPreferenceTest.java | 44 private PreferenceViewHolder mViewHolder; field in SettingsSpinnerPreferenceTest 55 mViewHolder = PreferenceViewHolder.createInstanceForTests(rootView); in setUp() 56 mSpinner = (Spinner) mViewHolder.findViewById(R.id.spinner); in setUp() 69 mSpinnerPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_noSetSelection_getDefaultItem() 87 mSpinnerPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_setSelection_getSelectedItem()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/ |
D | InternetAdapterTest.java | 75 private InternetAdapter.InternetViewHolder mViewHolder; field in InternetAdapterTest 89 mViewHolder = mInternetAdapter.onCreateViewHolder(new LinearLayout(mContext), 0); in setUp() 105 mInternetAdapter.onBindViewHolder(mViewHolder, 0); in onBindViewHolder_bindWithOpenWifiNetwork_verifyView() 107 assertThat(mViewHolder.mWifiTitleText.getVisibility()).isEqualTo(View.VISIBLE); in onBindViewHolder_bindWithOpenWifiNetwork_verifyView() 108 assertThat(mViewHolder.mWifiSummaryText.getVisibility()).isEqualTo(View.VISIBLE); in onBindViewHolder_bindWithOpenWifiNetwork_verifyView() 109 assertThat(mViewHolder.mWifiIcon.getVisibility()).isEqualTo(View.VISIBLE); in onBindViewHolder_bindWithOpenWifiNetwork_verifyView() 110 assertThat(mViewHolder.mWifiEndIcon.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindWithOpenWifiNetwork_verifyView() 116 mInternetAdapter.onBindViewHolder(mViewHolder, 0); in onBindViewHolder_bindWithSecurityWifiNetwork_verifyView() 118 assertThat(mViewHolder.mWifiTitleText.getVisibility()).isEqualTo(View.VISIBLE); in onBindViewHolder_bindWithSecurityWifiNetwork_verifyView() 119 assertThat(mViewHolder.mWifiSummaryText.getVisibility()).isEqualTo(View.VISIBLE); in onBindViewHolder_bindWithSecurityWifiNetwork_verifyView() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | TwoTargetPreferenceTest.java | 47 private PreferenceViewHolder mViewHolder; field in TwoTargetPreferenceTest 60 mViewHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp() 62 mDivider = mViewHolder.findViewById(R.id.two_target_divider); in setUp() 63 mWidgetFrame = mViewHolder.findViewById(android.R.id.widget_frame); in setUp() 70 mPreference.onBindViewHolder(mViewHolder); in bind_noSecondTarget_shouldNotDrawDivider() 80 mPreference.onBindViewHolder(mViewHolder); in bind_hasSecondTarget_shouldNotDrawDivider() 90 mPreference.onBindViewHolder(mViewHolder); in bind_smallIcon_shouldUseSmallIconSize() 94 final LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) mViewHolder in bind_smallIcon_shouldUseSmallIconSize() 106 mPreference.onBindViewHolder(mViewHolder); in bind_mediumIcon_shouldUseMediumIconSize() 110 final LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) mViewHolder in bind_mediumIcon_shouldUseMediumIconSize() [all …]
|
D | IllustrationPreferenceTest.java | 74 private PreferenceViewHolder mViewHolder; field in IllustrationPreferenceTest 97 mViewHolder = spy(PreferenceViewHolder.createInstanceForTests(mRootView)); in setUp() 115 mPreference.onBindViewHolder(mViewHolder); in setMiddleGroundView_middleGroundView_shouldVisible() 123 mPreference.onBindViewHolder(mViewHolder); in enableAnimationAutoScale_shouldChangeScaleType() 134 mPreference.onBindViewHolder(mViewHolder); in playAnimationWithUri_animatedImageDrawable_success() 145 mPreference.onBindViewHolder(mViewHolder); in playAnimationWithUri_animatedVectorDrawable_success() 156 mPreference.onBindViewHolder(mViewHolder); in playAnimationWithUri_animationDrawable_success() 166 mPreference.onBindViewHolder(mViewHolder); in playLottieAnimationWithUri_verifyFailureListener() 181 mPreference.onBindViewHolder(mViewHolder); in playLottieAnimationWithResource_verifyFailureListener() 193 mPreference.onBindViewHolder(mViewHolder); in handleImageWithAnimation_emptyInputStreamDisabledFlag_verifyContainerVisible() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/ |
D | AccessibilityTargetAdapterTest.java | 57 private ViewHolder mViewHolder; field in AccessibilityTargetAdapterTest 70 mViewHolder = new ViewHolder(rootView); in setUp() 80 mAdapter.onBindViewHolder(mViewHolder, 0); in onBindViewHolder_setIconWidthHeight_matchResult() 81 final int actualIconWith = mViewHolder.mIconView.getLayoutParams().width; in onBindViewHolder_setIconWidthHeight_matchResult() 92 mAdapter.onBindViewHolder(mViewHolder, 0); in getContentDescription_invisibleToggleTarget_descriptionWithoutState() 94 assertThat(mViewHolder.itemView.getContentDescription().toString().contentEquals( in getContentDescription_invisibleToggleTarget_descriptionWithoutState() 103 mAdapter.onBindViewHolder(mViewHolder, 0); in getStateDescription_toggleTarget_switchOff_stateOffText() 105 assertThat(mViewHolder.itemView.getStateDescription().toString().contentEquals( in getStateDescription_toggleTarget_switchOff_stateOffText()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | RestrictedSwitchPreferenceTest.java | 41 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()
|
D | RestrictedPreferenceHelperTest.java | 60 private PreferenceViewHolder mViewHolder; field in RestrictedPreferenceHelperTest 70 mViewHolder = PreferenceViewHolder.createInstanceForTests(mock(View.class)); in setUp() 77 when(mViewHolder.itemView.findViewById(android.R.id.summary)) in bindPreference_disabled_shouldDisplayDisabledSummary() 85 mHelper.onBindViewHolder(mViewHolder); in bindPreference_disabled_shouldDisplayDisabledSummary() 94 when(mViewHolder.itemView.findViewById(android.R.id.summary)) in bindPreference_disabledByEcm_shouldDisplayDisabledSummary() 98 mHelper.onBindViewHolder(mViewHolder); in bindPreference_disabledByEcm_shouldDisplayDisabledSummary() 107 when(mViewHolder.itemView.findViewById(android.R.id.summary)) in bindPreference_notDisabled_shouldNotHideSummary() 116 mHelper.onBindViewHolder(mViewHolder); in bindPreference_notDisabled_shouldNotHideSummary()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/ |
D | ComplicationHostViewControllerTest.java | 81 Complication.ViewHolder mViewHolder; field in ComplicationHostViewControllerTest 110 when(mComplication.createView(eq(mComplicationViewModel))).thenReturn(mViewHolder); in setup() 111 when(mViewHolder.getView()).thenReturn(mComplicationView); in setup() 112 when(mViewHolder.getCategory()).thenReturn(COMPLICATION_CATEGORY); in setup() 113 when(mViewHolder.getLayoutParams()).thenReturn(mComplicationLayoutParams); in setup() 161 when(mViewHolder.getView()).thenReturn(null); in testMalformedComplicationAddition()
|
/frameworks/base/core/java/com/android/internal/widget/helper/ |
D | ItemTouchHelper.java | 315 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/ |
D | RecyclerView.java | 4340 return ((LayoutParams) child.getLayoutParams()).mViewHolder; in getChildViewHolderInt() 5457 rvLayoutParams.mViewHolder = holder; in bindViewToPosition() 5681 rvLayoutParams.mViewHolder = holder; in tryGetViewHolderForPositionByDeadline() 7852 Log.d(TAG, "consuming pending invalidate on child " + lp.mViewHolder); in addViewInt() 10581 ViewHolder mViewHolder; field in RecyclerView.LayoutParams 10616 return mViewHolder.needsUpdate(); in viewNeedsUpdate() 10626 return mViewHolder.isInvalid(); in isViewInvalid() 10637 return mViewHolder.isRemoved(); in isItemRemoved() 10648 return mViewHolder.isUpdated(); in isItemChanged() 10656 return mViewHolder.getPosition(); in getViewPosition() [all …]
|