Searched refs:bundle (Results 1 - 5 of 5) sorted by relevance

/libcore/luni/src/test/java/tests/api/java/util/
H A DResourceBundleTest.java41 ResourceBundle bundle;
46 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR"));
47 assertEquals("Wrong bundle fr_FR_VAR", "frFRVARValue4", bundle.getString("parent4"));
49 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "v1"));
50 assertEquals("Wrong bundle fr_FR_v1", "frFRValue4", bundle.getString("parent4"));
52 bundle = ResourceBundle.getBundle(name, new Locale("fr", "US", "VAR"));
53 assertEquals("Wrong bundle fr_US_var", "frValue4", bundle
[all...]
H A DSampleBundleClass.java28 private static ResourceBundle bundle; field in class:SampleBundleClass
37 bundle = ResourceBundle.getBundle("tests.api.simple.SampleBundleClass");
40 bundle = null;
H A DListResourceBundleTest.java32 ResourceBundle bundle;
35 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR"));
36 Enumeration keys = bundle.getKeys();
52 ListResourceBundle bundle;
55 bundle = (ListResourceBundle)ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR"));
56 Enumeration keys = bundle.getKeys();
60 result.addElement(bundle.handleGetObject((String)keys.nextElement()));
/libcore/luni/src/main/java/java/util/
H A DResourceBundle.java33 * provide {@code Locale}-specific resources. A bundle contains a number of named
34 * resources, where the names are {@code Strings}. A bundle may have a parent bundle,
35 * and when a resource is not found in a bundle, the parent bundle is searched for
36 * the resource. If the fallback mechanism reaches the base bundle and still
40 * <li>All bundles for the same group of resources share a common base bundle.
41 * This base bundle acts as the root and is the last fallback in case none of
44 * differences between a language and the language of the base bundle need to be
48 * the language bundle nee
581 setParent(ResourceBundle bundle) argument
976 needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime) argument
[all...]
/libcore/luni/src/main/native/
H A Dlibcore_icu_ICU.cpp71 ScopedResourceBundle(UResourceBundle* bundle) : bundle_(bundle) { argument
314 static void setStringField(JNIEnv* env, jobject obj, const char* fieldName, UResourceBundle* bundle, int index) { argument
317 const UChar* chars = ures_getStringByIndex(bundle, index, &charCount, &status);
325 static void setStringField(JNIEnv* env, jobject obj, const char* fieldName, UResourceBundle* bundle, const char* key) { argument
328 const UChar* chars = ures_getStringByKey(bundle, key, &charCount, &status);

Completed in 97 milliseconds