/libcore/benchmarks/src/benchmarks/ |
D | CloneBenchmark.java | 21 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 …]
|
D | ReferenceBenchmark.java | 30 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/annotations/mmodule/java/security/ |
D | Provider.annotated.java | 55 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/misc/ |
D | Unsafe.java | 134 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/hiddenapi/sun/misc/ |
D | Unsafe.java | 67 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/ojluni/src/main/java/sun/util/logging/ |
D | LoggingProxy.java | 36 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/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/ |
D | SubjectTest.java | 61 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/ |
D | ThreadLocalCoders.java | 43 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/ |
D | BiPredicateTest.java | 27 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/ |
D | VarHandle.java | 496 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/ |
D | CopyOnWriteArrayList.java | 96 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/ |
D | LoggingProxyImpl.java | 39 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/ |
D | OldObjectTest.java | 28 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 …]
|
D | OldInheritableThreadLocalTest.java | 26 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/ |
D | ReferenceQueueTest.java | 31 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() 101 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithDelayedResultAndTimeout() 112 Object object = new Object(); in testCleanersCleaned() 145 private void enqueueLater(final ReferenceQueue<Object> queue, long delayMillis) { in enqueueLater() 153 private void enqueue(ReferenceQueue<Object> queue) { in enqueue() [all …]
|
/libcore/ojluni/annotations/mmodule/sun/misc/ |
D | Unsafe.annotated.java | 58 public native boolean getBoolean(Object obj, long offset); in getBoolean() 64 public native byte getByte(Object obj, long offset); in getByte() 67 public native double getDouble(Object obj, long offset); in getDouble() 70 public native float getFloat(Object obj, long offset); in getFloat() 76 public native int getInt(Object obj, long offset); in getInt() 82 public native long getLong(Object obj, long offset); in getLong() 85 public native Object getObject(Object obj, long offset); in getObject() 93 public native void putBoolean(Object obj, long offset, boolean newValue); in putBoolean() 99 public native void putByte(Object obj, long offset, byte newValue); in putByte() 102 public native void putDouble(Object obj, long offset, double newValue); in putDouble() [all …]
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | StreamTestDataProvider.java | 48 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/ |
D | StreamTestDataProvider.java | 52 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/luni/src/main/java/org/apache/harmony/xml/dom/ |
D | DOMConfigurationImpl.java | 61 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/annotations/sdk/nullability/java/lang/reflect/ |
D | Array.annotated.java | 36 @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/security/ |
D | Provider.java | 130 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/ojluni/src/main/java/java/lang/reflect/ |
D | Array.java | 76 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest3.java | 52 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/util/ |
D | IdentityHashMap.java | 172 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/ |
D | ProxyTest.java | 34 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 …]
|