Searched refs:summaryView (Results 1 – 8 of 8) sorted by relevance
61 final TextView summaryView = mock(TextView.class, RETURNS_DEEP_STUBS); in bindPreference_disabled_shouldDisplayDisabledSummary() local63 .thenReturn(summaryView); in bindPreference_disabled_shouldDisplayDisabledSummary()64 when(summaryView.getContext().getText(R.string.disabled_by_admin_summary_text)) in bindPreference_disabled_shouldDisplayDisabledSummary()71 verify(summaryView).setText("test"); in bindPreference_disabled_shouldDisplayDisabledSummary()72 verify(summaryView, never()).setVisibility(View.GONE); in bindPreference_disabled_shouldDisplayDisabledSummary()77 final TextView summaryView = mock(TextView.class, RETURNS_DEEP_STUBS); in bindPreference_notDisabled_shouldNotHideSummary() local79 .thenReturn(summaryView); in bindPreference_notDisabled_shouldNotHideSummary()80 when(summaryView.getContext().getText(R.string.disabled_by_admin_summary_text)) in bindPreference_notDisabled_shouldNotHideSummary()82 when(summaryView.getText()).thenReturn("test"); in bindPreference_notDisabled_shouldNotHideSummary()88 verify(summaryView).setText(null); in bindPreference_notDisabled_shouldNotHideSummary()[all …]
89 final TextView summaryView = (TextView) holder.findViewById(android.R.id.summary); in onBindViewHolder() local90 if (summaryView != null) { in onBindViewHolder()91 final CharSequence disabledText = summaryView.getContext().getText( in onBindViewHolder()94 summaryView.setText(disabledText); in onBindViewHolder()95 } else if (TextUtils.equals(disabledText, summaryView.getText())) { in onBindViewHolder()97 summaryView.setText(null); in onBindViewHolder()
137 final TextView summaryView = (TextView) holder.findViewById(android.R.id.summary); in onBindViewHolder() local138 if (summaryView != null) { in onBindViewHolder()140 summaryView.setText(switchSummary); in onBindViewHolder()141 summaryView.setVisibility(View.VISIBLE); in onBindViewHolder()
207 TextView summaryView = (TextView) view.findViewById(com.android.internal.R.id.summary); in syncSummaryView() local208 if (summaryView != null) { in syncSummaryView()211 summaryView.setText(mSummaryOn); in syncSummaryView()214 summaryView.setText(mSummaryOff); in syncSummaryView()221 summaryView.setText(summary); in syncSummaryView()231 if (newVisibility != summaryView.getVisibility()) { in syncSummaryView()232 summaryView.setVisibility(newVisibility); in syncSummaryView()
648 final TextView summaryView = (TextView) view.findViewById( in onBindView() local650 if (summaryView != null) { in onBindView()653 summaryView.setText(summary); in onBindView()654 summaryView.setVisibility(View.VISIBLE); in onBindView()656 summaryView.setVisibility(View.GONE); in onBindView()
140 TextView summaryView = (TextView) view.findViewById(R.id.suw_items_summary); in onBindView() local143 summaryView.setText(summary); in onBindView()144 summaryView.setVisibility(View.VISIBLE); in onBindView()146 summaryView.setVisibility(View.GONE); in onBindView()
226 TextView summaryView = new TextView(application); in createLayout() local227 summaryView.setId(R.id.suw_items_summary); in createLayout()228 root.addView(summaryView); in createLayout()
149 final TextView summaryView = (TextView) holder.findViewById(R.id.banner_summary); in onBindViewHolder() local150 summaryView.setText(getSummary()); in onBindViewHolder()