Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/
DApplicationViewHolderTest.java43 private ApplicationViewHolder mHolder; field in ApplicationViewHolderTest
49 mHolder = new ApplicationViewHolder(mView); in seUp()
58 mHolder.updateDisableView(info); in updateDisableView_appDisabledUntilUsed_shouldSetDisabled()
60 assertThat(mHolder.mDisabled.getText()).isEqualTo(mContext.getText(R.string.disabled)); in updateDisableView_appDisabledUntilUsed_shouldSetDisabled()
65 mHolder.setSummary("hello"); in setSummaries()
66 assertThat(mHolder.mSummary.getText()).isEqualTo("hello"); in setSummaries()
68 mHolder.setSummary(R.string.disabled); in setSummaries()
69 assertThat(mHolder.mSummary.getText()).isEqualTo(mContext.getText(R.string.disabled)); in setSummaries()
80 mHolder.updateSizeText(entry, invalidStr, ManageApplications.SIZE_INTERNAL); in updateSize()
81 assertThat(mHolder.mSummary.getText()).isEqualTo(entry.internalSizeStr); in updateSize()
[all …]
DPhotosViewHolderControllerTest.java56 private ApplicationViewHolder mHolder; field in PhotosViewHolderControllerTest
66 mHolder = new ApplicationViewHolder(view); in setUp()
71 mController.setupView(mHolder); in storageShouldBeZeroBytesIfQueriedBeforeStorageQueryFinishes()
73 assertThat(mHolder.mSummary.getText().toString()) in storageShouldBeZeroBytesIfQueriedBeforeStorageQueryFinishes()
83 mController.setupView(mHolder); in storageShouldRepresentStorageStatsQuery()
85 assertThat(mHolder.mSummary.getText().toString()) in storageShouldRepresentStorageStatsQuery()
DMusicViewHolderControllerTest.java57 private ApplicationViewHolder mHolder; field in MusicViewHolderControllerTest
67 mHolder = new ApplicationViewHolder(view); in setUp()
72 mController.setupView(mHolder); in storageShouldBeZeroBytesIfQueriedBeforeStorageQueryFinishes()
74 assertThat(mHolder.mSummary.getText().toString()).isEqualTo( in storageShouldBeZeroBytesIfQueriedBeforeStorageQueryFinishes()
84 mController.setupView(mHolder); in storageShouldRepresentStorageStatsQuery()
86 assertThat(mHolder.mSummary.getText().toString()).isEqualTo( in storageShouldRepresentStorageStatsQuery()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DCollapsibleCheckboxPreferenceGroupTest.java42 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 …]
DPhotosDeletionPreferenceTest.java39 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/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceTest.java67 private PreferenceViewHolder mHolder; field in DataUsageSummaryPreferenceTest
93 mHolder = spy(PreferenceViewHolder.createInstanceForTests(view)); in setUp()
142 mCarrierInfo = (TextView) mHolder.findViewById(R.id.carrier_and_update); in testCarrierUpdateTime_shouldFormatDaysCorrectly()
157 mCarrierInfo = (TextView) mHolder.findViewById(R.id.carrier_and_update); in testCarrierUpdateTime_shouldFormatHoursCorrectly()
172 mCarrierInfo = (TextView) mHolder.findViewById(R.id.carrier_and_update); in testCarrierUpdateTime_shouldFormatMinutesCorrectly()
184 mCarrierInfo = (TextView) mHolder.findViewById(R.id.carrier_and_update); in testCarrierUpdateTime_shouldFormatLessThanMinuteCorrectly()
196 mCarrierInfo = (TextView) mHolder.findViewById(R.id.carrier_and_update); in testCarrierUpdateTimeWithNoCarrier_shouldSayJustNow()
208 mCarrierInfo = (TextView) mHolder.findViewById(R.id.carrier_and_update); in testCarrierUpdateTimeWithNoCarrier_shouldFormatTime()
220 mCarrierInfo = (TextView) mHolder.findViewById(R.id.carrier_and_update); in setUsageInfo_withRecentCarrierUpdate_doesNotSetCarrierInfoWarningColorAndFont()
448 doReturn(dataUsed).when(mHolder).findViewById(R.id.data_usage_view); in testSetUsageInfo_withOverflowStrings_dataRemainingNotShown()
[all …]
DCellDataPreferenceTest.java49 private PreferenceViewHolder mHolder; field in CellDataPreferenceTest
65 mHolder = PreferenceViewHolder.createInstanceForTests(view); 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/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DDocumentHolderTest.java38 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/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/widget/
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()
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/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DStorageSummaryDonutPreferenceControllerTest.java63 private PreferenceViewHolder mHolder; field in StorageSummaryDonutPreferenceControllerTest
79 mHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp()
138 mPreference.onBindViewHolder(mHolder); in testFreeUpSpaceMetricIsTriggered()
139 final Button button = (Button) mHolder.findViewById(R.id.deletion_helper_button); in testFreeUpSpaceMetricIsTriggered()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DBalanceSeekBarPreferenceTest.java42 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/
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()
DRunningServiceDetails.java474 mSnippetActiveItem.mHolder.size.setText("");
475 mSnippetActiveItem.mHolder.uptime.setText("");
476 mSnippetActiveItem.mHolder.description.setText(R.string.no_services);
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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()
DRunningServiceDetails.java474 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/
DBluetoothEnablerTest.java65 private PreferenceViewHolder mHolder; field in BluetoothEnablerTest
99 mHolder = PreferenceViewHolder.createInstanceForTests(mock(View.class)); in setUp()
100 mRestrictedSwitchPreference.onBindViewHolder(mHolder); in setUp()