/libcore/luni/src/test/java/libcore/libcore/io/ |
D | OsTest.java | 29 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/ |
D | Locales.java | 56 Locales oldLocales = getDefault(); in getAndSetDefaultForTest() 59 assertEquals(newLocales, getDefault()); in getAndSetDefaultForTest() 97 public static Locales getDefault() { in getDefault() method in Locales 99 Locale.getDefault(), Locale.getDefault(DISPLAY), Locale.getDefault(FORMAT)); in getDefault()
|
D | CalendarTest.java | 278 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/ |
D | CookieHandlerTest.java | 34 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()
|
D | ResponseCacheTest.java | 37 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/ |
D | TimeZoneTest.java | 41 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() 254 TimeZone defaultZone = TimeZone.getDefault(); in test_getDisplayName() 255 Locale defaulLocal = Locale.getDefault(); in test_getDisplayName() 267 TimeZone defaultZone = TimeZone.getDefault(); in test_getDisplayName_ZI() 268 Locale defaultLocale = Locale.getDefault(); in test_getDisplayName_ZI()
|
D | LocaleTest.java | 159 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()
|
D | ResourceBundleTest.java | 47 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/ |
D | SSLSocketFactoryTest.java | 46 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()
|
D | SSLServerSocketFactoryTest.java | 78 SSLServerSocketFactory.getDefault()); in test_getDefault() 86 .getDefault(); in test_getDefaultCipherSuites() 99 .getDefault(); in test_getSupportedCipherSuites()
|
D | HandshakeCompletedEventTest.java | 74 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()
|
D | SSLSessionBindingListenerTest.java | 63 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/ |
D | SocketFactoryTest.java | 43 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 …]
|
D | ServerSocketFactoryTest.java | 40 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/ |
D | SSLSocketFactoryTest.java | 40 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()
|
D | SSLServerSocketFactoryTest.java | 38 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/ |
D | BreakIterator.java | 442 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()
|
D | DateFormat.java | 456 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()
|
/libcore/luni/src/test/java/libcore/javax/net/ |
D | ServerSocketFactoryTest.java | 35 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/luni/src/test/java/libcore/libcore/content/type/ |
D | MimeMapTest.java | 49 mimeMap = MimeMap.getDefault(); in setUp() 118 assertSame(MimeMap.getDefault(), MimeMap.getDefault()); in getDefault_returnsSameInstance() 122 MimeMap originalDefault = MimeMap.getDefault(); in getDefault_afterSetDefaultSupplier() 127 assertSame(MimeMap.getDefault(), MimeMap.getDefault()); in getDefault_afterSetDefaultSupplier() 129 assertTrue(originalDefault != MimeMap.getDefault()); in getDefault_afterSetDefaultSupplier() 130 assertEquals("mime/sup", MimeMap.getDefault().guessMimeTypeFromExtension("sup")); in getDefault_afterSetDefaultSupplier() 134 assertSame(originalDefault, MimeMap.getDefault()); in getDefault_afterSetDefaultSupplier() 138 MimeMap originalDefault = MimeMap.getDefault(); in setDefaultSupplier_returningNull() 143 MimeMap.getDefault(); in setDefaultSupplier_returningNull()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DateFormatTest.java | 78 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/ |
D | Paths.java | 84 return FileSystems.getDefault().getPath(first, more); in get() 138 return FileSystems.getDefault().provider().getPath(uri); in get()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | TimeZoneBenchmark.java | 24 TimeZone.getDefault(); in timeTimeZone_getDefault() 35 String defaultId = TimeZone.getDefault().getID(); in timeTimeZone_getTimeZone_default()
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | WatchServiceTest.java | 123 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/ |
D | OldCookieHandlerTest.java | 48 assertNull(CookieHandler.getDefault()); in test_CookieHandler() 53 CookieHandler defaultHandler = CookieHandler.getDefault(); in test_get_put()
|