Home
last modified time | relevance | path

Searched refs:setDefault (Results 1 – 25 of 58) sorted by relevance

123

/libcore/luni/src/test/java/libcore/java/util/
DDateTest.java30 Locale.setDefault(Locale.US); in test_toString_us()
31 TimeZone.setDefault(TimeZone.getTimeZone("America/Chicago")); in test_toString_us()
39 Locale.setDefault(Locale.CHINA); in test_toString_nonUs()
40 TimeZone.setDefault(TimeZone.getTimeZone("America/Chicago")); in test_toString_nonUs()
46 TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles")); in test_toGMTString_us()
47 Locale.setDefault(Locale.US); in test_toGMTString_us()
60 TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles")); in test_toGMTString_nonUs()
61 Locale.setDefault(Locale.UK); in test_toGMTString_nonUs()
DLocales.java92 Locale.setDefault(uncategorizedLocale); in setAsDefault()
93 Locale.setDefault(DISPLAY, displayLocale); in setAsDefault()
94 Locale.setDefault(FORMAT, formatLocale); in setAsDefault()
DTimeZoneTest.java68 Locale.setDefault(Locale.US); in testPreHistoricInDaylightTime()
70 TimeZone.setDefault(tz); in testPreHistoricInDaylightTime()
360 Locale.setDefault(new Locale("en")); in testTimeZoneIDLocalization()
362 Locale.setDefault(new Locale("ar")); in testTimeZoneIDLocalization()
367 Locale.setDefault(defaultLocale); in testTimeZoneIDLocalization()
379 TimeZone.setDefault(tz); in testSetDefaultAppliesToIcuTimezone()
383 TimeZone.setDefault(origTz); in testSetDefaultAppliesToIcuTimezone()
402 TimeZone.setDefault(otherTimeZone); in testSetDefaultDeadlock()
403 TimeZone.setDefault(null); in testSetDefaultDeadlock()
DOldTimeZoneTest.java84 Locale.setDefault(Locale.US); in test_getDisplayName()
98 Locale.setDefault(Locale.US); in test_getDisplayNameZI()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DResourceBundleTest.java62 Locale.setDefault(new Locale("en", "US")); in test_getBundleLjava_lang_StringLjava_util_Locale()
75 Locale.setDefault(new Locale("fr", "FR", "VAR")); in test_getBundleLjava_lang_StringLjava_util_Locale()
79 Locale.setDefault(new Locale("de", "US")); in test_getBundleLjava_lang_StringLjava_util_Locale()
185 Locale.setDefault(new Locale("en", "US")); in test_getStringLjava_lang_String()
271 Locale.setDefault(new Locale("en", "US")); in test_getLocale()
291 Locale.setDefault(loc); in test_getLocale()
297 Locale.setDefault(new Locale("en", "US")); in test_getObjectLjava_lang_String()
334 Locale.setDefault(new Locale("en", "US")); in test_getStringArrayLjava_lang_String()
369 Locale.setDefault(new Locale("en", "US")); in test_getBundleLjava_lang_String()
373 Locale.setDefault(new Locale("fr", "FR", "v1")); in test_getBundleLjava_lang_String()
[all …]
DLocaleTest.java161 Locale.setDefault(l); in test_getDefault()
163 Locale.setDefault(org); in test_getDefault()
199 Locale.setDefault(locale); in test_getDisplayLanguage()
202 Locale.setDefault(defaultLocale); in test_getDisplayLanguage()
343 Locale.setDefault(l); in test_setDefaultLjava_util_Locale()
345 Locale.setDefault(org); in test_setDefaultLjava_util_Locale()
348 Locale.setDefault(new Locale("tr", "")); in test_setDefaultLjava_util_Locale()
351 Locale.setDefault(org); in test_setDefaultLjava_util_Locale()
356 Locale.setDefault(null); in test_setDefaultLjava_util_Locale()
432 Locale.setDefault(Locale.US); in setUp()
[all …]
DDateTest.java457 TimeZone.setDefault(TimeZone.getTimeZone("GMT-5")); in test_toString()
463 TimeZone.setDefault(tz); in test_toString()
467 TimeZone.setDefault(TimeZone.getTimeZone("MST")); in test_toString()
490 Locale.setDefault(Locale.US); in test_toLocaleString()
492 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in test_toLocaleString()
502 Locale.setDefault(loc); in test_toLocaleString()
503 TimeZone.setDefault(tz); in test_toLocaleString()
521 TimeZone.setDefault(defaultTimeZone); in tearDown()
DTimeZoneTest.java165 TimeZone.setDefault(null); in test_setDefaultLjava_util_TimeZone()
169 TimeZone.setDefault(zone); in test_setDefaultLjava_util_TimeZone()
171 TimeZone.setDefault(null); in test_setDefaultLjava_util_TimeZone()
208 TimeZone.setDefault(TimeZone.getTimeZone("America/Toronto")); in test_GetTimezoneOffset()
220 TimeZone.setDefault(processDefault); in tearDown()
DListResourceBundleTest.java33 Locale.setDefault(new Locale("en", "US")); in test_getKeys()
52 Locale.setDefault(new Locale("en", "US")); in test_handleGetObjectLjava_lang_String()
DCurrencyTest.java41 Locale.setDefault(originalLocale); in tearDown()
156 Locale.setDefault(Locale.US); in test_getSymbol()
165 Locale.setDefault(new Locale("en", "IE")); in test_getSymbol()
176 Locale.setDefault(new Locale("kr", "KR")); in test_getSymbol()
250 Locale.setDefault(loc1[k]); in test_getSymbolLjava_util_Locale()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DCookieHandlerTest.java43 CookieHandler.setDefault(rc1); in test_SetDefault_java_net_cookieHandler()
45 CookieHandler.setDefault(rc2); in test_SetDefault_java_net_cookieHandler()
47 CookieHandler.setDefault(null); in test_SetDefault_java_net_cookieHandler()
DResponseCacheTest.java47 ResponseCache.setDefault(rc1); in test_SetDefaultLjava_net_ResponseCache_Normal()
49 ResponseCache.setDefault(rc2); in test_SetDefaultLjava_net_ResponseCache_Normal()
51 ResponseCache.setDefault(null); in test_SetDefaultLjava_net_ResponseCache_Normal()
DURISyntaxExceptionTest.java106 Locale.setDefault(Locale.US); in test_getMessage()
/libcore/luni/src/test/java/libcore/java/sql/
DTimestampTest.java30 TimeZone.setDefault(TimeZone.getTimeZone("UTC")); in testToString()
44 TimeZone.setDefault(defaultTimeZone); in testToString()
52 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in testValueOf()
66 TimeZone.setDefault(defaultTimeZone); in testValueOf()
/libcore/luni/src/test/java/libcore/java/io/
DStreamTokenizerTest.java26 Locale.setDefault(Locale.US); in testLowerCase()
32 Locale.setDefault(new Locale("tr", "TR")); in testLowerCase()
/libcore/luni/src/test/java/libcore/java/net/
DOldAuthenticatorTest.java35 Authenticator.setDefault(mock); in test_setDefault()
41 Authenticator.setDefault(null); in test_setDefault()
DOldCookieHandlerTest.java55 CookieHandler.setDefault(mch); in test_get_put()
75 CookieHandler.setDefault(defaultHandler); in test_get_put()
DFtpURLConnectionTest.java178 ProxySelector.setDefault(proxySelector); in testConnectOverProxy_implicit_http_fails()
193 ProxySelector.setDefault(defaultProxySelector); in testConnectOverProxy_implicit_http_fails()
217 ProxySelector.setDefault(proxySelector); in testInputUrlWithSpacesViaProxySelector()
222 ProxySelector.setDefault(defaultProxySelector); in testInputUrlWithSpacesViaProxySelector()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
DHttpURLConnectionTest.java236 ProxySelector.setDefault( in testUsingProxySelector()
268 ProxySelector.setDefault(defPS); in testUsingProxySelector()
274 Authenticator.setDefault(new Authenticator() { in testProxyAuthorization()
303 Authenticator.setDefault(null); in testProxyAuthorization()
/libcore/ojluni/src/main/java/java/net/
DResponseCache.java106 public synchronized static void setDefault(ResponseCache responseCache) { in setDefault() method in ResponseCache
DCookieHandler.java92 public synchronized static void setDefault(CookieHandler cHandler) { in setDefault() method in CookieHandler
DProxySelector.java114 public static void setDefault(ProxySelector ps) { in setDefault() method in ProxySelector
/libcore/luni/src/test/java/libcore/java/text/
DOldNumberFormatTest.java283 Locale.setDefault(Locale.US); in test_getCurrencyInstance()
331 Locale.setDefault(Locale.US); in test_getInstance()
351 Locale.setDefault(Locale.US); in test_getInstanceLjava_util_Locale()
369 Locale.setDefault(Locale.US); in test_getNumberInstance()
388 Locale.setDefault(Locale.US); in test_getNumberInstanceLjava_util_Locale()
406 Locale.setDefault(Locale.US); in test_getPercentInstance()
426 Locale.setDefault(Locale.US); in test_getPercentInstanceLjava_util_Locale()
DDecimalFormatTest.java307 Locale.setDefault(locale1); in testSetCurrency_symbolOrigin()
311 Locale.setDefault(locale2); in testSetCurrency_symbolOrigin()
319 Locale.setDefault(originalLocale); in testSetCurrency_symbolOrigin()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipEntryTest.java376 TimeZone.setDefault(TimeZone.getTimeZone("EST")); in test_setTimeJ()
380 TimeZone.setDefault(TimeZone.getTimeZone("GMT")); in test_setTimeJ()
384 TimeZone.setDefault(TimeZone.getTimeZone("EST")); in test_setTimeJ()
395 TimeZone.setDefault(zone); in test_setTimeJ()

123