/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/ |
D | DataUsageSummaryPreferenceTest.java | 44 private PreferenceViewHolder mViewHolder; field in DataUsageSummaryPreferenceTest 52 mViewHolder = PreferenceViewHolder.createInstanceForTests(rootView); in setUp() 58 mDataUsageSummaryPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_noDataUsageText_isGone() 66 mDataUsageSummaryPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_hasDataUsageText_isVisible() 74 mDataUsageSummaryPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_hasDataUsageText_setsText() 81 mDataUsageSummaryPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_noRemainingBillingCycleText_isGone() 89 mDataUsageSummaryPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_hasRemainingBillingCycleText_isVisible() 97 mDataUsageSummaryPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_hasRemainingBillingCycleText_setsText() 105 mDataUsageSummaryPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_noCarrierInfoText_isGone() 113 mDataUsageSummaryPreference.onBindViewHolder(mViewHolder); in onBindViewHolder_hasCarrierInfoText_isVisible() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | HighlightablePreferenceGroupAdapterTest.java | 67 private PreferenceViewHolder mViewHolder; field in HighlightablePreferenceGroupAdapterTest 76 mViewHolder = PreferenceViewHolder.createInstanceForTests( in setUp() 160 mAdapter.updateBackground(mViewHolder, 0); in updateBackground_notHighlightedRow_shouldNotSetHighlightedTag() 162 assertThat(mViewHolder.itemView.getTag(R.id.preference_highlighted)).isNull(); in updateBackground_notHighlightedRow_shouldNotSetHighlightedTag() 170 mAdapter.updateBackground(mViewHolder, 10); in updateBackground_highlight_shouldAnimateBackgroundAndSetHighlightedTag() 173 assertThat(mViewHolder.itemView.getBackground()).isInstanceOf(ColorDrawable.class); in updateBackground_highlight_shouldAnimateBackgroundAndSetHighlightedTag() 174 assertThat(mViewHolder.itemView.getTag(R.id.preference_highlighted)).isEqualTo(true); in updateBackground_highlight_shouldAnimateBackgroundAndSetHighlightedTag() 175 verify(mAdapter).requestRemoveHighlightDelayed(mViewHolder.itemView); in updateBackground_highlight_shouldAnimateBackgroundAndSetHighlightedTag() 181 ReflectionHelpers.setField(mViewHolder, "itemView", spy(mViewHolder.itemView)); in updateBackgroundTwice_highlight_shouldAnimateOnce() 183 mAdapter.updateBackground(mViewHolder, 10); in updateBackgroundTwice_highlight_shouldAnimateOnce() [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 | 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/Notification/src/com/android/car/notification/ |
D | CarNotificationItemTouchListener.java | 100 private CarNotificationBaseViewHolder mViewHolder; field in CarNotificationItemTouchListener 210 mViewHolder = (CarNotificationBaseViewHolder) viewHolderAtPoint; in onInterceptTouchEvent() 214 if (mViewHolder.isAnimating()) { in onInterceptTouchEvent() 215 mViewHolder = null; in onInterceptTouchEvent() 257 if (mAdapter.isExpanded(mViewHolder.getStatusBarNotification().getGroupKey())) { in onInterceptTouchEvent() 258 float itemTop = mViewHolder.itemView.getY(); in onInterceptTouchEvent() 311 float translateX = mDismissAnimationHelper.calculateTranslateDistance(mViewHolder, in onTouchEvent() 313 float alpha = mDismissAnimationHelper.calculateAlphaValue(mViewHolder, deltaX); in onTouchEvent() 317 mViewHolder.setSwipeTranslationX(translateX); in onTouchEvent() 318 mViewHolder.setSwipeAlpha(alpha); 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()
|
D | TwoActionPreferenceTest.java | 54 private PreferenceViewHolder mViewHolder; field in TwoActionPreferenceTest 63 mViewHolder = PreferenceViewHolder.createInstanceForTests(rootView); in setUp() 70 mTestTwoActionPreference.onBindViewHolder(mViewHolder); in showAction_true_buttonVisible() 72 assertThat(mViewHolder.findViewById( in showAction_true_buttonVisible() 79 mTestTwoActionPreference.onBindViewHolder(mViewHolder); in showAction_false_buttonGone() 81 assertThat(mViewHolder.findViewById( in showAction_false_buttonGone()
|
D | MasterSwitchPreferenceTest.java | 45 private PreferenceViewHolder mViewHolder; field in MasterSwitchPreferenceTest 58 mViewHolder = PreferenceViewHolder.createInstanceForTests(rootView); in setUp() 61 mMasterSwitchPreference.onBindViewHolder(mViewHolder); in setUp() 68 mViewHolder.findViewById(android.R.id.widget_frame).performClick(); in widgetClicked_callsListener() 75 mViewHolder.findViewById(android.R.id.widget_frame).performClick(); in widgetClicked_togglesSwitchState()
|
D | ButtonPreferenceTest.java | 41 private PreferenceViewHolder mViewHolder; field in ButtonPreferenceTest 50 mViewHolder = PreferenceViewHolder.createInstanceForTests(rootView); in setUp() 56 mButtonPreference.onBindViewHolder(mViewHolder); in buttonClicked_callsListener() 60 mViewHolder.findViewById(android.R.id.widget_frame).performClick(); in buttonClicked_callsListener()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryHistoryPreferenceTest.java | 49 private PreferenceViewHolder mViewHolder; field in BatteryHistoryPreferenceTest 69 mViewHolder = spy(PreferenceViewHolder.createInstanceForTests(itemView)); in setUp() 70 when(mViewHolder.findViewById(R.id.battery_usage)).thenReturn(mUsageView); in setUp() 71 when(mViewHolder.findViewById(R.id.charge)).thenReturn(mTextView); in setUp() 77 mBatteryHistoryPreference.onBindViewHolder(mViewHolder); in testOnBindViewHolder_updateBatteryUsage() 79 verify(mViewHolder).findViewById(R.id.battery_usage); in testOnBindViewHolder_updateBatteryUsage() 87 mBatteryHistoryPreference.onBindViewHolder(mViewHolder); in testSetBottomSummary_updatesBottomSummaryTextIfSet() 89 TextView view = (TextView) mViewHolder.findViewById(R.id.bottom_summary); in testSetBottomSummary_updatesBottomSummaryTextIfSet() 98 mBatteryHistoryPreference.onBindViewHolder(mViewHolder); in testSetBottomSummary_leavesBottomSummaryTextBlankIfNotSet() 100 TextView view = (TextView) mViewHolder.findViewById(R.id.bottom_summary); in testSetBottomSummary_leavesBottomSummaryTextBlankIfNotSet()
|
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/contact/ |
D | ContactListFragmentTest.java | 68 private ContactListViewHolder mViewHolder; field in ContactListFragmentTest 116 View callActionView = mViewHolder.itemView.findViewById(R.id.call_action_id); in testClickCallActionButton_ContactHasOneNumber_placeCall() 134 View callActionView = mViewHolder.itemView.findViewById(R.id.call_action_id); in testClickCallActionButton_ContactHasMultipleNumbers_showAlertDialog() 146 View callActionView = mViewHolder.itemView.findViewById(R.id.call_action_id); in testClickCallActionButton_ContactHasNoNumbers_callActionButtonNotEnabled() 150 mViewHolder.itemView.getResources().getBoolean( in testClickCallActionButton_ContactHasNoNumbers_callActionButtonNotEnabled() 160 View showContactDetailActionView = mViewHolder.itemView.findViewById( in testClickShowContactDetailView_withPhoneNumberAndAddress_showContactDetail() 175 View showContactDetailActionView = mViewHolder.itemView.findViewById( in testClickShowContactDetailView_withAddressButNoPhoneNumber_dependOnConfig() 178 boolean showPostalAddress = mViewHolder.itemView.getResources().getBoolean( in testClickShowContactDetailView_withAddressButNoPhoneNumber_dependOnConfig() 180 boolean forceShowButton = mViewHolder.itemView.getResources().getBoolean( in testClickShowContactDetailView_withAddressButNoPhoneNumber_dependOnConfig() 201 View showContactDetailActionView = mViewHolder.itemView.findViewById( in testClickShowContactDetailView_NoPhoneNumberAndNoAddress_NotEnabled() [all …]
|
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/favorite/ |
D | FavoriteFragmentTest.java | 57 private FavoriteContactViewHolder mViewHolder; field in FavoriteFragmentTest 87 mViewHolder = (FavoriteContactViewHolder) recyclerView.findViewHolderForLayoutPosition(0); in setUp() 96 mViewHolder.itemView.performClick(); in testOnItemClick_contactHasPrimaryNumber_placeCall() 108 mViewHolder.itemView.performClick(); in testOnItemClick_contactHasOnlyOneNumber_placeCall() 122 mViewHolder.itemView.performClick(); in testOnItemClick_contactHasMultiNumbers_notPlaceCall()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/ |
D | ButtonPasswordEditTextPreferenceTest.java | 40 private PreferenceViewHolder mViewHolder; field in ButtonPasswordEditTextPreferenceTest 49 mViewHolder = PreferenceViewHolder.createInstanceForTests(rootView); in setUp() 55 mButtonPreference.onBindViewHolder(mViewHolder); in buttonClicked_callsListener() 60 mViewHolder.findViewById(android.R.id.widget_frame).performClick(); in buttonClicked_callsListener()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | DisabledCheckBoxPreference.java | 32 private PreferenceViewHolder mViewHolder; field in DisabledCheckBoxPreference 79 if (mViewHolder != null && mCheckBox != null) { in enableCheckbox() 81 mViewHolder.itemView.setEnabled(mEnabledCheckBox); in enableCheckbox() 88 mViewHolder = holder; in onBindViewHolder()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | DisabledCheckBoxPreference.java | 33 private PreferenceViewHolder mViewHolder; field in DisabledCheckBoxPreference 80 if (mViewHolder != null && mCheckBox != null) { in enableCheckbox() 82 mViewHolder.itemView.setEnabled(mEnabledCheckBox); in enableCheckbox() 89 mViewHolder = holder; in onBindViewHolder()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/tts/ |
D | TtsEnginePreferenceTest.java | 43 private PreferenceViewHolder mViewHolder; field in TtsEnginePreferenceTest 62 mViewHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp() 67 mPreference.onBindViewHolder(mViewHolder); in onClick_shouldInvokeOnCheckedChangeListener()
|
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/terms/adapters/ |
D | TermsListAdapterCarTest.java | 87 TermsListAdapterCar.ViewHolder mViewHolder = new TermsListAdapterCar.ViewHolder(mView); in onBindViewHolderSetsViewCorrectly() local 92 adapter.onBindViewHolder(mViewHolder, /* position= */ 1); in onBindViewHolderSetsViewCorrectly()
|
/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()
|