Home
last modified time | relevance | path

Searched refs:obj (Results 1 – 25 of 307) sorted by relevance

12345678910>>...13

/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicIntegerFieldUpdater.java111 public abstract boolean compareAndSet(T obj, int expect, int update); in compareAndSet() argument
131 public abstract boolean weakCompareAndSet(T obj, int expect, int update); in weakCompareAndSet() argument
141 public abstract void set(T obj, int newValue); in set() argument
151 public abstract void lazySet(T obj, int newValue); in lazySet() argument
160 public abstract int get(T obj); in get() argument
170 public int getAndSet(T obj, int newValue) { in getAndSet() argument
173 prev = get(obj); in getAndSet()
174 } while (!compareAndSet(obj, prev, newValue)); in getAndSet()
185 public int getAndIncrement(T obj) { in getAndIncrement() argument
188 prev = get(obj); in getAndIncrement()
[all …]
DAtomicLongFieldUpdater.java114 public abstract boolean compareAndSet(T obj, long expect, long update); in compareAndSet() argument
134 public abstract boolean weakCompareAndSet(T obj, long expect, long update); in weakCompareAndSet() argument
144 public abstract void set(T obj, long newValue); in set() argument
154 public abstract void lazySet(T obj, long newValue); in lazySet() argument
163 public abstract long get(T obj); in get() argument
173 public long getAndSet(T obj, long newValue) { in getAndSet() argument
176 prev = get(obj); in getAndSet()
177 } while (!compareAndSet(obj, prev, newValue)); in getAndSet()
188 public long getAndIncrement(T obj) { in getAndIncrement() argument
191 prev = get(obj); in getAndIncrement()
[all …]
DAtomicReferenceFieldUpdater.java131 public abstract boolean compareAndSet(T obj, V expect, V update); in compareAndSet() argument
149 public abstract boolean weakCompareAndSet(T obj, V expect, V update); in weakCompareAndSet() argument
159 public abstract void set(T obj, V newValue); in set() argument
169 public abstract void lazySet(T obj, V newValue); in lazySet() argument
178 public abstract V get(T obj); in get() argument
188 public V getAndSet(T obj, V newValue) { in getAndSet() argument
191 prev = get(obj); in getAndSet()
192 } while (!compareAndSet(obj, prev, newValue)); in getAndSet()
207 public final V getAndUpdate(T obj, UnaryOperator<V> updateFunction) { in getAndUpdate() argument
210 prev = get(obj); in getAndUpdate()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java132 public native boolean compareAndSwapInt(Object obj, long offset, in compareAndSwapInt() argument
148 public native boolean compareAndSwapLong(Object obj, long offset, in compareAndSwapLong() argument
164 public native boolean compareAndSwapObject(Object obj, long offset, in compareAndSwapObject() argument
176 public native int getIntVolatile(Object obj, long offset); in getIntVolatile() argument
187 public native void putIntVolatile(Object obj, long offset, int newValue); in putIntVolatile() argument
198 public native long getLongVolatile(Object obj, long offset); in getLongVolatile() argument
209 public native void putLongVolatile(Object obj, long offset, long newValue); in putLongVolatile() argument
220 public native Object getObjectVolatile(Object obj, long offset); in getObjectVolatile() argument
231 public native void putObjectVolatile(Object obj, long offset, in putObjectVolatile() argument
242 public native int getInt(Object obj, long offset); in getInt() argument
[all …]
/libcore/ojluni/src/main/java/java/util/
DObjects.java201 public static <T> T requireNonNull(T obj) { in requireNonNull() argument
202 if (obj == null) in requireNonNull()
204 return obj; in requireNonNull()
226 public static <T> T requireNonNull(T obj, String message) { in requireNonNull() argument
227 if (obj == null) in requireNonNull()
229 return obj; in requireNonNull()
246 public static boolean isNull(Object obj) { in isNull() argument
247 return obj == null; in isNull()
264 public static boolean nonNull(Object obj) { in nonNull() argument
265 return obj != null; in nonNull()
[all …]
/libcore/ojluni/src/main/java/java/lang/reflect/
DField.java198 public boolean equals(Object obj) { in equals() argument
199 if (obj != null && obj instanceof Field) { in equals()
200 Field other = (Field)obj; in equals()
323 public native Object get(Object obj) in get() argument
349 public native boolean getBoolean(Object obj) in getBoolean() argument
375 public native byte getByte(Object obj) in getByte() argument
403 public native char getChar(Object obj) in getChar() argument
431 public native short getShort(Object obj) in getShort() argument
459 public native int getInt(Object obj) in getInt() argument
487 public native long getLong(Object obj) in getLong() argument
[all …]
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandleStatics.java140 /*non-public*/ static RuntimeException newIllegalStateException(String message, Object obj) { in newIllegalStateException() argument
141 return new IllegalStateException(message(message, obj)); in newIllegalStateException()
146 /*non-public*/ static RuntimeException newIllegalArgumentException(String message, Object obj) { in newIllegalArgumentException() argument
147 return new IllegalArgumentException(message(message, obj)); in newIllegalArgumentException()
149 …/*non-public*/ static RuntimeException newIllegalArgumentException(String message, Object obj, Obj… in newIllegalArgumentException() argument
150 return new IllegalArgumentException(message(message, obj, obj2)); in newIllegalArgumentException()
161 private static String message(String message, Object obj) { in message() argument
162 if (obj != null) message = message + ": " + obj; in message()
165 private static String message(String message, Object obj, Object obj2) { in message() argument
166 if (obj != null || obj2 != null) message = message + ": " + obj + ", " + obj2; in message()
/libcore/ojluni/src/main/java/java/net/
DSocketSecrets.java36 … private static <T> void setOption(Object obj, SocketOption<T> name, T value) throws IOException { in setOption() argument
39 if (obj instanceof Socket) { in setOption()
40 impl = ((Socket)obj).getImpl(); in setOption()
41 } else if (obj instanceof ServerSocket) { in setOption()
42 impl = ((ServerSocket)obj).getImpl(); in setOption()
49 private static <T> T getOption(Object obj, SocketOption<T> name) throws IOException { in getOption() argument
52 if (obj instanceof Socket) { in getOption()
53 impl = ((Socket)obj).getImpl(); in getOption()
54 } else if (obj instanceof ServerSocket) { in getOption()
55 impl = ((ServerSocket)obj).getImpl(); in getOption()
/libcore/luni/src/test/java/tests/security/cert/
DX509CRLSelectorTest.java42 X509CRLSelector obj = new X509CRLSelector(); in test_addIssuerLjavax_security_auth_x500_X500Principal01() local
44 obj.addIssuer((X500Principal) null); in test_addIssuerLjavax_security_auth_x500_X500Principal01()
56 X509CRLSelector obj = new X509CRLSelector(); in test_addIssuerNameLjava_lang_String01() local
58 obj.addIssuerName("234"); in test_addIssuerNameLjava_lang_String01()
90 X509CRLSelector obj = new X509CRLSelector(); in test_addIssuerName$B_3() local
92 obj.addIssuerName(new byte[] { (byte) 2, (byte) 3, (byte) 4 }); in test_addIssuerName$B_3()
104 X509CRLSelector obj = new X509CRLSelector(); in test_addIssuerName$B_4() local
106 obj.addIssuerName((byte[]) null); in test_addIssuerName$B_4()
/libcore/benchmarks/src/benchmarks/regression/
DDecimalFormatBenchmark.java29 public static void formatWithGrouping(Object obj, int reps) { in formatWithGrouping() argument
33 df.format(obj); in formatWithGrouping()
37 public static void format(String pattern, Object obj, int reps) { in format() argument
40 patternInstance.format(obj); in format()
44 public static void format(Object obj, int reps) { in format() argument
46 df.format(obj); in format()
50 public static void formatToCharacterIterator(Object obj, int reps) { in formatToCharacterIterator() argument
52 df.formatToCharacterIterator(obj); in formatToCharacterIterator()
57 public static void formatCurrencyUS(Object obj, int reps) { in formatCurrencyUS() argument
59 dfCurrencyUS.format(obj); in formatCurrencyUS()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DPipedWriterTest.java196 PipedWriter obj = null; in test_write$CII_2() local
198 obj = new java.io.PipedWriter(pr); in test_write$CII_2()
199 obj.write(new char[0], (int) 0, (int) -1); in test_write$CII_2()
210 PipedWriter obj = null; in test_write$CII_3() local
212 obj = new java.io.PipedWriter(pr); in test_write$CII_3()
213 obj.write(new char[0], (int) -1, (int) 0); in test_write$CII_3()
224 PipedWriter obj = null; in test_write$CII_4() local
226 obj = new java.io.PipedWriter(pr); in test_write$CII_4()
227 obj.write(new char[0], (int) -1, (int) -1); in test_write$CII_4()
238 PipedWriter obj = null; in test_write$CII_5() local
[all …]
DStringWriterTest.java97 StringWriter obj = null; in test_write$CII_2() local
99 obj = new StringWriter(); in test_write$CII_2()
100 obj.write(new char[0], (int) 0, (int) -1); in test_write$CII_2()
110 StringWriter obj = null; in test_write$CII_3() local
112 obj = new StringWriter(); in test_write$CII_3()
113 obj.write(new char[0], (int) -1, (int) 0); in test_write$CII_3()
123 StringWriter obj = null; in test_write$CII_4() local
125 obj = new StringWriter(); in test_write$CII_4()
126 obj.write(new char[0], (int) -1, (int) -1); in test_write$CII_4()
/libcore/support/src/test/java/tests/util/
DSerializationTester.java91 public static boolean assertCompabilitySame(Object obj, String fileName) in assertCompabilitySame() argument
93 return obj == readObject(obj, fileName); in assertCompabilitySame()
105 public static boolean assertCompabilityEquals(Object obj, String fileName) in assertCompabilityEquals() argument
107 return obj.equals(readObject(obj, fileName)); in assertCompabilityEquals()
118 public static Object readObject(Object obj, String fileName) in readObject() argument
125 writeObject(obj, new File(fileName).getName()); in readObject()
158 public static void writeObject(Object obj, String fileName) in writeObject() argument
174 ooutput.writeObject(obj); in writeObject()
/libcore/ojluni/src/main/java/java/lang/
DObject.java111 /* package-private */ static int identityHashCode(Object obj) { in identityHashCode() argument
112 int lockWord = obj.shadow$_monitor_; in identityHashCode()
119 return identityHashCodeNative(obj); in identityHashCode()
123 private static native int identityHashCodeNative(Object obj); in identityHashCodeNative() argument
171 public boolean equals(Object obj) { in equals() argument
172 return (this == obj); in equals()
/libcore/ojluni/src/main/java/java/io/
DSerialCallbackContext.java40 private final Object obj; field in SerialCallbackContext
48 public SerialCallbackContext(Object obj, ObjectStreamClass desc) { in SerialCallbackContext() argument
49 this.obj = obj; in SerialCallbackContext()
56 return obj; in getObj()
DFileDescriptor.java185 public void set(FileDescriptor obj, int fd) { in sun.misc.SharedSecrets.setJavaIOFileDescriptorAccess() argument
186 obj.descriptor = fd; in sun.misc.SharedSecrets.setJavaIOFileDescriptorAccess()
189 public int get(FileDescriptor obj) { in sun.misc.SharedSecrets.setJavaIOFileDescriptorAccess()
190 return obj.descriptor; in sun.misc.SharedSecrets.setJavaIOFileDescriptorAccess()
193 public void setHandle(FileDescriptor obj, long handle) { in sun.misc.SharedSecrets.setJavaIOFileDescriptorAccess()
197 public long getHandle(FileDescriptor obj) { in sun.misc.SharedSecrets.setJavaIOFileDescriptorAccess()
DObjectOutputStream.java341 public final void writeObject(Object obj) throws IOException { in writeObject() argument
343 writeObjectOverride(obj); in writeObject()
347 writeObject0(obj, false); in writeObject()
380 protected void writeObjectOverride(Object obj) throws IOException { in writeObjectOverride() argument
428 public void writeUnshared(Object obj) throws IOException { in writeUnshared() argument
430 writeObject0(obj, true); in writeUnshared()
602 protected Object replaceObject(Object obj) throws IOException { in replaceObject() argument
603 return obj; in replaceObject()
1121 private void writeObject0(Object obj, boolean unshared) in writeObject0() argument
1129 if ((obj = subs.lookup(obj)) == null) { in writeObject0()
[all …]
/libcore/support/src/test/java/libcore/tlswire/handshake/
DCompressionMethod.java60 public boolean equals(Object obj) { in equals() argument
61 if (this == obj) { in equals()
64 if (obj == null) { in equals()
67 if (getClass() != obj.getClass()) { in equals()
70 CompressionMethod other = (CompressionMethod) obj; in equals()
/libcore/ojluni/src/main/java/java/security/spec/
DECPoint.java96 public boolean equals(Object obj) { in equals() argument
97 if (this == obj) return true; in equals()
99 if (obj instanceof ECPoint) { in equals()
100 return ((x.equals(((ECPoint)obj).x)) && in equals()
101 (y.equals(((ECPoint)obj).y))); in equals()
/libcore/support/src/test/java/tests/support/
DSupport_GetPutFieldsDefaulted.java77 public boolean equals(Object obj) { in equals() argument
78 if (obj == null || obj.getClass() != this.getClass()) { in equals()
82 SimpleClass other = (SimpleClass) obj; in equals()
99 public boolean equals(Object obj) { in equals() argument
100 if (obj == null || obj.getClass() != this.getClass()) { in equals()
104 Support_GetPutFieldsDefaulted other = (Support_GetPutFieldsDefaulted) obj; in equals()
DSupport_GetPutFields.java66 public boolean equals(Object obj) { in equals() argument
67 if (obj == null || obj.getClass() != this.getClass()) { in equals()
71 SimpleClass other = (SimpleClass) obj; in equals()
88 public boolean equals(Object obj) { in equals() argument
89 if (obj == null || obj.getClass() != this.getClass()) { in equals()
93 Support_GetPutFields other = (Support_GetPutFields) obj; in equals()
DSupport_GetPutFieldsDeprecated.java68 public boolean equals(Object obj) { in equals() argument
69 if (obj == null || obj.getClass() != this.getClass()) { in equals()
73 SimpleClass other = (SimpleClass) obj; in equals()
90 public boolean equals(Object obj) { in equals() argument
91 if (obj == null || obj.getClass() != this.getClass()) { in equals()
95 Support_GetPutFields other = (Support_GetPutFields) obj; in equals()
/libcore/
DCleanSpec.mk50 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core*)
51 $(call add-clean-step, rm -rf $(OUT_DIR)/host/common/obj/JAVA_LIBRARIES/core*)
53 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core*)
54 $(call add-clean-step, rm -rf $(OUT_DIR)/host/common/obj/JAVA_LIBRARIES/core*)
55 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core*)
56 $(call add-clean-step, rm -rf $(OUT_DIR)/host/common/obj/JAVA_LIBRARIES/core*)
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DGuardedObjectTest.java38 Object obj = null; in testNoGuard() local
39 GuardedObject go = new GuardedObject(obj, null); in testNoGuard()
42 obj = "ewte rtw3456"; in testNoGuard()
43 go = new GuardedObject(obj, null); in testNoGuard()
44 assertEquals(obj, go.getObject()); in testNoGuard()
/libcore/luni/src/test/java/libcore/java/lang/
DOldObjectTest.java89 Object obj = new Object(); in test_notify() local
90 obj.notify(); in test_notify()
99 Object obj = new Object(); in test_notifyAll() local
100 obj.notifyAll(); in test_notifyAll()
110 Object obj = new Object(); in test_wait() local
111 obj.wait(); in test_wait()
176 Object obj = new Object(); in test_waitJI() local
177 obj.wait(5000L, 1); in test_waitJI()
232 Object obj = new Object(); in test_waitJ() local
233 obj.wait(5000L); in test_waitJ()

12345678910>>...13