Home
last modified time | relevance | path

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

12345678

/libcore/luni/src/test/java/libcore/libcore/icu/
DLocaleDataTest.java25 for (Locale l : Locale.getAvailableLocales()) { in testAll()
26 LocaleData d = LocaleData.get(l); in testAll()
33 LocaleData l = LocaleData.get(Locale.US); in test_en_US() local
34 assertEquals("AM", l.amPm[0]); in test_en_US()
35 assertEquals("a", l.narrowAm); in test_en_US()
37 assertEquals("BC", l.eras[0]); in test_en_US()
39 assertEquals("January", l.longMonthNames[0]); in test_en_US()
40 assertEquals("Jan", l.shortMonthNames[0]); in test_en_US()
41 assertEquals("J", l.tinyMonthNames[0]); in test_en_US()
43 assertEquals("January", l.longStandAloneMonthNames[0]); in test_en_US()
[all …]
DDateIntervalFormatTest.java176 ULocale l = ULocale.US; in test8862241() local
178 Calendar c = Calendar.getInstance(tz, l); in test8862241()
185 …assertEquals("Jan 19, 2042 – Oct 4, 2046", formatDateRange(l, tz, jan_19_2042, oct_4_2046, flags)); in test8862241()
190 ULocale l = ULocale.US; in test10089890() local
196 …assertEquals("Jan 1, 1970, 00:00 – Jan 2, 1970, 00:00", formatDateRange(l, utc, 0, DAY + 1, flags)… in test10089890()
198 …assertEquals("Dec 31, 1969, 16:00 – Jan 1, 1970, 16:00", formatDateRange(l, pacific, 0, DAY, flags… in test10089890()
212 ULocale l = ULocale.US; in test10318326() local
216 assertEquals("00:00", formatDateRange(l, utc, midnight, midnight, time24)); in test10318326()
217 assertEquals("12:00 AM", formatDateRange(l, utc, midnight, midnight, time12)); in test10318326()
218 assertEquals("16:00", formatDateRange(l, utc, teaTime, teaTime, time24)); in test10318326()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DCountDownLatchTest.java43 final CountDownLatch l = new CountDownLatch(2); in testGetCount() local
44 assertEquals(2, l.getCount()); in testGetCount()
45 l.countDown(); in testGetCount()
46 assertEquals(1, l.getCount()); in testGetCount()
53 final CountDownLatch l = new CountDownLatch(1); in testCountDown() local
54 assertEquals(1, l.getCount()); in testCountDown()
55 l.countDown(); in testCountDown()
56 assertEquals(0, l.getCount()); in testCountDown()
57 l.countDown(); in testCountDown()
58 assertEquals(0, l.getCount()); in testCountDown()
[all …]
DAbstractExecutorServiceTest.java275 List<Callable<Long>> l = new ArrayList<Callable<Long>>(); in testInvokeAny3() local
276 l.add(new Callable<Long>() { in testInvokeAny3()
278 l.add(null); in testInvokeAny3()
280 e.invokeAny(l); in testInvokeAny3()
292 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny4() local
293 l.add(new NPETask()); in testInvokeAny4()
295 e.invokeAny(l); in testInvokeAny4()
309 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny5() local
310 l.add(new StringTask()); in testInvokeAny5()
311 l.add(new StringTask()); in testInvokeAny5()
[all …]
DForkJoinPoolTest.java644 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny3() local
645 l.add(null); in testInvokeAny3()
647 e.invokeAny(l); in testInvokeAny3()
660 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny4() local
661 l.add(latchAwaitingStringTask(latch)); in testInvokeAny4()
662 l.add(null); in testInvokeAny4()
664 e.invokeAny(l); in testInvokeAny4()
677 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny5() local
678 l.add(new NPETask()); in testInvokeAny5()
680 e.invokeAny(l); in testInvokeAny5()
[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/luni/src/test/java/libcore/java/util/
DListDefaultMethodTester.java26 public static void test_replaceAll(List<Integer> l) { in test_replaceAll() argument
27 l.add(5); in test_replaceAll()
28 l.add(2); in test_replaceAll()
29 l.add(-3); in test_replaceAll()
30 l.replaceAll(v -> v * 2); in test_replaceAll()
31 assertEquals((Integer)10, l.get(0)); in test_replaceAll()
32 assertEquals((Integer)4, l.get(1)); in test_replaceAll()
33 assertEquals((Integer)(-6), l.get(2)); in test_replaceAll()
36 l.replaceAll(null); in test_replaceAll()
41 public static void test_sort(List<Double> l) { in test_sort() argument
[all …]
DLocaleTest.java239 for (Locale l : array) { in assertOnce()
240 if (l.equals(element)) { in assertOnce()
479 Locale l = b.build(); in test_Builder_setLocale() local
480 assertEquals("en", l.getLanguage()); in test_Builder_setLocale()
481 assertEquals("US", l.getCountry()); in test_Builder_setLocale()
482 assertEquals("variant_VARIANT", l.getVariant()); in test_Builder_setLocale()
495 l = b.build(); in test_Builder_setLocale()
496 assertEquals("fr", l.getLanguage()); in test_Builder_setLocale()
497 assertEquals("FR", l.getCountry()); in test_Builder_setLocale()
540 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/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DNodeBuilderTest.java62 for (List<Integer> l : ls) { in createNodeBuilders()
64 params[i++] = new Object[]{l, m}; in createNodeBuilders()
72 public void testIteration(List<Integer> l, Function<Integer, Node.Builder<Integer>> m) { in testIteration() argument
73 Node.Builder<Integer> nb = m.apply(l.size()); in testIteration()
74 nb.begin(l.size()); in testIteration()
75 for (Integer i : l) { in testIteration()
81 assertEquals(n.count(), l.size()); in testIteration()
87 assertContents(_l, l); in testIteration()
107 for (List<Integer> l : ls) { in createIntNodeBuilders()
109 params[i++] = new Object[]{l, m}; in createIntNodeBuilders()
[all …]
DLongNodeTest.java52 nodes.add(tree(toList(array), l -> Nodes.node(toLongArray(l)))); in createSizes()
72 List<Long> l = new ArrayList<>(); in toList() local
74 l.add(i); in toList()
77 return l; in toList()
80 private long[] toLongArray(List<Long> l) { in toLongArray() argument
81 long[] a = new long[l.size()]; in toLongArray()
84 for (Long e : l) { in toLongArray()
112 private Node.OfLong tree(List<Long> l, Function<List<Long>, Node.OfLong> m) { in tree() argument
113 if (l.size() < 3) { in tree()
114 return m.apply(l); in tree()
[all …]
DIntNodeTest.java52 nodes.add(tree(toList(array), l -> Nodes.node(toIntArray(l)))); in createSizes()
72 List<Integer> l = new ArrayList<>(); in toList() local
74 l.add(i); in toList()
77 return l; in toList()
80 private int[] toIntArray(List<Integer> l) { in toIntArray() argument
81 int[] a = new int[l.size()]; in toIntArray()
84 for (Integer e : l) { in toIntArray()
112 private Node.OfInt tree(List<Integer> l, Function<List<Integer>, Node.OfInt> m) { in tree() argument
113 if (l.size() < 3) { in tree()
114 return m.apply(l); in tree()
[all …]
DDoubleNodeTest.java52 nodes.add(tree(toList(array), l -> Nodes.node(toDoubleArray(l)))); in createSizes()
72 List<Double> l = new ArrayList<>(); in toList() local
74 l.add(i); in toList()
77 return l; in toList()
80 private double[] toDoubleArray(List<Double> l) { in toDoubleArray() argument
81 double[] a = new double[l.size()]; in toDoubleArray()
84 for (Double e : l) { in toDoubleArray()
112 private Node.OfDouble tree(List<Double> l, Function<List<Double>, Node.OfDouble> m) { in tree() argument
113 if (l.size() < 3) { in tree()
114 return m.apply(l); in tree()
[all …]
DNodeTest.java52 … nodes.add(tree(Arrays.asList(array), l -> Nodes.node(l.toArray(new Integer[l.size()])))); in createSizes()
53 nodes.add(tree(Arrays.asList(array), l -> Nodes.node(l))); in createSizes()
89 Node<Integer> tree(List<Integer> l, Function<List<Integer>, Node<Integer>> m) { in tree() argument
90 if (l.size() < 3) { in tree()
91 return m.apply(l); in tree()
95 tree(l.subList(0, l.size() / 2), m), in tree()
96 tree(l.subList(l.size() / 2, l.size()), m )); in tree()
121 List<Integer> l = new ArrayList<>((int) n.count()); in testForEach() local
122 n.forEach(e -> l.add(e)); in testForEach()
124 assertEquals(l.toArray(), array); in testForEach()
/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()
207 assertEquals("anglais", new Locale("en", "CA", "WIN32").getDisplayLanguage(l)); in test_getDisplayLanguageLjava_util_Locale()
215 assertEquals("anglais (Canada,WIN32)", new Locale("en", "CA", "WIN32").getDisplayName(l)); in test_getDisplayNameLjava_util_Locale()
235 + testLocale.getDisplayVariant(l), testLocale in test_getDisplayVariantLjava_util_Locale()
236 .getDisplayVariant(l).equals("WIN32")); in test_getDisplayVariantLjava_util_Locale()
248 Locale l = new Locale("", "CD"); in test_getISO3Country() local
249 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/ojluni/src/main/java/java/util/
DFormatter.java1857 private final Locale l; field in Formatter
1893 private Formatter(Locale l, Appendable a) { in Formatter() argument
1895 this.l = l; in Formatter()
1896 this.zero = getZero(l); in Formatter()
1899 private Formatter(Charset charset, Locale l, File file) in Formatter() argument
1902 this(l, in Formatter()
1950 public Formatter(Locale l) { in Formatter() argument
1951 this(l, new StringBuilder()); in Formatter()
1966 public Formatter(Appendable a, Locale l) { in Formatter() argument
1967 this(l, nonNullAppendable(a)); in Formatter()
[all …]
DArrayPrefixHelpers.java141 int th = threshold, org = origin, fnc = fence, l, h; in compute() local
143 outer: while ((l = t.lo) >= 0 && (h = t.hi) <= a.length) { in compute()
144 if (h - l > th) { in compute()
147 int mid = (l + h) >>> 1; in compute()
151 new CumulateTask<T>(t, fn, a, org, fnc, th, l, mid); in compute()
159 rt.in = (l == org ? lout : in compute()
192 (l > org) ? SUMMED : (SUMMED|FINISHED)); in compute()
200 if (l == org) { // leftmost; no in in compute()
206 first = l; in compute()
212 sum = a[l]; in compute()
[all …]
/libcore/ojluni/src/main/java/javax/crypto/spec/
DDHParameterSpec.java64 private int l; field in DHParameterSpec
76 this.l = 0; in DHParameterSpec()
89 public DHParameterSpec(BigInteger p, BigInteger g, int l) { in DHParameterSpec() argument
92 this.l = l; in DHParameterSpec()
121 return this.l; in getL()
/libcore/ojluni/src/main/java/java/util/logging/
DLevel.java537 KnownLevel(Level l) { in KnownLevel() argument
538 this.levelObject = l; in KnownLevel()
539 if (l.getClass() == Level.class) { in KnownLevel()
540 this.mirroredLevel = l; in KnownLevel()
543 this.mirroredLevel = new Level(l.name, l.value, l.resourceBundleName, false); in KnownLevel()
547 static synchronized void add(Level l) { in add() argument
550 KnownLevel o = new KnownLevel(l); in add()
551 List<KnownLevel> list = nameToLevels.get(l.name); in add()
554 nameToLevels.put(l.name, list); in add()
558 list = intToLevels.get(l.value); in add()
[all …]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DForEachOpTest.java92 List<Integer> l = new ArrayList<>();
93 s.forEachOrdered(l::add);
94 return l;
113 List<Integer> l = Collections.synchronizedList(new ArrayList<>());
114 s.forEach(l::add);
115 return l;
140 List<Integer> l = new ArrayList<>();
141 s.forEachOrdered(l::add);
142 return l;
161 List<Integer> l = Collections.synchronizedList(new ArrayList<Integer>());
[all …]
DSliceOpTest.java182 for (int l : limits) { in testSkipLimitOps()
183 setContext("limit", l); in testSkipLimitOps()
185 sliceSize(sliceSize(data.size(), s), 0, l), in testSkipLimitOps()
186 st -> st.skip(s).limit(l), in testSkipLimitOps()
187 st -> st.skip(s).limit(l), in testSkipLimitOps()
188 st -> st.skip(s).limit(l), in testSkipLimitOps()
189 st -> st.skip(s).limit(l)); in testSkipLimitOps()
246 for (int l : limits) { in testLimitOps()
247 setContext("limit", l); in testLimitOps()
249 sliceSize(data.size(), 0, l), in testLimitOps()
[all …]
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DCopyOnWriteArrayListTest.java301 List<Double> l = new CopyOnWriteArrayList<>(new Double[] {5.0, 2.0, -3.0}); in test_replaceAll() local
302 l.replaceAll(v -> v * 2); in test_replaceAll()
303 assertEquals(10.0, l.get(0)); in test_replaceAll()
304 assertEquals(4.0, l.get(1)); in test_replaceAll()
305 assertEquals(-6.0, l.get(2)); in test_replaceAll()
309 l.replaceAll(null); in test_replaceAll()
316 List<Double> l = new CopyOnWriteArrayList<>(new Double[] {5.0, 2.0, -3.0}); in test_sort() local
317 l.sort((v1, v2) -> v1.compareTo(v2)); in test_sort()
318 assertEquals(-3.0, l.get(0)); in test_sort()
319 assertEquals(2.0, l.get(1)); in test_sort()
[all …]

12345678