Home
last modified time | relevance | path

Searched refs:l (Results 1 – 25 of 115) sorted by relevance

12345

/libcore/luni/src/test/java/libcore/icu/
DLocaleDataTest.java24 for (Locale l : Locale.getAvailableLocales()) { in testAll()
25 LocaleData d = LocaleData.get(l); in testAll()
32 LocaleData l = LocaleData.get(Locale.US); in test_en_US() local
33 assertEquals("AM", l.amPm[0]); in test_en_US()
34 assertEquals("a", l.narrowAm); in test_en_US()
36 assertEquals("BC", l.eras[0]); in test_en_US()
38 assertEquals("January", l.longMonthNames[0]); in test_en_US()
39 assertEquals("Jan", l.shortMonthNames[0]); in test_en_US()
40 assertEquals("J", l.tinyMonthNames[0]); in test_en_US()
42 assertEquals("January", l.longStandAloneMonthNames[0]); in test_en_US()
[all …]
DDateIntervalFormatTest.java170 Locale l = Locale.US; in test8862241() local
172 Calendar c = Calendar.getInstance(tz, l); in test8862241()
179 …assertEquals("Jan 19, 2042 – Oct 4, 2046", formatDateRange(l, tz, jan_19_2042, oct_4_2046, flags)); in test8862241()
184 Locale l = Locale.US; in test10089890() local
190 …assertEquals("Jan 1, 1970, 00:00 – Jan 2, 1970, 00:00", formatDateRange(l, utc, 0, DAY + 1, flags)… in test10089890()
192 …assertEquals("Dec 31, 1969, 16:00 – Jan 1, 1970, 16:00", formatDateRange(l, pacific, 0, DAY, flags… in test10089890()
206 Locale l = Locale.US; in test10318326() local
210 assertEquals("00:00", formatDateRange(l, utc, midnight, midnight, time24)); in test10318326()
211 assertEquals("12:00 AM", formatDateRange(l, utc, midnight, midnight, time12)); in test10318326()
212 assertEquals("16:00", formatDateRange(l, utc, teaTime, teaTime, time24)); in test10318326()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DCountDownLatchTest.java32 final CountDownLatch l = new CountDownLatch(2); in testGetCount() local
33 assertEquals(2, l.getCount()); in testGetCount()
34 l.countDown(); in testGetCount()
35 assertEquals(1, l.getCount()); in testGetCount()
42 final CountDownLatch l = new CountDownLatch(1); in testCountDown() local
43 assertEquals(1, l.getCount()); in testCountDown()
44 l.countDown(); in testCountDown()
45 assertEquals(0, l.getCount()); in testCountDown()
46 l.countDown(); in testCountDown()
47 assertEquals(0, l.getCount()); in testCountDown()
[all …]
DAbstractExecutorServiceTest.java256 List<Callable<Long>> l = new ArrayList<Callable<Long>>(); in testInvokeAny3() local
257 l.add(new Callable<Long>() { in testInvokeAny3()
259 l.add(null); in testInvokeAny3()
261 e.invokeAny(l); in testInvokeAny3()
274 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny4() local
275 l.add(new NPETask()); in testInvokeAny4()
277 e.invokeAny(l); in testInvokeAny4()
292 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny5() local
293 l.add(new StringTask()); in testInvokeAny5()
294 l.add(new StringTask()); in testInvokeAny5()
[all …]
DForkJoinPoolTest.java652 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny3() local
653 l.add(null); in testInvokeAny3()
655 e.invokeAny(l); in testInvokeAny3()
669 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny4() local
670 l.add(latchAwaitingStringTask(latch)); in testInvokeAny4()
671 l.add(null); in testInvokeAny4()
673 e.invokeAny(l); in testInvokeAny4()
687 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny5() local
688 l.add(new NPETask()); in testInvokeAny5()
690 e.invokeAny(l); in testInvokeAny5()
[all …]
DScheduledExecutorTest.java620 List<Runnable> l = p.shutdownNow(); in testShutdownNow() local
622 assertEquals(5, l.size()); in testShutdownNow()
820 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny3() local
821 l.add(latchAwaitingStringTask(latch)); in testInvokeAny3()
822 l.add(null); in testInvokeAny3()
824 e.invokeAny(l); in testInvokeAny3()
838 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny4() local
839 l.add(new NPETask()); in testInvokeAny4()
841 e.invokeAny(l); in testInvokeAny4()
856 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny5() local
[all …]
DAbstractQueuedLongSynchronizerTest.java462 final BooleanLatch l = new BooleanLatch(); in testGetSharedQueuedThreads_Shared() local
463 assertHasSharedQueuedThreads(l, NO_THREADS); in testGetSharedQueuedThreads_Shared()
466 l.acquireSharedInterruptibly(0); in testGetSharedQueuedThreads_Shared()
468 waitForQueuedThread(l, t1); in testGetSharedQueuedThreads_Shared()
469 assertHasSharedQueuedThreads(l, t1); in testGetSharedQueuedThreads_Shared()
472 l.acquireSharedInterruptibly(0); in testGetSharedQueuedThreads_Shared()
474 waitForQueuedThread(l, t2); in testGetSharedQueuedThreads_Shared()
475 assertHasSharedQueuedThreads(l, t1, t2); in testGetSharedQueuedThreads_Shared()
478 assertHasSharedQueuedThreads(l, t2); in testGetSharedQueuedThreads_Shared()
479 assertTrue(l.releaseShared(0)); in testGetSharedQueuedThreads_Shared()
[all …]
DAbstractQueuedSynchronizerTest.java465 final BooleanLatch l = new BooleanLatch(); in testGetSharedQueuedThreads_Shared() local
466 assertHasSharedQueuedThreads(l, NO_THREADS); in testGetSharedQueuedThreads_Shared()
469 l.acquireSharedInterruptibly(0); in testGetSharedQueuedThreads_Shared()
471 waitForQueuedThread(l, t1); in testGetSharedQueuedThreads_Shared()
472 assertHasSharedQueuedThreads(l, t1); in testGetSharedQueuedThreads_Shared()
475 l.acquireSharedInterruptibly(0); in testGetSharedQueuedThreads_Shared()
477 waitForQueuedThread(l, t2); in testGetSharedQueuedThreads_Shared()
478 assertHasSharedQueuedThreads(l, t1, t2); in testGetSharedQueuedThreads_Shared()
481 assertHasSharedQueuedThreads(l, t2); in testGetSharedQueuedThreads_Shared()
482 assertTrue(l.releaseShared(0)); in testGetSharedQueuedThreads_Shared()
[all …]
DScheduledExecutorSubclassTest.java669 List<Runnable> l = p.shutdownNow(); in testShutdownNow() local
671 assertEquals(5, l.size()); in testShutdownNow()
869 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny3() local
870 l.add(latchAwaitingStringTask(latch)); in testInvokeAny3()
871 l.add(null); in testInvokeAny3()
873 e.invokeAny(l); in testInvokeAny3()
887 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny4() local
888 l.add(new NPETask()); in testInvokeAny4()
890 e.invokeAny(l); in testInvokeAny4()
905 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny5() local
[all …]
DThreadPoolExecutorTest.java609 List l; in testShutdownNow() local
616 l = p.shutdownNow(); in testShutdownNow()
620 assertTrue(l.size() <= 4); in testShutdownNow()
1483 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny3() local
1484 l.add(latchAwaitingStringTask(latch)); in testInvokeAny3()
1485 l.add(null); in testInvokeAny3()
1487 e.invokeAny(l); in testInvokeAny3()
1504 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny4() local
1505 l.add(new NPETask()); in testInvokeAny4()
1507 e.invokeAny(l); in testInvokeAny4()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DLocaleTest.java180 for (Locale l : array) { in assertOnce()
181 if (l.equals(element)) { in assertOnce()
399 Locale l = b.build(); in test_Builder_setLocale() local
400 assertEquals("en", l.getLanguage()); in test_Builder_setLocale()
401 assertEquals("US", l.getCountry()); in test_Builder_setLocale()
402 assertEquals("variant_VARIANT", l.getVariant()); in test_Builder_setLocale()
415 l = b.build(); in test_Builder_setLocale()
416 assertEquals("fr", l.getLanguage()); in test_Builder_setLocale()
417 assertEquals("FR", l.getCountry()); in test_Builder_setLocale()
460 Locale l = b.clear().build(); in test_Builder_clear() local
[all …]
DOldListIteratorTest.java27 ListIterator<Integer> l = null; field in OldListIteratorTest
38 assertTrue(l.hasNext()); in testHasNext()
39 l.next(); in testHasNext()
41 assertFalse(l.hasNext()); in testHasNext()
46 assertTrue(objArray[i].equals(l.next())); in testNext()
50 l.next(); in testNext()
101 l.remove(); in testRemove()
107 l.next(); in testRemove()
108 l.remove(); in testRemove()
109 assertFalse(l.hasPrevious()); in testRemove()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
DLocatorImplTest.java35 LocatorImpl l = new LocatorImpl(); in testLocatorImpl() local
37 assertEquals(null, l.getPublicId()); in testLocatorImpl()
38 assertEquals(null, l.getSystemId()); in testLocatorImpl()
39 assertEquals(0, l.getLineNumber()); in testLocatorImpl()
40 assertEquals(0, l.getColumnNumber()); in testLocatorImpl()
69 LocatorImpl l = new LocatorImpl(); in testSetPublicIdGetPublicId() local
71 l.setPublicId(PUB); in testSetPublicIdGetPublicId()
72 assertEquals(PUB, l.getPublicId()); in testSetPublicIdGetPublicId()
74 l.setPublicId(null); in testSetPublicIdGetPublicId()
75 assertEquals(null, l.getPublicId()); in testSetPublicIdGetPublicId()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/ext/
DLocator2ImplTest.java40 Locator2Impl l = new Locator2Impl(); in testLocatorImpl() local
42 assertEquals(null, l.getPublicId()); in testLocatorImpl()
43 assertEquals(null, l.getSystemId()); in testLocatorImpl()
44 assertEquals(0, l.getLineNumber()); in testLocatorImpl()
45 assertEquals(0, l.getColumnNumber()); in testLocatorImpl()
47 assertEquals(null, l.getEncoding()); in testLocatorImpl()
48 assertEquals(null, l.getXMLVersion()); in testLocatorImpl()
94 Locator2Impl l = new Locator2Impl(); in testSetXMLVersionGetXMLVersion() local
96 l.setXMLVersion(XML); in testSetXMLVersionGetXMLVersion()
97 assertEquals(XML, l.getXMLVersion()); in testSetXMLVersionGetXMLVersion()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DLocaleTest.java30 Locale l; field in LocaleTest
108 assertTrue("Clone failed", l.clone().equals(l)); in test_clone()
119 assertTrue("Different locales returned true", !testLocale.equals(l)); in test_equalsLjava_lang_Object()
161 Locale.setDefault(l); in test_getDefault()
212 assertEquals("anglais", new Locale("en", "CA", "WIN32").getDisplayLanguage(l)); in test_getDisplayLanguageLjava_util_Locale()
220 assertEquals("anglais (Canada,WIN32)", new Locale("en", "CA", "WIN32").getDisplayName(l)); in test_getDisplayNameLjava_util_Locale()
240 + testLocale.getDisplayVariant(l), testLocale in test_getDisplayVariantLjava_util_Locale()
241 .getDisplayVariant(l).equals("WIN32")); in test_getDisplayVariantLjava_util_Locale()
253 Locale l = new Locale("", "CD"); in test_getISO3Country() local
254 assertEquals("COD", l.getISO3Country()); in test_getISO3Country()
[all …]
/libcore/luni/src/test/java/libcore/java/util/logging/
DOldLevelTest.java28 Level l = new MockLevel("level1", 120); in testGetResourceBundleName() local
29 assertNull("level's localization resource bundle name is not null", l in testGetResourceBundleName()
31 l = new MockLevel("level1", 120, bundleName); in testGetResourceBundleName()
32 assertEquals("bundleName is non equal to actual value", bundleName, l in testGetResourceBundleName()
34 l = new MockLevel("level1", 120, bundleName + "+abcdef"); in testGetResourceBundleName()
36 + "+abcdef", l.getResourceBundleName()); in testGetResourceBundleName()
44 Level l = new MockLevel("level1", value1); in testIntValue() local
46 value1, l.intValue()); in testIntValue()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLEngineResultTest.java103 for (int l = 0; l < pos.length; l++) { in test_bytesConsumed()
105 enHS[j], pos[n], pos[l]); in test_bytesConsumed()
126 for (int l = 0; l < pos.length; ++l) { in test_bytesProduced()
128 enHS[j], pos[n], pos[l]); in test_bytesProduced()
129 assertEquals("Incorrect bytesProduced", pos[l], in test_bytesProduced()
149 for (int l = 0; l < pos.length; ++l) { in test_getHandshakeStatus()
151 enHS[j], pos[n], pos[l]); in test_getHandshakeStatus()
172 for (int l = 0; l < pos.length; ++l) { in test_getStatus()
174 enHS[j], pos[n], pos[l]); in test_getStatus()
195 for (int l = 0; l < pos.length; ++l) { in test_toString()
[all …]
/libcore/luni/src/main/java/javax/crypto/spec/
DDHParameterSpec.java30 private final int l; field in DHParameterSpec
44 this.l = 0; in DHParameterSpec()
59 public DHParameterSpec(BigInteger p, BigInteger g, int l) { in DHParameterSpec() argument
62 this.l = l; in DHParameterSpec()
89 return l; in getL()
/libcore/benchmarks/src/benchmarks/regression/
DDateIntervalFormatBenchmark.java28 Locale l = Locale.US; in timeDateIntervalFormat_formatDateRange_DATE() local
33 formatDateRange(l, utc, 0L, 0L, flags); in timeDateIntervalFormat_formatDateRange_DATE()
38 Locale l = Locale.US; in timeDateIntervalFormat_formatDateRange_TIME() local
43 formatDateRange(l, utc, 0L, 0L, flags); in timeDateIntervalFormat_formatDateRange_TIME()
48 Locale l = Locale.US; in timeDateIntervalFormat_formatDateRange_DATE_TIME() local
53 formatDateRange(l, utc, 0L, 0L, flags); in timeDateIntervalFormat_formatDateRange_DATE_TIME()
DIntegerBenchmark.java59 private static int pop(long l) { in pop() argument
60 int count = popX(l & 0xffffffffL); in pop()
61 count += popX(l >>> 32); in pop()
85 private static int pop2(long l) { in pop2() argument
86 int count = Integer.bitCount((int) (l & 0xffffffffL)); in pop2()
87 count += Integer.bitCount((int) (l >>> 32)); in pop2()
DDoubleBenchmark.java25 private long l = 4608083138725491507L; field in DoubleBenchmark
32 if (result != l) { in timeDoubleToLongBits()
42 if (result != l) { in timeDoubleToRawLongBits()
50 result = Double.longBitsToDouble(l); in timeLongBitsToDouble()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/
DSAXParseExceptionTest.java38 LocatorImpl l = new LocatorImpl(); in testSAXParseException_String_Locator_Exception() local
39 l.setPublicId(PUB); in testSAXParseException_String_Locator_Exception()
40 l.setSystemId(SYS); in testSAXParseException_String_Locator_Exception()
41 l.setLineNumber(ROW); in testSAXParseException_String_Locator_Exception()
42 l.setColumnNumber(COL); in testSAXParseException_String_Locator_Exception()
47 SAXParseException e = new SAXParseException(ERR, l, c); in testSAXParseException_String_Locator_Exception()
58 e = new SAXParseException(null, l, c); in testSAXParseException_String_Locator_Exception()
80 e = new SAXParseException(ERR, l, null); in testSAXParseException_String_Locator_Exception()
92 LocatorImpl l = new LocatorImpl(); in testSAXParseException_String_Locator() local
93 l.setPublicId(PUB); in testSAXParseException_String_Locator()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadLocalTest.java54 ThreadLocal<Object> l = new ThreadLocal<Object>(); in test_get() local
55 assertNull("ThreadLocal's initial value is null", l.get()); in test_get()
116 final ThreadLocal<Object> l = new ThreadLocal<Object>(); in test_setLjava_lang_Object() local
117 l.set(OBJ); in test_setLjava_lang_Object()
118 assertTrue("ThreadLocal's initial value is " + OBJ, l.get() == OBJ); in test_setLjava_lang_Object()
131 THREADVALUE.result = l.get(); in test_setLjava_lang_Object()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DNodeChangeListenerTest.java29 NodeChangeListener l; field in NodeChangeListenerTest
37 l = new NodeChangeListenerImpl(); in setUp()
49 l.childAdded(new NodeChangeEvent(Preferences.userRoot(), Preferences in testChildAdded()
54 l.childRemoved(new NodeChangeEvent(Preferences.userRoot(), Preferences in testChildRemoved()
DPreferenceChangeListenerTest.java29 PreferenceChangeListener l; field in PreferenceChangeListenerTest
37 l = new PreferenceChangeListenerImpl(); in setUp()
41 l.preferenceChange(new PreferenceChangeEvent(Preferences.userRoot(), in testPreferenceChange()

12345