/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreferenceTest.java | 67 private PreferenceViewHolder mHolder; field in DataUsageSummaryPreferenceTest 86 mHolder = spy(PreferenceViewHolder.createInstanceForTests(view)); in setUp() 87 assertThat(mSummaryPreference.getDataUsed(mHolder)).isNotNull(); in setUp() 100 mSummaryPreference.onBindViewHolder(mHolder); in testSetUsageInfo_withLaunchIntent_launchButtonShown() 101 assertThat(mSummaryPreference.getLaunchButton(mHolder).getVisibility()) in testSetUsageInfo_withLaunchIntent_launchButtonShown() 110 mSummaryPreference.onBindViewHolder(mHolder); in testSetUsageInfo_withoutLaunchIntent_launchButtonNotShown() 111 assertThat(mSummaryPreference.getLaunchButton(mHolder).getVisibility()) in testSetUsageInfo_withoutLaunchIntent_launchButtonNotShown() 120 mSummaryPreference.onBindViewHolder(mHolder); in testSetUsageInfo_withDataPlans_carrierInfoShown() 121 assertThat(mSummaryPreference.getCarrierInfo(mHolder).getVisibility()) in testSetUsageInfo_withDataPlans_carrierInfoShown() 130 mSummaryPreference.onBindViewHolder(mHolder); in testSetUsageInfo_withNoDataPlans_carrierInfoNotShown() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/ |
D | ApplicationViewHolderTest.java | 45 private ApplicationViewHolder mHolder; field in ApplicationViewHolderTest 51 mHolder = new ApplicationViewHolder(mView); in seUp() 60 mHolder.updateDisableView(info); in updateDisableView_appDisabledUntilUsed_shouldSetDisabled() 62 assertThat(mHolder.mDisabled.getText()).isEqualTo(mContext.getText(R.string.disabled)); in updateDisableView_appDisabledUntilUsed_shouldSetDisabled() 67 mHolder.setSummary("hello"); in setSummaries() 68 assertThat(mHolder.mSummary.getText()).isEqualTo("hello"); in setSummaries() 70 mHolder.setSummary(R.string.disabled); in setSummaries() 71 assertThat(mHolder.mSummary.getText()).isEqualTo(mContext.getText(R.string.disabled)); in setSummaries() 76 mHolder.setTitle("title", "content"); in setTitle_titleIsNotEmptyAndContentIsNotEmpty_shouldSetTitleAndContentDescription() 78 assertThat(mHolder.mAppName.getText()).isEqualTo("title"); in setTitle_titleIsNotEmptyAndContentIsNotEmpty_shouldSetTitleAndContentDescription() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | PrimarySwitchPreferenceTest.java | 46 private PreferenceViewHolder mHolder; field in PrimarySwitchPreferenceTest 54 mHolder = PreferenceViewHolder.createInstanceForTests(inflater.inflate( in setUp() 56 mWidgetView = mHolder.itemView.findViewById(android.R.id.widget_frame); in setUp() 68 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in setChecked_shouldUpdateButtonCheckedState() 69 mPreference.onBindViewHolder(mHolder); in setChecked_shouldUpdateButtonCheckedState() 80 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in setSwitchEnabled_shouldUpdateButtonEnabledState() 81 mPreference.onBindViewHolder(mHolder); in setSwitchEnabled_shouldUpdateButtonEnabledState() 92 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound() 95 mPreference.onBindViewHolder(mHolder); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound() 103 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in clickWidgetView_shouldToggleButton() [all …]
|
D | FixedLineSummaryPreferenceTest.java | 45 private PreferenceViewHolder mHolder; field in FixedLineSummaryPreferenceTest 57 mHolder = spy(PreferenceViewHolder.createInstanceForTests(view)); in setUp() 58 when(mHolder.findViewById(android.R.id.summary)).thenReturn(mSummary); in setUp() 63 mPreference.onBindViewHolder(mHolder); in onBindViewHolder_shouldSetSingleLine() 72 mPreference.onBindViewHolder(mHolder); in onBindViewHolder_TwoLineSummary_shouldSetTwoLines()
|
D | SettingsMainSwitchPreferenceTest.java | 46 private PreferenceViewHolder mHolder; field in SettingsMainSwitchPreferenceTest 58 mHolder = PreferenceViewHolder.createInstanceForTests(rootView); in setUp() 63 mPreference.onBindViewHolder(mHolder); in onBindViewHolder_isRestricted_restrictIconShouldDisplay() 76 mPreference.onBindViewHolder(mHolder); in show_preferenceShouldDisplay() 86 mPreference.onBindViewHolder(mHolder); in hide_preferenceShouldNotDisplay()
|
D | DisabledCheckBoxPreferenceTest.java | 48 private PreferenceViewHolder mHolder; field in DisabledCheckBoxPreferenceTest 54 mHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp() 60 final LinearLayout widgetView = mHolder.itemView.findViewById(android.R.id.widget_frame); in inflatePreference() 63 mPref.onBindViewHolder(mHolder); in inflatePreference()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | CollapsibleCheckboxPreferenceGroupTest.java | 42 private PreferenceViewHolder mHolder; field in CollapsibleCheckboxPreferenceGroupTest 58 mHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp() 63 mPreference.onBindViewHolder(mHolder); in testItemVisibilityBeforeLoaded() 65 assertThat(mHolder.findViewById(R.id.progress_bar).getVisibility()).isEqualTo(View.VISIBLE); in testItemVisibilityBeforeLoaded() 66 assertThat(mHolder.findViewById(android.R.id.icon).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityBeforeLoaded() 67 assertThat(mHolder.findViewById(android.R.id.widget_frame).getVisibility()) in testItemVisibilityBeforeLoaded() 78 mPreference.onBindViewHolder(mHolder); in testItemVisibilityAfterLoaded() 81 assertThat(mHolder.findViewById(R.id.progress_bar).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityAfterLoaded() 82 assertThat(mHolder.findViewById(android.R.id.icon).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityAfterLoaded() 83 assertThat(mHolder.findViewById(android.R.id.widget_frame).getVisibility()) in testItemVisibilityAfterLoaded() [all …]
|
D | PhotosDeletionPreferenceTest.java | 39 private PreferenceViewHolder mHolder; field in PhotosDeletionPreferenceTest 59 mHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp() 70 mPreference.onBindViewHolder(mHolder); in testItemVisibilityBeforeLoaded() 71 assertThat(mHolder.findViewById(R.id.progress_bar).getVisibility()).isEqualTo(View.VISIBLE); in testItemVisibilityBeforeLoaded() 72 assertThat(mHolder.findViewById(android.R.id.icon).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityBeforeLoaded() 73 assertThat(mHolder.findViewById(android.R.id.widget_frame).getVisibility()) in testItemVisibilityBeforeLoaded() 82 mPreference.onBindViewHolder(mHolder); in testItemVisibilityAfterLoaded() 85 assertThat(mHolder.findViewById(R.id.progress_bar).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityAfterLoaded() 86 assertThat(mHolder.findViewById(android.R.id.icon).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityAfterLoaded() 87 assertThat(mHolder.findViewById(android.R.id.checkbox).getVisibility()) in testItemVisibilityAfterLoaded() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/ |
D | ClickableWhileDisabledSwitchPreferenceTest.java | 50 private PreferenceViewHolder mHolder; field in ClickableWhileDisabledSwitchPreferenceTest 60 mHolder = PreferenceViewHolder.createInstanceForTests(inflater.inflate( in setUp() 62 mWidgetView = mHolder.itemView.findViewById(android.R.id.widget_frame); in setUp() 72 mPref.onBindViewHolder(mHolder); in isDisabled_isClickable() 74 assertThat(mHolder.itemView.isClickable()).isTrue(); in isDisabled_isClickable() 80 mPref.onBindViewHolder(mHolder); in onClick_isDisabled_handleWithDisabledClickHandler() 90 mPref.onBindViewHolder(mHolder); in onClick_isEnabled_handleWithRegularClickHandler() 102 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setContentDescription_shouldSetDescription() 104 assertThat(mHolder.itemView.getContentDescription()).isEqualTo(description); in onBindViewHolder_setContentDescription_shouldSetDescription()
|
D | ActionButtonsPreferenceTest.java | 57 private PreferenceViewHolder mHolder; field in ActionButtonsPreferenceTest 63 mHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp() 83 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setTitle_shouldShowButtonByDefault() 102 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setIcon_shouldShowButtonByDefault() 116 mPref.onBindViewHolder(mHolder); in onBindViewHolder_notSetTitleOrIcon_shouldNotShowButtonByDefault() 135 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setVisibleIsGoneAndSetTitle_shouldNotShowButton() 154 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setVisibleIsGoneAndSetIcon_shouldNotShowButton() 173 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setVisibility_shouldUpdateButtonVisibility() 189 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setVisibility_shouldUpdateButtonVisibility() 208 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setEnabled_shouldEnableButton() [all …]
|
D | EntityHeaderPreferenceTest.java | 42 private PreferenceViewHolder mHolder; field in EntityHeaderPreferenceTest 47 mHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp() 53 mPref.onBindViewHolder(mHolder); in onBindViewHolder_noSetIcon_shouldNotBeVisible() 61 mPref.onBindViewHolder(mHolder); in onBindViewHolder_noSetTitle_shouldNotBeVisible() 69 mPref.onBindViewHolder(mHolder); in onBindViewHolder_noSetSummary_shouldNotBeVisible() 79 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setIcon_shouldShowIcon() 91 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setLabel_shouldShowSameText() 103 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setSummary_shouldShowSameText()
|
D | ClickableWhileDisabledPreferenceTest.java | 49 private PreferenceViewHolder mHolder; field in ClickableWhileDisabledPreferenceTest 59 mHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp() 67 mPref.onBindViewHolder(mHolder); in isDisabled_isClickable() 69 assertThat(mHolder.itemView.isClickable()).isTrue(); in isDisabled_isClickable() 75 mPref.onBindViewHolder(mHolder); in onClick_isDisabled_handleWithDisabledClickHandler() 85 mPref.onBindViewHolder(mHolder); in onClick_isEnabled_handleWithRegularClickHandler()
|
D | MultiActionPreferenceTest.java | 53 private PreferenceViewHolder mHolder; field in MultiActionPreferenceTest 62 mHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp() 79 mPref.onBindViewHolder(mHolder); in onBindViewHolder_actionItemsNullByDefault() 105 mPref.onBindViewHolder(mHolder); in onBindViewHolder_toggleButtons_attributesVisible() 134 mPref.onBindViewHolder(mHolder); in onBindViewHolder_toggleButtons_attributesEnabled() 160 mPref.onBindViewHolder(mHolder); in onBindViewHolder_toggleButtons_attributesNotVisible() 189 mPref.onBindViewHolder(mHolder); in onBindViewHolder_toggleButtons_attributesNotEnabled() 225 mPref.onBindViewHolder(mHolder); in toggleButtons_onClick_checkedStateChanges() 265 mPref.onBindViewHolder(mHolder); in toggleButtons_onClickRestricted_checkedStateDoesNotChange()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | SummaryPreferenceTest.java | 37 private PreferenceViewHolder mHolder; field in SummaryPreferenceTest 49 mHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp() 55 mPreference.onBindViewHolder(mHolder); in disableChart_shouldNotRender() 57 final TextView textView1 = (TextView) mHolder.findViewById(android.R.id.text1); in disableChart_shouldNotRender() 60 final TextView textView2 = (TextView) mHolder.findViewById(android.R.id.text2); in disableChart_shouldNotRender() 70 mPreference.onBindViewHolder(mHolder); in enableChart_shouldRender() 72 final TextView textView1 = (TextView) mHolder.findViewById(android.R.id.text1); in enableChart_shouldRender() 75 final TextView textView2 = (TextView) mHolder.findViewById(android.R.id.text2); in enableChart_shouldRender()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/ |
D | VpnInfoPreferenceTest.java | 47 private PreferenceViewHolder mHolder; field in VpnInfoPreferenceTest 69 mHolder = spy(PreferenceViewHolder.createInstanceForTests(view)); in setUp() 74 when(mHolder.findViewById(warningButtonId)).thenReturn(mWarningButton); in setUp() 81 mVpnInfoPreference.onBindViewHolder(mHolder); in onBindViewHolder_notInsecureVpn_iconInvisible() 96 vpnInfoPreference.onBindViewHolder(mHolder); in onBindViewHolder_emptyUrl_iconInvisible() 106 mVpnInfoPreference.onBindViewHolder(mHolder); in onBindViewHolder_insecureVpn_iconVisible() 114 mVpnInfoPreference.onBindViewHolder(mHolder); in onBindViewHolder_dividerInvisible() 117 final View divider = mHolder.findViewById(dividerId); in onBindViewHolder_dividerInvisible()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | InflateMessageDocumentHolderTest.java | 47 private InflateMessageDocumentHolder mHolder; field in InflateMessageDocumentHolderTest 60 mHolder = new InflateMessageDocumentHolder(mContext, /* parent= */null); in setUp() 70 mHolder.bind(mInflateMessage); in testClickingButtonShouldShowProgressBar() 72 View content = mHolder.itemView.findViewById(R.id.content); in testClickingButtonShouldShowProgressBar() 73 View crossProfile = mHolder.itemView.findViewById(R.id.cross_profile); in testClickingButtonShouldShowProgressBar() 74 View crossProfileContent = mHolder.itemView.findViewById(R.id.cross_profile_content); in testClickingButtonShouldShowProgressBar() 75 View progress = mHolder.itemView.findViewById(R.id.cross_profile_progress); in testClickingButtonShouldShowProgressBar() 76 Button button = mHolder.itemView.findViewById(R.id.button); in testClickingButtonShouldShowProgressBar()
|
D | DocumentHolderTest.java | 38 DocumentHolder mHolder; field in DocumentHolderTest 45 mHolder = new DocumentHolder(getContext(), inflater.inflate(R.layout.item_doc_list, null)) { in setUp() 51 mHolder.addKeyEventListener(mListener); in setUp() 53 mHolder.itemView.requestLayout(); in setUp() 54 mHolder.itemView.invalidate(); in setUp() 80 mHolder.itemView.getHitRect(rect); in createEvent()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | ChartDataUsagePreferenceTest.java | 62 private PreferenceViewHolder mHolder; field in ChartDataUsagePreferenceTest 73 mHolder = spy(PreferenceViewHolder.createInstanceForTests(view)); in setUp() 166 final UsageView chart = (UsageView) mHolder.findViewById(R.id.data_usage); in notifyChange_nonEmptyDataUsage_shouldHaveSingleContentDescription() 167 final TextView labelTop = (TextView) mHolder.findViewById(R.id.label_top); in notifyChange_nonEmptyDataUsage_shouldHaveSingleContentDescription() 168 final TextView labelMiddle = (TextView) mHolder.findViewById(R.id.label_middle); in notifyChange_nonEmptyDataUsage_shouldHaveSingleContentDescription() 169 final TextView labelBottom = (TextView) mHolder.findViewById(R.id.label_bottom); in notifyChange_nonEmptyDataUsage_shouldHaveSingleContentDescription() 170 final TextView labelStart = (TextView) mHolder.findViewById(R.id.label_start); in notifyChange_nonEmptyDataUsage_shouldHaveSingleContentDescription() 171 final TextView labelEnd = (TextView) mHolder.findViewById(R.id.label_end); in notifyChange_nonEmptyDataUsage_shouldHaveSingleContentDescription() 175 mPreference.onBindViewHolder(mHolder); in notifyChange_nonEmptyDataUsage_shouldHaveSingleContentDescription()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/suggestions/ |
D | SuggestionPreferenceTest.java | 56 private PreferenceViewHolder mHolder; field in SuggestionPreferenceTest 67 mHolder = PreferenceViewHolder.createInstanceForTests(rootView); in setUp() 110 mPref.onBindViewHolder(mHolder); in onClick_callsLaunchSuggestion() 112 mHolder.itemView.performClick(); in onClick_callsLaunchSuggestion() 119 mPref.onBindViewHolder(mHolder); in dismissButtonClick_callsDismissSuggestion() 121 mHolder.findViewById(R.id.dismiss_button).performClick(); in dismissButtonClick_callsDismissSuggestion()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | BalanceSeekBarPreferenceTest.java | 42 private PreferenceViewHolder mHolder; field in BalanceSeekBarPreferenceTest 54 mHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp() 60 mSeekBarPreference.onBindViewHolder(mHolder); in seekBarPreferenceOnBindViewHolder_shouldInitSeekBarValue()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | LinkablePreferenceTest.java | 47 private PreferenceViewHolder mHolder; field in LinkablePreferenceTest 62 mHolder = PreferenceViewHolder.createInstanceForTests(mView); in setUp() 64 mPreference.onBindViewHolder(mHolder); in setUp()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | RunningProcessesView.java | 102 ViewHolder mHolder; field in RunningProcessesView.ActiveItem 112 uptimeView = mHolder.size; in updateTime() 118 mHolder.size.setText(size); in updateTime() 125 mHolder.uptime.setText(""); in updateTime() 130 uptimeView = mHolder.uptime; in updateTime() 193 ai.mHolder = this; in bind()
|
D | RunningServiceDetails.java | 474 mSnippetActiveItem.mHolder.size.setText(""); 475 mSnippetActiveItem.mHolder.uptime.setText(""); 476 mSnippetActiveItem.mHolder.description.setText(R.string.no_services);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothEnablerTest.java | 65 private PreferenceViewHolder mHolder; field in BluetoothEnablerTest 99 mHolder = PreferenceViewHolder.createInstanceForTests(mock(View.class)); in setUp() 100 mRestrictedSwitchPreference.onBindViewHolder(mHolder); in setUp()
|