Home
last modified time | relevance | path

Searched refs:carrierInfo (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummaryPreference.java175 TextView carrierInfo = getCarrierInfo(holder); in onBindViewHolder() local
184 carrierInfo.setVisibility(View.GONE); in onBindViewHolder()
193 carrierInfo.setVisibility(View.GONE); in onBindViewHolder()
209 updateCarrierInfo(carrierInfo); in onBindViewHolder()
302 private void updateCarrierInfo(TextView carrierInfo) {
304 carrierInfo.setVisibility(View.VISIBLE);
327 carrierInfo.setText(TextUtils.expandTemplate(
334 carrierInfo, android.R.attr.textColorSecondary, Typeface.SANS_SERIF);
336 setCarrierInfoTextStyle(carrierInfo, android.R.attr.colorError, SANS_SERIF_MEDIUM);
339 carrierInfo.setVisibility(View.GONE);
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceTest.java217 TextView carrierInfo = mSummaryPreference.getCarrierInfo(mHolder); in setUsageInfo_withRecentCarrierUpdate_doesNotSetCarrierInfoWarningColorAndFont() local
218 assertThat(carrierInfo.getVisibility()).isEqualTo(View.VISIBLE); in setUsageInfo_withRecentCarrierUpdate_doesNotSetCarrierInfoWarningColorAndFont()
219 assertThat(carrierInfo.getCurrentTextColor()).isEqualTo( in setUsageInfo_withRecentCarrierUpdate_doesNotSetCarrierInfoWarningColorAndFont()
221 assertThat(carrierInfo.getTypeface()).isEqualTo(Typeface.SANS_SERIF); in setUsageInfo_withRecentCarrierUpdate_doesNotSetCarrierInfoWarningColorAndFont()
231 TextView carrierInfo = mSummaryPreference.getCarrierInfo(mHolder); in testSetUsageInfo_withStaleCarrierUpdate_setsCarrierInfoWarningColorAndFont() local
232 assertThat(carrierInfo.getVisibility()).isEqualTo(View.VISIBLE); in testSetUsageInfo_withStaleCarrierUpdate_setsCarrierInfoWarningColorAndFont()
233 assertThat(carrierInfo.getCurrentTextColor()).isEqualTo( in testSetUsageInfo_withStaleCarrierUpdate_setsCarrierInfoWarningColorAndFont()
235 assertThat(carrierInfo.getTypeface()).isEqualTo( in testSetUsageInfo_withStaleCarrierUpdate_setsCarrierInfoWarningColorAndFont()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageSummaryPreference.java139 TextView carrierInfo = (TextView) view.findViewById(R.id.carrier_info_text); in onBindViewHolder() local
140 setTextAndVisibility(carrierInfo, mCarrierInfoText); in onBindViewHolder()
141 carrierInfo.setTextAppearance(mCarrierInfoTextStyle); in onBindViewHolder()