Home
last modified time | relevance | path

Searched refs:Object (Results 1 – 25 of 1588) sorted by relevance

12345678910>>...64

/libcore/benchmarks/src/benchmarks/
DCloneBenchmark.java21 public Object clone() throws CloneNotSupportedException { in clone()
27 public Object clone() throws CloneNotSupportedException { in clone()
31 Object o1 = new Object();
32 Object o2 = new Object();
33 Object o3 = new Object();
34 Object o4 = new Object();
35 Object o5 = new Object();
36 Object o6 = new Object();
37 Object o7 = new Object();
38 Object o8 = new Object();
[all …]
DReferenceBenchmark.java30 private Object object;
34 ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); in timeAlloc()
42 ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); in timeAllocAndEnqueue()
44 (new PhantomReference<Object>(object, queue)).enqueue(); in timeAllocAndEnqueue()
50 ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); in timeAllocEnqueueAndPoll()
52 (new PhantomReference<Object>(object, queue)).enqueue(); in timeAllocEnqueueAndPoll()
61 ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); in timeAllocEnqueueAndRemove()
63 (new PhantomReference<Object>(object, queue)).enqueue(); in timeAllocEnqueueAndRemove()
77 ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); in timeAllocImplicitEnqueueAndRemove()
78 List<Object> refs = new ArrayList<Object>(); in timeAllocImplicitEnqueueAndRemove()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java134 public native boolean compareAndSwapInt(Object obj, long offset, in compareAndSwapInt()
150 public native boolean compareAndSwapLong(Object obj, long offset, in compareAndSwapLong()
166 public native boolean compareAndSwapObject(Object obj, long offset, in compareAndSwapObject()
167 Object expectedValue, Object newValue); in compareAndSwapObject()
178 public native int getIntVolatile(Object obj, long offset); in getIntVolatile()
189 public native void putIntVolatile(Object obj, long offset, int newValue); in putIntVolatile()
200 public native long getLongVolatile(Object obj, long offset); in getLongVolatile()
211 public native void putLongVolatile(Object obj, long offset, long newValue); in putLongVolatile()
222 public native Object getObjectVolatile(Object obj, long offset); in getObjectVolatile()
233 public native void putObjectVolatile(Object obj, long offset, in putObjectVolatile()
[all …]
/libcore/ojluni/annotations/mmodule/java/security/
DProvider.annotated.java55 public synchronized java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>> entrySet(… in entrySet()
57 public java.util.Set<java.lang.Object> keySet() { throw new RuntimeException("Stub!"); } in keySet()
59 public java.util.Collection<java.lang.Object> values() { throw new RuntimeException("Stub!"); } in values()
61 public synchronized java.lang.Object put(java.lang.Object key, java.lang.Object value) { throw new … in put()
63 public synchronized java.lang.Object putIfAbsent(java.lang.Object key, java.lang.Object value) { th… in putIfAbsent()
65 public synchronized java.lang.Object remove(java.lang.Object key) { throw new RuntimeException("Stu… in remove()
67 public synchronized boolean remove(java.lang.Object key, java.lang.Object value) { throw new Runtim… in remove()
69 public synchronized boolean replace(java.lang.Object key, java.lang.Object oldValue, java.lang.Obje… in replace()
71 public synchronized java.lang.Object replace(java.lang.Object key, java.lang.Object value) { throw … in replace()
73 …d replaceAll(java.util.function.BiFunction<? super java.lang.Object,? super java.lang.Object,?> fu… in replaceAll() argument
[all …]
/libcore/ojluni/src/main/java/sun/util/logging/
DLoggingProxy.java36 public Object getLogger(String name); in getLogger()
38 public Object getLevel(Object logger); in getLevel()
40 public void setLevel(Object logger, Object newLevel); in setLevel()
42 public boolean isLoggable(Object logger, Object level); in isLoggable()
44 public void log(Object logger, Object level, String msg); in log()
46 public void log(Object logger, Object level, String msg, Throwable t); in log()
48 public void log(Object logger, Object level, String msg, Object... params); in log()
60 public Object parseLevel(String levelName); in parseLevel()
62 public String getLevelName(Object level); in getLevelName()
64 public int getLevelValue(Object level); in getLevelValue()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DUnsafe.java67 java.lang.Object obj, long offset, int expectedValue, int newValue); in compareAndSwapInt()
71 java.lang.Object obj, long offset, long expectedValue, long newValue); in compareAndSwapLong()
75 java.lang.Object obj, in compareAndSwapObject()
77 java.lang.Object expectedValue, in compareAndSwapObject()
78 java.lang.Object newValue); in compareAndSwapObject()
81 public native int getIntVolatile(java.lang.Object obj, long offset); in getIntVolatile()
84 public native void putIntVolatile(java.lang.Object obj, long offset, int newValue); in putIntVolatile()
87 public native long getLongVolatile(java.lang.Object obj, long offset); in getLongVolatile()
90 public native void putLongVolatile(java.lang.Object obj, long offset, long newValue); in putLongVolatile()
93 public native java.lang.Object getObjectVolatile(java.lang.Object obj, long offset); in getObjectVolatile()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/
DSubjectTest.java61 new HashSet<Object>() /* pubCredentials */, in test_Constructor_failsWithNullArguments()
62 new HashSet<Object>() /* privCredentials */); in test_Constructor_failsWithNullArguments()
68 new Subject(false , new HashSet<Principal>(), null, new HashSet<Object>()); in test_Constructor_failsWithNullArguments()
74 new Subject(false , new HashSet<Principal>(), new HashSet<Object>(), null); in test_Constructor_failsWithNullArguments()
85 PrivilegedAction<Object> pa = new myPrivilegedAction(); in test_doAs_01()
86 PrivilegedAction<Object> paNull = null; in test_doAs_01()
89 Object obj = Subject.doAs(null, pa); in test_doAs_01()
95 Object obj = Subject.doAs(subj, pa); in test_doAs_01()
101 Object obj = Subject.doAs(subj, paNull); in test_doAs_01()
112 PrivilegedExceptionAction<Object> pea = new myPrivilegedExceptionAction(); in test_doAs_02()
[all …]
/libcore/ojluni/src/main/java/sun/nio/cs/
DThreadLocalCoders.java43 private ThreadLocal<Object[]> cache = new ThreadLocal<>();
50 abstract Object create(Object name); in create()
52 private void moveToFront(Object[] oa, int i) { in moveToFront()
53 Object ob = oa[i]; in moveToFront()
59 abstract boolean hasName(Object ob, Object name); in hasName()
61 Object forName(Object name) { in forName()
62 Object[] oa = cache.get(); in forName()
64 oa = new Object[size]; in forName()
68 Object ob = oa[i]; in forName()
80 Object ob = create(name); in forName()
[all …]
/libcore/luni/src/test/java/libcore/java/util/function/
DBiPredicateTest.java27 Object arg1 = "one"; in testAnd()
28 Object arg2 = "two"; in testAnd()
36 BiPredicate<Object, Object> alwaysTrue = in testAnd()
38 BiPredicate<Object, Object> alwaysTrue2 = in testAnd()
40 BiPredicate<Object, Object> alwaysFalse = in testAnd()
42 BiPredicate<Object, Object> alwaysFalse2 = in testAnd()
67 BiPredicate<Object, Object> alwaysTrue = (x, y) -> true; in testAnd_null()
75 Object arg1 = "one"; in testNegate()
76 Object arg2 = "two"; in testNegate()
77 BiPredicate<Object, Object> alwaysTrue = in testNegate()
[all …]
/libcore/ojluni/src/main/java/java/lang/invoke/
DVarHandle.java496 Object get(Object... args); in get()
523 void set(Object... args); in set()
556 Object getVolatile(Object... args); in getVolatile()
587 void setVolatile(Object... args); in setVolatile()
618 Object getOpaque(Object... args); in getOpaque()
646 void setOpaque(Object... args); in setOpaque()
684 Object getAcquire(Object... args); in getAcquire()
716 void setRelease(Object... args); in setRelease()
753 boolean compareAndSet(Object... args); in compareAndSet()
789 Object compareAndExchange(Object... args); in compareAndExchange()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DCopyOnWriteArrayList.java96 final transient Object lock = new Object();
99 private transient volatile Object[] array;
105 final Object[] getArray() { in getArray()
112 final void setArray(Object[] a) { in setArray()
120 setArray(new Object[0]); in CopyOnWriteArrayList()
132 Object[] elements; in CopyOnWriteArrayList()
139 if (elements.getClass() != Object[].class) in CopyOnWriteArrayList()
140 elements = Arrays.copyOf(elements, elements.length, Object[].class); in CopyOnWriteArrayList()
153 setArray(Arrays.copyOf(toCopyIn, toCopyIn.length, Object[].class)); in CopyOnWriteArrayList()
183 private static int indexOf(Object o, Object[] elements, in indexOf()
[all …]
/libcore/ojluni/src/main/java/java/util/logging/
DLoggingProxyImpl.java39 public Object getLogger(String name) { in getLogger()
45 public Object getLevel(Object logger) { in getLevel()
50 public void setLevel(Object logger, Object newLevel) { in setLevel()
55 public boolean isLoggable(Object logger, Object level) { in isLoggable()
60 public void log(Object logger, Object level, String msg) { in log()
65 public void log(Object logger, Object level, String msg, Throwable t) { in log()
70 public void log(Object logger, Object level, String msg, Object... params) { in log()
95 public Object parseLevel(String levelName) { in parseLevel()
104 public String getLevelName(Object level) { in getLevelName()
109 public int getLevelValue(Object level) { in getLevelValue()
/libcore/luni/src/test/java/libcore/java/lang/
DOldObjectTest.java28 Object obj1 = new Object();
40 Object o1 = new Object(); in test_hashCode()
41 Object o2 = new Object(); in test_hashCode()
67 class MockCloneableObject extends Object implements Cloneable {
68 public Object clone() throws CloneNotSupportedException { in clone()
73 class MockObject extends Object {
82 public Object clone() throws CloneNotSupportedException { in clone()
89 Object obj = new Object(); in test_notify()
99 Object obj = new Object(); in test_notifyAll()
110 Object obj = new Object(); in test_wait()
[all …]
DOldInheritableThreadLocalTest.java26 final Object value = new Object(); in test_Ljava_lang_InheritableThreadLocal()
27 final Object inheritedValue = new Object(); in test_Ljava_lang_InheritableThreadLocal()
28 final ThreadLocal<Object> threadLocal in test_Ljava_lang_InheritableThreadLocal()
29 = new InheritableThreadLocal<Object>() { in test_Ljava_lang_InheritableThreadLocal()
31 protected Object childValue(Object parentValue) { in test_Ljava_lang_InheritableThreadLocal()
37 final Object[] holder = new Object[1]; in test_Ljava_lang_InheritableThreadLocal()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java31 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithInvalidTimeout()
53 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithVeryLargeTimeout()
59 final ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithSpuriousNotify()
78 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithImmediateResultAndNoTimeout()
84 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithImmediateResultAndTimeout()
90 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithDelayedResultAndNoTimeout()
94 Object result = referenceQueue.remove(); in testRemoveWithDelayedResultAndNoTimeout()
102 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithDelayedResultAndTimeout()
106 Object result = referenceQueue.remove(1000); in testRemoveWithDelayedResultAndTimeout()
118 Object object = new Object(); in testCleanersCleaned()
[all …]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DStreamTestDataProvider.java48 private static final Object[][] testData;
49 private static final Object[][] withNullTestData;
50 private static final Object[][] spliteratorTestData;
73 static final Object[][] arrays = {
87 List<Object[]> list = new ArrayList<>();
88 for (Object[] data : arrays) {
89 final Object name = data[0];
117 testData = list.toArray(new Object[0][]);
125 List<Object[]> list = new ArrayList<>();
139 withNullTestData = list.toArray(new Object[0][]);
[all …]
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DStreamTestDataProvider.java52 private static final Object[][] testData;
53 private static final Object[][] withNullTestData;
54 private static final Object[][] spliteratorTestData;
78 static final Object[][] arrays = {
93 List<Object[]> list = new ArrayList<>();
94 for (Object[] data : arrays) {
95 final Object name = data[0];
123 testData = list.toArray(new Object[0][]);
131 List<Object[]> list = new ArrayList<>();
145 withNullTestData = list.toArray(new Object[0][]);
[all …]
/libcore/ojluni/src/test/java/lang/Math/
DDivModTests.java44 static void fail(String message, Object... args) { in fail()
88 static void testIntFloorDivMod(int x, int y, Object divExpected, Object modExpected) { in testIntFloorDivMod()
96 static void testIntFloorDiv(int x, int y, Object expected) { in testIntFloorDiv()
97 Object result = doFloorDiv(x, y); in testIntFloorDiv()
102 Object strict_result = doStrictFloorDiv(x, y); in testIntFloorDiv()
111 static void testIntFloorMod(int x, int y, Object expected) { in testIntFloorMod()
112 Object result = doFloorMod(x, y); in testIntFloorMod()
117 Object strict_result = doStrictFloorMod(x, y); in testIntFloorMod()
178 static void testLongFloorDivMod(long x, long y, Object divExpected, Object modExpected) { in testLongFloorDivMod()
192 static void testLongFloorDiv(long x, long y, Object expected) { in testLongFloorDiv()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DDOMConfigurationImpl.java61 public Object get(DOMConfigurationImpl config) {
64 public void set(DOMConfigurationImpl config, Object value) {
78 public Object get(DOMConfigurationImpl config) {
81 public void set(DOMConfigurationImpl config, Object value) {
91 public Object get(DOMConfigurationImpl config) {
94 public void set(DOMConfigurationImpl config, Object value) {
114 public Object get(DOMConfigurationImpl config) {
117 public void set(DOMConfigurationImpl config, Object value) {
126 public Object get(DOMConfigurationImpl config) {
129 public void set(DOMConfigurationImpl config, Object value) {
[all …]
/libcore/ojluni/src/main/java/java/security/
DProvider.java130 private transient Set<Map.Entry<Object,Object>> entrySet = null;
266 public synchronized Set<Map.Entry<Object,Object>> entrySet() { in entrySet()
293 public Set<Object> keySet() { in keySet()
305 public Collection<Object> values() { in values()
327 public synchronized Object put(Object key, Object value) { in put()
354 public synchronized Object putIfAbsent(Object key, Object value) { in putIfAbsent()
380 public synchronized Object remove(Object key) { in remove()
405 public synchronized boolean remove(Object key, Object value) { in remove()
430 public synchronized boolean replace(Object key, Object oldValue, in replace()
431 Object newValue) { in replace()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest3.java52 public boolean equals(Object obj) { in equals()
128 public boolean equals(Object obj) { in equals()
157 public boolean equals(Object obj) { in equals()
187 public boolean equals(Object obj) { in equals()
215 public boolean equals(Object obj) { in equals()
244 public boolean equals(Object obj) { in equals()
272 public boolean equals(Object obj) { in equals()
301 public boolean equals(Object obj) { in equals()
380 Object obj = ois.readObject(); in test_18_81_writeObject()
400 Object objToSave = null; in test_18_82_writeObject()
[all …]
/libcore/ojluni/src/main/java/java/lang/reflect/
DArray.java76 public static Object newInstance(Class<?> componentType, int length) in newInstance()
112 public static Object newInstance(Class<?> componentType, int... dimensions) in newInstance()
137 public static int getLength(Object array) in getLength()
139 if (array instanceof Object[]) { in getLength()
140 return ((Object[]) array).length; in getLength()
178 public static Object get(Object array, int index) in get()
180 if (array instanceof Object[]) { in get()
181 return ((Object[]) array)[index]; in get()
230 public static boolean getBoolean(Object array, int index) in getBoolean()
255 public static byte getByte(Object array, int index) in getByte()
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/lang/reflect/
DArray.annotated.java36 @libcore.util.NonNull public static java.lang.Object newInstance(@libcore.util.NonNull java.lang.Cl… in newInstance()
38 @libcore.util.NonNull public static java.lang.Object newInstance(@libcore.util.NonNull java.lang.Cl… in newInstance()
40 public static int getLength(@libcore.util.NonNull java.lang.Object array) { throw new RuntimeExcept… in getLength()
42 @libcore.util.Nullable public static java.lang.Object get(@libcore.util.NonNull java.lang.Object ar… in get()
44 public static boolean getBoolean(@libcore.util.NonNull java.lang.Object array, int index) throws ja… in getBoolean()
46 public static byte getByte(@libcore.util.NonNull java.lang.Object array, int index) throws java.lan… in getByte()
48 public static char getChar(@libcore.util.NonNull java.lang.Object array, int index) throws java.lan… in getChar()
50 public static short getShort(@libcore.util.NonNull java.lang.Object array, int index) throws java.l… in getShort()
52 public static int getInt(@libcore.util.NonNull java.lang.Object array, int index) throws java.lang.… in getInt()
54 public static long getLong(@libcore.util.NonNull java.lang.Object array, int index) throws java.lan… in getLong()
[all …]
/libcore/ojluni/src/main/java/java/util/
DIdentityHashMap.java172 transient Object[] table; // non-private to simplify nested class access
189 static final Object NULL_KEY = new Object();
194 private static Object maskNull(Object key) { in maskNull()
201 static final Object unmaskNull(Object key) { in unmaskNull()
254 table = new Object[2 * initCapacity]; in init()
293 private static int hash(Object x, int length) { in hash()
324 public V get(Object key) { in get()
325 Object k = maskNull(key); in get()
326 Object[] tab = table; in get()
330 Object item = tab[i]; in get()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DProxyTest.java34 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
64 Object proxy = Proxy.newProxyInstance(loaderA, interfacesA, invocationHandlerB); in testClassLoaderDoesNotNeedToSeeInvocationHandlerLoader()
249 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testEquals()
255 assertFalse(instance.equals(new Object())); in testEquals()
262 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testHashCode()
272 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testToString()
282 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testReturnTypeDoesNotSatisfyAllConstraintsWithLenientCaller()
283 assertEquals(Object.class, method.getReturnType()); in testReturnTypeDoesNotSatisfyAllConstraintsWithLenientCaller()
294 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testReturnTypeDoesNotSatisfyAllConstraintsWithStrictCaller()
350 Object foo(); in foo()
[all …]

12345678910>>...64