Home
last modified time | relevance | path

Searched refs:e2 (Results 1 – 25 of 61) sorted by relevance

123

/libcore/ojluni/src/main/java/java/util/
DSet.java486 static <E> Set<E> of(E e1, E e2) { in of() argument
487 return new ImmutableCollections.Set12<>(e1, e2); in of()
504 static <E> Set<E> of(E e1, E e2, E e3) { in of() argument
505 return new ImmutableCollections.SetN<>(e1, e2, e3); in of()
523 static <E> Set<E> of(E e1, E e2, E e3, E e4) { in of() argument
524 return new ImmutableCollections.SetN<>(e1, e2, e3, e4); in of()
543 static <E> Set<E> of(E e1, E e2, E e3, E e4, E e5) { in of() argument
544 return new ImmutableCollections.SetN<>(e1, e2, e3, e4, e5); in of()
564 static <E> Set<E> of(E e1, E e2, E e3, E e4, E e5, E e6) { in of() argument
565 return new ImmutableCollections.SetN<>(e1, e2, e3, e4, e5, in of()
[all …]
DList.java972 static <E> List<E> of(E e1, E e2) { in of() argument
973 return new ImmutableCollections.List12<>(e1, e2); in of()
990 static <E> List<E> of(E e1, E e2, E e3) { in of() argument
991 return ImmutableCollections.listFromTrustedArray(e1, e2, e3); in of()
1009 static <E> List<E> of(E e1, E e2, E e3, E e4) { in of() argument
1010 return ImmutableCollections.listFromTrustedArray(e1, e2, e3, e4); in of()
1029 static <E> List<E> of(E e1, E e2, E e3, E e4, E e5) { in of() argument
1030 return ImmutableCollections.listFromTrustedArray(e1, e2, e3, e4, e5); in of()
1050 static <E> List<E> of(E e1, E e2, E e3, E e4, E e5, E e6) { in of() argument
1051 return ImmutableCollections.listFromTrustedArray(e1, e2, e3, e4, e5, in of()
[all …]
DDualPivotQuicksort.java231 int e2 = (e1 + e3) >>> 1; in sort() local
247 if (a[e5] < a[e2]) { int t = a[e5]; a[e5] = a[e2]; a[e2] = t; } in sort()
250 if (a[e2] < a[e1]) { int t = a[e2]; a[e2] = a[e1]; a[e1] = t; } in sort()
251 if (a[e4] < a[e2]) { int t = a[e4]; a[e4] = a[e2]; a[e2] = t; } in sort()
253 if (a3 < a[e2]) { in sort()
255 a[e3] = a[e2]; a[e2] = a[e1]; a[e1] = a3; in sort()
257 a[e3] = a[e2]; a[e2] = a3; in sort()
274 if (a[e1] < a[e2] && a[e2] < a[e3] && a[e3] < a[e4] && a[e4] < a[e5]) { in sort()
985 int e2 = (e1 + e3) >>> 1; local
1001 if (a[e5] < a[e2]) { long t = a[e5]; a[e5] = a[e2]; a[e2] = t; }
[all …]
DEnumSet.java237 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2) { in of() argument
240 result.add(e2); in of()
260 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3) { in of() argument
263 result.add(e2); in of()
285 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3, E e4) { in of() argument
288 result.add(e2); in of()
312 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3, E e4, in of() argument
317 result.add(e2); in of()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DEntryTest.java76 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testConstructor3() local
77 Map.Entry e = new AbstractMap.SimpleEntry(e2); in testConstructor3()
97 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testEquals() local
98 Map.Entry e = new AbstractMap.SimpleEntry(e2); in testEquals()
101 assertEquals(e2, e); in testEquals()
102 assertEquals(e2.hashCode(), e.hashCode()); in testEquals()
105 assertEquals(e2, s2); in testEquals()
106 assertEquals(e2.hashCode(), s2.hashCode()); in testEquals()
115 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testNotEquals() local
117 assertFalse(e2.equals(e)); in testNotEquals()
[all …]
DTreeSubSetTest.java367 Object e2 = q.lower(six); in testLower() local
368 assertEquals(five, e2); in testLower()
385 Object e2 = q.higher(zero); in testHigher() local
386 assertEquals(one, e2); in testHigher()
403 Object e2 = q.floor(six); in testFloor() local
404 assertEquals(five, e2); in testFloor()
421 Object e2 = q.ceiling(zero); in testCeiling() local
422 assertEquals(one, e2); in testCeiling()
846 Object e2 = q.lower(m6); in testDescendingLower() local
847 assertEquals(m5, e2); in testDescendingLower()
[all …]
DConcurrentSkipListSubSetTest.java370 Object e2 = q.lower(six); in testLower() local
371 assertEquals(five, e2); in testLower()
388 Object e2 = q.higher(zero); in testHigher() local
389 assertEquals(one, e2); in testHigher()
406 Object e2 = q.floor(six); in testFloor() local
407 assertEquals(five, e2); in testFloor()
424 Object e2 = q.ceiling(zero); in testCeiling() local
425 assertEquals(one, e2); in testCeiling()
860 Object e2 = q.lower(m6); in testDescendingLower() local
861 assertEquals(m5, e2); in testDescendingLower()
[all …]
DTreeSubMapTest.java275 Map.Entry e2 = map.lowerEntry(six);
276 assertEquals(five, e2.getKey());
293 Map.Entry e2 = map.higherEntry(zero);
294 assertEquals(one, e2.getKey());
311 Map.Entry e2 = map.floorEntry(six);
312 assertEquals(five, e2.getKey());
329 Map.Entry e2 = map.ceilingEntry(zero);
330 assertEquals(one, e2.getKey());
827 Map.Entry e2 = map.lowerEntry(m6);
828 assertEquals(m5, e2.getKey());
[all …]
DTreeMapTest.java389 Map.Entry e2 = map.lowerEntry(six);
390 assertEquals(five, e2.getKey());
407 Map.Entry e2 = map.higherEntry(zero);
408 assertEquals(one, e2.getKey());
425 Map.Entry e2 = map.floorEntry(six);
426 assertEquals(five, e2.getKey());
443 Map.Entry e2 = map.ceilingEntry(zero);
444 assertEquals(one, e2.getKey());
461 Object e2 = q.lowerKey(six);
462 assertEquals(five, e2);
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DEntryTest.java53 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testConstructor3() local
54 Map.Entry e = new AbstractMap.SimpleEntry(e2); in testConstructor3()
74 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testEquals() local
75 Map.Entry e = new AbstractMap.SimpleEntry(e2); in testEquals()
78 assertEquals(e2, e); in testEquals()
79 assertEquals(e2.hashCode(), e.hashCode()); in testEquals()
82 assertEquals(e2, s2); in testEquals()
83 assertEquals(e2.hashCode(), s2.hashCode()); in testEquals()
92 Map.Entry e2 = new AbstractMap.SimpleEntry(k1, v1); in testNotEquals() local
94 assertFalse(e2.equals(e)); in testNotEquals()
[all …]
DConcurrentSkipListSubSetTest.java347 Object e2 = q.lower(six); in testLower() local
348 assertEquals(five, e2); in testLower()
365 Object e2 = q.higher(zero); in testHigher() local
366 assertEquals(one, e2); in testHigher()
383 Object e2 = q.floor(six); in testFloor() local
384 assertEquals(five, e2); in testFloor()
401 Object e2 = q.ceiling(zero); in testCeiling() local
402 assertEquals(one, e2); in testCeiling()
837 Object e2 = q.lower(m6); in testDescendingLower() local
838 assertEquals(m5, e2); in testDescendingLower()
[all …]
DTreeSubSetTest.java344 Object e2 = q.lower(six); in testLower() local
345 assertEquals(five, e2); in testLower()
362 Object e2 = q.higher(zero); in testHigher() local
363 assertEquals(one, e2); in testHigher()
380 Object e2 = q.floor(six); in testFloor() local
381 assertEquals(five, e2); in testFloor()
398 Object e2 = q.ceiling(zero); in testCeiling() local
399 assertEquals(one, e2); in testCeiling()
823 Object e2 = q.lower(m6); in testDescendingLower() local
824 assertEquals(m5, e2); in testDescendingLower()
[all …]
DTreeSubMapTest.java252 Map.Entry e2 = map.lowerEntry(six);
253 assertEquals(five, e2.getKey());
270 Map.Entry e2 = map.higherEntry(zero);
271 assertEquals(one, e2.getKey());
288 Map.Entry e2 = map.floorEntry(six);
289 assertEquals(five, e2.getKey());
306 Map.Entry e2 = map.ceilingEntry(zero);
307 assertEquals(one, e2.getKey());
804 Map.Entry e2 = map.lowerEntry(m6);
805 assertEquals(m5, e2.getKey());
[all …]
DTreeMapTest.java366 Map.Entry e2 = map.lowerEntry(six);
367 assertEquals(five, e2.getKey());
384 Map.Entry e2 = map.higherEntry(zero);
385 assertEquals(one, e2.getKey());
402 Map.Entry e2 = map.floorEntry(six);
403 assertEquals(five, e2.getKey());
420 Map.Entry e2 = map.ceilingEntry(zero);
421 assertEquals(one, e2.getKey());
438 Object e2 = q.lowerKey(six);
439 assertEquals(five, e2);
[all …]
DConcurrentSkipListSubMapTest.java365 Map.Entry e2 = map.lowerEntry(six);
366 assertEquals(five, e2.getKey());
383 Map.Entry e2 = map.higherEntry(zero);
384 assertEquals(one, e2.getKey());
401 Map.Entry e2 = map.floorEntry(six);
402 assertEquals(five, e2.getKey());
419 Map.Entry e2 = map.ceilingEntry(zero);
420 assertEquals(one, e2.getKey());
1039 Map.Entry e2 = map.lowerEntry(m6);
1040 assertEquals(m5, e2.getKey());
[all …]
/libcore/ojluni/src/main/java/java/lang/
DClassValue.java357 Entry<T> e2 = new Entry<>(v2, (T) value); in refreshVersion() local
360 return e2; in refreshVersion()
570 Entry<?> e2 = cache[home]; // victim, if we find the real guy in probeBackupLocations() local
571 if (e2 == null) { in probeBackupLocations()
589 cache[pos2 & mask] = ((entryDislocation(cache, pos2, e2) < PROBE_LIMIT) in probeBackupLocations()
590 ? e2 // put e2 here if it fits in probeBackupLocations()
672 Entry<?> e2 = cache[i2 & mask]; in findReplacement() local
673 if (e2 == null) break; // End of non-null run. in findReplacement()
674 if (!e2.isLive()) continue; // Doomed anyway. in findReplacement()
675 int dis2 = entryDislocation(cache, i2, e2); in findReplacement()
[all …]
/libcore/ojluni/annotations/flagged_api/java/util/
DList.annotated.java107 public static <E> java.util.List<E> of(E e1, E e2) { throw new RuntimeException("Stub!"); } in of() argument
109 public static <E> java.util.List<E> of(E e1, E e2, E e3) { throw new RuntimeException("Stub!"); } in of() argument
111 public static <E> java.util.List<E> of(E e1, E e2, E e3, E e4) { throw new RuntimeException("Stub!"… in of() argument
113 public static <E> java.util.List<E> of(E e1, E e2, E e3, E e4, E e5) { throw new RuntimeException("… in of() argument
115 public static <E> java.util.List<E> of(E e1, E e2, E e3, E e4, E e5, E e6) { throw new RuntimeExcep… in of() argument
117 public static <E> java.util.List<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E e7) { throw new Runtim… in of() argument
119 public static <E> java.util.List<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8) { throw new … in of() argument
121 public static <E> java.util.List<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9) { thro… in of() argument
123 public static <E> java.util.List<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10)… in of() argument
/libcore/ojluni/src/test/java/util/Collections/
DCheckedIdentityMap.java57 Map.Entry<Integer, Integer> e2 = m2.entrySet().iterator().next(); in testHashCode() local
59 assertNotEquals(e1, e2); in testHashCode()
61 assertEquals(e2.hashCode(), hashCode(e2)); in testHashCode()
/libcore/ojluni/src/test/java/util/EnumSet/
DInsertWrongType.java113 static void heterogeneousCopyOf(Enum e1, Enum e2) { in heterogeneousCopyOf() argument
116 list.add(e2); in heterogeneousCopyOf()
123 static void heterogeneousOf2(Enum e1, Enum e2) { in heterogeneousOf2() argument
125 EnumSet.of(e1, e2); in heterogeneousOf2()
130 static void heterogeneousOf3(Enum e1, Enum e2) { in heterogeneousOf3() argument
132 EnumSet.of(e1, e1, e2); in heterogeneousOf3()
137 static void heterogeneousOf4(Enum e1, Enum e2) { in heterogeneousOf4() argument
139 EnumSet.of(e1, e1, e1, e2); in heterogeneousOf4()
144 static void heterogeneousOf5(Enum e1, Enum e2) { in heterogeneousOf5() argument
146 EnumSet.of(e1, e1, e1, e1, e2); in heterogeneousOf5()
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/util/
DSet.annotated.java70 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2) { throw new Runtime… in of() argument
72 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
74 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
76 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
78 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
80 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
82 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
84 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
86 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
DList.annotated.java94 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2) { throw new Runtime… in of() argument
96 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
98 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
100 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
102 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
104 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
106 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
108 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
110 …ore.util.NonNull E> of(@libcore.util.NonNull E e1, @libcore.util.NonNull E e2, @libcore.util.NonNu… in of() argument
/libcore/luni/src/test/java/libcore/java/util/
DInvalidPropertiesFormatExceptionTest.java36 InvalidPropertiesFormatException e2 = new InvalidPropertiesFormatException(e); in testConstructorArgs() local
37 assertSame(e, e2.getCause()); in testConstructorArgs()
38 assertEquals(e.toString(), e2.getMessage()); in testConstructorArgs()
/libcore/ojluni/annotations/hiddenapi/java/util/
DEnumSet.java70 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E e1, E e2) { in of() argument
74 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E e1, E e2, E e3) { in of() argument
78 public static <E extends java.lang.Enum<E>> java.util.EnumSet<E> of(E e1, E e2, E e3, E e4) { in of() argument
83 E e1, E e2, E e3, E e4, E e5) { in of() argument
/libcore/luni/src/main/java/org/xml/sax/helpers/
DXMLReaderFactory.java200 } catch (IllegalAccessException e2) { in loadClass()
202 " found but cannot be loaded", e2); in loadClass()
/libcore/metrictests/memory/apps/src/libcore/heapdumper/
DAbstractMetricInstrumentation.java140 } catch (IOException e2) { in recordException()
141 throw new RuntimeException("Exception writing error file!", e2); in recordException()

123