Lines Matching refs:locale
153 * @param locale The context locale.
155 public Builder(Locale locale) {
156 initialize(isRtlLocale(locale));
230 * Factory for creating an instance of BidiFormatter for the default locale directionality.
247 * Factory for creating an instance of BidiFormatter given the context locale.
249 * @param locale The context locale.
251 public static BidiFormatter getInstance(Locale locale) {
252 return new Builder(locale).build();
433 * @param locale The Locale whose directionality will be checked to be RTL or LTR
434 * @return true if the {@code locale} directionality is RTL. False otherwise.
436 private static boolean isRtlLocale(Locale locale) {
437 return (TextUtilsCompat.getLayoutDirectionFromLocale(locale) == ViewCompat.LAYOUT_DIRECTION_RTL);