/packages/apps/DeskClock/tests/src/com/android/deskclock/uidata/ |
D | FormattedStringModelTest.java | 49 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/ |
D | LapsAdapter.kt | 329 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/ |
D | FormattedStringModel.kt | 66 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
|
D | UiDataModel.kt | 96 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()
|
/packages/apps/Dialer/java/com/android/dialer/calllogutils/ |
D | CallLogEntryText.java | 72 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()
|
D | PhotoInfoBuilder.java | 35 .setFormattedNumber(coalescedRow.getFormattedNumber()) in fromCoalescedRow() 49 .setFormattedNumber(voicemailEntry.getFormattedNumber()) in fromVoicemailEntry()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerSetupView.kt | 114 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/dialer/voicemail/listui/menu/ |
D | BottomSheetHeader.java | 44 } else if (!TextUtils.isEmpty(data.getFormattedNumber())) { in buildPrimaryVoicemailText() 45 primaryText.append(data.getFormattedNumber()); in buildPrimaryVoicemailText()
|
/packages/apps/Dialer/java/com/android/dialer/glidephotomanager/impl/ |
D | DefaultLookupUriGenerator.java | 49 lookupJson.put(Contacts.DISPLAY_NAME, photoInfo.getFormattedNumber()); in generateUri() 54 phone.put(CommonDataKinds.Phone.NUMBER, photoInfo.getFormattedNumber()); in generateUri()
|
D | GlidePhotoManagerImpl.java | 135 ? photoInfo.getFormattedNumber() in getDefaultDrawable()
|
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/ |
D | VoicemailEntryText.java | 38 } else if (!TextUtils.isEmpty(data.getFormattedNumber())) { in buildPrimaryVoicemailText() 39 primaryText.append(data.getFormattedNumber()); in buildPrimaryVoicemailText()
|
/packages/apps/Dialer/java/com/android/incallui/spam/ |
D | SpamNotificationActivity.java | 130 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/Car/Launcher/app/tests/src/com/android/car/carlauncher/homescreen/audio/ |
D | InCallModelTest.java | 108 String formattedNumber = TelecomUtils.getFormattedNumber( in updateModelWithPhoneNumber_active_setsPhoneNumberAndSubtitle() 121 String formattedNumber = TelecomUtils.getFormattedNumber( in updateModelWithPhoneNumber_dialing_setsPhoneNumberAndSubtitle()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | StopwatchTextController.kt | 49 mHundredthsTextView.text = UiDataModel.uiDataModel.getFormattedNumber(remainder / 10, 2) in setTimeString()
|
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/homescreen/audio/ |
D | InCallModel.java | 298 String formattedNumber = TelecomUtils.getFormattedNumber(mContext, number); in updateModelWithPhoneNumber()
|