| /core/core-i18n/src/androidTest/java/androidx/core/i18n/ |
| D | SimpleMessageFormatTest.java | 35 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 …]
|
| D | DateTimeFormatterTest.kt | 68 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 …]
|
| D | MessageFormatBenchmarkTest.java | 35 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()
|
| D | DateTimeFormatterCommonOptionsTest.kt | 35 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>()
|
| D | CheckDeviceSettingsTest.kt | 32 private val appContext = InstrumentationRegistry.getInstrumentation().targetContext constant 47 Settings.System.getString(appContext.contentResolver, Settings.System.TIME_12_24) in testHourSettings()
|
| D | DateTimeFormatJdkStylesTest.kt | 37 private val appContext = InstrumentationRegistry.getInstrumentation().targetContext constant in androidx.core.i18n.DateTimeFormatJdkStylesTest 123 val formatter = DateTimeFormatter(appContext, options, Locale.US) in testPredefinedStyles()
|