/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 | 201 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/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 | 66 java.lang.Object obj, long offset, int expectedValue, int newValue); in compareAndSwapInt() argument 70 java.lang.Object obj, long offset, long expectedValue, long newValue); in compareAndSwapLong() argument 74 java.lang.Object obj, in compareAndSwapObject() argument 80 public native int getIntVolatile(java.lang.Object obj, long offset); in getIntVolatile() argument 83 public native void putIntVolatile(java.lang.Object obj, long offset, int newValue); in putIntVolatile() argument 86 public native long getLongVolatile(java.lang.Object obj, long offset); in getLongVolatile() argument 89 public native void putLongVolatile(java.lang.Object obj, long offset, long newValue); in putLongVolatile() argument 92 public native java.lang.Object getObjectVolatile(java.lang.Object obj, long offset); in getObjectVolatile() argument 96 java.lang.Object obj, long offset, java.lang.Object newValue); in putObjectVolatile() argument 99 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/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/src/main/java/java/lang/reflect/ |
D | Field.java | 208 public boolean equals(Object obj) { in equals() argument 209 if (obj != null && obj instanceof Field) { in equals() 210 Field other = (Field)obj; in equals() 335 public native Object get(Object obj) in get() argument 363 public native boolean getBoolean(Object obj) in getBoolean() argument 391 public native byte getByte(Object obj) in getByte() argument 421 public native char getChar(Object obj) in getChar() argument 451 public native short getShort(Object obj) in getShort() argument 481 public native int getInt(Object obj) in getInt() argument 511 public native long getLong(Object obj) in getLong() argument [all …]
|
/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/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/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/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/src/main/java/java/io/ |
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()
|
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 | FileDescriptor.java | 231 public void set(FileDescriptor obj, int fd) { in sun.misc.SharedSecrets.setJavaIOFileDescriptorAccess() argument 232 obj.descriptor = fd; in sun.misc.SharedSecrets.setJavaIOFileDescriptorAccess() 235 public int get(FileDescriptor obj) { in sun.misc.SharedSecrets.setJavaIOFileDescriptorAccess() 236 return obj.descriptor; in sun.misc.SharedSecrets.setJavaIOFileDescriptorAccess() 239 public void setHandle(FileDescriptor obj, long handle) { in sun.misc.SharedSecrets.setJavaIOFileDescriptorAccess() 243 public long getHandle(FileDescriptor obj) { in sun.misc.SharedSecrets.setJavaIOFileDescriptorAccess()
|
/libcore/ojluni/src/main/java/java/security/spec/ |
D | ECPoint.java | 96 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/ |
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_GetPutFields.java | 66 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()
|
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/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | GuardedObjectTest.java | 38 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()
|