/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | HighlightablePreferenceGroupAdapterTest.java | 79 private PreferenceViewHolder mViewHolder; field in HighlightablePreferenceGroupAdapterTest 92 mViewHolder = PreferenceViewHolder.createInstanceForTests( in setUp() 191 mAdapter.updateBackground(mViewHolder, 0); in updateBackground_notHighlightedRow_shouldNotSetHighlightedTag() 193 assertThat(mViewHolder.itemView.getTag(R.id.preference_highlighted)).isNull(); in updateBackground_notHighlightedRow_shouldNotSetHighlightedTag() 199 ReflectionHelpers.setField(mViewHolder, "itemView", spy(mViewHolder.itemView)); in updateBackground_itemViewIsInvisible_shouldNotSetHighlightedTag() 200 when(mViewHolder.itemView.isShown()).thenReturn(false); in updateBackground_itemViewIsInvisible_shouldNotSetHighlightedTag() 202 mAdapter.updateBackground(mViewHolder, 0); in updateBackground_itemViewIsInvisible_shouldNotSetHighlightedTag() 204 assertThat(mViewHolder.itemView.getTag(R.id.preference_highlighted)).isNull(); in updateBackground_itemViewIsInvisible_shouldNotSetHighlightedTag() 214 mViewHolder = PreferenceViewHolder.createInstanceForTests(viewItem); in updateBackground_shouldRequestAccessibilityFocus() 217 mAdapter.updateBackground(mViewHolder, 10); in updateBackground_shouldRequestAccessibilityFocus() [all …]
|
D | AddPreferenceTest.java | 45 private PreferenceViewHolder mViewHolder; field in AddPreferenceTest 56 mViewHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp() 59 when(mViewHolder.findViewById(mPreference.getAddWidgetResId())).thenReturn(mAddWidget); in setUp() 64 mPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_noListener_addButtonNotVisible() 72 mPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_hasListener_addButtonVisible() 79 mPreference.onBindViewHolder(mViewHolder); in setOnAddClickListener_listenerAddedAfterBinding_addButtonBecomesVisible() 92 mPreference.onBindViewHolder(mViewHolder); in setOnAddClickListener_listenerRemovedAfterBinding_addButtonNotVisible() 103 mPreference.onBindViewHolder(mViewHolder); in setOnAddClickListener_listenerAddedAndRemovedAfterBinding_addButtonNotVisible() 118 mPreference.onBindViewHolder(mViewHolder); in onClick_noListener_noCrash() 129 mPreference.onBindViewHolder(mViewHolder); in onClick_hasListenerBeforeBind_firesCorrectly() [all …]
|
D | LinkifySummaryPreferenceTest.java | 51 private PreferenceViewHolder mViewHolder; field in LinkifySummaryPreferenceTest 63 mViewHolder = spy(PreferenceViewHolder.createInstanceForTests(view)); in setUp() 64 doReturn(mSummaryTextView).when(mViewHolder).findViewById(android.R.id.summary); in setUp() 71 mPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_summaryTextViewGone_shouldNotSetMovementMethod() 82 mPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_noLinkSummary_shouldNotSetMovementMethod() 96 mPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_linkedSummary_shouldSetMovementMethod()
|
D | ValidatedEditTextPreferenceTest.java | 52 private PreferenceViewHolder mViewHolder; field in ValidatedEditTextPreferenceTest 59 mViewHolder = spy(PreferenceViewHolder.createInstanceForTests( in setUp() 125 when(mViewHolder.findViewById(android.R.id.summary)).thenReturn(textView); in bindViewHolder_isPassword_shouldSetInputType() 128 mPreference.onBindViewHolder(mViewHolder); in bindViewHolder_isPassword_shouldSetInputType() 138 when(mViewHolder.findViewById(android.R.id.summary)).thenReturn(textView); in bindViewHolder_isNotPassword_shouldNotAutoCorrectText() 141 mPreference.onBindViewHolder(mViewHolder); in bindViewHolder_isNotPassword_shouldNotAutoCorrectText()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/ |
D | ButtonPasswordEditTextPreferenceTest.java | 42 private PreferenceViewHolder mViewHolder; field in ButtonPasswordEditTextPreferenceTest 52 mViewHolder = PreferenceViewHolder.createInstanceForTests(rootView); in setUp() 57 mButtonPreference.onBindViewHolder(mViewHolder); in buttonClicked_callsListener() 62 mViewHolder.findViewById(android.R.id.widget_frame).performClick(); in buttonClicked_callsListener() 91 View containerWithoutWidget = mViewHolder.findViewById( in onBindViewHolder_buttonShown() 93 View actionContainer = mButtonPreference.getWidgetActionContainer(mViewHolder); in onBindViewHolder_buttonShown() 94 View widgetFrame = mViewHolder.findViewById(android.R.id.widget_frame); in onBindViewHolder_buttonShown() 96 mButtonPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_buttonShown() 98 assertThat(mViewHolder.itemView.isFocusable()).isFalse(); in onBindViewHolder_buttonShown() 109 View containerWithoutWidget = mViewHolder.findViewById( in onBindViewHolder_buttonNotShown() [all …]
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | CarNotificationItemTouchListener.java | 108 private CarNotificationBaseViewHolder mViewHolder; field in CarNotificationItemTouchListener 202 mViewHolder = (CarNotificationBaseViewHolder) viewHolderAtPoint; in onInterceptTouchEvent() 206 if (mViewHolder.isAnimating()) { in onInterceptTouchEvent() 207 mViewHolder = null; in onInterceptTouchEvent() 289 if (!(mViewHolder instanceof GroupNotificationViewHolder)) { in isInteractingWithExpandedGroupNotificationList() 294 (GroupNotificationViewHolder) mViewHolder; in isInteractingWithExpandedGroupNotificationList() 300 View innerNotificationList = mViewHolder.itemView.requireViewById(R.id.notification_list); in isInteractingWithExpandedGroupNotificationList() 329 float translateX = mDismissAnimationHelper.calculateTranslateDistance(mViewHolder, in onTouchEvent() 331 float alpha = mDismissAnimationHelper.calculateAlphaValue(mViewHolder, deltaX); in onTouchEvent() 335 mViewHolder.setSwipeTranslationX(translateX); in onTouchEvent() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
D | ProgressBarPreferenceTest.java | 42 private PreferenceViewHolder mViewHolder; field in ProgressBarPreferenceTest 50 mViewHolder = PreferenceViewHolder.createInstanceForTests(rootView); in setUp() 57 mProgressBarPreference.onBindViewHolder(mViewHolder); in setMinLabel_setsText() 65 mProgressBarPreference.onBindViewHolder(mViewHolder); in setMaxLabel_setsText() 73 mProgressBarPreference.onBindViewHolder(mViewHolder); in setMin_setsMin() 81 mProgressBarPreference.onBindViewHolder(mViewHolder); in setMax_setsMax() 89 mProgressBarPreference.onBindViewHolder(mViewHolder); in setProgress_setsProgress() 95 return (ProgressBar) mViewHolder.findViewById(android.R.id.progress); in getProgressBar() 99 return (TextView) mViewHolder.findViewById(android.R.id.text1); in getMinLabel() 103 return (TextView) mViewHolder.findViewById(android.R.id.text2); in getMaxLabel()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/ |
D | DataUsageSummaryPreferenceTest.java | 50 private PreferenceViewHolder mViewHolder; field in DataUsageSummaryPreferenceTest 57 mViewHolder = PreferenceViewHolder.createInstanceForTests(rootView); in setUp() 63 mDataUsageSummaryPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_noCarrierInfoText_isGone() 71 mDataUsageSummaryPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_hasCarrierInfoText_isVisible() 79 mDataUsageSummaryPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_hasCarrierInfoText_setsText() 87 mDataUsageSummaryPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_noManagePlanIntent_isGone() 95 mDataUsageSummaryPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_hasManagePlanIntent_isVisible() 103 mDataUsageSummaryPreference.onBindViewHolder(mViewHolder); in onButtonClick_hasManagePlanIntent_startsActivity() 115 return (TextView) mViewHolder.findViewById(R.id.carrier_info_text); in getCarrierInfoText() 119 return (Button) mViewHolder.findViewById(R.id.manage_subscription_button); in getManageSubscriptionButton()
|
D | DataUsageEditTextPreferenceTest.java | 40 private PreferenceViewHolder mViewHolder; field in DataUsageEditTextPreferenceTest 47 mViewHolder = PreferenceViewHolder.createInstanceForTests(rootView); in setUp() 53 mDataUsageEditTextPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_noSetText() 61 mDataUsageEditTextPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_setText_displaysText()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
D | LabeledSeekBarPreferenceTest.java | 67 private PreferenceViewHolder mViewHolder; field in LabeledSeekBarPreferenceTest 91 mViewHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp() 92 mSeekBar = (SeekBar) mViewHolder.findViewById(com.android.internal.R.id.seekbar); in setUp() 93 mSummary = (TextView) mViewHolder.findViewById(android.R.id.summary); in setUp() 94 mIconStartFrame = (ViewGroup) mViewHolder.findViewById(R.id.icon_start_frame); in setUp() 95 mIconEndFrame = (ViewGroup) mViewHolder.findViewById(R.id.icon_end_frame); in setUp() 96 mLabelFrame = mViewHolder.findViewById(R.id.label_frame); in setUp() 113 mSeekBarPreference.onBindViewHolder(mViewHolder); in seekBarPreferenceSummarySet_returnsValue() 122 mSeekBarPreference.onBindViewHolder(mViewHolder); in seekBarPreferenceSummaryNull_hidesView() 137 seekBarPreference.onBindViewHolder(mViewHolder); in setTextAttributes_textStart_textEnd_labelFrameVisible() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryHistoryPreferenceTest.java | 41 @Mock private PreferenceViewHolder mViewHolder; field in BatteryHistoryPreferenceTest 55 mViewHolder = spy(PreferenceViewHolder.createInstanceForTests(itemView)); in setUp() 56 when(mViewHolder.findViewById(R.id.daily_battery_chart)).thenReturn(mDailyChartView); in setUp() 57 when(mViewHolder.findViewById(R.id.hourly_battery_chart)).thenReturn(mHourlyChartView); in setUp() 58 when(mViewHolder.findViewById(R.id.companion_text)).thenReturn(mTextView); in setUp() 63 mBatteryHistoryPreference.onBindViewHolder(mViewHolder); in testOnBindViewHolder_updateBatteryUsage() 65 verify(mViewHolder).findViewById(R.id.daily_battery_chart); in testOnBindViewHolder_updateBatteryUsage() 67 verify(mViewHolder).findViewById(R.id.hourly_battery_chart); in testOnBindViewHolder_updateBatteryUsage()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/shortcuts/ |
D | ShortcutOptionPreferenceTest.java | 43 private PreferenceViewHolder mViewHolder; field in ShortcutOptionPreferenceTest 51 mViewHolder = PreferenceViewHolder.createInstanceForTests(itemView); in setUp() 52 mImageView = (ImageView) mViewHolder.findViewById(R.id.image); in setUp() 57 mShortcutOptionPreference.onBindViewHolder(mViewHolder); in bindViewHolder_imageResNotSet_shouldHideImageView() 67 mShortcutOptionPreference.onBindViewHolder(mViewHolder); in bindViewHolder_imageResIdSet_shouldShowImageView() 77 mShortcutOptionPreference.onBindViewHolder(mViewHolder); in bindViewHolder_imageRawResIdSet_shouldShowImageView() 86 mShortcutOptionPreference.onBindViewHolder(mViewHolder); in bindViewHolder_shouldUpdateSummaryTextLineHeight()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | ColorPreferenceTest.java | 62 private PreferenceViewHolder mViewHolder; field in ColorPreferenceTest 68 mViewHolder = spy(PreferenceViewHolder.createInstanceForTests(mRootView)); in init() 118 doReturn(mImageView).when(mViewHolder).findViewById(R.id.color_preview); in onBindViewHolder_enabled_transparent_matchBackgroundResource() 125 mColorPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_enabled_transparent_matchBackgroundResource() 132 doReturn(mImageView).when(mViewHolder).findViewById(R.id.color_preview); in onBindViewHolder_enabled_titlesExist_matchDescription() 139 mColorPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_enabled_titlesExist_matchDescription() 146 doReturn(mImageView).when(mViewHolder).findViewById(R.id.color_preview); in onBindViewHolder_disabled_matchAlpha() 152 mColorPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_disabled_matchAlpha()
|
D | BackgroundPreferenceTest.java | 52 private PreferenceViewHolder mViewHolder = PreferenceViewHolder.createInstanceForTests( field in BackgroundPreferenceTest 65 doReturn(mLinearLayout).when(mViewHolder).findViewById(R.id.background); in setBackground_success() 68 mPreference.onBindViewHolder(mViewHolder); in setBackground_success()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/ |
D | SpellCheckerPreferenceTest.java | 40 private PreferenceViewHolder mViewHolder; field in SpellCheckerPreferenceTest 54 mViewHolder = PreferenceViewHolder.createInstanceForTests(view); in onBindViewHolder_withIntent_DividerIsVisible() 59 mPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_withIntent_DividerIsVisible() 67 mViewHolder = PreferenceViewHolder.createInstanceForTests(view); in onBindViewHolder_withoutIntent_DividerIsNotExist() 71 mPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_withoutIntent_DividerIsNotExist()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/widget/ |
D | GearPreferenceTest.java | 48 private PreferenceViewHolder mViewHolder; field in GearPreferenceTest 61 mViewHolder = spy(holder); in setUp() 64 when(mViewHolder.findViewById(gearId)).thenReturn(mGearView); in setUp() 71 mGearPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_gearIsVisible() 80 mGearPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_gearIsGone()
|
D | MutableGearPreferenceTest.java | 49 private PreferenceViewHolder mViewHolder; field in MutableGearPreferenceTest 63 mViewHolder = spy(holder); in setUp() 66 when(mViewHolder.findViewById(gearId)).thenReturn(mGearView); in setUp() 74 mMutableGearPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_gearChangeAlpha()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/ |
D | RadioButtonPreference.java | 31 private PreferenceViewHolder mViewHolder = null; field in RadioButtonPreference 45 mViewHolder = viewHolder; in onBindViewHolder() 56 if (mViewHolder != null) { in setChecked() 57 ((RadioButton) mViewHolder.findViewById(R.id.radio_button)) in setChecked()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | DisabledCheckBoxPreference.java | 34 private PreferenceViewHolder mViewHolder; field in DisabledCheckBoxPreference 81 if (mViewHolder != null && mCheckBox != null) { in enableCheckbox() 83 mViewHolder.itemView.setEnabled(mEnabledCheckBox); in enableCheckbox() 90 mViewHolder = holder; in onBindViewHolder()
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/chassis/car/ui/plugin/recyclerview/ |
D | CarListItemAdapterAdapterProxy.java | 216 private final RecyclerView.ViewHolder mViewHolder; field in CarListItemAdapterAdapterProxy.ViewHolderWrapper 219 mViewHolder = viewHolder; in ViewHolderWrapper() 224 return mViewHolder; in getViewHolder() 229 return mViewHolder.isRecyclable(); in isRecyclable() 234 return mViewHolder.itemView; in getItemView()
|
D | RVAdapterWrapper.java | 178 private ViewHolderOEMV1 mViewHolder; field in RVAdapterWrapper.ViewHolderWrapper 182 mViewHolder = viewHolder; in ViewHolderWrapper() 187 return mViewHolder; in getViewHolder()
|
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/recents/view/ |
D | TaskTouchListener.java | 28 private final RecyclerView.ViewHolder mViewHolder; field in TaskTouchListener 35 mViewHolder = viewHolder; in TaskTouchListener() 47 mTaskItemTouchHelper.startSwipe(mViewHolder); in onTouch()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | RunningServiceDetails.java | 91 RunningProcessesView.ViewHolder mViewHolder; field in RunningServiceDetails.ActiveDetail 267 detail.mViewHolder = new RunningProcessesView.ViewHolder(root); in addServiceDetailsView() 268 detail.mActiveItem = detail.mViewHolder.bind(mState, bi, mBuilder); in addServiceDetailsView() 342 detail.mViewHolder = new RunningProcessesView.ViewHolder(root); in addProcessDetailsView() 343 detail.mActiveItem = detail.mViewHolder.bind(mState, pi, mBuilder); in addProcessDetailsView()
|
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/ |
D | VoicemailPlaybackLayout.java | 201 public void setViewHolder(CallLogListItemViewHolder mViewHolder) { in setViewHolder() argument 202 this.viewHolder = mViewHolder; in setViewHolder()
|