/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 | 256 public void setOption(int optID, Object o) throws SocketException { in setOption() argument 266 if (o == null || !(o instanceof Integer)) { in setOption() 269 int tmp = ((Integer) o).intValue(); in setOption() 275 if (o == null || !(o instanceof Integer)) { in setOption() 278 trafficClass = ((Integer)o).intValue(); in setOption() 281 if (o == null || !(o instanceof Boolean)) { in setOption() 286 if (o == null || !(o instanceof Boolean)) { in setOption() 294 if (o == null || !(o instanceof Integer) || in setOption() 295 ((Integer)o).intValue() < 0) { in setOption() 301 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 534 boolean equals(Object o); in equals() argument 644 int indexOf(Object o); in indexOf() argument 663 int lastIndexOf(Object o); in lastIndexOf() argument
|
/libcore/json/src/main/java/org/json/ |
D | JSONObject.java | 101 @Override public boolean equals(Object o) { 102 return o == this || o == null; // API specifies this broken equals implementation 789 public static Object wrap(Object o) { in wrap() argument 790 if (o == null) { in wrap() 793 if (o instanceof JSONArray || o instanceof JSONObject) { in wrap() 794 return o; in wrap() 796 if (o.equals(NULL)) { in wrap() 797 return o; in wrap() 800 if (o instanceof Collection) { in wrap() 801 return new JSONArray((Collection) o); in wrap() [all …]
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | Unsafe.java | 468 public final int getAndAddInt(Object o, long offset, int delta) { in getAndAddInt() argument 471 v = getIntVolatile(o, offset); in getAndAddInt() 472 } while (!compareAndSwapInt(o, offset, v, v + delta)); in getAndAddInt() 488 public final long getAndAddLong(Object o, long offset, long delta) { in getAndAddLong() argument 491 v = getLongVolatile(o, offset); in getAndAddLong() 492 } while (!compareAndSwapLong(o, offset, v, v + delta)); in getAndAddLong() 508 public final int getAndSetInt(Object o, long offset, int newValue) { in getAndSetInt() argument 511 v = getIntVolatile(o, offset); in getAndSetInt() 512 } while (!compareAndSwapInt(o, offset, v, newValue)); in getAndSetInt() 528 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/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 | UnixSocketAddress.java | 96 public boolean equals(Object o) { in equals() argument 97 if (this == o) { in equals() 100 if (o == null || getClass() != o.getClass()) { in equals() 104 UnixSocketAddress that = (UnixSocketAddress) o; in equals()
|
/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 …]
|
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/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/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/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()
|