/libcore/ojluni/src/test/java/io/Serializable/records/ |
D | BasicRecordSer.java | 63 record Foo (int i) implements Serializable { } 66 final Foo foo; 68 Bar(Foo foo, long along) { this.foo = foo; this.along = along; } in Bar() 84 record Baz (Bar bar, float afloat, Foo foo) implements Serializable { } 86 record Bat (Empty e1, Foo foo1, Bar bar1, float afloat, Foo foo2, Empty e2, Bar bar2) 102 record Wobble (Foo foo) implements ThrowingExternalizable { } 108 Foo foo = new Foo(23); in serializable() 111 new Object[] { new Foo(22) }, in serializable() 112 new Object[] { new Foo[] { new Foo(24), new Foo(25) } }, in serializable() 113 new Object[] { new Foo[] { foo, foo, foo, foo, foo } }, in serializable() [all …]
|
D | UnsharedTest.java | 50 record Foo(int x) implements Serializable { } 56 var foo = new Foo(6); in testReadUnshared() 59 var foo1 = (Foo) deserializeOne(byteStream); in testReadUnshared() 61 var foo2 = (Foo) deserializeOne(byteStream); in testReadUnshared() 67 var foo1 = (Foo) deserializeOneUnshared(byteStream); in testReadUnshared() 76 var foo = new Foo(7); in testWriteUnshared() 79 var foo1 = (Foo) deserializeOne(byteStream); in testWriteUnshared() 81 var foo2 = (Foo) deserializeOne(byteStream); in testWriteUnshared() 87 var foo1 = (Foo) deserializeOneUnshared(byteStream); in testWriteUnshared() 89 var foo2 = (Foo) deserializeOneUnshared(byteStream); in testWriteUnshared()
|
D | RecordClassTest.java | 54 record Foo () implements Serializable { } 60 record Baz (Foo foo, Bar bar, int i) implements Serializable { } 82 new Object[] { Foo.class , 0L }, in recordClasses()
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | ReverseOrder.java | 69 Foo[] a = { new Foo(2), new Foo(3), new Foo(1) }; in main() 74 Foo[] golden = { new Foo(3), new Foo(2), new Foo(1) }; in main() 87 class Foo implements Comparable { class 89 Foo(int i) { val = i; } in Foo() method in Foo 92 Foo f = (Foo)o; in compareTo() 97 return o instanceof Foo && ((Foo)o).val == val; in equals()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
D | ContentHandlerTest.java | 35 Class[] classes = { Foo.class, String.class, }; in test_getContent() 37 ((ContentHandlerImpl) handler).setContent(new Foo()); in test_getContent() 39 assertEquals("Foo", ((Foo) content).getFoo()); in test_getContent() 43 assertEquals("FooSub", ((Foo) content).getFoo()); in test_getContent() 46 ((ContentHandlerImpl) handler).setContent(new Foo()); in test_getContent() 66 class Foo { class 72 class FooSub extends Foo {
|
/libcore/benchmarks/src/benchmarks/ |
D | ArrayListIterationBenchmark.java | 25 ArrayList<Foo> mList = new ArrayList<Foo>(); 27 for (int i = 0; i < 27; ++i) mList.add(new Foo()); in mList.add() argument 32 ArrayList<Foo> list = mList; in timeArrayListIterationIndexed() 42 for (Foo a : mList) { in timeArrayListIterationForEach()
|
D | ArrayIterationBenchmark.java | 23 Foo[] mArray = new Foo[27]; 25 for (int i = 0; i < mArray.length; ++i) mArray[i] = new Foo(); 38 Foo[] localArray = mArray; in timeArrayIterationCached() 49 for (Foo a: mArray) { in timeArrayIterationForEach()
|
D | Foo.java | 22 public class Foo { class
|
/libcore/ojluni/src/test/java/util/WeakHashMap/ |
D | GCDuringIteration.java | 95 static class Foo { public int hashCode() { return 42; }} in hashCode() class in GCDuringIteration 113 void checkIterator(final Iterator<Map.Entry<Foo, Integer>> it, int first) { in checkIterator() argument 136 final Foo[] foos = new Foo[2*n]; in test() 137 final Map<Foo,Integer> map = new WeakHashMap<>(foos.length); in test() 142 Foo foo = new Foo(); in test() 150 final Iterator<Map.Entry<Foo,Integer>> it = map.entrySet().iterator(); in test() 160 final Iterator<Map.Entry<Foo,Integer>> it = map.entrySet().iterator(); in test() 176 final Iterator<Map.Entry<Foo,Integer>> it = map.entrySet().iterator(); in test() 191 final Iterator<Map.Entry<Foo,Integer>> it = map.entrySet().iterator(); in test() 209 final Iterator<Map.Entry<Foo,Integer>> it = map.entrySet().iterator(); in test() [all …]
|
/libcore/support/src/test/java/tests/resources/ |
D | hyts_Foo.ser | Foo.java
package foo.bar.execjartest
public foo.bar.execjartest.Foo extends java ... |
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ReflectionTest.java | 442 assertEquals(ReflectionTest.class, Foo.class.getEnclosingClass()); in testGetEnclosingClass() 446 assertEquals(ReflectionTest.class, Foo.class.getEnclosingClass()); in testGetEnclosingClass() 451 assertEquals(ReflectionTest.class, Foo.class.getDeclaringClass()); in testGetDeclaringClass() 498 Foo foo = new Foo("string"); in testClassEnclosedByConstructor() 499 assertEquals(Foo.class, foo.c.getEnclosingClass()); in testClassEnclosedByConstructor() 500 assertEquals(Foo.class.getDeclaredConstructor(String.class), in testClassEnclosedByConstructor() 507 Foo foo = new Foo(); in testClassEnclosedByMethod() 509 assertEquals(Foo.class, foo.c.getEnclosingClass()); in testClassEnclosedByMethod() 511 assertEquals(Foo.class.getDeclaredMethod("foo", String.class), in testClassEnclosedByMethod() 566 int modifiers = Foo.class.getModifiers(); in testInnerClassModifiers() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ClassTest.java | 63 interface Foo { interface in ClassTest 82 assertNull(Foo.class.getGenericSuperclass()); in getGenericSuperclass_nullReturnCases() 670 assertEquals(Foo.class, Foo[].class.componentType()); in testComponentType() 678 assertEquals(Foo[].class, Foo.class.arrayType()); in testArrayType()
|
/libcore/ojluni/annotations/ |
D | README | 28 …libcore/tools/ojluni-annotations/generate_flagged_api_files.sh your.package.Bar another.package.Foo
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandlesTest.java | 441 Foo.class /* refC */, in testfindSpecial_invokeSuperInterfaceBehaviour() 526 public interface Foo { interface in MethodHandlesTest 530 public interface Bar extends Foo {
|