Home
last modified time | relevance | path

Searched refs:SIZE (Results 1 – 25 of 28) sorted by relevance

12

/dalvik/libcore/concurrent/src/test/java/tests/api/java/util/concurrent/
DPriorityQueueTest.java54 assertEquals(0, new PriorityQueue(SIZE).size()); in testConstructor1()
84 Integer[] ints = new Integer[SIZE]; in testConstructor4()
96 Integer[] ints = new Integer[SIZE]; in testConstructor5()
97 for (int i = 0; i < SIZE-1; ++i) in testConstructor5()
110 Integer[] ints = new Integer[SIZE]; in testConstructor6()
111 for (int i = 0; i < SIZE; ++i) in testConstructor6()
114 for (int i = 0; i < SIZE; ++i) in testConstructor6()
126 PriorityQueue q = new PriorityQueue(SIZE, cmp); in testConstructor7()
128 Integer[] ints = new Integer[SIZE]; in testConstructor7()
129 for (int i = 0; i < SIZE; ++i) in testConstructor7()
[all …]
DArrayBlockingQueueTest.java43 assertEquals(SIZE, new ArrayBlockingQueue(SIZE).remainingCapacity()); in testConstructor1()
73 Integer[] ints = new Integer[SIZE]; in testConstructor4()
74 ArrayBlockingQueue q = new ArrayBlockingQueue(SIZE, false, Arrays.asList(ints)); in testConstructor4()
85 Integer[] ints = new Integer[SIZE]; in testConstructor5()
86 for (int i = 0; i < SIZE-1; ++i) in testConstructor5()
88 ArrayBlockingQueue q = new ArrayBlockingQueue(SIZE, false, Arrays.asList(ints)); in testConstructor5()
99 Integer[] ints = new Integer[SIZE]; in testConstructor6()
100 for (int i = 0; i < SIZE; ++i) in testConstructor6()
113 Integer[] ints = new Integer[SIZE]; in testConstructor7()
114 for (int i = 0; i < SIZE; ++i) in testConstructor7()
[all …]
DPriorityBlockingQueueTest.java58 assertEquals(NOCAP, new PriorityBlockingQueue(SIZE).remainingCapacity()); in testConstructor1()
88 Integer[] ints = new Integer[SIZE]; in testConstructor4()
100 Integer[] ints = new Integer[SIZE]; in testConstructor5()
101 for (int i = 0; i < SIZE-1; ++i) in testConstructor5()
114 Integer[] ints = new Integer[SIZE]; in testConstructor6()
115 for (int i = 0; i < SIZE; ++i) in testConstructor6()
118 for (int i = 0; i < SIZE; ++i) in testConstructor6()
130 PriorityBlockingQueue q = new PriorityBlockingQueue(SIZE, cmp); in testConstructor7()
132 Integer[] ints = new Integer[SIZE]; in testConstructor7()
133 for (int i = 0; i < SIZE; ++i) in testConstructor7()
[all …]
DLinkedBlockingQueueTest.java47 assertEquals(SIZE, new LinkedBlockingQueue(SIZE).remainingCapacity()); in testConstructor1()
78 Integer[] ints = new Integer[SIZE]; in testConstructor4()
90 Integer[] ints = new Integer[SIZE]; in testConstructor5()
91 for (int i = 0; i < SIZE-1; ++i) in testConstructor5()
104 Integer[] ints = new Integer[SIZE]; in testConstructor6()
105 for (int i = 0; i < SIZE; ++i) in testConstructor6()
108 for (int i = 0; i < SIZE; ++i) in testConstructor6()
133 LinkedBlockingQueue q = populatedQueue(SIZE); in testRemainingCapacity()
134 for (int i = 0; i < SIZE; ++i) { in testRemainingCapacity()
136 assertEquals(SIZE-i, q.size()); in testRemainingCapacity()
[all …]
DConcurrentLinkedQueueTest.java63 Integer[] ints = new Integer[SIZE]; in testConstructor4()
75 Integer[] ints = new Integer[SIZE]; in testConstructor5()
76 for (int i = 0; i < SIZE-1; ++i) in testConstructor5()
89 Integer[] ints = new Integer[SIZE]; in testConstructor6()
90 for (int i = 0; i < SIZE; ++i) in testConstructor6()
93 for (int i = 0; i < SIZE; ++i) in testConstructor6()
117 ConcurrentLinkedQueue q = populatedQueue(SIZE); in testSize()
118 for (int i = 0; i < SIZE; ++i) { in testSize()
119 assertEquals(SIZE-i, q.size()); in testSize()
122 for (int i = 0; i < SIZE; ++i) { in testSize()
[all …]
DLinkedListTest.java62 Integer[] ints = new Integer[SIZE]; in testConstructor6()
63 for (int i = 0; i < SIZE; ++i) in testConstructor6()
66 for (int i = 0; i < SIZE; ++i) in testConstructor6()
90 LinkedList q = populatedQueue(SIZE); in testSize()
91 for (int i = 0; i < SIZE; ++i) { in testSize()
92 assertEquals(SIZE-i, q.size()); in testSize()
95 for (int i = 0; i < SIZE; ++i) { in testSize()
127 for (int i = 0; i < SIZE; ++i) { in testAdd()
151 Integer[] ints = new Integer[SIZE]; in testAddAll5()
152 for (int i = 0; i < SIZE; ++i) in testAddAll5()
[all …]
DDelayQueueTest.java157 PDelay[] ints = new PDelay[SIZE]; in testConstructor4()
169 PDelay[] ints = new PDelay[SIZE]; in testConstructor5()
170 for (int i = 0; i < SIZE-1; ++i) in testConstructor5()
183 PDelay[] ints = new PDelay[SIZE]; in testConstructor6()
184 for (int i = 0; i < SIZE; ++i) in testConstructor6()
187 for (int i = 0; i < SIZE; ++i) in testConstructor6()
213 DelayQueue q = populatedQueue(SIZE); in testRemainingCapacity()
214 for (int i = 0; i < SIZE; ++i) { in testRemainingCapacity()
216 assertEquals(SIZE-i, q.size()); in testRemainingCapacity()
219 for (int i = 0; i < SIZE; ++i) { in testRemainingCapacity()
[all …]
DAtomicIntegerArrayTest.java30 AtomicIntegerArray ai = new AtomicIntegerArray(SIZE); in testConstructor()
31 for (int i = 0; i < SIZE; ++i) in testConstructor()
63 AtomicIntegerArray ai = new AtomicIntegerArray(SIZE); in testIndexing()
65 ai.get(SIZE); in testIndexing()
73 ai.set(SIZE, 0); in testIndexing()
86 AtomicIntegerArray ai = new AtomicIntegerArray(SIZE); in testGetSet()
87 for (int i = 0; i < SIZE; ++i) { in testGetSet()
101 AtomicIntegerArray ai = new AtomicIntegerArray(SIZE); in testCompareAndSet()
102 for (int i = 0; i < SIZE; ++i) { in testCompareAndSet()
142 AtomicIntegerArray ai = new AtomicIntegerArray(SIZE); in testWeakCompareAndSet()
[all …]
DAtomicLongArrayTest.java28 AtomicLongArray ai = new AtomicLongArray(SIZE); in testConstructor()
29 for (int i = 0; i < SIZE; ++i) in testConstructor()
61 AtomicLongArray ai = new AtomicLongArray(SIZE); in testIndexing()
63 ai.get(SIZE); in testIndexing()
71 ai.set(SIZE, 0); in testIndexing()
84 AtomicLongArray ai = new AtomicLongArray(SIZE); in testGetSet()
85 for (int i = 0; i < SIZE; ++i) { in testGetSet()
99 AtomicLongArray ai = new AtomicLongArray(SIZE); in testCompareAndSet()
100 for (int i = 0; i < SIZE; ++i) { in testCompareAndSet()
140 AtomicLongArray ai = new AtomicLongArray(SIZE); in testWeakCompareAndSet()
[all …]
DAtomicReferenceArrayTest.java29 AtomicReferenceArray<Integer> ai = new AtomicReferenceArray<Integer>(SIZE); in testConstructor()
30 for (int i = 0; i < SIZE; ++i) { in testConstructor()
64 AtomicReferenceArray<Integer> ai = new AtomicReferenceArray<Integer>(SIZE); in testIndexing()
66 ai.get(SIZE); in testIndexing()
74 ai.set(SIZE, null); in testIndexing()
87 AtomicReferenceArray ai = new AtomicReferenceArray(SIZE); in testGetSet()
88 for (int i = 0; i < SIZE; ++i) { in testGetSet()
102 AtomicReferenceArray ai = new AtomicReferenceArray(SIZE); in testCompareAndSet()
103 for (int i = 0; i < SIZE; ++i) { in testCompareAndSet()
143 AtomicReferenceArray ai = new AtomicReferenceArray(SIZE); in testWeakCompareAndSet()
[all …]
DCopyOnWriteArrayListTest.java49 Integer[] ints = new Integer[SIZE]; in testConstructor2()
50 for (int i = 0; i < SIZE-1; ++i) in testConstructor2()
53 for (int i = 0; i < SIZE; ++i) in testConstructor2()
61 Integer[] ints = new Integer[SIZE]; in testConstructor3()
62 for (int i = 0; i < SIZE-1; ++i) in testConstructor3()
65 for (int i = 0; i < SIZE; ++i) in testConstructor3()
101 CopyOnWriteArrayList full = populatedArray(SIZE); in testAddIfAbsent()
103 assertEquals(SIZE, full.size()); in testAddIfAbsent()
110 CopyOnWriteArrayList full = populatedArray(SIZE); in testAddIfAbsent2()
119 CopyOnWriteArrayList full = populatedArray(SIZE); in testClear()
[all …]
DAbstractQueueTest.java151 Integer[] ints = new Integer[SIZE]; in testAddAll2()
164 Integer[] ints = new Integer[SIZE]; in testAddAll3()
165 for (int i = 0; i < SIZE-1; ++i) in testAddAll3()
178 Integer[] ints = new Integer[SIZE]; in testAddAll4()
179 for (int i = 0; i < SIZE; ++i) in testAddAll4()
DCopyOnWriteArraySetTest.java46 Integer[] ints = new Integer[SIZE]; in testConstructor3()
47 for (int i = 0; i < SIZE-1; ++i) in testConstructor3()
50 for (int i = 0; i < SIZE; ++i) in testConstructor3()
277 CopyOnWriteArraySet q = populatedSet(SIZE); in testSerialization()
DJSR166TestCase.java331 static final int SIZE = 20; field in JSR166TestCase
DReentrantLockTest.java361 for(int i = 1; i <= SIZE; i++) { in testGetHoldCount()
365 for(int i = SIZE; i > 0; i--) { in testGetHoldCount()
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
DFileChannelTest.java949 final long SIZE = 200; in test_lockJJZ_Shared() local
950 fileLock = readOnlyFileChannel.lock(POSITION, SIZE, true); in test_lockJJZ_Shared()
957 assertEquals(SIZE, fileLock.size()); in test_lockJJZ_Shared()
971 final long SIZE = 200; in test_lockJJZ_NotShared() local
972 fileLock = writeOnlyFileChannel.lock(POSITION, SIZE, false); in test_lockJJZ_NotShared()
977 assertEquals(SIZE, fileLock.size()); in test_lockJJZ_NotShared()
991 final long SIZE = Long.MAX_VALUE; in test_lockJJZ_Long_MAX_VALUE() local
992 fileLock = readOnlyFileChannel.lock(POSITION, SIZE, true); in test_lockJJZ_Long_MAX_VALUE()
996 assertEquals(SIZE, fileLock.size()); in test_lockJJZ_Long_MAX_VALUE()
1011 final long SIZE = 200; in test_lockJJZ_Overlapping() local
[all …]
/dalvik/libcore/luni/src/main/java/java/lang/
DShort.java51 public static final int SIZE = 16; field in Short
DByte.java50 public static final int SIZE = 8; field in Byte
DFloat.java79 public static final int SIZE = 32; field in Float
DDouble.java82 public static final int SIZE = 64; field in Double
DLong.java66 public static final int SIZE = 64; field in Long
DInteger.java56 public static final int SIZE = 32; field in Integer
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x501/
DAttributeTypeAndValue.java114 private static final int SIZE; field in AttributeTypeAndValue
136 SIZE = 10;
137 KNOWN_OIDS = new ObjectIdentifier[SIZE][CAPACITY];
/dalvik/libcore/awt-kernel/src/main/java/java/awt/font/
DTextAttribute.java149 public static final TextAttribute SIZE = new TextAttribute("size"); //$NON-NLS-1$ field in TextAttribute
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
DHexStringParser.java325 return Long.SIZE - leadingZeros; in countBitsLength()

12