Home
last modified time | relevance | path

Searched refs:mHolder (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceTest.java56 private PreferenceViewHolder mHolder; field in DataUsageSummaryPreferenceTest
75 mHolder = spy(PreferenceViewHolder.createInstanceForTests(view)); in setUp()
76 assertThat(mSummaryPreference.getDataUsed(mHolder)).isNotNull(); in setUp()
87 mSummaryPreference.onBindViewHolder(mHolder); in testSetUsageInfo_withDataPlans_carrierInfoShown()
88 assertThat(mSummaryPreference.getCarrierInfo(mHolder).getVisibility()) in testSetUsageInfo_withDataPlans_carrierInfoShown()
96 mSummaryPreference.onBindViewHolder(mHolder); in testSetUsageInfo_withNoDataPlans_carrierInfoNotShown()
97 assertThat(mSummaryPreference.getCarrierInfo(mHolder).getVisibility()) in testSetUsageInfo_withNoDataPlans_carrierInfoNotShown()
109 mSummaryPreference.onBindViewHolder(mHolder); in testCarrierUpdateTime_shouldFormatDaysCorrectly()
110 assertThat(mSummaryPreference.getCarrierInfo(mHolder).getText().toString()) in testCarrierUpdateTime_shouldFormatDaysCorrectly()
122 mSummaryPreference.onBindViewHolder(mHolder); in testCarrierUpdateTime_shouldFormatHoursCorrectly()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/
DApplicationViewHolderTest.java46 private ApplicationViewHolder mHolder; field in ApplicationViewHolderTest
52 mHolder = new ApplicationViewHolder(mView); in seUp()
61 mHolder.updateDisableView(info); in updateDisableView_appDisabledUntilUsed_shouldSetDisabled()
63 assertThat(mHolder.mDisabled.getText()) in updateDisableView_appDisabledUntilUsed_shouldSetDisabled()
69 mHolder.setSummary("hello"); in setSummaries()
70 assertThat(mHolder.mSummary.getText()).isEqualTo("hello"); in setSummaries()
72 mHolder.setSummary(com.android.settingslib.R.string.disabled); in setSummaries()
73 assertThat(mHolder.mSummary.getText()) in setSummaries()
79 mHolder.setTitle("title", "content"); in setTitle_titleIsNotEmptyAndContentIsNotEmpty_shouldSetTitleAndContentDescription()
81 assertThat(mHolder.mAppName.getText()).isEqualTo("title"); in setTitle_titleIsNotEmptyAndContentIsNotEmpty_shouldSetTitleAndContentDescription()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DCardPreferenceTest.java41 private PreferenceViewHolder mHolder; field in CardPreferenceTest
48 mHolder = in setUp()
63 mCardPreference.onBindViewHolder(mHolder); in onBindViewHolder_noButtonVisible_buttonsLayoutIsGone()
70 mCardPreference.onBindViewHolder(mHolder); in onBindViewHolder_setPrimaryButtonVisibility_buttonsLayoutIsVisible()
77 mCardPreference.onBindViewHolder(mHolder); in onBindViewHolder_setPrimaryButtonVisibilityToVisible()
84 mCardPreference.onBindViewHolder(mHolder); in onBindViewHolder_setSecondaryButtonVisibility_buttonsLayoutIsVisible()
91 mCardPreference.onBindViewHolder(mHolder); in onBindViewHolder_setSecondaryButtonVisibilityToVisible()
99 mCardPreference.onBindViewHolder(mHolder); in onBindViewHolder_setPrimaryButtonTextToExpectedText()
107 mCardPreference.onBindViewHolder(mHolder); in onBindViewHolder_setSecondaryButtonTextToExpectedText()
113 mCardPreference.onBindViewHolder(mHolder); in onBindViewHolder_initialTextForPrimaryButtonShouldBeEmpty()
[all …]
DFixedLineSummaryPreferenceTest.java45 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()
DSettingsMainSwitchPreferenceTest.java43 private PreferenceViewHolder mHolder; field in SettingsMainSwitchPreferenceTest
55 mHolder = PreferenceViewHolder.createInstanceForTests(rootView); in setUp()
62 mPreference.onBindViewHolder(mHolder); in show_preferenceShouldDisplay()
72 mPreference.onBindViewHolder(mHolder); in hide_preferenceShouldNotDisplay()
DDisabledCheckBoxPreferenceTest.java48 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/
DCollapsibleCheckboxPreferenceGroupTest.java45 private PreferenceViewHolder mHolder; field in CollapsibleCheckboxPreferenceGroupTest
61 mHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp()
66 mPreference.onBindViewHolder(mHolder); in testItemVisibilityBeforeLoaded()
68 assertThat(mHolder.findViewById(R.id.progress_bar).getVisibility()).isEqualTo(View.VISIBLE); in testItemVisibilityBeforeLoaded()
69 assertThat(mHolder.findViewById(android.R.id.icon).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityBeforeLoaded()
70 assertThat(mHolder.findViewById(android.R.id.widget_frame).getVisibility()) in testItemVisibilityBeforeLoaded()
81 mPreference.onBindViewHolder(mHolder); in testItemVisibilityAfterLoaded()
84 assertThat(mHolder.findViewById(R.id.progress_bar).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityAfterLoaded()
85 assertThat(mHolder.findViewById(android.R.id.icon).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityAfterLoaded()
86 assertThat(mHolder.findViewById(android.R.id.widget_frame).getVisibility()) in testItemVisibilityAfterLoaded()
[all …]
DPhotosDeletionPreferenceTest.java42 private PreferenceViewHolder mHolder; field in PhotosDeletionPreferenceTest
62 mHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp()
73 mPreference.onBindViewHolder(mHolder); in testItemVisibilityBeforeLoaded()
74 assertThat(mHolder.findViewById(R.id.progress_bar).getVisibility()).isEqualTo(View.VISIBLE); in testItemVisibilityBeforeLoaded()
75 assertThat(mHolder.findViewById(android.R.id.icon).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityBeforeLoaded()
76 assertThat(mHolder.findViewById(android.R.id.widget_frame).getVisibility()) in testItemVisibilityBeforeLoaded()
85 mPreference.onBindViewHolder(mHolder); in testItemVisibilityAfterLoaded()
88 assertThat(mHolder.findViewById(R.id.progress_bar).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityAfterLoaded()
89 assertThat(mHolder.findViewById(android.R.id.icon).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityAfterLoaded()
90 assertThat(mHolder.findViewById(android.R.id.checkbox).getVisibility()) in testItemVisibilityAfterLoaded()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DTextReadingPreviewPreferenceTest.java54 private PreferenceViewHolder mHolder; field in TextReadingPreviewPreferenceTest
73 mHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp()
80 mTextReadingPreviewPreference.onBindViewHolder(mHolder); in setPreviewerAdapter_success()
90 mTextReadingPreviewPreference.onBindViewHolder(mHolder); in setPreviewAdapterWithNull_resetCurrentItem()
93 mTextReadingPreviewPreference.onBindViewHolder(mHolder); in setPreviewAdapterWithNull_resetCurrentItem()
102 mTextReadingPreviewPreference.onBindViewHolder(mHolder); in setCurrentItem_success()
105 mTextReadingPreviewPreference.onBindViewHolder(mHolder); in setCurrentItem_success()
132 mTextReadingPreviewPreference.onBindViewHolder(mHolder); in notifyPreviewPager_setPreviewLayer()
143 mTextReadingPreviewPreference.onBindViewHolder(mHolder); in afterPagerChange_updateCurrentItem()
153 mTextReadingPreviewPreference.onBindViewHolder(mHolder); in adjustPaddings_setMinPaddingsLessThanXMLValue_paddingsNotIncreased()
[all …]
DBalanceSeekBarPreferenceTest.java46 private PreferenceViewHolder mHolder; field in BalanceSeekBarPreferenceTest
58 mHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp()
64 mSeekBarPreference.onBindViewHolder(mHolder); in seekBarPreferenceOnBindViewHolder_shouldInitSeekBarValue()
DTextReadingResetPreferenceTest.java47 private PreferenceViewHolder mHolder; field in TextReadingResetPreferenceTest
62 mHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp()
69 mResetPreference.onBindViewHolder(mHolder); in setResetListener_success()
DAccessibilityQuickSettingsPrimarySwitchPreferenceControllerTest.java86 private PreferenceViewHolder mHolder; field in AccessibilityQuickSettingsPrimarySwitchPreferenceControllerTest
113 mHolder = PreferenceViewHolder.createInstanceForTests(inflater.inflate( in setUp()
115 LinearLayout mWidgetView = mHolder.itemView.findViewById(android.R.id.widget_frame); in setUp()
117 mPreference.onBindViewHolder(mHolder); in setUp()
DPreviewSizeSeekBarControllerTest.java84 private PreferenceViewHolder mHolder; field in PreviewSizeSeekBarControllerTest
116 mHolder = spy(PreferenceViewHolder.createInstanceForTests(inflater.inflate( in setUp()
119 doReturn(mSeekBar).when(mHolder).findViewById(com.android.internal.R.id.seekbar); in setUp()
120 mSeekBarPreference.onBindViewHolder(mHolder); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DSummaryPreferenceTest.java37 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/Car/Settings/tests/unit/src/com/android/car/settings/common/
DEntityHeaderPreferenceTest.java42 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()
DActionButtonsPreferenceTest.java59 private PreferenceViewHolder mHolder; field in ActionButtonsPreferenceTest
65 mHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp()
85 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setTitle_shouldShowButtonByDefault()
104 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setIcon_shouldShowButtonByDefault()
118 mPref.onBindViewHolder(mHolder); in onBindViewHolder_notSetTitleOrIcon_shouldNotShowButtonByDefault()
137 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setVisibleIsGoneAndSetTitle_shouldNotShowButton()
156 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setVisibleIsGoneAndSetIcon_shouldNotShowButton()
175 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setVisibility_shouldUpdateButtonVisibility()
191 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setVisibility_shouldUpdateButtonVisibility()
210 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setEnabled_shouldEnableButton()
[all …]
DColoredTwoActionSwitchPreferenceTest.java44 private PreferenceViewHolder mHolder; field in ColoredTwoActionSwitchPreferenceTest
50 mHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp()
56 mPref.onBindViewHolder(mHolder); in onBindViewHolder_noSetActionText_shouldNotBeVisible()
66 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setActionText_shouldBeVisible()
78 mPref.onBindViewHolder(mHolder); in setSecondaryActionChecked_setToTrue_switchSetToTrue()
89 mPref.onBindViewHolder(mHolder); in setIsWarning_setToTrue_yellowActionText()
DMultiActionPreferenceTest.java53 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/unit/src/com/android/settings/vpn2/
DVpnInfoPreferenceTest.java47 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/
DDocumentHolderTest.java37 DocumentHolder mHolder; field in DocumentHolderTest
45 mHolder = new DocumentHolder(getContext(), inflater.inflate(R.layout.item_doc_list, null), in setUp()
53 mHolder.addKeyEventListener(mListener); in setUp()
55 mHolder.itemView.requestLayout(); in setUp()
56 mHolder.itemView.invalidate(); in setUp()
82 mHolder.itemView.getHitRect(rect); in createEvent()
DInflateMessageDocumentHolderTest.java65 private InflateMessageDocumentHolder mHolder; field in InflateMessageDocumentHolderTest
124 mHolder = new InflateMessageDocumentHolder(mContext, /* parent= */null, mTestConfigStore); in setUp()
135 mHolder.bind(mInflateMessage); in testClickingButtonShouldShowProgressBar()
137 View content = mHolder.itemView.findViewById(R.id.content); in testClickingButtonShouldShowProgressBar()
138 View crossProfile = mHolder.itemView.findViewById(R.id.cross_profile); in testClickingButtonShouldShowProgressBar()
139 View crossProfileContent = mHolder.itemView.findViewById(R.id.cross_profile_content); in testClickingButtonShouldShowProgressBar()
140 View progress = mHolder.itemView.findViewById(R.id.cross_profile_progress); in testClickingButtonShouldShowProgressBar()
141 Button button = mHolder.itemView.findViewById(R.id.button); in testClickingButtonShouldShowProgressBar()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/suggestions/
DSuggestionPreferenceTest.java56 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/datausage/
DChartDataUsagePreferenceTest.java63 private PreferenceViewHolder mHolder; field in ChartDataUsagePreferenceTest
74 mHolder = spy(PreferenceViewHolder.createInstanceForTests(view)); in setUp()
198 final UsageView chart = (UsageView) mHolder.findViewById(R.id.data_usage); in notifyChange_nonEmptyDataUsage_shouldHaveSingleContentDescription()
199 final TextView labelTop = (TextView) mHolder.findViewById(R.id.label_top); in notifyChange_nonEmptyDataUsage_shouldHaveSingleContentDescription()
200 final TextView labelMiddle = (TextView) mHolder.findViewById(R.id.label_middle); in notifyChange_nonEmptyDataUsage_shouldHaveSingleContentDescription()
201 final TextView labelBottom = (TextView) mHolder.findViewById(R.id.label_bottom); in notifyChange_nonEmptyDataUsage_shouldHaveSingleContentDescription()
202 final TextView labelStart = (TextView) mHolder.findViewById(R.id.label_start); in notifyChange_nonEmptyDataUsage_shouldHaveSingleContentDescription()
203 final TextView labelEnd = (TextView) mHolder.findViewById(R.id.label_end); in notifyChange_nonEmptyDataUsage_shouldHaveSingleContentDescription()
210 mPreference.onBindViewHolder(mHolder); in notifyChange_nonEmptyDataUsage_shouldHaveSingleContentDescription()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DLinkablePreferenceTest.java47 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/
DRunningProcessesView.java102 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()

12