Home
last modified time | relevance | path

Searched refs:displayText (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/
DDataUsageFormatterTest.kt36 val (displayText, contentDescription) = dataUsageFormatter.formatDataUsage(0) in formatDataUsage_0() constant
38 assertThat(displayText).isEqualTo("0 B") in formatDataUsage_0()
44 val (displayText, contentDescription) = dataUsageFormatter.formatDataUsage(1000) in formatDataUsage_1000() constant
46 assertThat(displayText).isEqualTo("0.98 kB") in formatDataUsage_1000()
52 val (displayText, contentDescription) = dataUsageFormatter.formatDataUsage(2000000) in formatDataUsage_2000000() constant
54 assertThat(displayText).isEqualTo("1.91 MB") in formatDataUsage_2000000()
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DDataUsageFormatter.kt31 val displayText: String, constant in com.android.settings.datausage.lib.DataUsageFormatter.FormattedDataUsage
36 displayText = context.getString(resId, displayText, *formatArgs), in format()
45 displayText = BidiFormatter.getInstance().unicodeWrap( in format()
/packages/apps/Settings/src/com/android/settings/
DTrustedCredentialsDialogBuilder.java235 CharSequence displayText = mActivity.getText(!isProfileOrDeviceOwner && mNeedsApproval in updatePositiveButton() local
238 mPositiveButton = updateButton(DialogInterface.BUTTON_POSITIVE, displayText); in updatePositiveButton()
246 CharSequence displayText = mActivity.getText(getButtonLabel(certHolder)); in updateNegativeButton() local
247 mNegativeButton = updateButton(DialogInterface.BUTTON_NEGATIVE, displayText); in updateNegativeButton()
256 private Button updateButton(int buttonType, CharSequence displayText) { in updateButton() argument
257 mDialog.setButton(buttonType, displayText, (DialogInterface.OnClickListener) null); in updateButton()
259 button.setText(displayText); in updateButton()
DUtils.java677 public static SpannableString createAccessibleSequence(CharSequence displayText, in createAccessibleSequence() argument
679 final SpannableString str = new SpannableString(displayText); in createAccessibleSequence()
681 displayText.length(), in createAccessibleSequence()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/plugins/plugintoggle/
DPluginToggleModule.kt51 val displayText = R.string.menu_plugin_global_switch in providePluginToggle() constant
53 displayTextRes = displayText, in providePluginToggle()
56 action = ToggleCarUiLibPluginAction(displayText, !isChecked) in providePluginToggle()
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DMainActivity.java222 String displayText; in updateDrivingStateText() local
225 displayText = "Parked"; in updateDrivingStateText()
228 displayText = "Idling"; in updateDrivingStateText()
231 displayText = "Moving"; in updateDrivingStateText()
234 displayText = "Unknown"; in updateDrivingStateText()
236 mDrvStatus.setText("Driving State: " + displayText); in updateDrivingStateText()
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DEmergencyListPreference.java89 private static SpannableString createAccessibleSequence(CharSequence displayText, in createAccessibleSequence() argument
91 SpannableString str = new SpannableString(displayText); in createAccessibleSequence()
93 displayText.length(), in createAccessibleSequence()
/packages/apps/Settings/src/com/android/settings/datausage/
DAppDataUsageSummaryController.kt69 override val summary = { totalUsage.displayText } in Content()
74 override val summary = { foregroundUsage.displayText } in Content()
79 override val summary = { backgroundUsage.displayText } in Content()
DDataUsageList.kt181 usageAmount?.title = usageData.getDataUsedString(requireContext()).displayText in <lambda>()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/oemtokens/oemtokenstoggle/
DOemTokensToggleModule.kt52 val displayText = R.string.menu_oem_tokens_toggle in <lambda>() constant
68 displayTextRes = displayText, in <lambda>()
71 action = ToggleOemTokensAction(displayText, rroPackage, !isChecked) in <lambda>()
/packages/services/Telephony/src/com/android/phone/
DIccNetworkDepersonalizationPanel.java307 String displayText = getContext().getString(label); in displayStatus() local
308 mPersoSubtypeText.setText(displayText); in displayStatus()
/packages/apps/Messaging/src/com/android/messaging/util/
DUiUtils.java361 final String displayText = strippedText.substring(spanStart, spanEnd); in stripHtml() local
364 displayText, linkText)); in stripHtml()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DDataUsagePreferenceController.kt93 preference.summary = summary?.displayText in <lambda>()
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DAppDataUsagePreference.kt116 appUsageData.formatUsage(context).displayText, in <lambda>()