/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | CollatorTest.java | 35 Object o, o2; in test_compareLjava_lang_ObjectLjava_lang_Object() local 38 o = "E"; in test_compareLjava_lang_ObjectLjava_lang_Object() 40 assertTrue("a) Failed on primary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 41 o = "e"; in test_compareLjava_lang_ObjectLjava_lang_Object() 43 assertTrue("a) Failed on secondary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 44 o = "e"; in test_compareLjava_lang_ObjectLjava_lang_Object() 46 assertTrue("a) Failed on tertiary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 47 o = "\u0001"; in test_compareLjava_lang_ObjectLjava_lang_Object() 49 assertTrue("a) Failed on identical", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 50 o = "e"; in test_compareLjava_lang_ObjectLjava_lang_Object() [all …]
|
/libcore/luni/src/main/java/java/util/ |
D | Objects.java | 89 public static int hashCode(Object o) { in hashCode() argument 90 return (o == null) ? 0 : o.hashCode(); in hashCode() 96 public static <T> T requireNonNull(T o) { in requireNonNull() argument 97 if (o == null) { in requireNonNull() 100 return o; in requireNonNull() 107 public static <T> T requireNonNull(T o, String message) { in requireNonNull() argument 108 if (o == null) { in requireNonNull() 111 return o; in requireNonNull() 117 public static String toString(Object o) { in toString() argument 118 return (o == null) ? "null" : o.toString(); in toString() [all …]
|
D | Deque.java | 329 boolean removeFirstOccurrence(Object o); in removeFirstOccurrence() argument 347 boolean removeLastOccurrence(Object o); in removeLastOccurrence() argument 505 boolean remove(Object o); in remove() argument 520 boolean contains(Object o); in contains() argument
|
D | Stack.java | 105 public synchronized int search(Object o) { in search() argument 108 if (o != null) { in search() 110 if (o.equals(dumpArray[i])) { in search()
|
/libcore/support/src/test/java/org/apache/harmony/testframework/ |
D | WrapperTester.java | 114 OutputStream o = create(delegate); in wrapperTestFlushThrowsViaFlushSuppressed() local 115 o.write(new byte[] { 8, 6, 7, 5 }); in wrapperTestFlushThrowsViaFlushSuppressed() 116 o.write(new byte[] { 3, 0, 9 }); in wrapperTestFlushThrowsViaFlushSuppressed() 117 o.flush(); in wrapperTestFlushThrowsViaFlushSuppressed() 123 OutputStream o = create(delegate); in wrapperTestFlushThrowsViaCloseSuppressed() local 124 o.write(new byte[] { 8, 6, 7, 5 }); in wrapperTestFlushThrowsViaCloseSuppressed() 125 o.write(new byte[] { 3, 0, 9 }); in wrapperTestFlushThrowsViaCloseSuppressed() 126 o.close(); in wrapperTestFlushThrowsViaCloseSuppressed() 133 OutputStream o = create(delegate); in wrapperTestFlushThrowsViaFlush() local 136 o.write(new byte[] { 8, 6, 7, 5 }); in wrapperTestFlushThrowsViaFlush() [all …]
|
D | CharWrapperTester.java | 113 Writer o = create(delegate); in wrapperTestFlushThrowsViaFlushSuppressed() local 114 o.write("BUT"); in wrapperTestFlushThrowsViaFlushSuppressed() 115 o.write("TERS"); in wrapperTestFlushThrowsViaFlushSuppressed() 116 o.flush(); in wrapperTestFlushThrowsViaFlushSuppressed() 122 Writer o = create(delegate); in wrapperTestFlushThrowsViaCloseSuppressed() local 123 o.write("BUT"); in wrapperTestFlushThrowsViaCloseSuppressed() 124 o.write("TERS"); in wrapperTestFlushThrowsViaCloseSuppressed() 125 o.close(); in wrapperTestFlushThrowsViaCloseSuppressed() 132 Writer o = create(delegate); in wrapperTestFlushThrowsViaFlush() local 135 o.write("BUT"); in wrapperTestFlushThrowsViaFlush() [all …]
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | CopyOnWriteArraySet.java | 112 public boolean contains(Object o) { in contains() argument 113 return al.contains(o); in contains() 201 public boolean remove(Object o) { in remove() argument 202 return al.remove(o); in remove() 324 public boolean equals(Object o) { in equals() argument 325 if (o == this) in equals() 327 if (!(o instanceof Set)) in equals() 329 Set<?> set = (Set<?>)(o); in equals()
|
D | ConcurrentSkipListSet.java | 183 public boolean contains(Object o) { in contains() argument 184 return m.containsKey(o); in contains() 219 public boolean remove(Object o) { in remove() argument 220 return m.remove(o, Boolean.TRUE); in remove() 263 public boolean equals(Object o) { in equals() argument 265 if (o == this) in equals() 267 if (!(o instanceof Set)) in equals() 269 Collection<?> c = (Collection<?>) o; in equals()
|
D | BlockingDeque.java | 379 boolean removeFirstOccurrence(Object o); in removeFirstOccurrence() argument 397 boolean removeLastOccurrence(Object o); in removeLastOccurrence() argument 574 boolean remove(Object o); in remove() argument 589 public boolean contains(Object o); in contains() argument
|
D | ArrayBlockingQueue.java | 463 public boolean remove(Object o) { in remove() argument 464 if (o == null) return false; in remove() 473 if (o.equals(items[i])) { in remove() 493 public boolean contains(Object o) { in contains() argument 494 if (o == null) return false; in contains() 503 if (o.equals(items[i])) in contains() 826 Node o, p; in doSomeSweeping() local 831 o = null; in doSomeSweeping() 835 o = sweeper; in doSomeSweeping() 836 p = o.next; in doSomeSweeping() [all …]
|
/libcore/json/src/main/java/org/json/ |
D | JSONObject.java | 100 @Override public boolean equals(Object o) { 101 return o == this || o == null; // API specifies this broken equals implementation 786 public static Object wrap(Object o) { in wrap() argument 787 if (o == null) { in wrap() 790 if (o instanceof JSONArray || o instanceof JSONObject) { in wrap() 791 return o; in wrap() 793 if (o.equals(NULL)) { in wrap() 794 return o; in wrap() 797 if (o instanceof Collection) { in wrap() 798 return new JSONArray((Collection) o); in wrap() [all …]
|
/libcore/luni/src/main/java/javax/security/auth/ |
D | Subject.java | 549 for (SST o : s) { in SecureSet() 550 verifyElement(o); in SecureSet() 551 if (trust || !elements.contains(o)) { in SecureSet() 552 elements.add(o); in SecureSet() 558 private void verifyElement(Object o) { in verifyElement() argument 560 if (o == null) { in verifyElement() 563 if (permission == _PRINCIPALS && !(Principal.class.isAssignableFrom(o.getClass()))) { in verifyElement() 573 public boolean add(SST o) { in add() argument 575 verifyElement(o); in add() 579 if (!elements.contains(o)) { in add() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | AbstractSequentialListTest.java | 71 public void add(Object o) { in add() argument 102 public void set(Object o) { in set() argument 109 public void add(E o) { in add() argument 110 if (o.equals(wrongElement)) throw new IllegalArgumentException(); in add() 111 if (o == null) throw new NullPointerException(); in add() 141 public void set(E o) { in set() argument 314 public void add(Object o) { in test_getI() 344 public void set(Object o) { in test_getI() 429 public void add(Object o) { in test_removeI() 460 public void set(Object o) { in test_removeI() [all …]
|
D | AbstractQueueTest.java | 74 public boolean offer(E o) { in offer() argument 75 if (null == o) { in offer() 83 elements[size++] = o; in offer() 124 Object o = new Object(); in test_addLE_Full() local 127 queue.add(o); in test_addLE_Full() 131 queue.add(o); in test_addLE_Full() 142 Object o = new Object(); in test_addLE() local 145 queue.add(o); in test_addLE()
|
/libcore/luni/src/main/java/libcore/util/ |
D | Objects.java | 33 public static int hashCode(Object o) { in hashCode() argument 34 return (o == null) ? 0 : o.hashCode(); in hashCode() 42 public static String toString(Object o) { in toString() argument 43 Class<?> c = o.getClass(); in toString() 53 Object value = f.get(o); in toString()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | ByteOrderTest.java | 36 ByteOrder o = ByteOrder.nativeOrder(); in testNativeOrder() local 37 assertTrue(o == ByteOrder.BIG_ENDIAN || o == ByteOrder.LITTLE_ENDIAN); in testNativeOrder()
|
/libcore/luni/src/main/java/org/apache/harmony/security/utils/ |
D | ObjectIdentifier.java | 130 public boolean equals(Object o) { in equals() argument 131 if (this == o) { in equals() 134 if (o == null || this.getClass() != o.getClass()) { in equals() 137 return Arrays.equals(oid, ((ObjectIdentifier) o).oid); in equals()
|
/libcore/dalvik/src/main/java/dalvik/system/profiler/ |
D | HprofData.java | 101 private static int hashCode(Object o) { in hashCode() argument 102 return (o == null) ? 0 : o.hashCode(); in hashCode() 105 @Override public boolean equals(Object o) { in equals() argument 106 if (!(o instanceof ThreadEvent)) { in equals() 109 ThreadEvent event = (ThreadEvent) o; in equals() 172 @Override public boolean equals(Object o) { in equals() argument 173 if (!(o instanceof StackTrace)) { in equals() 176 StackTrace s = (StackTrace) o; in equals() 225 @Override public boolean equals(Object o) { in equals() argument 226 if (!(o instanceof Sample)) { in equals() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldAndroidHashMapTest.java | 154 for (Object o : map.values()) { in testValueIterator() 157 if (o.equals(ONE)) { in testValueIterator() 159 } else if (o.equals(TWO)) { in testValueIterator() 161 } else if (o.equals(THREE)) { in testValueIterator() 163 } else if (o.equals(FOUR)) { in testValueIterator() 189 for (Object o : map.entrySet()) { in testEntryIterator() 192 if (o.toString().equals("one=1")) { in testEntryIterator() 194 } else if (o.toString().equals("two=2")) { in testEntryIterator() 196 } else if (o.toString().equals("three=3")) { in testEntryIterator() 198 } else if (o.toString().equals("four=4")) { in testEntryIterator()
|
/libcore/luni/src/main/java/java/lang/ |
D | Boolean.java | 105 public boolean equals(Object o) { in equals() argument 106 return (o == this) || ((o instanceof Boolean) && (((Boolean) o).value == value)); in equals()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | GenericArrayTypeImpl.java | 39 public boolean equals(Object o) { in equals() argument 40 if (!(o instanceof GenericArrayType)) { in equals() 43 GenericArrayType that = (GenericArrayType) o; in equals()
|
/libcore/luni/src/main/java/java/net/ |
D | AddressCache.java | 52 @Override public boolean equals(Object o) { in equals() argument 53 if (this == o) { in equals() 56 if (!(o instanceof AddressCacheKey)) { in equals() 59 AddressCacheKey lhs = (AddressCacheKey) o; in equals()
|
/libcore/xml/src/main/java/org/xmlpull/v1/ |
D | XmlPullParserFactory.java | 147 for (Object o : parserClasses) { in getParserInstance() 149 if (o != null) { in getParserInstance() 150 Class<?> parserClass = (Class<?>) o; in getParserInstance() 171 for (Object o : serializerClasses) { in getSerializerInstance() 173 if (o != null) { in getSerializerInstance() 174 Class<?> serializerClass = (Class<?>) o; in getSerializerInstance()
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
D | ObjectIdentifier.java | 71 @Override public boolean equals(Object o) { in equals() argument 72 if (this == o) { in equals() 75 if (o == null || this.getClass() != o.getClass()) { in equals() 78 return Arrays.equals(oid, ((ObjectIdentifier) o).oid); in equals()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | AttributedCharacterIteratorAttributeTest.java | 49 private void assertSameReserialized(Object o) throws ClassNotFoundException, IOException { in assertSameReserialized() argument 50 assertSame(o, SerializationTester.reserialize(o)); in assertSameReserialized()
|