Home
last modified time | relevance | path

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

12345678910>>...58

/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/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()
DLoggingSupport.java98 public static Object getLogger(String name) { in getLogger()
103 public static Object getLevel(Object logger) { in getLevel()
108 public static void setLevel(Object logger, Object newLevel) { in setLevel()
113 public static boolean isLoggable(Object logger, Object level) { in isLoggable()
118 public static void log(Object logger, Object level, String msg) { in log()
123 public static void log(Object logger, Object level, String msg, Throwable t) { in log()
128 public static void log(Object logger, Object level, String msg, Object... params) { in log()
133 public static Object parseLevel(String levelName) { in parseLevel()
138 public static String getLevelName(Object level) { in getLevelName()
143 public static int getLevelValue(Object level) { in getLevelValue()
/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/hiddenapi/sun/misc/
DUnsafe.java66 java.lang.Object obj, long offset, int expectedValue, int newValue); in compareAndSwapInt()
70 java.lang.Object obj, long offset, long expectedValue, long newValue); in compareAndSwapLong()
74 java.lang.Object obj, in compareAndSwapObject()
76 java.lang.Object expectedValue, in compareAndSwapObject()
77 java.lang.Object newValue); in compareAndSwapObject()
80 public native int getIntVolatile(java.lang.Object obj, long offset); in getIntVolatile()
83 public native void putIntVolatile(java.lang.Object obj, long offset, int newValue); in putIntVolatile()
86 public native long getLongVolatile(java.lang.Object obj, long offset); in getLongVolatile()
89 public native void putLongVolatile(java.lang.Object obj, long offset, long newValue); in putLongVolatile()
92 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/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()
40 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithVeryLargeTimeout()
46 final ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithSpuriousNotify()
64 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithImmediateResultAndNoTimeout()
70 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithImmediateResultAndTimeout()
76 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithDelayedResultAndNoTimeout()
86 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithDelayedResultAndTimeout()
96 Object object = new Object(); in testCleanersCleaned()
129 private void enqueueLater(final ReferenceQueue<Object> queue, int delayMillis) { in enqueueLater()
137 private void enqueue(ReferenceQueue<Object> queue) { in enqueue()
[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/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 …]
DDoubleStreamTestDataProvider.java43 private static final Object[][] testData;
44 private static final Object[][] spliteratorTestData;
67 static final Object[][] arrays = {
81 List<Object[]> list = new ArrayList<>();
82 for (Object[] data : arrays) {
83 final Object name = data[0];
86 list.add(new Object[]{"array:" + name, in list.add()
93 list.add(new Object[]{"SpinedList:" + name, in list.add()
96 testData = list.toArray(new Object[0][]);
100 List<Object[]> spliterators = new ArrayList<>();
[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 …]
DDoubleStreamTestDataProvider.java45 private static final Object[][] testData;
46 private static final Object[][] spliteratorTestData;
71 static final Object[][] arrays = {
86 List<Object[]> list = new ArrayList<>();
87 for (Object[] data : arrays) {
88 final Object name = data[0];
91 list.add(new Object[]{"array:" + name, in list.add()
98 list.add(new Object[]{"SpinedList:" + name, in list.add()
101 testData = list.toArray(new Object[0][]);
105 List<Object[]> spliterators = new ArrayList<>();
[all …]
DIntStreamTestDataProvider.java45 private static final Object[][] testData;
46 private static final Object[][] spliteratorTestData;
70 static final Object[][] arrays = {
85 List<Object[]> list = new ArrayList<>();
86 for (Object[] data : arrays) {
87 final Object name = data[0];
90 list.add(new Object[]{"array:" + in list.add()
97 list.add(new Object[]{"SpinedList:" + name, in list.add()
105 testData = list.toArray(new Object[0][]);
109 List<Object[]> spliterators = new ArrayList<>();
[all …]
/libcore/ojluni/src/main/java/java/beans/
DPropertyChangeEvent.java60 public PropertyChangeEvent(Object source, String propertyName, in PropertyChangeEvent()
61 Object oldValue, Object newValue) { in PropertyChangeEvent()
84 public Object getNewValue() { in getNewValue()
94 public Object getOldValue() { in getOldValue()
103 public void setPropagationId(Object propagationId) { in setPropagationId()
117 public Object getPropagationId() { in getPropagationId()
131 private Object newValue;
137 private Object oldValue;
144 private Object propagationId;
/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/annotations/hiddenapi/sun/nio/cs/
DThreadLocalCoders.java38 public static java.nio.charset.CharsetDecoder decoderFor(java.lang.Object name) { in decoderFor()
42 public static java.nio.charset.CharsetEncoder encoderFor(java.lang.Object name) { in encoderFor()
59 abstract java.lang.Object create(java.lang.Object name); in create()
61 private void moveToFront(java.lang.Object[] oa, int i) { in moveToFront()
65 abstract boolean hasName(java.lang.Object ob, java.lang.Object name); in hasName()
67 java.lang.Object forName(java.lang.Object name) { in forName()
71 private java.lang.ThreadLocal<java.lang.Object[]> cache;
/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/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 …]

12345678910>>...58