Home
last modified time | relevance | path

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

12345

/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicLongFieldUpdater.java75 public abstract boolean compareAndSet(T obj, long expect, long update); in compareAndSet() argument
95 public abstract boolean weakCompareAndSet(T obj, long expect, long update); in weakCompareAndSet() argument
105 public abstract void set(T obj, long newValue); in set() argument
115 public abstract void lazySet(T obj, long newValue); in lazySet() argument
124 public abstract long get(T obj); in get() argument
134 public long getAndSet(T obj, long newValue) { in getAndSet() argument
136 long current = get(obj); in getAndSet()
137 if (compareAndSet(obj, current, newValue)) in getAndSet()
149 public long getAndIncrement(T obj) { in getAndIncrement() argument
151 long current = get(obj); in getAndIncrement()
[all …]
DAtomicIntegerFieldUpdater.java72 public abstract boolean compareAndSet(T obj, int expect, int update); in compareAndSet() argument
92 public abstract boolean weakCompareAndSet(T obj, int expect, int update); in weakCompareAndSet() argument
102 public abstract void set(T obj, int newValue); in set() argument
112 public abstract void lazySet(T obj, int newValue); in lazySet() argument
121 public abstract int get(T obj); in get() argument
131 public int getAndSet(T obj, int newValue) { in getAndSet() argument
133 int current = get(obj); in getAndSet()
134 if (compareAndSet(obj, current, newValue)) in getAndSet()
146 public int getAndIncrement(T obj) { in getAndIncrement() argument
148 int current = get(obj); in getAndIncrement()
[all …]
DAtomicReferenceFieldUpdater.java90 public abstract boolean compareAndSet(T obj, V expect, V update); in compareAndSet() argument
108 public abstract boolean weakCompareAndSet(T obj, V expect, V update); in weakCompareAndSet() argument
118 public abstract void set(T obj, V newValue); in set() argument
128 public abstract void lazySet(T obj, V newValue); in lazySet() argument
137 public abstract V get(T obj); in get() argument
147 public V getAndSet(T obj, V newValue) { in getAndSet() argument
149 V current = get(obj); in getAndSet()
150 if (compareAndSet(obj, current, newValue)) in getAndSet()
240 void targetCheck(T obj) { in targetCheck() argument
241 if (!tclass.isInstance(obj)) in targetCheck()
[all …]
/libcore/libart/src/main/java/sun/misc/
DUnsafe.java116 public native boolean compareAndSwapInt(Object obj, long offset, in compareAndSwapInt() argument
131 public native boolean compareAndSwapLong(Object obj, long offset, in compareAndSwapLong() argument
146 public native boolean compareAndSwapObject(Object obj, long offset, in compareAndSwapObject() argument
157 public native int getIntVolatile(Object obj, long offset); in getIntVolatile() argument
167 public native void putIntVolatile(Object obj, long offset, int newValue); in putIntVolatile() argument
177 public native long getLongVolatile(Object obj, long offset); in getLongVolatile() argument
187 public native void putLongVolatile(Object obj, long offset, long newValue); in putLongVolatile() argument
197 public native Object getObjectVolatile(Object obj, long offset); in getObjectVolatile() argument
207 public native void putObjectVolatile(Object obj, long offset, in putObjectVolatile() argument
217 public native int getInt(Object obj, long offset); in getInt() 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/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/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()
DSerializationStressTest.java690 public Object resolveObject(Object obj) { in resolveObject() argument
691 if (obj instanceof Vector) // test_1_resolveObject() in resolveObject()
693 else if ("abc".equals(obj)) // test_2_resolveObject() in resolveObject()
695 else if (obj instanceof String) // test_3_resolveObject() in resolveObject()
696 return String.valueOf(((String) obj).length()); in resolveObject()
697 else if (obj instanceof int[]) // test_4_resolveObject() in resolveObject()
699 … else if (obj instanceof Object[] && ((Object[]) obj).length == 2) // test_5_resolveObject() in resolveObject()
701 return obj; in resolveObject()
707 ResolveObjectTest obj = new ResolveObjectTest(); in test_1_resolveObject() local
708 obj.field1 = new Vector(); in test_1_resolveObject()
[all …]
/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/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/main/java/java/security/spec/
DECFieldFp.java76 public boolean equals(Object obj) { in equals() argument
78 if (this == obj) { in equals()
81 if (obj instanceof ECFieldFp) { in equals()
82 return (this.p.equals(((ECFieldFp)obj).p)); in equals()
/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()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/
DSubjectTest.java60 Object obj = Subject.doAs(null, pa); in test_doAs_01() local
66 Object obj = Subject.doAs(subj, pa); in test_doAs_01() local
72 Object obj = Subject.doAs(subj, paNull); in test_doAs_01() local
87 Object obj = Subject.doAs(null, pea); in test_doAs_02() local
93 Object obj = Subject.doAs(subj, pea); in test_doAs_02() local
99 Object obj = Subject.doAs(subj, peaNull); in test_doAs_02() local
129 Object obj = Subject.doAsPrivileged(null, pa, acc); in test_doAsPrivileged_01() local
135 Object obj = Subject.doAsPrivileged(subj, pa, acc); in test_doAsPrivileged_01() local
141 Object obj = Subject.doAsPrivileged(subj, paNull, acc); in test_doAsPrivileged_01() local
159 Object obj = Subject.doAsPrivileged(null, pea, acc); in test_doAsPrivileged_02() local
[all …]
/libcore/benchmarks/src/benchmarks/
DReferenceGetBenchmark.java30 private Object obj = "str"; field in ReferenceGetBenchmark
39 Reference soft = new SoftReference(obj); in timeSoftReferenceGet()
46 Reference weak = new WeakReference(obj); in timeWeakReferenceGet()
53 Reference weak = new WeakReference(obj); in timeNonPreservedWeakReferenceGet()
54 obj = null; in timeNonPreservedWeakReferenceGet()
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
DmySSLSession.java125 public void putValue(String s, Object obj) { in putValue() argument
126 if(s == null || obj == null) in putValue()
128 Object obj1 = table.put(s, obj); in putValue()
133 if(obj instanceof SSLSessionBindingListener) { in putValue()
135 ((SSLSessionBindingListener)obj).valueBound(sslsessionbindingevent1); in putValue()
142 Object obj = table.remove(s); in removeValue() local
143 if(obj instanceof SSLSessionBindingListener) { in removeValue()
145 ((SSLSessionBindingListener)obj).valueUnbound(sslsessionbindingevent); in removeValue()
/libcore/luni/src/main/java/java/text/
DDecimalFormatSymbols.java178 DecimalFormatSymbols obj = (DecimalFormatSymbols) object; in equals() local
179 return currency.equals(obj.currency) && in equals()
180 currencySymbol.equals(obj.currencySymbol) && in equals()
181 decimalSeparator == obj.decimalSeparator && in equals()
182 digit == obj.digit && in equals()
183 exponentSeparator.equals(obj.exponentSeparator) && in equals()
184 groupingSeparator == obj.groupingSeparator && in equals()
185 infinity.equals(obj.infinity) && in equals()
186 intlCurrencySymbol.equals(obj.intlCurrencySymbol) && in equals()
187 minusSign.equals(obj.minusSign) && in equals()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DReferenceTest.java28 Object tmpA, tmpB, tmpC, obj; field in ReferenceTest
82 tmpA = tmpB = obj = null; in doneSuite()
113 obj = new Object(); in test_enqueue()
114 Reference ref = new SoftReference(obj, rq); in test_enqueue()
117 assertTrue("Not properly enqueued.", rq.poll().get() == obj); in test_enqueue()
124 obj = new Object(); in test_enqueue()
126 ref = new WeakReference(obj, rq); in test_enqueue()
129 assertTrue("Not properly enqueued2.", rq.poll().get() == obj); in test_enqueue()
135 ref = new PhantomReference(obj, rq); in test_enqueue()
242 obj = new Object(); in test_get()
[all …]
/libcore/luni/src/main/java/javax/security/cert/
DCertificate.java55 public boolean equals(Object obj) { in equals() argument
56 if (obj == this) { in equals()
59 if (!(obj instanceof Certificate)) { in equals()
62 Certificate object = (Certificate) obj; in equals()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArrayListTest.java231 ArrayList obj = new ArrayList(); in test_addAllILjava_util_Collection_2() local
233 obj.addAll((int) -1, (Collection) null); in test_addAllILjava_util_Collection_2()
256 obj = new ArrayList(); in test_addAllILjava_util_Collection_2()
259 obj.removeAll(list1); in test_addAllILjava_util_Collection_2()
260 obj.addAll(list1); in test_addAllILjava_util_Collection_2()
263 assertTrue("The object list is not the same as original list", obj in test_addAllILjava_util_Collection_2()
265 && list1.containsAll(obj)); in test_addAllILjava_util_Collection_2()
298 ArrayList obj = new ArrayList(); in test_addAllILjava_util_Collection_3() local
299 obj.addAll(0, obj); in test_addAllILjava_util_Collection_3()
300 obj.addAll(obj.size(), obj); in test_addAllILjava_util_Collection_3() local
[all …]
/libcore/luni/src/main/java/java/security/
DTimestamp.java78 public boolean equals(Object obj) { in equals() argument
79 if (obj == this) { in equals()
82 if (obj instanceof Timestamp) { in equals()
83 Timestamp that = (Timestamp) obj; in equals()
DCodeSigner.java69 public boolean equals(Object obj) { in equals() argument
70 if (obj == this) { in equals()
73 if (obj instanceof CodeSigner) { in equals()
74 CodeSigner that = (CodeSigner) obj; in equals()
/libcore/luni/src/main/java/javax/crypto/spec/
DRC2ParameterSpec.java133 public boolean equals(Object obj) { in equals() argument
134 if (obj == this) { in equals()
137 if (!(obj instanceof RC2ParameterSpec)) { in equals()
140 RC2ParameterSpec ps = (RC2ParameterSpec) obj; in equals()

12345