Home
last modified time | relevance | path

Searched refs:getFormattedNumber (Results 1 – 23 of 23) sorted by relevance

/packages/apps/DeskClock/tests/src/com/android/deskclock/uidata/
DFormattedStringModelTest.java49 assertEquals("0", model.getFormattedNumber(0)); in positiveFormattedNumberWithNoPadding()
50 assertEquals("9", model.getFormattedNumber(9)); in positiveFormattedNumberWithNoPadding()
51 assertEquals("10", model.getFormattedNumber(10)); in positiveFormattedNumberWithNoPadding()
52 assertEquals("99", model.getFormattedNumber(99)); in positiveFormattedNumberWithNoPadding()
53 assertEquals("100", model.getFormattedNumber(100)); in positiveFormattedNumberWithNoPadding()
58 assertEquals("0", model.getFormattedNumber(false, 0, 1)); in positiveFormattedNumber()
59 assertEquals("00", model.getFormattedNumber(false, 0, 2)); in positiveFormattedNumber()
60 assertEquals("000", model.getFormattedNumber(false, 0, 3)); in positiveFormattedNumber()
62 assertEquals("9", model.getFormattedNumber(false, 9, 1)); in positiveFormattedNumber()
63 assertEquals("09", model.getFormattedNumber(false, 9, 2)); in positiveFormattedNumber()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DLapsAdapter.java265 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(minutes, 1)); in formatTime()
267 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(minutes, 2)); in formatTime()
269 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(hours, 1)); in formatTime()
271 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(minutes, 2)); in formatTime()
273 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(hours, 2)); in formatTime()
275 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(minutes, 2)); in formatTime()
277 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(hours, 3)); in formatTime()
279 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(minutes, 2)); in formatTime()
284 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(seconds, 2)); in formatTime()
286 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(hundredths, 2)); in formatTime()
DLapsAdapter.kt329 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(minutes, 1)) in formatTime()
332 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(minutes, 2)) in formatTime()
335 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(hours, 1)) in formatTime()
337 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(minutes, 2)) in formatTime()
340 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(hours, 2)) in formatTime()
342 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(minutes, 2)) in formatTime()
345 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(hours, 3)) in formatTime()
347 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(minutes, 2)) in formatTime()
353 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(seconds, 2)) in formatTime()
355 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(hundredths, 2)) in formatTime()
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DUiDataModel.java117 public String getFormattedNumber(int value) { in getFormattedNumber() method in UiDataModel
119 return mFormattedStringModel.getFormattedNumber(value); in getFormattedNumber()
133 public String getFormattedNumber(int value, int length) { in getFormattedNumber() method in UiDataModel
135 return mFormattedStringModel.getFormattedNumber(value, length); in getFormattedNumber()
152 public String getFormattedNumber(boolean negative, int value, int length) { in getFormattedNumber() method in UiDataModel
154 return mFormattedStringModel.getFormattedNumber(negative, value, length); in getFormattedNumber()
DUiDataModel.kt96 fun getFormattedNumber(value: Int): String { in getFormattedNumber() method
98 return mFormattedStringModel.getFormattedNumber(value) in getFormattedNumber()
112 fun getFormattedNumber(value: Int, length: Int): String { in getFormattedNumber() method
114 return mFormattedStringModel.getFormattedNumber(value, length) in getFormattedNumber()
131 fun getFormattedNumber(negative: Boolean, value: Int, length: Int): String { in getFormattedNumber() method
133 return mFormattedStringModel.getFormattedNumber(negative, value, length) in getFormattedNumber()
DFormattedStringModel.kt66 fun getFormattedNumber(value: Int): String { in getFormattedNumber() method
68 return getFormattedNumber(false, value, length) in getFormattedNumber()
82 fun getFormattedNumber(value: Int, length: Int): String { in getFormattedNumber() method
83 return getFormattedNumber(false, value, length) in getFormattedNumber()
100 fun getFormattedNumber(negative: Boolean, value: Int, length: Int): String { in getFormattedNumber() method
DFormattedStringModel.java71 String getFormattedNumber(int value) { in getFormattedNumber() method in FormattedStringModel
73 return getFormattedNumber(false, value, length); in getFormattedNumber()
87 String getFormattedNumber(int value, int length) { in getFormattedNumber() method in FormattedStringModel
88 return getFormattedNumber(false, value, length); in getFormattedNumber()
105 String getFormattedNumber(boolean negative, int value, int length) { in getFormattedNumber() method in FormattedStringModel
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallLogEntryText.java72 if (!TextUtils.isEmpty(row.getFormattedNumber())) { in buildPrimaryText()
73 return PhoneNumberUtils.createTtsSpannable(row.getFormattedNumber()); in buildPrimaryText()
200 return !row.getFormattedNumber().isEmpty() in buildSecondaryTextForBottomSheet()
201 ? row.getFormattedNumber() in buildSecondaryTextForBottomSheet()
228 if (TextUtils.isEmpty(row.getFormattedNumber())) { in buildSecondaryTextForBottomSheet()
232 components.add(row.getFormattedNumber()); in buildSecondaryTextForBottomSheet()
DPhotoInfoBuilder.java35 .setFormattedNumber(coalescedRow.getFormattedNumber()) in fromCoalescedRow()
49 .setFormattedNumber(voicemailEntry.getFormattedNumber()) in fromVoicemailEntry()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerSetupView.java124 digitView.setText(uidm.getFormattedNumber(digit, 1)); in onFinishInflate()
211 uidm.getFormattedNumber(hours, 2), in updateTime()
212 uidm.getFormattedNumber(minutes, 2), in updateTime()
213 uidm.getFormattedNumber(seconds, 2))); in updateTime()
256 UiDataModel.getUiDataModel().getFormattedNumber(digit))); in append()
280 UiDataModel.getUiDataModel().getFormattedNumber(mInput[0]))); in delete()
DTimerSetupView.kt114 digitView.text = uidm.getFormattedNumber(digit, 1) in onFinishInflate()
186 uidm.getFormattedNumber(hours, 2), in updateTime()
187 uidm.getFormattedNumber(minutes, 2), in updateTime()
188 uidm.getFormattedNumber(seconds, 2)) in updateTime()
229 UiDataModel.uiDataModel.getFormattedNumber(digit)) in append()
253 UiDataModel.uiDataModel.getFormattedNumber(mInput[0])) in delete()
/packages/apps/Dialer/java/com/android/incallui/spam/
DSpamNotificationActivity.java130 private static String getFormattedNumber(String number, Context context) { in getFormattedNumber() method in SpamNotificationActivity
225 getFormattedNumber(number, this), in maybeShowNotSpamDialog()
243 String displayNumber = getFormattedNumber(number, this); in maybeShowBlockReportSpamDialog()
411 getFormattedNumber(number, applicationContext))) in onCreateDialog()
499 getString(R.string.non_spam_notification_title, getFormattedNumber(number, context)))
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/menu/
DBottomSheetHeader.java44 } else if (!TextUtils.isEmpty(data.getFormattedNumber())) { in buildPrimaryVoicemailText()
45 primaryText.append(data.getFormattedNumber()); in buildPrimaryVoicemailText()
/packages/apps/Dialer/java/com/android/dialer/glidephotomanager/impl/
DDefaultLookupUriGenerator.java49 lookupJson.put(Contacts.DISPLAY_NAME, photoInfo.getFormattedNumber()); in generateUri()
54 phone.put(CommonDataKinds.Phone.NUMBER, photoInfo.getFormattedNumber()); in generateUri()
DGlidePhotoManagerImpl.java135 ? photoInfo.getFormattedNumber() in getDefaultDrawable()
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/
DVoicemailEntryText.java38 } else if (!TextUtils.isEmpty(data.getFormattedNumber())) { in buildPrimaryVoicemailText()
39 primaryText.append(data.getFormattedNumber()); in buildPrimaryVoicemailText()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/activecall/
DInCallFragment.java102 mNameView.setText(TelecomUtils.getFormattedNumber(getContext(), number)); in bindUserProfileView()
118 phoneNumberLabel += TelecomUtils.getFormattedNumber(getContext(), number); in bindUserProfileView()
DOnHoldCallUserProfileFragment.java92 mTitle.setText(TelecomUtils.getFormattedNumber(getContext(), number)); in updateProfile()
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DTelecomUtils.java115 public static String getFormattedNumber(Context context, String number) { in getFormattedNumber() method in TelecomUtils
260 name = getFormattedNumber(context, number); in getPhoneNumberInfo()
321 name = getFormattedNumber(context, number); in getPhoneNumberInfo()
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/dialpad/
DDialpadFragmentTest.java259 expectedText = TelecomUtils.getFormattedNumber(mDialpadFragment.getContext(), expectedText); in verifyTitleText()
261 TelecomUtils.getFormattedNumber(mDialpadFragment.getContext(), null); in verifyTitleText()
/packages/apps/DeskClock/src/com/android/deskclock/
DStopwatchTextController.java59 mHundredthsTextView.setText(UiDataModel.getUiDataModel().getFormattedNumber( in setTimeString()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/
DUiCallLogLiveData.java203 title = TelecomUtils.getFormattedNumber(mContext, number); in convert()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/dialpad/
DDialpadFragment.java247 TelecomUtils.getFormattedNumber(getContext(), number.toString())); in presentDialedNumber()