/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/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/ojluni/src/main/java/java/net/ |
D | AbstractPlainDatagramSocketImpl.java | 279 public void setOption(int optID, Object o) throws SocketException { in setOption() argument 289 if (o == null || !(o instanceof Integer)) { in setOption() 292 int tmp = ((Integer) o).intValue(); in setOption() 298 if (o == null || !(o instanceof Integer)) { in setOption() 301 trafficClass = ((Integer)o).intValue(); in setOption() 304 if (o == null || !(o instanceof Boolean)) { in setOption() 309 if (o == null || !(o instanceof Boolean)) { in setOption() 317 if (o == null || !(o instanceof Integer) || in setOption() 318 ((Integer)o).intValue() < 0) { in setOption() 324 if (o == null || !(o instanceof InetAddress)) in setOption() [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | ProcessEnvironment.java | 144 public boolean equals(Object o) { in equals() argument 145 return o instanceof ExternalData in equals() 146 && arrayEquals(getBytes(), ((ExternalData) o).getBytes()); in equals() 182 public boolean equals(Object o) { in equals() argument 183 return o instanceof Variable && super.equals(o); in equals() 215 public boolean equals(Object o) { in equals() argument 216 return o instanceof Value && super.equals(o); in equals() 313 public boolean equals(Object o) { in equals() argument 314 return o instanceof StringEntry in equals() 315 && e.equals(((StringEntry)o).e); in equals() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Observable.java | 81 public synchronized void addObserver(Observer o) { in addObserver() argument 82 if (o == null) in addObserver() 84 if (!obs.contains(o)) { in addObserver() 85 obs.addElement(o); in addObserver() 94 public synchronized void deleteObserver(Observer o) { in deleteObserver() argument 95 obs.removeElement(o); in deleteObserver()
|
D | Objects.java | 97 public static int hashCode(Object o) { in hashCode() argument 98 return o != null ? o.hashCode() : 0; in hashCode() 141 public static String toString(Object o) { in toString() argument 142 return String.valueOf(o); in toString() 158 public static String toString(Object o, String nullDefault) { in toString() argument 159 return (o != null) ? o.toString() : nullDefault; in toString()
|
D | EnumMap.java | 397 public boolean contains(Object o) { in contains() argument 398 return containsKey(o); in contains() 400 public boolean remove(Object o) { in remove() argument 402 EnumMap.this.remove(o); in remove() 436 public boolean contains(Object o) { in contains() argument 437 return containsValue(o); in contains() 439 public boolean remove(Object o) { in remove() argument 440 o = maskNull(o); in remove() 443 if (o.equals(vals[i])) { in remove() 478 public boolean contains(Object o) { in contains() argument [all …]
|
D | Deque.java | 359 boolean removeFirstOccurrence(Object o); in removeFirstOccurrence() argument 378 boolean removeLastOccurrence(Object o); in removeLastOccurrence() argument 536 boolean remove(Object o); in remove() argument 552 boolean contains(Object o); in contains() argument
|
D | AbstractSet.java | 85 public boolean equals(Object o) { in equals() argument 86 if (o == this) in equals() 89 if (!(o instanceof Set)) in equals() 91 Collection<?> c = (Collection<?>) o; in equals()
|
D | List.java | 145 boolean contains(Object o); in contains() argument 261 boolean remove(Object o); in remove() argument 535 boolean equals(Object o); in equals() argument 645 int indexOf(Object o); in indexOf() argument 664 int lastIndexOf(Object o); in lastIndexOf() argument
|
/libcore/luni/src/main/java/android/system/ |
D | StructTimespec.java | 58 public boolean equals(Object o) { in equals() argument 59 if (this == o) return true; in equals() 60 if (o == null || getClass() != o.getClass()) return false; in equals() 62 StructTimespec that = (StructTimespec) o; in equals()
|
D | StructTimeval.java | 64 public boolean equals(Object o) { in equals() argument 65 if (this == o) { in equals() 68 if (o == null || getClass() != o.getClass()) { in equals() 71 StructTimeval that = (StructTimeval) o; in equals()
|
D | UnixSocketAddress.java | 98 public boolean equals(Object o) { in equals() argument 99 if (this == o) { in equals() 102 if (o == null || getClass() != o.getClass()) { in equals() 106 UnixSocketAddress that = (UnixSocketAddress) o; in equals()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | Unsafe.java | 457 public final int getAndAddInt(Object o, long offset, int delta) { in getAndAddInt() argument 460 v = getIntVolatile(o, offset); in getAndAddInt() 461 } while (!compareAndSwapInt(o, offset, v, v + delta)); in getAndAddInt() 477 public final long getAndAddLong(Object o, long offset, long delta) { in getAndAddLong() argument 480 v = getLongVolatile(o, offset); in getAndAddLong() 481 } while (!compareAndSwapLong(o, offset, v, v + delta)); in getAndAddLong() 497 public final int getAndSetInt(Object o, long offset, int newValue) { in getAndSetInt() argument 500 v = getIntVolatile(o, offset); in getAndSetInt() 501 } while (!compareAndSwapInt(o, offset, v, newValue)); in getAndSetInt() 517 public final long getAndSetLong(Object o, long offset, long newValue) { in getAndSetLong() argument [all …]
|
D | HexDumpEncoder.java | 78 protected void encodeBufferPrefix(OutputStream o) throws IOException { in encodeBufferPrefix() argument 80 super.encodeBufferPrefix(o); in encodeBufferPrefix() 83 protected void encodeLinePrefix(OutputStream o, int len) throws IOException { in encodeLinePrefix() argument 91 protected void encodeAtom(OutputStream o, byte buf[], int off, int len) throws IOException { in encodeAtom() argument 100 protected void encodeLineSuffix(OutputStream o) throws IOException { in encodeLineSuffix() argument
|
D | RegexpPool.java | 89 Object o = null; in delete() local 127 o = best.result; in delete() 133 o = best.result; in delete() 137 return o; in delete() 224 Object o = best.result; in matchAfter() local 225 if (o != null && o instanceof RegexpTarget) in matchAfter() 226 o = ((RegexpTarget) o).found(s.substring(bst, bend)); in matchAfter() 227 return o; in matchAfter()
|
/libcore/json/src/main/java/org/json/ |
D | JSONObject.java | 105 @Override public boolean equals(Object o) { 106 return o == this || o == null; // API specifies this broken equals implementation 799 @Nullable public static Object wrap(@Nullable Object o) { in wrap() argument 800 if (o == null) { in wrap() 803 if (o instanceof JSONArray || o instanceof JSONObject) { in wrap() 804 return o; in wrap() 806 if (o.equals(NULL)) { in wrap() 807 return o; in wrap() 810 if (o instanceof Collection) { in wrap() 811 return new JSONArray((Collection) o); in wrap() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | CopyOnWriteArraySet.java | 157 public boolean contains(Object o) { in contains() argument 158 return al.contains(o); in contains() 245 public boolean remove(Object o) { in remove() argument 246 return al.remove(o); in remove() 409 public boolean equals(Object o) { in equals() argument 410 return (o == this) in equals() 411 || ((o instanceof Set) in equals() 412 && compareSets(al.getArray(), (Set<?>) o) == 0); in equals()
|
/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 …]
|
/libcore/ojluni/src/main/java/javax/security/auth/ |
D | Subject.java | 791 public boolean equals(Object o) { 793 if (o == null) 796 if (this == o) 799 if (o instanceof Subject) { 801 final Subject that = (Subject)o; 868 Object o = pI.next(); 871 o.toString() + ResourcesMgr.getString("NEWLINE"); 880 Object o = pI.next(); 883 o.toString() + 941 private int getCredHashCode(Object o) { [all …]
|
/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/ojluni/annotations/hiddenapi/sun/misc/ |
D | HexDumpEncoder.java | 48 protected void encodeBufferPrefix(java.io.OutputStream o) throws java.io.IOException { in encodeBufferPrefix() argument 52 protected void encodeLinePrefix(java.io.OutputStream o, int len) throws java.io.IOException { in encodeLinePrefix() argument 56 protected void encodeAtom(java.io.OutputStream o, byte[] buf, int off, int len) in encodeAtom() argument 61 protected void encodeLineSuffix(java.io.OutputStream o) throws java.io.IOException { in encodeLineSuffix() argument
|
/libcore/ojluni/src/main/java/java/lang/ref/ |
D | SoftReference.java | 116 T o = super.get(); in get() local 117 if (o != null && this.timestamp != clock) in get() 119 return o; in get()
|
/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()
|