Home
last modified time | relevance | path

Searched refs:appContext (Results 1 – 6 of 6) sorted by relevance

/core/core-i18n/src/androidTest/java/androidx/core/i18n/
DSimpleMessageFormatTest.java35 private Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); field in SimpleMessageFormatTest
43 MessageFormat.format(appContext, message, arguments)); in testBasic()
45 MessageFormat.format(appContext, Locale.US, message, arguments)); in testBasic()
52 MessageFormat.format(appContext, Locale.US, msg, in testSelect()
55 MessageFormat.format(appContext, Locale.US, msg, in testSelect()
58 MessageFormat.format(appContext, Locale.US, msg, in testSelect()
75 MessageFormat.format(appContext, sr, msg, in testPlural()
78 MessageFormat.format(appContext, sr, msg, in testPlural()
81 MessageFormat.format(appContext, sr, msg, in testPlural()
84 MessageFormat.format(appContext, sr, msg, in testPlural()
[all …]
DDateTimeFormatterTest.kt68 private val appContext = InstrumentationRegistry.getInstrumentation().targetContext constant
107 assertEquals(expected, DateTimeFormatter(appContext, options, locale).format(testCalendar)) in test()
109 assertEquals(expected, DateTimeFormatter(appContext, options, locale).format(testDate)) in test()
111 assertEquals(expected, DateTimeFormatter(appContext, options, locale).format(testMillis)) in test()
164 var formatter = DateTimeFormatter(appContext, options, localeFr) in testApi()
169 formatter = DateTimeFormatter(appContext, options, localeFr) in testApi()
173 formatter = DateTimeFormatter(appContext, options, localeFr) in testApi()
177 formatter = DateTimeFormatter(appContext, options, localeFr) in testApi()
181 formatter = DateTimeFormatter(appContext, options, localeUs) in testApi()
185 formatter = DateTimeFormatter(appContext, options, localeUs) in testApi()
[all …]
DMessageFormatBenchmarkTest.java35 private Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); field in MessageFormatBenchmarkTest
53 MessageFormat.format(appContext, sr, msg, arguments); in testTimePlurals()
69 MessageFormat.format(appContext, Locale.US, msg, arguments); in testTimeGenders()
DDateTimeFormatterCommonOptionsTest.kt35 private val appContext = InstrumentationRegistry.getInstrumentation().targetContext in <lambda>() constant
85 DateTimeFormatter(appContext, entry.key, Locale.US).format(testCalendar) in <lambda>()
91 DateTimeFormatter(appContext, entry.key, Locale.US).format(testCalendar) in <lambda>()
DCheckDeviceSettingsTest.kt32 private val appContext = InstrumentationRegistry.getInstrumentation().targetContext constant
47 Settings.System.getString(appContext.contentResolver, Settings.System.TIME_12_24) in testHourSettings()
DDateTimeFormatJdkStylesTest.kt37 private val appContext = InstrumentationRegistry.getInstrumentation().targetContext constant in androidx.core.i18n.DateTimeFormatJdkStylesTest
123 val formatter = DateTimeFormatter(appContext, options, Locale.US) in testPredefinedStyles()