Home
last modified time | relevance | path

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

12345678910>>...19

/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicLongFieldUpdater.java117 public abstract boolean compareAndSet(T obj, long expect, long update); in compareAndSet() argument
135 public abstract boolean weakCompareAndSet(T obj, long expect, long update); in weakCompareAndSet() argument
145 public abstract void set(T obj, long newValue); in set() argument
155 public abstract void lazySet(T obj, long newValue); in lazySet() argument
164 public abstract long get(T obj); in get() argument
174 public long getAndSet(T obj, long newValue) { in getAndSet() argument
177 prev = get(obj); in getAndSet()
178 } while (!compareAndSet(obj, prev, newValue)); in getAndSet()
189 public long getAndIncrement(T obj) { in getAndIncrement() argument
192 prev = get(obj); in getAndIncrement()
[all …]
DAtomicIntegerFieldUpdater.java114 public abstract boolean compareAndSet(T obj, int expect, int update); in compareAndSet() argument
132 public abstract boolean weakCompareAndSet(T obj, int expect, int update); in weakCompareAndSet() argument
142 public abstract void set(T obj, int newValue); in set() argument
152 public abstract void lazySet(T obj, int newValue); in lazySet() argument
161 public abstract int get(T obj); in get() argument
171 public int getAndSet(T obj, int newValue) { in getAndSet() argument
174 prev = get(obj); in getAndSet()
175 } while (!compareAndSet(obj, prev, newValue)); in getAndSet()
186 public int getAndIncrement(T obj) { in getAndIncrement() argument
189 prev = get(obj); in getAndIncrement()
[all …]
DAtomicReferenceFieldUpdater.java136 public abstract boolean compareAndSet(T obj, V expect, V update); in compareAndSet() argument
154 public abstract boolean weakCompareAndSet(T obj, V expect, V update); in weakCompareAndSet() argument
164 public abstract void set(T obj, V newValue); in set() argument
174 public abstract void lazySet(T obj, V newValue); in lazySet() argument
183 public abstract V get(T obj); in get() argument
193 public V getAndSet(T obj, V newValue) { in getAndSet() argument
196 prev = get(obj); in getAndSet()
197 } while (!compareAndSet(obj, prev, newValue)); in getAndSet()
214 public final V getAndUpdate(T obj, UnaryOperator<V> updateFunction) { in getAndUpdate() argument
217 prev = get(obj); in getAndUpdate()
[all …]
/libcore/ojluni/src/test/java/lang/StackWalker/
DReflectionFrames.java90 StackInspector obj = ((StackInspector)StackInspector.Caller.class in testNewStackInspector() local
93 assertEquals(obj.collectedFrames, in testNewStackInspector()
100 assertEquals(obj.cls, StackInspector.Caller.class); in testNewStackInspector()
101 assertEquals(obj.filtered, 0); in testNewStackInspector()
112 obj = ((StackInspector)StackInspector.Caller.class in testNewStackInspector()
115 assertEquals(obj.collectedFrames, in testNewStackInspector()
124 assertEquals(obj.cls, StackInspector.Caller.class); in testNewStackInspector()
125 assertEquals(obj.filtered, 0); in testNewStackInspector()
136 obj = ((StackInspector)StackInspector.Caller.class in testNewStackInspector()
139 assertEquals(obj.collectedFrames, in testNewStackInspector()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java135 public native boolean compareAndSwapInt(Object obj, long offset, in compareAndSwapInt() argument
151 public native boolean compareAndSwapLong(Object obj, long offset, in compareAndSwapLong() argument
167 public native boolean compareAndSwapObject(Object obj, long offset, in compareAndSwapObject() argument
179 public native int getIntVolatile(Object obj, long offset); in getIntVolatile() argument
190 public native void putIntVolatile(Object obj, long offset, int newValue); in putIntVolatile() argument
201 public native long getLongVolatile(Object obj, long offset); in getLongVolatile() argument
212 public native void putLongVolatile(Object obj, long offset, long newValue); in putLongVolatile() argument
223 public native Object getObjectVolatile(Object obj, long offset); in getObjectVolatile() argument
234 public native void putObjectVolatile(Object obj, long offset, in putObjectVolatile() argument
245 public native int getInt(Object obj, long offset); in getInt() argument
[all …]
/libcore/ojluni/src/main/java/java/util/
DObjects.java205 public static <T> T requireNonNull(T obj) { in requireNonNull() argument
206 if (obj == null) in requireNonNull()
208 return obj; in requireNonNull()
230 public static <T> T requireNonNull(T obj, String message) { in requireNonNull() argument
231 if (obj == null) in requireNonNull()
233 return obj; in requireNonNull()
250 public static boolean isNull(Object obj) { in isNull() argument
251 return obj == null; in isNull()
268 public static boolean nonNull(Object obj) { in nonNull() argument
269 return obj != null; in nonNull()
[all …]
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DUnsafe.java67 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/reflect/
DField.java213 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/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/test/java/io/Serializable/records/
DAbsentStreamValuesTest.java94 Object obj = deserialize(bytes); in testWithDifferentTypes() local
95 out.println("deserialized: " + obj); in testWithDifferentTypes()
96 Object actualXValue = clazz.getDeclaredMethod("x").invoke(obj); in testWithDifferentTypes()
110 R15 obj = (R15)deserialize(bytes); in testWithAllTogether() local
111 out.println("deserialized: " + obj); in testWithAllTogether()
112 assertEquals(obj.a, false); in testWithAllTogether()
113 assertEquals(obj.b, 0); in testWithAllTogether()
114 assertEquals(obj.c, 0); in testWithAllTogether()
115 assertEquals(obj.d, '\u0000'); in testWithAllTogether()
116 assertEquals(obj.e, 0); in testWithAllTogether()
[all …]
DCycleTest.java49 Object obj; // mutable field in CycleTest.C
61 c.obj = r; // cycle, targeting record r in testCycle1()
69 assertEquals(deserializedObj.c().obj, null); // cycle, expect null in testCycle1()
82 c.obj = r; // cycle, serializing c first should preserve the cycle in testCycle2()
88 assertTrue(deserializedObj.obj != null); // expect non-null, r in testCycle2()
89 assertEquals(((R)deserializedObj.obj).x(), 3); // sanity in testCycle2()
90 assertEquals(((R)deserializedObj.obj).y(), 4); // sanity in testCycle2()
103 c1.obj = c2; // --\-- cycle in testCycle3()
104 c2.obj = c1; // \- cycle in testCycle3()
115 assertTrue(c1.obj == c2); in testCycle3()
[all …]
DReadResolveTest.java64 public boolean equals(Object obj) { in equals() argument
65 return obj != null && obj instanceof C1 && ((C1)obj).x == this.x && ((C1)obj).y == y; in equals()
81 public boolean equals(Object obj) { in equals() argument
82 return obj != null && obj instanceof C2; in equals()
138 static <T> byte[] serialize(T obj) throws IOException { in serialize() argument
141 oos.writeObject(obj); in serialize()
155 static <T> T serializeDeserialize(T obj) in serializeDeserialize() argument
158 return deserialize(serialize(obj)); in serializeDeserialize()
/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/ojluni/annotations/hiddenapi/java/lang/reflect/
DField.java75 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/
DField.annotated.java50 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/
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/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/ojluni/src/main/java/sun/nio/fs/
DUnixFileSystemProvider.java107 UnixPath checkPath(Path obj) { in checkPath() argument
108 if (obj == null) in checkPath()
110 if (!(obj instanceof UnixPath)) in checkPath()
112 return (UnixPath)obj; in checkPath()
117 public <V extends FileAttributeView> V getFileAttributeView(Path obj, in getFileAttributeView() argument
121 UnixPath file = UnixPath.toUnixPath(obj); in getFileAttributeView()
154 protected DynamicFileAttributeView getFileAttributeView(Path obj, in getFileAttributeView() argument
158 UnixPath file = UnixPath.toUnixPath(obj); in getFileAttributeView()
172 public FileChannel newFileChannel(Path obj, in newFileChannel() argument
177 UnixPath file = checkPath(obj); in newFileChannel()
[all …]
/libcore/ojluni/annotations/mmodule/sun/misc/
DUnsafe.annotated.java54 public native boolean compareAndSwapInt(java.lang.Object obj, long offset, int expectedValue, int n… in compareAndSwapInt() argument
57 public native boolean compareAndSwapLong(java.lang.Object obj, long offset, long expectedValue, lon… in compareAndSwapLong() argument
60 public native boolean compareAndSwapObject(java.lang.Object obj, long offset, java.lang.Object expe… in compareAndSwapObject() argument
63 public native int getIntVolatile(java.lang.Object obj, long offset); in getIntVolatile() argument
66 public native void putIntVolatile(java.lang.Object obj, long offset, int newValue); in putIntVolatile() argument
69 public native long getLongVolatile(java.lang.Object obj, long offset); in getLongVolatile() argument
72 public native void putLongVolatile(java.lang.Object obj, long offset, long newValue); in putLongVolatile() argument
75 public native void putObjectVolatile(java.lang.Object obj, long offset, java.lang.Object newValue); in putObjectVolatile() argument
78 public native java.lang.Object getObjectVolatile(java.lang.Object obj, long offset); in getObjectVolatile() argument
82 public native int getInt(java.lang.Object obj, long offset); in getInt() argument
[all …]
/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/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/io/
DObjectOutputStream.java348 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 …]
/libcore/luni/src/test/java17language/java/libcore/libcore/internal/
DJava17LanguageFeaturesTest.java80 Java17LanguageFeatures.BaseSealedClass obj = new Java17LanguageFeatures.BaseSealedClass(); in testSealedClass() local
81 assertEquals(0, Java17LanguageFeatures.getSealedClassId(obj)); in testSealedClass()
82 obj = new Java17LanguageFeatures.FinalDerivedClass(); in testSealedClass()
83 assertEquals(1, Java17LanguageFeatures.getSealedClassId(obj)); in testSealedClass()
84 obj = new Java17LanguageFeatures.NonSealedDerivedClass(); in testSealedClass()
85 assertEquals(2, Java17LanguageFeatures.getSealedClassId(obj)); in testSealedClass()
86 obj = new DerivedClass(); in testSealedClass()
87 assertEquals(3, Java17LanguageFeatures.getSealedClassId(obj)); in testSealedClass()
/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()

12345678910>>...19