Home
last modified time | relevance | path

Searched refs:obj1 (Results 1 – 13 of 13) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DObjectTest.java63 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()
DStringBuffer2Test.java175 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/
DOldObjectTest.java28 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()
DOldStringBufferTest.java158 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/support/src/test/java/org/apache/harmony/xnet/tests/support/
DmySSLSession.java145 Object obj1 = table.put(s, obj); in putValue() local
146 if(obj1 instanceof SSLSessionBindingListener) { in putValue()
148 ((SSLSessionBindingListener)obj1).valueUnbound(sslsessionbindingevent); in putValue()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixFileSystemProvider.java319 public boolean isSameFile(Path obj1, Path obj2) throws IOException { in isSameFile() argument
320 UnixPath file1 = UnixPath.toUnixPath(obj1); in isSameFile()
453 public void createSymbolicLink(Path obj1, Path obj2, FileAttribute<?>... attrs) in createSymbolicLink() argument
456 UnixPath link = UnixPath.toUnixPath(obj1); in createSymbolicLink()
482 public void createLink(Path obj1, Path obj2) throws IOException { in createLink() argument
483 UnixPath link = UnixPath.toUnixPath(obj1); in createLink()
501 public Path readSymbolicLink(Path obj1) throws IOException { in readSymbolicLink() argument
502 UnixPath link = UnixPath.toUnixPath(obj1); in readSymbolicLink()
/libcore/ojluni/src/main/java/sun/security/x509/
DPolicyInformation.java206 Object obj1 = i.next(); in set() local
207 if (!(obj1 instanceof PolicyQualifierInfo)) { in set()
/libcore/ojluni/src/test/java/util/Collections/
DEmptyNavigableSet.java245 Object obj1 = new Object(); in testSubSet() local
250 SortedSet ss = navigableSet.subSet(obj1, BigInteger.TEN); in testSubSet()
262 SortedSet ss = navigableSet.subSet(obj1, obj2); in testSubSet()
DEmptyNavigableMap.java226 Object obj1 = new Object(); in testSubMap() local
231 SortedMap ss = navigableMap.subMap(obj1, BigInteger.TEN); in testSubMap()
243 SortedMap ss = navigableMap.subMap(obj1, obj2); in testSubMap()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DRuleBasedCollatorTest.java205 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/
DObjectOutputStreamTest.java1276 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()
DSerializationStressTest.java577 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/
DDateTimeTextProvider.java112 public int compare(Entry<String, Long> obj1, Entry<String, Long> obj2) {
113 return obj2.getKey().length() - obj1.getKey().length(); // longest to shortest