HomeSort by relevance Sort by last modified time
    Searched refs:NativePluralRules (Results 1 - 4 of 4) sorted by null

  /libcore/luni/src/test/java/libcore/icu/
NativePluralRulesTest.java 23 NativePluralRules npr = NativePluralRules.forLocale(new Locale("en", "US"));
24 assertEquals(NativePluralRules.OTHER, npr.quantityForInt(-1));
25 assertEquals(NativePluralRules.OTHER, npr.quantityForInt(0));
26 assertEquals(NativePluralRules.ONE, npr.quantityForInt(1));
27 assertEquals(NativePluralRules.OTHER, npr.quantityForInt(2));
31 NativePluralRules npr = NativePluralRules.forLocale(new Locale("cs", "CZ"));
32 assertEquals(NativePluralRules.OTHER, npr.quantityForInt(-1));
33 assertEquals(NativePluralRules.OTHER, npr.quantityForInt(0))
    [all...]
  /libcore/luni/src/main/java/libcore/icu/
NativePluralRules.java 27 public final class NativePluralRules {
37 private NativePluralRules(long address) {
49 public static NativePluralRules forLocale(Locale locale) {
50 return new NativePluralRules(forLocaleImpl(locale.toString()));
  /libcore/luni/src/main/native/
libcore_icu_NativePluralRules.cpp 17 #define LOG_TAG "NativePluralRules"
76 NATIVE_METHOD(NativePluralRules, finalizeImpl, "(J)V"),
77 NATIVE_METHOD(NativePluralRules, forLocaleImpl, "(Ljava/lang/String;)J"),
78 NATIVE_METHOD(NativePluralRules, quantityForIntImpl, "(JI)I"),
81 jniRegisterNativeMethods(env, "libcore/icu/NativePluralRules", gMethods, NELEM(gMethods));
  /frameworks/base/core/java/android/content/res/
Resources.java 46 import libcore.icu.NativePluralRules;
121 private NativePluralRules mPluralRule;
269 NativePluralRules rule = getPluralRule();
284 private NativePluralRules getPluralRule() {
287 mPluralRule = NativePluralRules.forLocale(mConfiguration.locale);
295 case NativePluralRules.ZERO: return 0x01000005;
296 case NativePluralRules.ONE: return 0x01000006;
297 case NativePluralRules.TWO: return 0x01000007;
298 case NativePluralRules.FEW: return 0x01000008;
299 case NativePluralRules.MANY: return 0x01000009
    [all...]

Completed in 131 milliseconds