/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ObjectTest.java | 63 Object obj1 = new Object(); in test_equalsLjava_lang_Object() local 66 assertTrue("Same object should be equal", obj1.equals(obj1)); in test_equalsLjava_lang_Object() 67 assertTrue("Different objects should not be equal", !obj1.equals(obj2)); in test_equalsLjava_lang_Object() 92 Object obj1 = new Object(); in test_hashCode() local 94 int origHashCodeForObj1 = obj1.hashCode(); in test_hashCode() 96 synchronized (obj1) { in test_hashCode() 99 assertEquals("Same object should have same hash.", obj1.hashCode(), obj1.hashCode()); in test_hashCode() 101 obj1.hashCode(), origHashCodeForObj1); in test_hashCode() 104 assertEquals("Gc shouldn't change hash code.", obj1.hashCode(), origHashCodeForObj1); in test_hashCode()
|
D | StringBuffer2Test.java | 175 Object obj1 = new Object(); in test_appendLjava_lang_Object() local 177 sb.append(obj1); in test_appendLjava_lang_Object() 180 obj1.toString() + obj2.toString())); in test_appendLjava_lang_Object() 433 Object obj1 = new Object(); in test_insertILjava_lang_Object() local 434 testBuffer.insert(15, obj1); in test_insertILjava_lang_Object() 436 "This is a test " + obj1.toString() + "buffer")); in test_insertILjava_lang_Object()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldObjectTest.java | 28 Object obj1 = new Object(); field in OldObjectTest 147 synchronized (obj1) { in run() 151 obj1.wait();// Wait for ever. in run() 154 obj1.wait(5000L); in run() 157 obj1.wait(10000L, 999999); in run()
|
D | OldStringBufferTest.java | 158 Object obj1 = new Object(); in test_insertILjava_lang_Object() local 160 testBuffer.insert(-1, obj1); in test_insertILjava_lang_Object() 167 testBuffer.insert(testBuffer.length() + 1, obj1); in test_insertILjava_lang_Object() local
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixFileSystemProvider.java | 313 public boolean isSameFile(Path obj1, Path obj2) throws IOException { in isSameFile() argument 314 UnixPath file1 = UnixPath.toUnixPath(obj1); in isSameFile() 440 public void createSymbolicLink(Path obj1, Path obj2, FileAttribute<?>... attrs) in createSymbolicLink() argument 443 UnixPath link = UnixPath.toUnixPath(obj1); in createSymbolicLink() 469 public void createLink(Path obj1, Path obj2) throws IOException { in createLink() argument 470 UnixPath link = UnixPath.toUnixPath(obj1); in createLink() 488 public Path readSymbolicLink(Path obj1) throws IOException { in readSymbolicLink() argument 489 UnixPath link = UnixPath.toUnixPath(obj1); in readSymbolicLink()
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
D | mySSLSession.java | 128 Object obj1 = table.put(s, obj); in putValue() local 129 if(obj1 instanceof SSLSessionBindingListener) { in putValue() 131 ((SSLSessionBindingListener)obj1).valueUnbound(sslsessionbindingevent); in putValue()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | PolicyInformation.java | 206 Object obj1 = i.next(); in set() local 207 if (!(obj1 instanceof PolicyQualifierInfo)) { in set()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | RuleBasedCollatorTest.java | 205 Object obj1 = "a"; in testCollator_GetInstance() local 207 assertEquals(-1, coll.compare(obj1, obj2)); in testCollator_GetInstance()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | ObjectOutputStreamTest.java | 1276 Object obj1; in test_replaceObject() local 1290 obj1 = ois.readObject(); in test_replaceObject() 1296 assertTrue("1st replaceObject worked incorrectly", obj1 instanceof Long); in test_replaceObject() 1297 assertEquals("1st replaceObject worked incorrectly", 99, ((Long) obj1) in test_replaceObject()
|
D | SerializationStressTest.java | 577 Object obj1 = null; in test_25_available() local 581 obj1 = ois.readObject(); in test_25_available() 588 assertTrue("available caused incorrect reading", FOO.equals(obj1)); in test_25_available()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeTextProvider.java | 112 public int compare(Entry<String, Long> obj1, Entry<String, Long> obj2) { 113 return obj2.getKey().length() - obj1.getKey().length(); // longest to shortest
|