Searched refs:obj (Results 1 - 25 of 306) sorted by relevance

1234567891011>>

/libcore/ojluni/src/main/java/sun/misc/
H A DJavaIOFileDescriptorAccess.java34 public void set(FileDescriptor obj, int fd); argument
38 public void setHandle(FileDescriptor obj, long handle); argument
39 public long getHandle(FileDescriptor obj); argument
H A DUnsafe.java123 * @param obj non-null; object containing the field
124 * @param offset offset to the field within <code>obj</code>
132 public native boolean compareAndSwapInt(Object obj, long offset, argument
139 * @param obj non-null; object containing the field
140 * @param offset offset to the field within <code>obj</code>
148 public native boolean compareAndSwapLong(Object obj, long offset, argument
155 * @param obj non-null; object containing the field
156 * @param offset offset to the field within <code>obj</code>
164 public native boolean compareAndSwapObject(Object obj, long offset, argument
171 * @param obj no
176 getIntVolatile(Object obj, long offset) argument
187 putIntVolatile(Object obj, long offset, int newValue) argument
198 getLongVolatile(Object obj, long offset) argument
209 putLongVolatile(Object obj, long offset, long newValue) argument
220 getObjectVolatile(Object obj, long offset) argument
231 putObjectVolatile(Object obj, long offset, Object newValue) argument
242 getInt(Object obj, long offset) argument
252 putInt(Object obj, long offset, int newValue) argument
258 putOrderedInt(Object obj, long offset, int newValue) argument
268 getLong(Object obj, long offset) argument
278 putLong(Object obj, long offset, long newValue) argument
284 putOrderedLong(Object obj, long offset, long newValue) argument
294 getObject(Object obj, long offset) argument
304 putObject(Object obj, long offset, Object newValue) argument
310 putOrderedObject(Object obj, long offset, Object newValue) argument
315 getBoolean(Object obj, long offset) argument
317 putBoolean(Object obj, long offset, boolean newValue) argument
319 getByte(Object obj, long offset) argument
321 putByte(Object obj, long offset, byte newValue) argument
323 getChar(Object obj, long offset) argument
325 putChar(Object obj, long offset, char newValue) argument
327 getShort(Object obj, long offset) argument
329 putShort(Object obj, long offset, short newValue) argument
331 getFloat(Object obj, long offset) argument
333 putFloat(Object obj, long offset, float newValue) argument
335 getDouble(Object obj, long offset) argument
337 putDouble(Object obj, long offset, double newValue) argument
370 unpark(Object obj) argument
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
H A DAtomicIntegerFieldUpdater.java104 * @param obj An object whose field to conditionally set
108 * @throws ClassCastException if {@code obj} is not an instance
111 public abstract boolean compareAndSet(T obj, int expect, int update); argument
124 * @param obj An object whose field to conditionally set
128 * @throws ClassCastException if {@code obj} is not an instance
131 public abstract boolean weakCompareAndSet(T obj, int expect, int update); argument
138 * @param obj An object whose field to set
141 public abstract void set(T obj, int newValue); argument
147 * @param obj An object whose field to set
151 public abstract void lazySet(T obj, in argument
160 get(T obj) argument
170 getAndSet(T obj, int newValue) argument
185 getAndIncrement(T obj) argument
201 getAndDecrement(T obj) argument
218 getAndAdd(T obj, int delta) argument
234 incrementAndGet(T obj) argument
250 decrementAndGet(T obj) argument
267 addAndGet(T obj, int delta) argument
287 getAndUpdate(T obj, IntUnaryOperator updateFunction) argument
307 updateAndGet(T obj, IntUnaryOperator updateFunction) argument
331 getAndAccumulate(T obj, int x, IntBinaryOperator accumulatorFunction) argument
356 accumulateAndGet(T obj, int x, IntBinaryOperator accumulatorFunction) argument
445 accessCheck(T obj) argument
454 throwAccessCheckException(T obj) argument
468 compareAndSet(T obj, int expect, int update) argument
473 weakCompareAndSet(T obj, int expect, int update) argument
478 set(T obj, int newValue) argument
483 lazySet(T obj, int newValue) argument
488 get(T obj) argument
493 getAndSet(T obj, int newValue) argument
498 getAndAdd(T obj, int delta) argument
503 getAndIncrement(T obj) argument
507 getAndDecrement(T obj) argument
511 incrementAndGet(T obj) argument
515 decrementAndGet(T obj) argument
519 addAndGet(T obj, int delta) argument
[all...]
H A DAtomicLongFieldUpdater.java107 * @param obj An object whose field to conditionally set
111 * @throws ClassCastException if {@code obj} is not an instance
114 public abstract boolean compareAndSet(T obj, long expect, long update); argument
127 * @param obj An object whose field to conditionally set
131 * @throws ClassCastException if {@code obj} is not an instance
134 public abstract boolean weakCompareAndSet(T obj, long expect, long update); argument
141 * @param obj An object whose field to set
144 public abstract void set(T obj, long newValue); argument
150 * @param obj An object whose field to set
154 public abstract void lazySet(T obj, lon argument
163 get(T obj) argument
173 getAndSet(T obj, long newValue) argument
188 getAndIncrement(T obj) argument
204 getAndDecrement(T obj) argument
221 getAndAdd(T obj, long delta) argument
237 incrementAndGet(T obj) argument
253 decrementAndGet(T obj) argument
270 addAndGet(T obj, long delta) argument
290 getAndUpdate(T obj, LongUnaryOperator updateFunction) argument
310 updateAndGet(T obj, LongUnaryOperator updateFunction) argument
334 getAndAccumulate(T obj, long x, LongBinaryOperator accumulatorFunction) argument
359 accumulateAndGet(T obj, long x, LongBinaryOperator accumulatorFunction) argument
420 accessCheck(T obj) argument
429 throwAccessCheckException(T obj) argument
443 compareAndSet(T obj, long expect, long update) argument
448 weakCompareAndSet(T obj, long expect, long update) argument
453 set(T obj, long newValue) argument
458 lazySet(T obj, long newValue) argument
463 get(T obj) argument
468 getAndSet(T obj, long newValue) argument
473 getAndAdd(T obj, long delta) argument
478 getAndIncrement(T obj) argument
482 getAndDecrement(T obj) argument
486 incrementAndGet(T obj) argument
490 decrementAndGet(T obj) argument
494 addAndGet(T obj, long delta) argument
550 accessCheck(T obj) argument
559 accessCheckException(T obj) argument
573 compareAndSet(T obj, long expect, long update) argument
584 weakCompareAndSet(T obj, long expect, long update) argument
588 set(T obj, long newValue) argument
595 lazySet(T obj, long newValue) argument
599 get(T obj) argument
[all...]
H A DAtomicReferenceFieldUpdater.java126 * @param obj An object whose field to conditionally set
131 public abstract boolean compareAndSet(T obj, V expect, V update); argument
144 * @param obj An object whose field to conditionally set
149 public abstract boolean weakCompareAndSet(T obj, V expect, V update); argument
156 * @param obj An object whose field to set
159 public abstract void set(T obj, V newValue); argument
165 * @param obj An object whose field to set
169 public abstract void lazySet(T obj, V newValue); argument
175 * @param obj An object whose field to get
178 public abstract V get(T obj); argument
188 getAndSet(T obj, V newValue) argument
207 getAndUpdate(T obj, UnaryOperator<V> updateFunction) argument
227 updateAndGet(T obj, UnaryOperator<V> updateFunction) argument
251 getAndAccumulate(T obj, V x, BinaryOperator<V> accumulatorFunction) argument
276 accumulateAndGet(T obj, V x, BinaryOperator<V> accumulatorFunction) argument
377 accessCheck(T obj) argument
386 throwAccessCheckException(T obj) argument
409 compareAndSet(T obj, V expect, V update) argument
415 weakCompareAndSet(T obj, V expect, V update) argument
422 set(T obj, V newValue) argument
428 lazySet(T obj, V newValue) argument
435 get(T obj) argument
441 getAndSet(T obj, V newValue) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DObjects.java196 * @param obj the object reference to check for nullity
198 * @return {@code obj} if not {@code null}
199 * @throws NullPointerException if {@code obj} is {@code null}
201 public static <T> T requireNonNull(T obj) { argument
202 if (obj == null)
204 return obj;
219 * @param obj the object reference to check for nullity
223 * @return {@code obj} if not {@code null}
224 * @throws NullPointerException if {@code obj} is {@code null}
226 public static <T> T requireNonNull(T obj, Strin argument
246 isNull(Object obj) argument
264 nonNull(Object obj) argument
288 requireNonNull(T obj, Supplier<String> messageSupplier) argument
[all...]
H A DStack.java81 E obj;
84 obj = peek();
87 return obj;
/libcore/ojluni/src/main/java/java/security/spec/
H A DECFieldFp.java79 * @param obj the object to be compared.
80 * @return true if {@code obj} is an instance
83 public boolean equals(Object obj) { argument
84 if (this == obj) return true;
85 if (obj instanceof ECFieldFp) {
86 return (p.equals(((ECFieldFp)obj).p));
H A DECPoint.java92 * @param obj the object to be compared.
93 * @return true if {@code obj} is an instance of
96 public boolean equals(Object obj) { argument
97 if (this == obj) return true;
99 if (obj instanceof ECPoint) {
100 return ((x.equals(((ECPoint)obj).x)) &&
101 (y.equals(((ECPoint)obj).y)));
/libcore/ojluni/src/main/java/java/sql/
H A DRowId.java79 * @param obj the <code>Object</code> to compare this <code>RowId</code> object
84 boolean equals(Object obj); argument
/libcore/ojluni/src/main/java/java/lang/invoke/
H A DMethodHandleStatics.java118 /*non-public* static String addTypeString(Object obj, MethodHandle target) {
119 String str = String.valueOf(obj);
140 /*non-public*/ static RuntimeException newIllegalStateException(String message, Object obj) { argument
141 return new IllegalStateException(message(message, obj));
146 /*non-public*/ static RuntimeException newIllegalArgumentException(String message, Object obj) { argument
147 return new IllegalArgumentException(message(message, obj));
149 /*non-public*/ static RuntimeException newIllegalArgumentException(String message, Object obj, Object obj2) { argument
150 return new IllegalArgumentException(message(message, obj, obj2));
161 private static String message(String message, Object obj) { argument
162 if (obj !
165 message(String message, Object obj, Object obj2) argument
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DSerialCallbackContext.java40 private final Object obj; field in class:SerialCallbackContext
48 public SerialCallbackContext(Object obj, ObjectStreamClass desc) { argument
49 this.obj = obj;
56 return obj;
H A DFileDescriptor.java185 public void set(FileDescriptor obj, int fd) {
186 obj.descriptor = fd;
189 public int get(FileDescriptor obj) {
190 return obj.descriptor;
193 public void setHandle(FileDescriptor obj, long handle) {
197 public long getHandle(FileDescriptor obj) {
/libcore/ojluni/src/main/java/java/net/
H A DSocketSecrets.java34 /* obj must be a Socket or ServerSocket */
36 private static <T> void setOption(Object obj, SocketOption<T> name, T value) throws IOException { argument
39 if (obj instanceof Socket) {
40 impl = ((Socket)obj).getImpl();
41 } else if (obj instanceof ServerSocket) {
42 impl = ((ServerSocket)obj).getImpl();
49 private static <T> T getOption(Object obj, SocketOption<T> name) throws IOException { argument
52 if (obj instanceof Socket) {
53 impl = ((Socket)obj).getImpl();
54 } else if (obj instanceo
[all...]
H A DContentHandler.java101 Object obj = getContent(urlc);
104 if (classes[i].isInstance(obj)) {
105 return obj;
/libcore/ojluni/src/main/java/java/lang/annotation/
H A DAnnotation.java81 boolean equals(Object obj); argument
/libcore/ojluni/src/main/java/java/text/
H A DParsePosition.java124 public boolean equals(Object obj) argument
126 if (obj == null) return false;
127 if (!(obj instanceof ParsePosition))
129 ParsePosition other = (ParsePosition) obj;
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DFileKey.java56 public boolean equals(Object obj) { argument
57 if (obj == this)
59 if (!(obj instanceof FileKey))
61 FileKey other = (FileKey)obj;
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixFileKey.java48 public boolean equals(Object obj) { argument
49 if (obj == this)
51 if (!(obj instanceof UnixFileKey))
53 UnixFileKey other = (UnixFileKey)obj;
/libcore/luni/src/test/java/tests/security/cert/
H A DX509CRLSelectorTest.java42 X509CRLSelector obj = new X509CRLSelector();
44 obj.addIssuer((X500Principal) null);
56 X509CRLSelector obj = new X509CRLSelector();
58 obj.addIssuerName("234");
90 X509CRLSelector obj = new X509CRLSelector();
92 obj.addIssuerName(new byte[] { (byte) 2, (byte) 3, (byte) 4 });
104 X509CRLSelector obj = new X509CRLSelector();
106 obj.addIssuerName((byte[]) null);
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DGuardedObjectTest.java38 Object obj = null;
39 GuardedObject go = new GuardedObject(obj, null);
42 obj = "ewte rtw3456";
43 go = new GuardedObject(obj, null);
44 assertEquals(obj, go.getObject());
/libcore/support/src/test/java/libcore/tlswire/handshake/
H A DCompressionMethod.java60 public boolean equals(Object obj) { argument
61 if (this == obj) {
64 if (obj == null) {
67 if (getClass() != obj.getClass()) {
70 CompressionMethod other = (CompressionMethod) obj;
/libcore/
H A Drun-libcore-tests24 --classpath out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/classes.jack \
25 --classpath out/target/common/obj/JAVA_LIBRARIES/sqlite-jdbc_intermediates/classes.jack \
26 --classpath out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.jack \
27 --classpath out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes.jack \
/libcore/ojluni/src/main/java/java/lang/
H A DObject.java111 /* package-private */ static int identityHashCode(Object obj) { argument
112 int lockWord = obj.shadow$_monitor_;
119 return identityHashCodeNative(obj);
123 private static native int identityHashCodeNative(Object obj); argument
165 * @param obj the reference object with which to compare.
166 * @return {@code true} if this object is the same as the obj
171 public boolean equals(Object obj) { argument
172 return (this == obj);
380 * synchronized (obj) {
382 * obj
[all...]
/libcore/support/src/test/java/tests/util/
H A DSerializationTester.java86 * @param obj the object to be checked
91 public static boolean assertCompabilitySame(Object obj, String fileName) argument
93 return obj == readObject(obj, fileName);
100 * @param obj the object to be checked
105 public static boolean assertCompabilityEquals(Object obj, String fileName) argument
107 return obj.equals(readObject(obj, fileName));
113 * @param obj the object to be serialized if no serialization file is found
118 public static Object readObject(Object obj, Strin argument
158 writeObject(Object obj, String fileName) argument
[all...]

Completed in 485 milliseconds

1234567891011>>