| /libcore/ojluni/src/test/java/io/Serializable/records/ |
| D | UnsharedTest.java | 56 var foo = new Foo(6); in testReadUnshared() local 58 var byteStream = serialize(foo, foo); in testReadUnshared() 60 assertEquals(foo1.x, foo.x); in testReadUnshared() 62 assertEquals(foo2.x, foo.x); in testReadUnshared() 66 var byteStream = serialize(foo, foo); in testReadUnshared() 68 assertEquals(foo1.x, foo.x); in testReadUnshared() 76 var foo = new Foo(7); in testWriteUnshared() local 78 var byteStream = serializeUnshared(foo, foo); in testWriteUnshared() 80 assertEquals(foo1.x, foo.x); in testWriteUnshared() 82 assertEquals(foo2.x, foo.x); in testWriteUnshared() [all …]
|
| D | BasicRecordSer.java | 66 final Foo foo; field in BasicRecordSer.Bar 68 Bar(Foo foo, long along) { this.foo = foo; this.along = along; } in Bar() argument 74 if (this.foo.equals(other.foo) && this.along == other.along) in equals() 80 return format("Bar[foo=%s, along=%d]", foo, along); in toString() 84 record Baz (Bar bar, float afloat, Foo foo) implements Serializable { } 102 record Wobble (Foo foo) implements ThrowingExternalizable { } 108 Foo foo = new Foo(23); in serializable() local 113 new Object[] { new Foo[] { foo, foo, foo, foo, foo } }, in serializable() 154 Foo foo = new Foo(32); in testSerializableBackRefs() local 155 Foo[] objToSerialize = new Foo[] { foo, foo, foo, foo, foo }; in testSerializableBackRefs() [all …]
|
| D | RecordClassTest.java | 60 record Baz (Foo foo, Bar bar, int i) implements Serializable { }
|
| /libcore/luni/src/test/java/libcore/java/util/ |
| D | OptionalTest.java | 52 String foo = "foo"; in testGet() local 53 Optional<String> optionalFoo = Optional.of(foo); in testGet() 54 assertSame(foo, optionalFoo.get()); in testGet() 80 String foo = "foo"; in testIfPresent() local 81 Optional.of(foo).ifPresent(s -> reference.set(s)); in testIfPresent() 82 assertSame(foo, reference.get()); in testIfPresent() 96 final String foo = "foo"; in testFilter() local 97 Optional<String> optionalFoo = Optional.of(foo); in testFilter() 105 assertSame(foo, reference.get()); in testFilter() 119 String foo = "foo"; in testMap() local [all …]
|
| /libcore/luni/src/test/java/libcore/xml/ |
| D | DomSerializationTest.java | 43 Element foo = document.createElement("foo"); in testWriteDocument() local 46 foo.setAttributeNode(quux); in testWriteDocument() 47 foo.appendChild(document.createElement("bar")); in testWriteDocument() 48 foo.appendChild(document.createElement("baz")); in testWriteDocument() 49 document.appendChild(foo); in testWriteDocument() 55 Element foo = document.createElement("foo"); in testWriteSpecialCharactersInText() local 56 foo.appendChild(document.createTextNode("5'8\", 5 < 6 & 7 > 3!")); in testWriteSpecialCharactersInText() 57 document.appendChild(foo); in testWriteSpecialCharactersInText()
|
| /libcore/luni/src/test/java/libcore/java/util/logging/ |
| D | OldLogManagerTest.java | 96 Logger foo = mockManager.getLogger(FOO); in testGetLogger() local 97 assertNull("Logger should be null", foo); in testGetLogger() 99 foo = mockManager.getLogger(FOO); in testGetLogger() 100 assertSame("two loggers not refer to the same object", foo, log); in testGetLogger() 101 assertNull("logger foo should not haven parent", foo.getParent()); in testGetLogger() 153 Logger foo = new MockLogger("testGetLogger_hierachy.foo", null); in testGetLogger_hierarchy() local 155 assertTrue(manager.addLogger(foo)); in testGetLogger_hierarchy() 165 Logger foo = new MockLogger(FOO, null); in testGetLogger_nameSpace() local 169 assertTrue(mockManager.addLogger(foo)); in testGetLogger_nameSpace() 174 assertSame(foo, mockManager.getLogger(FOO)); in testGetLogger_nameSpace()
|
| /libcore/luni/src/test/java/libcore/java/lang/reflect/ |
| D | ProxyTest.java | 289 assertEquals(true, returnsObject.foo()); in testReturnTypeDoesNotSatisfyAllConstraintsWithLenientCaller() 302 returnsString.foo(); in testReturnTypeDoesNotSatisfyAllConstraintsWithStrictCaller() 322 int foo(); in foo() method 326 float foo(); in foo() method 330 Integer foo(); in foo() method 334 String foo(); in foo() method 338 CharSequence foo(); in foo() method 342 CharSequence foo(); in foo() method 346 CharSequence foo(); in foo() method 350 Object foo(); in foo() method [all …]
|
| D | ReflectionTest.java | 498 Foo foo = new Foo("string"); in testClassEnclosedByConstructor() local 499 assertEquals(Foo.class, foo.c.getEnclosingClass()); in testClassEnclosedByConstructor() 501 foo.c.getEnclosingConstructor()); in testClassEnclosedByConstructor() 502 assertNull(foo.c.getEnclosingMethod()); in testClassEnclosedByConstructor() 503 assertNull(foo.c.getDeclaringClass()); in testClassEnclosedByConstructor() 507 Foo foo = new Foo(); in testClassEnclosedByMethod() local 508 foo.foo("string"); in testClassEnclosedByMethod() 509 assertEquals(Foo.class, foo.c.getEnclosingClass()); in testClassEnclosedByMethod() 510 assertNull(foo.c.getEnclosingConstructor()); in testClassEnclosedByMethod() 512 foo.c.getEnclosingMethod()); in testClassEnclosedByMethod() [all …]
|
| D | OldAndroidClassTest.java | 163 void foo(); in foo() method
|
| /libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/ |
| D | DeserializeMethodTest.java | 58 void foo() { in foo() method in DeserializeMethodTest.Cap1 68 void foo() { in foo() method in DeserializeMethodTest.Cap2 79 void foo() { in foo() method in DeserializeMethodTest.Cap3
|
| D | SerializedLambdaTest.java | 141 Predicate<String> foo(int x) { in testSerializeCapturingInt() method in SerializedLambdaTest.Moo 145 Predicate<String> pred = new Moo().foo(3); in testSerializeCapturingInt() 156 Predicate<String> foo(String t) { in testSerializeCapturingString() method in SerializedLambdaTest.Moo 160 Predicate<String> pred = new Moo().foo("goo"); in testSerializeCapturingString() 176 Predicate<String> foo(Box b) { in testSerializeCapturingNonSerializable() method in SerializedLambdaTest.Moo 180 Predicate<String> pred = new Moo().foo(new Box("goo")); in testSerializeCapturingNonSerializable() 298 private static boolean foo(Object s) { return s != null && ((String) s).length() > 0; } in foo() method in SerializedLambdaTest
|
| /libcore/support/src/test/java/tests/resources/ |
| D | hyts_mainClass.ser | ... MainClass.java
package foo.bar.execjartest
public foo.bar.execjartest.MainClass extends java.lang ... |
| D | hyts_Bar.ser | ... Bar.java
package foo.bar.execjartest
foo.bar.execjartest.Bar extends java.lang ... |
| D | hyts_Foo.ser | Foo.java
package foo.bar.execjartest
public foo.bar.execjartest.Foo extends java.lang ... |
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
| D | IdentityHashMap2Test.java | 172 private final String foo; field in IdentityHashMap2Test.TestKey 174 TestKey(String foo) { in TestKey() argument 175 this.foo = foo; in TestKey() 180 return o instanceof TestKey && foo.equals(((TestKey) o).foo); in equals()
|
| /libcore/ojluni/src/test/java/text/Format/MessageFormat/ |
| D | MessageRegression.java | 110 } catch (Exception foo) { in Test4074764() 174 } catch (Exception foo) { in Test4031438() 175 errln("Exception when formatting in bug 4031438. "+foo.getMessage()); in Test4031438() 219 } catch (Exception foo) { in Test4104976() 234 } catch (Exception foo) { in Test4106659() 308 } catch (IllegalArgumentException foo) { in Test4114743()
|
| /libcore/support/src/test/java/tests/support/ |
| D | Support_Proxy_I2.java | 24 void foo(boolean b, int i); in foo() method
|
| D | Support_Proxy_I1.java | 25 void foo(int i, boolean b); in foo() method
|
| /libcore/luni/src/test/java/libcore/java/lang/ |
| D | ClassTest.java | 64 public void foo(); in foo() method 68 public void foo(T param); in foo() method 161 void foo(); in foo() method 164 void foo(); in foo() method 256 public static void staticMethod(String foo) { in staticMethod() argument
|
| /libcore/luni/src/test/java/libcore/java/text/ |
| D | CollatorTest.java | 78 String foo = new String(arr, 0, len, "iso8859-1"); in test_collationKeySize() local 86 assertTrue("Collation keys should differ", foo.equals(bar)); in test_collationKeySize()
|
| /libcore/ojluni/src/test/java/util/WeakHashMap/ |
| D | GCDuringIteration.java | 142 Foo foo = new Foo(); in test() local 143 foos[i] = foo; in test() 144 put(map, foo, i); in test()
|
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
| D | ThreadTest.java | 196 ThreadGroup foo = null; in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String() local 198 new Thread(foo = new ThreadGroup("foo"), r, null); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String() 203 foo.destroy(); in test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String()
|
| /libcore/ojluni/src/test/java/util/regex/ |
| D | TestCases.txt | 1129 foo(?i)bar 1133 (?i)foo[bar]+ 1137 (?i)foo[a-r]+ 1237 foo 1241 foo
|
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
| D | SerializationStressTest2.java | 628 private int foo; field in SerializationStressTest2.SameInstVarNameSuperClass 635 foo = fooValue; in SameInstVarNameSuperClass() 639 return "foo = " + foo; in toString() 645 protected int foo; field in SerializationStressTest2.SameInstVarNameSubClass 653 foo = fooValue; in SameInstVarNameSubClass() 1907 ((SameInstVarNameSubClass) objLoaded).foo == 100); in test_18_74_writeObject()
|
| D | ObjectStreamClassTest.java | 125 public X foo() { in foo() method in ObjectStreamClassTest.SyntheticTest
|