Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ui/viewmodel/
DShadeHeaderViewModel.kt105 private val longerDateFormat = MutableStateFlow(getFormatFromPattern(longerPattern)) in <lambda>()
106 private val shorterDateFormat = MutableStateFlow(getFormatFromPattern(shorterPattern)) in <lambda>()
165 longerDateFormat.value = getFormatFromPattern(longerPattern) in <lambda>()
166 shorterDateFormat.value = getFormatFromPattern(shorterPattern) in <lambda>()
175 private fun getFormatFromPattern(pattern: String?): DateFormat { in <lambda>() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DVariableDateViewController.kt57 internal fun getFormatFromPattern(pattern: String?): DateFormat { in getFormatFromPattern() method
197 dateFormat = getFormatFromPattern(datePattern) in updateClock()
219 var text = getTextForFormat(currentTime, getFormatFromPattern(longerPattern)) in maybeChangeFormat()
226 text = getTextForFormat(currentTime, getFormatFromPattern(shorterPattern)) in maybeChangeFormat()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DVariableDateViewControllerTest.kt101 longText = getTextForFormat(date, getFormatFromPattern(LONG_PATTERN)) in setUp()
102 shortText = getTextForFormat(date, getFormatFromPattern(SHORT_PATTERN)) in setUp()