Searched refs:one (Results 1 - 25 of 83) sorted by relevance

1234

/dalvik/libcore/concurrent/src/test/java/tests/api/java/util/concurrent/
H A DAtomicMarkableReferenceTest.java26 AtomicMarkableReference ai = new AtomicMarkableReference(one, false);
27 assertEquals(one,ai.getReference());
40 AtomicMarkableReference ai = new AtomicMarkableReference(one, false);
41 assertEquals(one,ai.getReference());
43 assertEquals(one, ai.get(mark));
50 ai.set(one, true);
51 assertEquals(one,ai.getReference());
53 assertEquals(one, ai.get(mark));
62 AtomicMarkableReference ai = new AtomicMarkableReference(one, false);
64 assertTrue(ai.attemptMark(one, tru
[all...]
H A DAtomicStampedReferenceTest.java26 AtomicStampedReference ai = new AtomicStampedReference(one, 0);
27 assertEquals(one,ai.getReference());
40 AtomicStampedReference ai = new AtomicStampedReference(one, 0);
41 assertEquals(one,ai.getReference());
43 assertEquals(one, ai.get(mark));
50 ai.set(one, 1);
51 assertEquals(one,ai.getReference());
53 assertEquals(one, ai.get(mark));
62 AtomicStampedReference ai = new AtomicStampedReference(one, 0);
64 assertTrue(ai.attemptStamp(one,
[all...]
H A DAtomicReferenceTest.java27 AtomicReference ai = new AtomicReference(one);
28 assertEquals(one,ai.get());
43 AtomicReference ai = new AtomicReference(one);
44 assertEquals(one,ai.get());
55 AtomicReference ai = new AtomicReference(one);
56 assertTrue(ai.compareAndSet(one,two));
66 * compareAndSet in one thread enables another waiting for value
70 final AtomicReference ai = new AtomicReference(one);
77 assertTrue(ai.compareAndSet(one, two));
92 AtomicReference ai = new AtomicReference(one);
[all...]
H A DAtomicReferenceFieldUpdaterTest.java98 x = one;
99 assertEquals(one,a.get(this));
115 x = one;
116 assertTrue(a.compareAndSet(this,one,two));
126 * compareAndSet in one thread enables another waiting for value
130 x = one;
144 assertTrue(a.compareAndSet(this, one, two));
165 x = one;
166 while(!a.weakCompareAndSet(this,one,two));
183 x = one;
[all...]
H A DAtomicReferenceArrayTest.java52 Integer[] a = { two, one, three, four, seven};
89 ai.set(i, one);
90 assertEquals(one,ai.get(i));
104 ai.set(i, one);
105 assertTrue(ai.compareAndSet(i, one,two));
116 * compareAndSet in one thread enables another waiting for value
121 a.set(0, one);
128 assertTrue(a.compareAndSet(0, one, two));
145 ai.set(i, one);
146 while(!ai.weakCompareAndSet(i, one,tw
[all...]
H A DExchangerTest.java32 Object v = e.exchange(one);
35 threadAssertEquals(w, one);
45 threadAssertEquals(v, one);
71 Object v = e.exchange(one, SHORT_DELAY_MS, TimeUnit.MILLISECONDS);
74 threadAssertEquals(w, one);
86 threadAssertEquals(v, one);
114 e.exchange(one);
180 * If one exchanging thread is interrupted, another succeeds.
187 Object v = e.exchange(one);
199 threadAssertEquals(v, one);
[all...]
H A DConcurrentHashMapTest.java31 map.put(one, "A");
77 assertTrue(map.containsKey(one));
111 assertEquals("A", (String)map.get(one));
147 assertTrue(s.contains(one));
222 (e.getKey().equals(one) && e.getValue().equals("A")) ||
238 assertTrue(empty.containsKey(one));
259 assertEquals("A", map.putIfAbsent(one, "Z"));
276 assertNotNull(map.replace(one, "Z"));
277 assertEquals("Z", map.get(one));
286 assertEquals("A", map.get(one));
[all...]
/dalvik/tests/068-classloader/src/
H A DDoubledImplement.java15 public void one() { method in class:DoubledImplement
16 System.out.println("DoubledImplement one");
H A DDoubledImplement2.java29 public void one() { method in class:DoubledImplement2
30 System.out.println("DoubledImplement2 one");
/dalvik/tests/004-annotations/src/android/test/anno/
H A DFullyNoted.java20 @AnnoSimpleParameter int one,
29 @AnnoSimpleParameter int one,
19 bar( @nnoSimpleParameter int one, @AnnoFancyParameter(factor=3.7879912899761) long two) argument
28 bar1( @nnoSimpleParameter int one, @AnnoFancyParameter(factor=3.7879912899761) long two) argument
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/
H A DTimestampTest.java2 * Licensed to the Apache Software Foundation (ASF) under one or more
90 Timestamp one = new Timestamp(now, cpath);
93 assertTrue(one.equals(one));
94 assertTrue(one.equals(two));
95 assertTrue(two.equals(one));
96 assertFalse(one.equals(null));
97 assertFalse(one.equals(new Object()));
100 assertFalse(one.equals(two1));
153 Timestamp one
[all...]
H A DCodeSignerTest.java2 * Licensed to the Apache Software Foundation (ASF) under one or more
123 CodeSigner one = new CodeSigner(cpath, ts);
130 assertTrue(one.equals(one));
131 assertTrue(one.equals(two));
132 assertTrue(two.equals(one));
133 assertFalse(one.equals(three));
134 assertFalse(three.equals(one));
139 assertFalse( one.equals(null) );
140 assertFalse( one
[all...]
/dalvik/dx/src/com/android/dx/dex/file/
H A DUniformItemSection.java75 for (Item one : items()) {
76 one.addContents(file);
86 for (Item one : items()) {
87 one.writeTo(file, out);
97 * of the one we're given to calculate its offset.
H A DMixedItemSection.java164 * same item to more than one instance, nor to add the same items
187 * (which may not be the one passed in). This will add the item if no
279 OffsettedItem one = items.get(i);
280 one.addContents(file);
310 OffsettedItem one = items.get(i);
312 int placedAt = one.place(this, outAt);
316 one);
319 outAt = placedAt + one.writeSize();
322 "...while placing " + one);
337 for (OffsettedItem one
[all...]
H A DTypeListItem.java100 Type one = list.getType(i);
101 int idx = typeIds.indexOf(one);
103 " " + Hex.u2(idx) + " // " + one.toHuman());
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
H A DSerializationTestClass.java98 public int one; field in class:SerializationTestClass.TestFieldsOnePublic
102 public int one; field in class:SerializationTestClass.TestFieldsTwoPublic
108 private int one; field in class:SerializationTestClass.TestFieldsOnePrivate
113 private int one; field in class:SerializationTestClass.TestFieldsTwoPrivate
118 protected int one; field in class:SerializationTestClass.TestFieldsOneProtected
122 protected int one; field in class:SerializationTestClass.TestFieldsTwoProtected
127 static int one; field in class:SerializationTestClass.TestFieldsOneStatic
131 static int one; field in class:SerializationTestClass.TestFieldsTwoStatic
136 final int one = 0; field in class:SerializationTestClass.TestFieldsOneFinal
140 final int one field in class:SerializationTestClass.TestFieldsTwoFinal
145 volatile int one; field in class:SerializationTestClass.TestFieldsOneVolatile
149 volatile int one; field in class:SerializationTestClass.TestFieldsTwoVolatile
154 transient int one; field in class:SerializationTestClass.TestFieldsOneTransient
158 transient int one; field in class:SerializationTestClass.TestFieldsTwoTransient
[all...]
/dalvik/dx/src/com/android/dx/cf/code/
H A DLocalVariableList.java66 * given instances, where one instance should have only type
68 * result is identical to the one with descriptors, except that
133 * <p><b>Note:</b> At least one of {@code descriptor} or
164 Item one = (Item) get0(i);
166 if ((one != null) && one.matchesAllButType(item)) {
167 return one;
178 * <i>just past</i> the one that sets the variable.
189 Item one = (Item) get0(i);
191 if ((one !
[all...]
H A DByteCatchList.java107 Item one = get(i);
108 if (one.covers(pc) && typeNotFound(one, resultArr, resultSz)) {
109 resultArr[resultSz] = one;
142 CstType one = arr[i].getExceptionClass();
143 if ((one == type) || (one == CstType.OBJECT)) {
200 * Returns a rop-style catches list equivalent to this one.
H A DLineNumberList.java122 Item one = get(i);
123 int onePc = one.getStartPc();
126 bestLine = one.getLineNumber();
/dalvik/dx/src/com/android/dx/dex/code/form/
H A DForm35c.java142 RegisterSpec one = regs.get(i);
143 result += one.getCategory();
150 if (!unsignedFitsInNibble(one.getReg() + one.getCategory() - 1)) {
159 * Returns a register list which is equivalent to the given one,
179 RegisterSpec one = orig.get(i);
180 result.set(wordAt, one);
181 if (one.getCategory() == 2) {
183 RegisterSpec.make(one.getReg() + 1, Type.VOID));
/dalvik/dx/src/com/android/dx/dex/code/
H A DBlockAddresses.java131 BasicBlock one = blocks.get(i);
132 int label = one.getLabel();
133 Insn insn = one.getInsns().get(0);
137 SourcePosition pos = one.getLastInsn().getPosition();
/dalvik/dx/src/com/android/dx/rop/code/
H A DInsnList.java105 * Returns an instance that is identical to this one, except that
118 Insn one = (Insn) get0(i);
119 if (one != null) {
120 result.set0(i, one.withRegisterOffset(delta));
H A DBasicBlockList.java112 BasicBlock one = (BasicBlock) getOrNull0(i);
113 if (one != null) {
114 result += one.getInsns().size();
132 BasicBlock one = (BasicBlock) getOrNull0(i);
133 if (one != null) {
134 InsnList insns = one.getInsns();
178 BasicBlock one = get(i);
179 InsnList insns = one.getInsns();
185 * Returns an instance that is identical to this one, except that
198 BasicBlock one
[all...]
/dalvik/dx/src/com/android/dx/dex/cf/
H A DCfTranslator.java148 Field one = fields.get(i);
150 CstFieldRef field = new CstFieldRef(thisClass, one.getNat());
151 int accessFlags = one.getAccessFlags();
154 TypedConstant constVal = one.getConstantValue();
166 AttributeTranslator.getAnnotations(one.getAttributes());
171 String msg = "...while processing " + one.getName().toHuman() +
172 " " + one.getDescriptor().toHuman();
227 Method one = methods.get(i);
229 CstMethodRef meth = new CstMethodRef(thisClass, one.getNat());
230 int accessFlags = one
[all...]
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DURITest.java1 /* Licensed to the Apache Software Foundation (ASF) under one or more
131 URI one = new URI("file:/C:/test/ws");
135 assertEquals(empty, one.relativize(two));
137 one = new URI("file:/C:/test/ws");
140 assertEquals(result, one.relativize(two));
142 one = new URI("file:/C:/test/ws/");
143 assertEquals(result, one.relativize(two));
164 // URIs with one undefined component (port)
170 // URIs with one undefined component (user-info)

Completed in 500 milliseconds

1234