Home
last modified time | relevance | path

Searched refs:o (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DCollatorTest.java35 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/
DWrapperTester.java114 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 …]
DCharWrapperTester.java113 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/
DAbstractPlainDatagramSocketImpl.java279 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/
DProcessEnvironment.java144 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/
DObservable.java81 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()
DImmutableCollections.java77 @Override public boolean remove(Object o) { throw uoe(); } in remove() argument
148 public boolean equals(Object o) { in equals() argument
149 if (o == this) { in equals()
153 if (!(o instanceof List)) { in equals()
157 Iterator<?> oit = ((List<?>) o).iterator(); in equals()
167 public int indexOf(Object o) { in indexOf() argument
168 Objects.requireNonNull(o); in indexOf()
170 if (o.equals(get(i))) { in indexOf()
178 public int lastIndexOf(Object o) { in lastIndexOf() argument
179 Objects.requireNonNull(o); in lastIndexOf()
[all …]
DEnumMap.java397 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 …]
DObjects.java114 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()
DDeque.java360 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
DAbstractSet.java85 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/
DJSONObject.java109 @Override public boolean equals(Object o) {
110 return o == this || o == null; // API specifies this broken equals implementation
806 @Nullable public static Object wrap(@Nullable Object o) { in wrap() argument
807 if (o == null) { in wrap()
810 if (o instanceof JSONArray || o instanceof JSONObject) { in wrap()
811 return o; in wrap()
813 if (o.equals(NULL)) { in wrap()
814 return o; in wrap()
817 if (o instanceof Collection) { in wrap()
818 return new JSONArray((Collection) o); in wrap()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java702 public final int getAndAddInt(Object o, long offset, int delta) { in getAndAddInt() argument
705 v = getIntVolatile(o, offset); in getAndAddInt()
706 } while (!compareAndSwapInt(o, offset, v, v + delta)); in getAndAddInt()
722 public final long getAndAddLong(Object o, long offset, long delta) { in getAndAddLong() argument
725 v = getLongVolatile(o, offset); in getAndAddLong()
726 } while (!compareAndSwapLong(o, offset, v, v + delta)); in getAndAddLong()
742 public final int getAndSetInt(Object o, long offset, int newValue) { in getAndSetInt() argument
745 v = getIntVolatile(o, offset); in getAndSetInt()
746 } while (!compareAndSwapInt(o, offset, v, newValue)); in getAndSetInt()
762 public final long getAndSetLong(Object o, long offset, long newValue) { in getAndSetLong() argument
[all …]
DHexDumpEncoder.java78 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
DRegexpPool.java89 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/
DStructTimeval.java63 public boolean equals(Object o) { in equals() argument
64 if (this == o) { in equals()
67 if (o == null || getClass() != o.getClass()) { in equals()
70 StructTimeval that = (StructTimeval) o; in equals()
DStructTimespec.java58 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()
/libcore/ojluni/src/main/java/javax/security/auth/
DSubject.java791 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/ojluni/src/main/java/java/util/concurrent/
DCopyOnWriteArraySet.java157 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()
DArrayBlockingQueue.java477 public boolean remove(Object o) { in remove() argument
478 if (o == null) return false; in remove()
487 if (o.equals(items[i])) { in remove()
508 public boolean contains(Object o) { in contains() argument
509 if (o == null) return false; in contains()
518 if (o.equals(items[i])) in contains()
814 Node o, p; in doSomeSweeping() local
819 o = null; in doSomeSweeping()
823 o = sweeper; in doSomeSweeping()
824 p = o.next; in doSomeSweeping()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DAbstractSequentialListTest.java71 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 …]
DAbstractQueueTest.java74 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/test/java/libcore/java/lang/invoke/
DExplicitCastArgumentsTest.java344 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/
DOldAndroidHashMapTest.java154 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/
DHexDumpEncoder.java48 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

12345678910>>...12