/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicIntegerFieldUpdater.java | 110 public abstract boolean compareAndSet(T obj, int expect, int update); in compareAndSet() argument 130 public abstract boolean weakCompareAndSet(T obj, int expect, int update); in weakCompareAndSet() argument 140 public abstract void set(T obj, int newValue); in set() argument 150 public abstract void lazySet(T obj, int newValue); in lazySet() argument 159 public abstract int get(T obj); in get() argument 169 public int getAndSet(T obj, int newValue) { in getAndSet() argument 172 prev = get(obj); in getAndSet() 173 } while (!compareAndSet(obj, prev, newValue)); in getAndSet() 184 public int getAndIncrement(T obj) { in getAndIncrement() argument 187 prev = get(obj); in getAndIncrement() [all …]
|
D | AtomicLongFieldUpdater.java | 113 public abstract boolean compareAndSet(T obj, long expect, long update); in compareAndSet() argument 133 public abstract boolean weakCompareAndSet(T obj, long expect, long update); in weakCompareAndSet() argument 143 public abstract void set(T obj, long newValue); in set() argument 153 public abstract void lazySet(T obj, long newValue); in lazySet() argument 162 public abstract long get(T obj); in get() argument 172 public long getAndSet(T obj, long newValue) { in getAndSet() argument 175 prev = get(obj); in getAndSet() 176 } while (!compareAndSet(obj, prev, newValue)); in getAndSet() 187 public long getAndIncrement(T obj) { in getAndIncrement() argument 190 prev = get(obj); in getAndIncrement() [all …]
|
D | AtomicReferenceFieldUpdater.java | 130 public abstract boolean compareAndSet(T obj, V expect, V update); in compareAndSet() argument 148 public abstract boolean weakCompareAndSet(T obj, V expect, V update); in weakCompareAndSet() argument 158 public abstract void set(T obj, V newValue); in set() argument 168 public abstract void lazySet(T obj, V newValue); in lazySet() argument 177 public abstract V get(T obj); in get() argument 187 public V getAndSet(T obj, V newValue) { in getAndSet() argument 190 prev = get(obj); in getAndSet() 191 } while (!compareAndSet(obj, prev, newValue)); in getAndSet() 206 public final V getAndUpdate(T obj, UnaryOperator<V> updateFunction) { in getAndUpdate() argument 209 prev = get(obj); in getAndUpdate() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Objects.java | 218 public static <T> T requireNonNull(T obj) { in requireNonNull() argument 219 if (obj == null) in requireNonNull() 221 return obj; in requireNonNull() 243 public static <T> T requireNonNull(T obj, String message) { in requireNonNull() argument 244 if (obj == null) in requireNonNull() 246 return obj; in requireNonNull() 263 public static boolean isNull(Object obj) { in isNull() argument 264 return obj == null; in isNull() 281 public static boolean nonNull(Object obj) { in nonNull() argument 282 return obj != null; in nonNull() [all …]
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | Unsafe.java | 134 public native boolean compareAndSwapInt(Object obj, long offset, in compareAndSwapInt() argument 150 public native boolean compareAndSwapLong(Object obj, long offset, in compareAndSwapLong() argument 166 public native boolean compareAndSwapObject(Object obj, long offset, in compareAndSwapObject() argument 178 public native int getIntVolatile(Object obj, long offset); in getIntVolatile() argument 189 public native void putIntVolatile(Object obj, long offset, int newValue); in putIntVolatile() argument 200 public native long getLongVolatile(Object obj, long offset); in getLongVolatile() argument 211 public native void putLongVolatile(Object obj, long offset, long newValue); in putLongVolatile() argument 222 public native Object getObjectVolatile(Object obj, long offset); in getObjectVolatile() argument 233 public native void putObjectVolatile(Object obj, long offset, in putObjectVolatile() argument 244 public native int getInt(Object obj, long offset); in getInt() argument [all …]
|
/libcore/ojluni/annotations/hiddenapi/sun/misc/ |
D | Unsafe.java | 67 java.lang.Object obj, long offset, int expectedValue, int newValue); in compareAndSwapInt() argument 71 java.lang.Object obj, long offset, long expectedValue, long newValue); in compareAndSwapLong() argument 75 java.lang.Object obj, in compareAndSwapObject() argument 81 public native int getIntVolatile(java.lang.Object obj, long offset); in getIntVolatile() argument 84 public native void putIntVolatile(java.lang.Object obj, long offset, int newValue); in putIntVolatile() argument 87 public native long getLongVolatile(java.lang.Object obj, long offset); in getLongVolatile() argument 90 public native void putLongVolatile(java.lang.Object obj, long offset, long newValue); in putLongVolatile() argument 93 public native java.lang.Object getObjectVolatile(java.lang.Object obj, long offset); in getObjectVolatile() argument 97 java.lang.Object obj, long offset, java.lang.Object newValue); in putObjectVolatile() argument 100 public native int getInt(java.lang.Object obj, long offset); in getInt() argument [all …]
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodHandleStatics.java | 140 /*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/lang/reflect/ |
D | Field.java | 213 public boolean equals(Object obj) { in equals() argument 214 if (obj != null && obj instanceof Field) { in equals() 215 Field other = (Field)obj; in equals() 340 public native Object get(Object obj) in get() argument 368 public native boolean getBoolean(Object obj) in getBoolean() argument 396 public native byte getByte(Object obj) in getByte() argument 426 public native char getChar(Object obj) in getChar() argument 456 public native short getShort(Object obj) in getShort() argument 486 public native int getInt(Object obj) in getInt() argument 516 public native long getLong(Object obj) in getLong() argument [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | SocketSecrets.java | 36 … 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/ojluni/annotations/hiddenapi/java/lang/reflect/ |
D | Field.java | 75 public boolean equals(java.lang.Object obj) { in equals() argument 91 public native java.lang.Object get(java.lang.Object obj) in get() argument 94 public native boolean getBoolean(java.lang.Object obj) in getBoolean() argument 97 public native byte getByte(java.lang.Object obj) in getByte() argument 100 public native char getChar(java.lang.Object obj) in getChar() argument 103 public native short getShort(java.lang.Object obj) in getShort() argument 106 public native int getInt(java.lang.Object obj) in getInt() argument 109 public native long getLong(java.lang.Object obj) in getLong() argument 112 public native float getFloat(java.lang.Object obj) in getFloat() argument 115 public native double getDouble(java.lang.Object obj) in getDouble() argument [all …]
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/reflect/ |
D | Field.annotated.java | 50 public boolean equals(@libcore.util.Nullable java.lang.Object obj) { throw new RuntimeException("St… in equals() argument 58 …public native java.lang.Object get(@libcore.util.Nullable java.lang.Object obj) throws java.lang.I… in get() argument 60 public native boolean getBoolean(@libcore.util.Nullable java.lang.Object obj) throws java.lang.Ille… in getBoolean() argument 62 public native byte getByte(@libcore.util.Nullable java.lang.Object obj) throws java.lang.IllegalAcc… in getByte() argument 64 public native char getChar(@libcore.util.Nullable java.lang.Object obj) throws java.lang.IllegalAcc… in getChar() argument 66 public native short getShort(@libcore.util.Nullable java.lang.Object obj) throws java.lang.IllegalA… in getShort() argument 68 public native int getInt(@libcore.util.Nullable java.lang.Object obj) throws java.lang.IllegalAcces… in getInt() argument 70 public native long getLong(@libcore.util.Nullable java.lang.Object obj) throws java.lang.IllegalAcc… in getLong() argument 72 public native float getFloat(@libcore.util.Nullable java.lang.Object obj) throws java.lang.IllegalA… in getFloat() argument 74 public native double getDouble(@libcore.util.Nullable java.lang.Object obj) throws java.lang.Illega… in getDouble() argument [all …]
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | X509CRLSelectorTest.java | 42 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | PipedWriterTest.java | 196 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 …]
|
D | StringWriterTest.java | 97 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/benchmarks/src/benchmarks/regression/ |
D | DecimalFormatBenchmark.java | 29 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/support/src/test/java/tests/util/ |
D | SerializationTester.java | 91 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/io/ |
D | ObjectOutputStream.java | 348 public final void writeObject(Object obj) throws IOException { in writeObject() argument 350 writeObjectOverride(obj); in writeObject() 354 writeObject0(obj, false); in writeObject() 387 protected void writeObjectOverride(Object obj) throws IOException { in writeObjectOverride() argument 435 public void writeUnshared(Object obj) throws IOException { in writeUnshared() argument 437 writeObject0(obj, true); in writeUnshared() 609 protected Object replaceObject(Object obj) throws IOException { in replaceObject() argument 610 return obj; in replaceObject() 1128 private void writeObject0(Object obj, boolean unshared) in writeObject0() argument 1136 if ((obj = subs.lookup(obj)) == null) { in writeObject0() [all …]
|
D | SerialCallbackContext.java | 40 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()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Object.java | 121 /* package-private */ static int identityHashCode(Object obj) { in identityHashCode() argument 122 int lockWord = obj.shadow$_monitor_; in identityHashCode() 129 return identityHashCodeNative(obj); in identityHashCode() 137 private static native int identityHashCodeNative(Object obj); in identityHashCodeNative() argument 186 public boolean equals(Object obj) { in equals() argument 187 return (this == obj); in equals()
|
/libcore/ojluni/annotations/mmodule/sun/misc/ |
D | Unsafe.annotated.java | 59 public native boolean compareAndSwapInt(java.lang.Object obj, long offset, int expectedValue, int n… in compareAndSwapInt() argument 62 public native boolean compareAndSwapLong(java.lang.Object obj, long offset, long expectedValue, lon… in compareAndSwapLong() argument 65 public native boolean compareAndSwapObject(java.lang.Object obj, long offset, java.lang.Object expe… in compareAndSwapObject() argument 68 public native int getIntVolatile(java.lang.Object obj, long offset); in getIntVolatile() argument 71 public native void putIntVolatile(java.lang.Object obj, long offset, int newValue); in putIntVolatile() argument 74 public native long getLongVolatile(java.lang.Object obj, long offset); in getLongVolatile() argument 77 public native void putLongVolatile(java.lang.Object obj, long offset, long newValue); in putLongVolatile() argument 80 public native void putObjectVolatile(java.lang.Object obj, long offset, java.lang.Object newValue); in putObjectVolatile() argument 83 public native java.lang.Object getObjectVolatile(java.lang.Object obj, long offset); in getObjectVolatile() argument 88 public native int getInt(java.lang.Object obj, long offset); in getInt() argument [all …]
|
/libcore/support/src/test/java/tests/support/ |
D | Support_GetPutFieldsDefaulted.java | 77 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()
|
D | Support_GetPutFieldsDeprecated.java | 68 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/ojluni/src/main/java/sun/nio/fs/ |
D | UnixFileSystemProvider.java | 101 UnixPath checkPath(Path obj) { in checkPath() argument 102 if (obj == null) in checkPath() 104 if (!(obj instanceof UnixPath)) in checkPath() 106 return (UnixPath)obj; in checkPath() 111 public <V extends FileAttributeView> V getFileAttributeView(Path obj, in getFileAttributeView() argument 115 UnixPath file = UnixPath.toUnixPath(obj); in getFileAttributeView() 148 protected DynamicFileAttributeView getFileAttributeView(Path obj, in getFileAttributeView() argument 152 UnixPath file = UnixPath.toUnixPath(obj); in getFileAttributeView() 166 public FileChannel newFileChannel(Path obj, in newFileChannel() argument 171 UnixPath file = checkPath(obj); in newFileChannel() [all …]
|
/libcore/ojluni/src/main/native/ |
D | jni_util.c | 269 jobject obj, in JNU_CallMethodByName() argument 278 result = JNU_CallMethodByNameV(env, hasException, obj, name, signature, in JNU_CallMethodByName() 289 jobject obj, in JNU_CallMethodByNameV() argument 309 clazz = (*env)->GetObjectClass(env, obj); in JNU_CallMethodByNameV() 316 (*env)->CallVoidMethodV(env, obj, mid, args); in JNU_CallMethodByNameV() 320 result.l = (*env)->CallObjectMethodV(env, obj, mid, args); in JNU_CallMethodByNameV() 323 result.z = (*env)->CallBooleanMethodV(env, obj, mid, args); in JNU_CallMethodByNameV() 326 result.b = (*env)->CallByteMethodV(env, obj, mid, args); in JNU_CallMethodByNameV() 329 result.c = (*env)->CallCharMethodV(env, obj, mid, args); in JNU_CallMethodByNameV() 332 result.s = (*env)->CallShortMethodV(env, obj, mid, args); in JNU_CallMethodByNameV() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldObjectTest.java | 89 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()
|