Home
last modified time | relevance | path

Searched refs:getDefault (Results 1 – 25 of 144) sorted by relevance

123456

/libcore/luni/src/test/java/libcore/libcore/io/
DOsTest.java29 Os defaultOs = Os.getDefault(); in testCompareAndSetDefault_success()
34 assertSame(mockOs, Os.getDefault()); in testCompareAndSetDefault_success()
41 assertSame(defaultOs, Os.getDefault()); in testCompareAndSetDefault_success()
46 Os defaultOs = Os.getDefault(); in testCompareandSetDefault_null()
54 assertSame(defaultOs, Os.getDefault()); in testCompareandSetDefault_null()
58 Os defaultOs = Os.getDefault(); in testCompareAndSetDefault_comparisonFailure()
63 assertSame(defaultOs, Os.getDefault()); in testCompareAndSetDefault_comparisonFailure()
67 assertSame(defaultOs, Os.getDefault()); in testCompareAndSetDefault_comparisonFailure()
/libcore/luni/src/test/java/libcore/java/util/
DLocales.java56 Locales oldLocales = getDefault(); in getAndSetDefaultForTest()
59 assertEquals(newLocales, getDefault()); // sanity check in getAndSetDefaultForTest()
97 public static Locales getDefault() { in getDefault() method in Locales
99 Locale.getDefault(), Locale.getDefault(DISPLAY), Locale.getDefault(FORMAT)); in getDefault()
DCalendarTest.java278 Calendar.getInstance(Locale.getDefault()), in test_nullLocale_getInstance_Locale()
288 Calendar.getInstance(TimeZone.getDefault(), Locale.getDefault()), in test_nullLocale_getInstance_TimeZone_Locale()
289 Calendar.getInstance(TimeZone.getDefault(), null)); in test_nullLocale_getInstance_TimeZone_Locale()
298 new GregorianCalendar(Locale.getDefault()), in test_nullLocale_GregorianCalendar_Locale()
369 super(TimeZone.getDefault(), Locale.getDefault()); in FakeCalendar()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DCookieHandlerTest.java34 assertNull(CookieHandler.getDefault()); in test_GetDefault()
44 assertSame(CookieHandler.getDefault(), rc1); in test_SetDefault_java_net_cookieHandler()
46 assertSame(CookieHandler.getDefault(), rc2); in test_SetDefault_java_net_cookieHandler()
48 assertNull(CookieHandler.getDefault()); in test_SetDefault_java_net_cookieHandler()
DResponseCacheTest.java37 assertNull(ResponseCache.getDefault()); in test_GetDefault()
48 assertSame(ResponseCache.getDefault(), rc1); in test_SetDefaultLjava_net_ResponseCache_Normal()
50 assertSame(ResponseCache.getDefault(), rc2); in test_SetDefaultLjava_net_ResponseCache_Normal()
52 assertNull(ResponseCache.getDefault()); in test_SetDefaultLjava_net_ResponseCache_Normal()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimeZoneTest.java41 TimeZone.getDefault(), TimeZone.getDefault()); in test_getDefault()
167 TimeZone oldDefault = TimeZone.getDefault(); in test_setDefaultLjava_util_TimeZone()
170 assertEquals("timezone not set", zone, TimeZone.getDefault()); in test_setDefaultLjava_util_TimeZone()
173 oldDefault, TimeZone.getDefault()); in test_setDefaultLjava_util_TimeZone()
216 processDefault = TimeZone.getDefault(); in setUp()
255 TimeZone defaultZone = TimeZone.getDefault(); in test_getDisplayName()
256 Locale defaulLocal = Locale.getDefault(); in test_getDisplayName()
268 TimeZone defaultZone = TimeZone.getDefault(); in test_getDisplayName_ZI()
269 Locale defaultLocale = Locale.getDefault(); in test_getDisplayName_ZI()
DLocaleTest.java159 assertTrue("returns copy", Locale.getDefault() == Locale.getDefault()); in test_getDefault()
160 Locale org = Locale.getDefault(); in test_getDefault()
162 Locale x = Locale.getDefault(); in test_getDefault()
196 Locale defaultLocale = Locale.getDefault(); in test_getDisplayLanguage()
342 Locale org = Locale.getDefault(); in test_setDefaultLjava_util_Locale()
344 Locale x = Locale.getDefault(); in test_setDefaultLjava_util_Locale()
431 defaultLocale = Locale.getDefault(); in setUp()
DResourceBundleTest.java47 bundle = ResourceBundle.getBundle(name, Locale.getDefault()); in test_getBaseName()
60 Locale defLocale = Locale.getDefault(); in test_getBundleLjava_lang_StringLjava_util_Locale()
138 .getDefault()); in test_getBundleLjava_lang_StringLjava_util_LocaleLjava_lang_ClassLoader()
140 bundle = ResourceBundle.getBundle(name, Locale.getDefault(), loader); in test_getBundleLjava_lang_StringLjava_util_LocaleLjava_lang_ClassLoader()
145 ResourceBundle.getBundle(null, Locale.getDefault(), loader); in test_getBundleLjava_lang_StringLjava_util_LocaleLjava_lang_ClassLoader()
159 ResourceBundle.getBundle(name, Locale.getDefault(), (ClassLoader) null); in test_getBundleLjava_lang_StringLjava_util_LocaleLjava_lang_ClassLoader()
166 ResourceBundle.getBundle("", Locale.getDefault(), loader); in test_getBundleLjava_lang_StringLjava_util_LocaleLjava_lang_ClassLoader()
242 locale = Locale.getDefault(); in test_getBundle_getClassName()
270 Locale loc = Locale.getDefault(); in test_getLocale()
367 Locale defLocale = Locale.getDefault(); in test_getBundleLjava_lang_String()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLSocketFactoryTest.java46 SocketFactory sf = SSLSocketFactory.getDefault(); in test_Constructor()
58 SSLSocketFactory.getDefault()); in test_getDefault()
65 SSLSocketFactory sf = (SSLSocketFactory)SSLSocketFactory.getDefault(); in test_createSocket()
108 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_getDefaultCipherSuites()
121 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_getSupportedCipherSuites()
DSSLServerSocketFactoryTest.java78 SSLServerSocketFactory.getDefault()); in test_getDefault()
86 .getDefault(); in test_getDefaultCipherSuites()
99 .getDefault(); in test_getSupportedCipherSuites()
DHandshakeCompletedEventTest.java74 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_Constructor()
89 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getCipherSuite()
100 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getLocalCertificates()
111 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getLocalPrincipal()
123 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getPeerCertificateChain()
146 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getPeerCertificates()
166 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getPeerPrincipal()
177 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getSession()
189 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getSocket()
DSSLSessionBindingListenerTest.java63 SSLSocket sock = (SSLSocket) SSLSocketFactory.getDefault() in test_valueBound()
77 SSLSocket sock = (SSLSocket) SSLSocketFactory.getDefault() in test_valueUnbound()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/
DSocketFactoryTest.java43 SocketFactory sf = SocketFactory.getDefault(); in test_createSocket()
59 SocketFactory sf = SocketFactory.getDefault(); in test_createSocket_StringI()
87 SocketFactory f = SocketFactory.getDefault(); in test_createSocket_StringI()
96 SocketFactory sf = SocketFactory.getDefault(); in test_createSocket_InetAddressI()
118 SocketFactory f = SocketFactory.getDefault(); in test_createSocket_InetAddressI()
127 SocketFactory sf = SocketFactory.getDefault(); in test_createSocket_InetAddressIInetAddressI()
142 SocketFactory f = SocketFactory.getDefault(); in test_createSocket_InetAddressIInetAddressI()
154 SocketFactory sf = SocketFactory.getDefault(); in test_createSocket_InetAddressIInetAddressI_IllegalArgumentException()
183 SocketFactory sf = SocketFactory.getDefault(); in test_createSocket_InetAddressIInetAddressI_ExceptionOrder()
213 SocketFactory sf = SocketFactory.getDefault(); in test_createSocket_05()
[all …]
DServerSocketFactoryTest.java40 ServerSocketFactory sf = ServerSocketFactory.getDefault(); in test_createServerSocket()
47 ServerSocketFactory sf = ServerSocketFactory.getDefault(); in test_createServerSocket_I()
67 ServerSocketFactory sf = ServerSocketFactory.getDefault(); in test_createServerSocket_II()
87 ServerSocketFactory sf = ServerSocketFactory.getDefault(); in test_createServerSocket_IIInetAddress()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSocketFactoryTest.java40 SocketFactory sf1 = SSLSocketFactory.getDefault(); in test_SSLSocketFactory_getDefault_cacheInvalidate()
48 origContext = SSLContext.getDefault(); in test_SSLSocketFactory_getDefault_cacheInvalidate()
52 sf4 = SSLSocketFactory.getDefault(); in test_SSLSocketFactory_getDefault_cacheInvalidate()
62 SocketFactory sf3 = SSLSocketFactory.getDefault(); in test_SSLSocketFactory_getDefault_cacheInvalidate()
70 SocketFactory sf2 = SSLSocketFactory.getDefault(); in test_SSLSocketFactory_getDefault_cacheInvalidate()
110 SSLSocketFactory sf = (SSLSocketFactory) SSLSocketFactory.getDefault(); in test_SSLSocketFactory_createSocket_withConsumedInputStream()
DSSLServerSocketFactoryTest.java38 ServerSocketFactory sf1 = SSLServerSocketFactory.getDefault(); in test_SSLServerSocketFactory_getDefault_cacheInvalidate()
46 origContext = SSLContext.getDefault(); in test_SSLServerSocketFactory_getDefault_cacheInvalidate()
50 sf4 = SSLServerSocketFactory.getDefault(); in test_SSLServerSocketFactory_getDefault_cacheInvalidate()
60 ServerSocketFactory sf3 = SSLServerSocketFactory.getDefault(); in test_SSLServerSocketFactory_getDefault_cacheInvalidate()
69 ServerSocketFactory sf2 = SSLServerSocketFactory.getDefault(); in test_SSLServerSocketFactory_getDefault_cacheInvalidate()
/libcore/ojluni/src/main/java/java/text/
DBreakIterator.java442 return getWordInstance(Locale.getDefault()); in getWordInstance()
468 return getLineInstance(Locale.getDefault()); in getLineInstance()
494 return getCharacterInstance(Locale.getDefault()); in getCharacterInstance()
520 return getSentenceInstance(Locale.getDefault()); in getSentenceInstance()
DDateFormat.java456 return get(DEFAULT, 0, 1, Locale.getDefault(Locale.Category.FORMAT)); in getTimeInstance()
473 return get(style, 0, 1, Locale.getDefault(Locale.Category.FORMAT)); in getTimeInstance()
502 return get(0, DEFAULT, 2, Locale.getDefault(Locale.Category.FORMAT)); in getDateInstance()
519 return get(0, style, 2, Locale.getDefault(Locale.Category.FORMAT)); in getDateInstance()
548 return get(DEFAULT, DEFAULT, 3, Locale.getDefault(Locale.Category.FORMAT)); in getDateTimeInstance()
568 return get(timeStyle, dateStyle, 3, Locale.getDefault(Locale.Category.FORMAT)); in getDateTimeInstance()
DNumberFormat.java419 return getInstance(Locale.getDefault(Locale.Category.FORMAT), NUMBERSTYLE); in getInstance()
448 return getInstance(Locale.getDefault(Locale.Category.FORMAT), NUMBERSTYLE); in getNumberInstance()
481 return getInstance(Locale.getDefault(Locale.Category.FORMAT), INTEGERSTYLE); in getIntegerInstance()
513 return getInstance(Locale.getDefault(Locale.Category.FORMAT), CURRENCYSTYLE); in getCurrencyInstance()
538 return getInstance(Locale.getDefault(Locale.Category.FORMAT), PERCENTSTYLE); in getPercentInstance()
/libcore/luni/src/test/java/libcore/javax/net/
DServerSocketFactoryTest.java35 ServerSocket serverSocket = ServerSocketFactory.getDefault().createServerSocket(); in testCreateServerSocket()
41 ServerSocket serverSocket = ServerSocketFactory.getDefault().createServerSocket(0); in testCreateServerSocketWithPort()
50 ServerSocket serverSocket = ServerSocketFactory.getDefault().createServerSocket(0, 1); in testCreateServerSocketWithPortNoBacklog()
55 ServerSocket serverSocket = ServerSocketFactory.getDefault().createServerSocket(0, 0); in testCreateServerSocketWithPortZeroBacklog()
60 ServerSocket serverSocket = ServerSocketFactory.getDefault().createServerSocket(0, 50); in testCreateServerSocketWithPortAndBacklog()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDateFormatTest.java78 DateFormat.DEFAULT, Locale.getDefault()))); in test_getDateInstance()
95 DateFormat.SHORT, Locale.getDefault()))); in test_getDateInstanceI()
104 DateFormat.MEDIUM, Locale.getDefault()))); in test_getDateInstanceI()
113 DateFormat.LONG, Locale.getDefault()))); in test_getDateInstanceI()
122 DateFormat.FULL, Locale.getDefault()))); in test_getDateInstanceI()
190 DateFormat.DEFAULT, DateFormat.DEFAULT, Locale.getDefault()))); in test_getDateTimeInstance()
202 dStyle, Locale.getDefault()); in testDateTime()
204 tStyle, Locale.getDefault()); in testDateTime()
301 DateFormat.SHORT, DateFormat.SHORT, Locale.getDefault()))); in test_getInstance()
325 DateFormat.DEFAULT, Locale.getDefault()))); in test_getTimeInstance()
[all …]
/libcore/ojluni/src/main/java/java/nio/file/
DPaths.java84 return FileSystems.getDefault().getPath(first, more); in get()
138 return FileSystems.getDefault().provider().getPath(uri); in get()
/libcore/benchmarks/src/benchmarks/regression/
DTimeZoneBenchmark.java24 TimeZone.getDefault(); in timeTimeZone_getDefault()
35 String defaultId = TimeZone.getDefault().getID(); in timeTimeZone_getTimeZone_default()
/libcore/luni/src/test/java/libcore/java/nio/file/
DWatchServiceTest.java123 WatchService watchService = FileSystems.getDefault().newWatchService(); in test_singleFile()
166 WatchService watchService = FileSystems.getDefault().newWatchService(); in test_EventMask()
189 WatchService watchService = FileSystems.getDefault().newWatchService(); in test_singleDirectory()
218 WatchService watchService = FileSystems.getDefault().newWatchService(); in test_cancel()
248 WatchService watchService = FileSystems.getDefault().newWatchService(); in test_removeTarget()
279 WatchService watchService1 = FileSystems.getDefault().newWatchService(); in test_multipleKeys()
318 WatchService watchService1 = FileSystems.getDefault().newWatchService(); in test_multipleServices()
319 WatchService watchService2 = FileSystems.getDefault().newWatchService(); in test_multipleServices()
/libcore/luni/src/test/java/libcore/java/net/
DOldCookieHandlerTest.java48 assertNull(CookieHandler.getDefault()); in test_CookieHandler()
53 CookieHandler defaultHandler = CookieHandler.getDefault(); in test_get_put()

123456