/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 | ImmutableCollections.java | 80 @Override public boolean remove(Object o) { throw uoe(); } in remove() argument 123 public boolean contains(Object o) { in contains() argument 124 Objects.requireNonNull(o); in contains() 129 public boolean containsAll(Collection<?> o) { in containsAll() argument 130 return o.isEmpty(); // implicit nullcheck of o in containsAll() 167 public boolean contains(Object o) { in contains() argument 168 return o.equals(e0); // implicit nullcheck of o in contains() 204 public boolean contains(Object o) { in contains() argument 205 return o.equals(e0) || o.equals(e1); // implicit nullcheck of o in contains() 250 public boolean contains(Object o) { in contains() argument [all …]
|
D | Objects.java | 114 public static int hashCode(Object o) { in hashCode() argument 115 return o != null ? o.hashCode() : 0; in hashCode() 158 public static String toString(Object o) { in toString() argument 159 return String.valueOf(o); in toString() 175 public static String toString(Object o, String nullDefault) { in toString() argument 176 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 | 360 boolean removeFirstOccurrence(Object o); in removeFirstOccurrence() argument 379 boolean removeLastOccurrence(Object o); in removeLastOccurrence() argument 537 boolean remove(Object o); in remove() argument 553 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()
|
/libcore/json/src/main/java/org/json/ |
D | JSONObject.java | 106 @Override public boolean equals(Object o) { 107 return o == this || o == null; // API specifies this broken equals implementation 800 @Nullable public static Object wrap(@Nullable Object o) { in wrap() argument 801 if (o == null) { in wrap() 804 if (o instanceof JSONArray || o instanceof JSONObject) { in wrap() 805 return o; in wrap() 807 if (o.equals(NULL)) { in wrap() 808 return o; in wrap() 811 if (o instanceof Collection) { in wrap() 812 return new JSONArray((Collection) o); in wrap() [all …]
|
/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/luni/src/main/java/libcore/util/ |
D | FP16.java | 590 float o = Float.intBitsToFloat(FP32_DENORMAL_MAGIC + m); in toFloat() local 591 o -= FP32_DENORMAL_FLOAT; in toFloat() 592 return s == 0 ? o : -o; in toFloat() 714 StringBuilder o = new StringBuilder(); in toHexString() local 723 if (s != 0) o.append('-'); in toHexString() 724 o.append("Infinity"); in toHexString() 726 o.append("NaN"); in toHexString() 729 if (s == 1) o.append('-'); in toHexString() 732 o.append("0x0.0p0"); in toHexString() 734 o.append("0x0."); in toHexString() [all …]
|
/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 | 105 public boolean equals(Object o) { in equals() argument 106 if (this == o) { in equals() 109 if (o == null || getClass() != o.getClass()) { in equals() 113 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 …]
|
/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/test/java/libcore/java/lang/invoke/ |
D | ExplicitCastArgumentsTest.java | 344 Byte o = (Byte) mh.invokeExact(BOOLEAN_VALUES[0].booleanValue()); in explicitCastArgumentZToByte() local 353 Character o = (Character) mh.invokeExact(BOOLEAN_VALUES[0].booleanValue()); in explicitCastArgumentZToCharacter() local 362 Short o = (Short) mh.invokeExact(BOOLEAN_VALUES[0].booleanValue()); in explicitCastArgumentZToShort() local 371 Integer o = (Integer) mh.invokeExact(BOOLEAN_VALUES[0].booleanValue()); in explicitCastArgumentZToInteger() local 380 Long o = (Long) mh.invokeExact(BOOLEAN_VALUES[0].booleanValue()); in explicitCastArgumentZToLong() local 389 Float o = (Float) mh.invokeExact(BOOLEAN_VALUES[0].booleanValue()); in explicitCastArgumentZToFloat() local 398 Double o = (Double) mh.invokeExact(BOOLEAN_VALUES[0].booleanValue()); in explicitCastArgumentZToDouble() local 471 Boolean o = (Boolean) mh.invokeExact(BYTE_VALUES[0].byteValue()); in explicitCastArgumentBToBoolean() local 488 Character o = (Character) mh.invokeExact(BYTE_VALUES[0].byteValue()); in explicitCastArgumentBToCharacter() local 497 Short o = (Short) mh.invokeExact(BYTE_VALUES[0].byteValue()); in explicitCastArgumentBToShort() local [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/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
|