Searched refs:set (Results 1 - 25 of 244) sorted by relevance

12345678910

/dalvik/dx/src/com/android/dx/util/_tests/
H A D_ListIntSet.java29 ListIntSet set = new ListIntSet();
31 assertEquals(0, set.elements());
33 set.add(31);
34 set.add(0);
35 set.add(1);
37 assertTrue(set.has(0));
38 assertTrue(set.has(1));
39 assertTrue(set.has(31));
41 assertEquals(3, set.elements());
43 assertFalse(set
[all...]
H A D_BitIntSet.java29 BitIntSet set = new BitIntSet(32);
31 assertEquals(0, set.elements());
33 set.add(0);
34 set.add(1);
35 set.add(31);
37 assertTrue(set.has(0));
38 assertTrue(set.has(1));
39 assertTrue(set.has(31));
41 assertEquals(3, set.elements());
43 assertFalse(set
[all...]
H A D_Bits.java82 Bits.set(bits, i, (i % 5) == 0);
95 Bits.set(bits, 0, true);
96 Bits.set(bits, 3, true);
97 Bits.set(bits, 6, true);
98 Bits.set(bits, 3, false);
99 Bits.set(bits, 35, false);
100 Bits.set(bits, 38, false);
101 Bits.set(bits, 42, false);
102 Bits.set(bits, 38, true);
113 Bits.set(bit
[all...]
/dalvik/libcore/support/src/test/java/tests/support/
H A DSupport_SetTest.java27 Set<Integer> set; // must contain only the Integers 0 to 99 field in class:Support_SetTest
35 set = s;
41 assertTrue("Set Test - Adding a duplicate element changed the set",
42 !set.add(new Integer(50)));
43 assertTrue("Set Test - Removing an element did not change the set", set
47 !set.contains(new Integer(50)));
48 set.add(new Integer(50));
49 new Support_CollectionTest("", set).runTest();
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/asn1/
H A DASN1Time.java54 c.set(Calendar.YEAR, in.times[0]);
55 c.set(Calendar.MONTH, in.times[1]-1);
56 c.set(Calendar.DAY_OF_MONTH, in.times[2]);
57 c.set(Calendar.HOUR_OF_DAY, in.times[3]);
58 c.set(Calendar.MINUTE, in.times[4]);
59 c.set(Calendar.SECOND, in.times[5]);
60 c.set(Calendar.MILLISECOND, in.times[6]);
/dalvik/dx/src/com/android/dx/dex/code/
H A DDops.java941 set(SPECIAL_FORMAT);
944 set(NOP);
945 set(MOVE);
946 set(MOVE_FROM16);
947 set(MOVE_16);
948 set(MOVE_WIDE);
949 set(MOVE_WIDE_FROM16);
950 set(MOVE_WIDE_16);
951 set(MOVE_OBJECT);
952 set(MOVE_OBJECT_FROM1
1227 private static void set(Dop opcode) { method in class:Dops
[all...]
/dalvik/libcore/luni/src/main/java/java/util/
H A DEnumSet.java33 * null-ok; package access to {@code java.lang}, set during
49 * Creates an empty enum set. The permitted elements are of type
54 * @return an empty enum set, with permitted elements of type {@code
74 * Creates an enum set filled with all the enum elements of the specified
79 * @return an enum set with elements solely from the specified element type.
85 EnumSet<E> set = noneOf(elementType);
86 set.complement();
87 return set;
91 * Creates an enum set. All the contained elements are of type
96 * the enum set fro
[all...]
H A DMiniEnumSet.java130 EnumSet<?> set = (EnumSet)collection;
131 if (!isValidType(set.elementClass)) {
134 MiniEnumSet<?> miniSet = (MiniEnumSet<?>) set;
162 MiniEnumSet<?> set = (MiniEnumSet<?>) collection;
163 return isValidType(set.elementClass ) && ((bits & set.bits) == set.bits);
174 EnumSet<E> set = (EnumSet<E>) collection;
176 if (isValidType(set.elementClass)) {
177 long mask = bits & ((MiniEnumSet<E>) set)
[all...]
H A DListIterator.java129 * the object to set.
142 void set(E object); method in interface:ListIterator
H A DHugeEnumSet.java137 EnumSet set = (EnumSet) collection;
138 if (!isValidType(set.elementClass)) {
141 HugeEnumSet hugeSet = (HugeEnumSet) set;
203 Object set = super.clone();
204 if (null != set) {
205 ((HugeEnumSet<E>) set).bits = bits.clone();
206 return (HugeEnumSet<E>) set;
217 HugeEnumSet set = (HugeEnumSet) collection;
218 if(isValidType(set.elementClass )) {
220 if((bits[i] & set
[all...]
/dalvik/libcore/luni/src/test/java/tests/api/java/util/
H A DBitSetTest.java120 bs.set(128);
121 assertTrue("Different sized BitSet with higher bit set returned true",
125 "Different sized BitSet with higher bits not set returned false",
145 bs.set(10);
167 bs.set(0, bs.size() - 1); // ensure all bits are 1's
168 bs.set(bs.size() - 1);
192 // Check to see all other bits are still set
226 bs.set(0, initialSize);
253 bs.set(0, initialSize);
266 bs.set(
[all...]
H A DCalendarTest.java37 * @tests java.util.Calendar#set(int, int)
42 method = "set",
46 // Test for correct result defined by the last set field
50 cal.set(Calendar.YEAR, 2002);
55 cal.set(Calendar.YEAR, 2002);
56 cal.set(Calendar.MONTH, Calendar.MARCH);
61 cal.set(Calendar.YEAR, 2002);
62 cal.set(Calendar.DATE, 24);
66 cal.set(Calendar.MONTH, Calendar.OCTOBER);
67 cal.set(Calenda
[all...]
H A DEnumMapTest.java385 Set set = enumSizeMap.entrySet();
388 assertSame("Should be same", set1, set); //$NON-NLS-1$
390 set.add(mockEntry);
396 assertTrue("Returned false for contained object", set//$NON-NLS-1$
399 assertFalse("Returned true for uncontained object", set //$NON-NLS-1$
401 assertFalse("Returned true for uncontained object", set //$NON-NLS-1$
404 assertFalse("Returned true for uncontained object", set //$NON-NLS-1$
406 assertFalse("Returned true for uncontained object", set //$NON-NLS-1$
410 assertTrue("Returned false for contained object", set//$NON-NLS-1$
412 assertTrue("Returned false when the object can be removed", set //
[all...]
H A DEnumSetTest.java188 Set<EnumFoo> set = EnumSet.noneOf(EnumFoo.class);
189 set.add(EnumFoo.a);
190 set.add(EnumFoo.b);
193 set.add(null);
200 Set rawSet = set;
208 set.clear();
210 set.add(null);
216 boolean result = set.add(EnumFoo.a);
217 assertEquals("Size should be 1:", 1, set.size()); //$NON-NLS-1$
220 result = set
[all...]
/dalvik/dx/src/com/android/dx/ssa/
H A DDeadCodeRemover.java116 worklist.set(source.getReg());
132 * @param set a set of registers that we've already determined
137 private boolean isCircularNoSideEffect(int regV, BitSet set) { argument
138 if ((set != null) && set.get(regV)) {
148 if (set == null) {
149 set = new BitSet(regCount);
153 set.set(reg
[all...]
/dalvik/dx/etc/
H A Ddx.bat22 REM and set up progdir to be the fully-qualified pathname of its directory.
23 set prog=%~f0
29 set jarfile=dx.jar
30 set frameworkdir=
33 set frameworkdir=lib\
36 set frameworkdir=..\framework\
40 set jarpath=%frameworkdir%%jarfile%
42 set javaOpts=
48 REM set javaOpts=-Xmx256M
/dalvik/dx/src/com/android/dx/cf/code/
H A DByteBlockList.java39 * index for an element which was never set; if you do that, this
72 public void set(int n, ByteBlock bb) { method in class:ByteBlockList
73 super.set(n, bb);
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x501/
H A DAttributes.java54 public static ASN1Sequence getASN1(InformationObjectSet set) { argument
56 ASN1OpenType any = new ASN1OpenType(id, set);
/dalvik/dx/src/com/android/dx/cf/iface/
H A DStdFieldList.java46 public void set(int n, Field field) { method in class:StdFieldList
H A DStdMethodList.java46 public void set(int n, Method method) { method in class:StdMethodList
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/util/
H A DIdentityHashMapTest.java277 Set set = map.entrySet();
279 set.removeAll(set);
281 assertTrue("did not remove all elements in the entryset", set.isEmpty());
283 Iterator it = set.iterator();
302 Set set = map.keySet();
303 set.clear();
306 assertTrue("did not remove all elements in the keyset", set.isEmpty());
308 Iterator it = set.iterator();
383 Set set
[all...]
/dalvik/libcore/concurrent/src/test/java/tests/api/java/util/concurrent/
H A DAtomicIntegerArrayTest.java60 * get and set for out of bound indices throw IndexOutOfBoundsException
73 ai.set(SIZE, 0);
77 ai.set(-1, 0);
83 * get returns the last value set at index
88 ai.set(i, 1);
90 ai.set(i, 2);
92 ai.set(i, -3);
103 ai.set(i, 1);
120 a.set(0, 1);
144 ai.set(
[all...]
H A DAtomicLongArrayTest.java58 * get and set for out of bound indices throw IndexOutOfBoundsException
71 ai.set(SIZE, 0);
75 ai.set(-1, 0);
81 * get returns the last value set at index
86 ai.set(i, 1);
88 ai.set(i, 2);
90 ai.set(i, -3);
101 ai.set(i, 1);
118 a.set(0, 1);
142 ai.set(
[all...]
/dalvik/libcore/sql/src/test/java/tests/sql/
H A DResultSetGetterTests.java1297 " null but an exception is thrown: stale result set.",
1302 " but an exception is thrown: stale result set.")
1448 cal.set(Calendar.HOUR_OF_DAY, 12);
1449 cal.set(Calendar.MINUTE, 35);
1450 cal.set(Calendar.SECOND, 45);
1451 cal.set(Calendar.MILLISECOND, 0);
1452 // set with calendar value (correct init time: since epoch)
1459 cal2.set(Calendar.YEAR, 2007);
1460 cal2.set(Calendar.MONTH, Calendar.OCTOBER);
1461 cal2.set(Calenda
[all...]
/dalvik/libcore/auth/src/main/java/javax/security/auth/
H A DPrivateCredentialPermission.java65 // owners set
66 private transient CredOwner[] set; field in class:PrivateCredentialPermission
89 * class and set of principals.
94 * the set of principals.
100 set = new CredOwner[principals.size()];
106 if (set[ii].equals(element)) {
112 set[offset++] = element;
162 // populate principal set with instances of CredOwner class
166 set = new CredOwner[count];
178 if (set[i
[all...]

Completed in 3523 milliseconds

12345678910