Home
last modified time | relevance | path

Searched refs:setDefault (Results 1 – 25 of 56) 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()
65 TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles")); in test_toGMTString_nonUs()
66 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.java83 Locale.setDefault(Locale.US); in testPreHistoricInDaylightTime_old()
85 TimeZone.setDefault(tz); in testPreHistoricInDaylightTime_old()
382 Locale.setDefault(new Locale("en")); in testTimeZoneIDLocalization()
384 Locale.setDefault(new Locale("ar")); in testTimeZoneIDLocalization()
389 Locale.setDefault(defaultLocale); in testTimeZoneIDLocalization()
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()
251 Locale.setDefault(loc1[k]); in test_getSymbolLjava_util_Locale()
/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.java204 ProxySelector.setDefault(proxySelector); in testConnectOverProxy_implicit_http_fails()
219 ProxySelector.setDefault(defaultProxySelector); in testConnectOverProxy_implicit_http_fails()
243 ProxySelector.setDefault(proxySelector); in testInputUrlWithSpacesViaProxySelector()
248 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/luni/src/test/java/libcore/javax/net/ssl/
DSSLServerSocketFactoryTest.java48 SSLContext.setDefault(SSLContext.getInstance("Default", fakeProvider)); in test_SSLServerSocketFactory_getDefault_cacheInvalidate()
56 SSLContext.setDefault(origContext); in test_SSLServerSocketFactory_getDefault_cacheInvalidate()
DSSLSocketFactoryTest.java50 SSLContext.setDefault(SSLContext.getInstance("Default", fakeProvider)); in test_SSLSocketFactory_getDefault_cacheInvalidate()
58 SSLContext.setDefault(origContext); in test_SSLSocketFactory_getDefault_cacheInvalidate()
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DURISyntaxExceptionTest.java106 Locale.setDefault(Locale.US); in test_getMessage()
/libcore/luni/src/test/java/libcore/java/text/
DOldNumberFormatTest.java286 Locale.setDefault(Locale.US); in test_getCurrencyInstance()
334 Locale.setDefault(Locale.US); in test_getInstance()
354 Locale.setDefault(Locale.US); in test_getInstanceLjava_util_Locale()
372 Locale.setDefault(Locale.US); in test_getNumberInstance()
391 Locale.setDefault(Locale.US); in test_getNumberInstanceLjava_util_Locale()
409 Locale.setDefault(Locale.US); in test_getPercentInstance()
429 Locale.setDefault(Locale.US); in test_getPercentInstanceLjava_util_Locale()
/libcore/dalvik/src/main/java/dalvik/system/
DRuntimeHooks.java70 TimeZone.setDefault(null); in setTimeZoneIdSupplier()
/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()
/libcore/luni/src/test/java/libcore/java/lang/
DStringTest.java264 Locale.setDefault(locale); in testEqualsIgnoreCase()
274 Locale.setDefault(defaultLocale); in testEqualsIgnoreCase()
288 Locale.setDefault(locale); in testRegionMatches_ignoreCase()
298 Locale.setDefault(defaultLocale); in testRegionMatches_ignoreCase()
791 Locale.setDefault(new Locale("invalidLocale")); in testFormat_invalidLocale()
794 Locale.setDefault(defaultLocale); in testFormat_invalidLocale()

123