/dalvik/libcore/concurrent/src/test/java/tests/api/java/util/concurrent/ |
D | AtomicMarkableReferenceTest.java | 26 AtomicMarkableReference ai = new AtomicMarkableReference(one, false); in testConstructor() 27 assertEquals(one,ai.getReference()); in testConstructor() 40 AtomicMarkableReference ai = new AtomicMarkableReference(one, false); in testGetSet() 41 assertEquals(one,ai.getReference()); in testGetSet() 43 assertEquals(one, ai.get(mark)); in testGetSet() 50 ai.set(one, true); in testGetSet() 51 assertEquals(one,ai.getReference()); in testGetSet() 53 assertEquals(one, ai.get(mark)); in testGetSet() 62 AtomicMarkableReference ai = new AtomicMarkableReference(one, false); in testAttemptMark() 64 assertTrue(ai.attemptMark(one, true)); in testAttemptMark() [all …]
|
D | AtomicStampedReferenceTest.java | 26 AtomicStampedReference ai = new AtomicStampedReference(one, 0); in testConstructor() 27 assertEquals(one,ai.getReference()); in testConstructor() 40 AtomicStampedReference ai = new AtomicStampedReference(one, 0); in testGetSet() 41 assertEquals(one,ai.getReference()); in testGetSet() 43 assertEquals(one, ai.get(mark)); in testGetSet() 50 ai.set(one, 1); in testGetSet() 51 assertEquals(one,ai.getReference()); in testGetSet() 53 assertEquals(one, ai.get(mark)); in testGetSet() 62 AtomicStampedReference ai = new AtomicStampedReference(one, 0); in testAttemptStamp() 64 assertTrue(ai.attemptStamp(one, 1)); in testAttemptStamp() [all …]
|
D | AtomicReferenceTest.java | 27 AtomicReference ai = new AtomicReference(one); in testConstructor() 28 assertEquals(one,ai.get()); in testConstructor() 43 AtomicReference ai = new AtomicReference(one); in testGetSet() 44 assertEquals(one,ai.get()); in testGetSet() 55 AtomicReference ai = new AtomicReference(one); in testCompareAndSet() 56 assertTrue(ai.compareAndSet(one,two)); in testCompareAndSet() 70 final AtomicReference ai = new AtomicReference(one); in testCompareAndSetInMultipleThreads() 77 assertTrue(ai.compareAndSet(one, two)); in testCompareAndSetInMultipleThreads() 92 AtomicReference ai = new AtomicReference(one); in testWeakCompareAndSet() 93 while(!ai.weakCompareAndSet(one,two)); in testWeakCompareAndSet() [all …]
|
D | AtomicReferenceFieldUpdaterTest.java | 77 x = one; in testGetSet() 78 assertEquals(one,a.get(this)); in testGetSet() 97 x = one; in testCompareAndSet() 98 assertTrue(a.compareAndSet(this,one,two)); in testCompareAndSet() 112 x = one; in testCompareAndSetInMultipleThreads() 126 assertTrue(a.compareAndSet(this, one, two)); in testCompareAndSetInMultipleThreads() 147 x = one; in testWeakCompareAndSet() 148 while(!a.weakCompareAndSet(this,one,two)); in testWeakCompareAndSet() 165 x = one; in testGetAndSet() 166 assertEquals(one,a.getAndSet(this, zero)); in testGetAndSet()
|
D | AtomicReferenceArrayTest.java | 52 Integer[] a = { two, one, three, four, seven}; in testConstructor2() 89 ai.set(i, one); in testGetSet() 90 assertEquals(one,ai.get(i)); in testGetSet() 104 ai.set(i, one); in testCompareAndSet() 105 assertTrue(ai.compareAndSet(i, one,two)); in testCompareAndSet() 121 a.set(0, one); in testCompareAndSetInMultipleThreads() 128 assertTrue(a.compareAndSet(0, one, two)); in testCompareAndSetInMultipleThreads() 145 ai.set(i, one); in testWeakCompareAndSet() 146 while(!ai.weakCompareAndSet(i, one,two)); in testWeakCompareAndSet() 160 ai.set(i, one); in testGetAndSet() [all …]
|
D | ExchangerTest.java | 32 Object v = e.exchange(one); in testExchange() 35 threadAssertEquals(w, one); in testExchange() 45 threadAssertEquals(v, one); in testExchange() 71 Object v = e.exchange(one, SHORT_DELAY_MS, TimeUnit.MILLISECONDS); in testTimedExchange() 74 threadAssertEquals(w, one); in testTimedExchange() 86 threadAssertEquals(v, one); in testTimedExchange() 114 e.exchange(one); in testExchange_InterruptedException() 187 Object v = e.exchange(one); in testReplacementAfterExchange() 199 threadAssertEquals(v, one); in testReplacementAfterExchange() 213 threadAssertEquals(w, one); in testReplacementAfterExchange()
|
D | ConcurrentHashMapTest.java | 58 map.put(one, "A"); in myMap5() 74 map.put(one, "A"); in map5() 120 assertTrue(map.containsKey(one)); in testContainsKey() 169 assertEquals("A", (String)map.get(one)); in testGet() 205 assertTrue(s.contains(one)); in testKeySet() 237 (e.getKey().equals(one) && e.getValue().equals("A")) || in testEntrySet() 253 assertTrue(empty.containsKey(one)); in testPutAll() 274 assertEquals("A", map.putIfAbsent(one, "Z")); in testPutIfAbsent2() 291 assertNotNull(map.replace(one, "Z")); in testReplace2() 292 assertEquals("Z", map.get(one)); in testReplace2() [all …]
|
/dalvik/libcore/luni/src/test/java/tests/api/java/io/ |
D | SerializationTestClass.java | 98 public int one; field in SerializationTestClass.TestFieldsOnePublic 102 public int one; field in SerializationTestClass.TestFieldsTwoPublic 108 private int one; field in SerializationTestClass.TestFieldsOnePrivate 113 private int one; field in SerializationTestClass.TestFieldsTwoPrivate 118 protected int one; field in SerializationTestClass.TestFieldsOneProtected 122 protected int one; field in SerializationTestClass.TestFieldsTwoProtected 127 static int one; field in SerializationTestClass.TestFieldsOneStatic 131 static int one; field in SerializationTestClass.TestFieldsTwoStatic 136 final int one = 0; field in SerializationTestClass.TestFieldsOneFinal 140 final int one = 0; field in SerializationTestClass.TestFieldsTwoFinal [all …]
|
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | TimestampTest.java | 90 Timestamp one = new Timestamp(now, cpath); in testEqualsObject() local 93 assertTrue(one.equals(one)); in testEqualsObject() 94 assertTrue(one.equals(two)); in testEqualsObject() 95 assertTrue(two.equals(one)); in testEqualsObject() 96 assertFalse(one.equals(null)); in testEqualsObject() 97 assertFalse(one.equals(new Object())); in testEqualsObject() 100 assertFalse(one.equals(two1)); in testEqualsObject() 153 Timestamp one = new Timestamp(now, cpath); in testHashCode() local 159 assertTrue(one.hashCode() == two.hashCode()); in testHashCode() 160 assertTrue(one.hashCode() != three.hashCode()); in testHashCode()
|
D | CodeSignerTest.java | 123 CodeSigner one = new CodeSigner(cpath, ts); in testEqualsObject() local 130 assertTrue(one.equals(one)); in testEqualsObject() 131 assertTrue(one.equals(two)); in testEqualsObject() 132 assertTrue(two.equals(one)); in testEqualsObject() 133 assertFalse(one.equals(three)); in testEqualsObject() 134 assertFalse(three.equals(one)); in testEqualsObject() 139 assertFalse( one.equals(null) ); in testEqualsObject() 140 assertFalse( one.equals(new Object()) ); in testEqualsObject()
|
/dalvik/dx/src/com/android/dx/rop/code/ |
D | BasicBlockList.java | 112 BasicBlock one = (BasicBlock) getOrNull0(i); in getInstructionCount() local 113 if (one != null) { in getInstructionCount() 114 result += one.getInsns().size(); in getInstructionCount() 132 BasicBlock one = (BasicBlock) getOrNull0(i); in getEffectiveInstructionCount() local 133 if (one != null) { in getEffectiveInstructionCount() 134 InsnList insns = one.getInsns(); in getEffectiveInstructionCount() 178 BasicBlock one = get(i); in forEachInsn() local 179 InsnList insns = one.getInsns(); in forEachInsn() 198 BasicBlock one = (BasicBlock) get0(i); in withRegisterOffset() local 199 if (one != null) { in withRegisterOffset() [all …]
|
D | InsnList.java | 118 Insn one = (Insn) get0(i); in withRegisterOffset() local 119 if (one != null) { in withRegisterOffset() 120 result.set0(i, one.withRegisterOffset(delta)); in withRegisterOffset()
|
D | RegisterSpecList.java | 312 RegisterSpec one = (RegisterSpec) get0(i); in withOffset() local 313 if (one != null) { in withOffset() 314 result.set0(i, one.withOffset(delta)); in withOffset() 346 RegisterSpec one = (RegisterSpec) get0(i); in withSequentialRegisters() local 347 result.set0(i, one.withReg(base)); in withSequentialRegisters() 351 base += one.getCategory(); in withSequentialRegisters()
|
/dalvik/dx/src/com/android/dx/dex/code/form/ |
D | Form35c.java | 142 RegisterSpec one = regs.get(i); in wordCount() local 143 result += one.getCategory(); in wordCount() 150 if (!unsignedFitsInNibble(one.getReg() + one.getCategory() - 1)) { in wordCount() 179 RegisterSpec one = orig.get(i); in explicitize() local 180 result.set(wordAt, one); in explicitize() 181 if (one.getCategory() == 2) { in explicitize() 183 RegisterSpec.make(one.getReg() + 1, Type.VOID)); in explicitize()
|
/dalvik/dx/src/com/android/dx/dex/file/ |
D | MixedItemSection.java | 279 OffsettedItem one = items.get(i); in prepare0() local 280 one.addContents(file); in prepare0() 310 OffsettedItem one = items.get(i); in placeItems() local 312 int placedAt = one.place(this, outAt); in placeItems() 316 one); in placeItems() 319 outAt = placedAt + one.writeSize(); in placeItems() 322 "...while placing " + one); in placeItems() 337 for (OffsettedItem one : items) { in writeTo0() 346 int alignMask = one.getAlignment() - 1; in writeTo0() 354 one.writeTo(file, out); in writeTo0() [all …]
|
D | UniformItemSection.java | 75 for (Item one : items()) { in prepare0() 76 one.addContents(file); in prepare0() 86 for (Item one : items()) { in writeTo0() 87 one.writeTo(file, out); in writeTo0()
|
D | DexFile.java | 503 Section one = sections[i]; in toDex0() local 504 int placedAt = one.setFileOffset(offset); in toDex0() 510 if (one == map) { in toDex0() 520 if (one instanceof MixedItemSection) { in toDex0() 525 ((MixedItemSection) one).placeItems(); in toDex0() 528 offset = placedAt + one.writeSize(); in toDex0() 547 Section one = sections[i]; in toDex0() local 548 int zeroCount = one.getFileOffset() - out.getCursor(); in toDex0() 553 out.writeZeroes(one.getFileOffset() - out.getCursor()); in toDex0() 554 one.writeTo(out); in toDex0()
|
/dalvik/tests/047-returns/ |
D | expected.txt | 2 one running 3 one
|
/dalvik/dx/src/com/android/dx/cf/code/ |
D | ByteCatchList.java | 107 Item one = get(i); in listFor() local 108 if (one.covers(pc) && typeNotFound(one, resultArr, resultSz)) { in listFor() 109 resultArr[resultSz] = one; in listFor() 142 CstType one = arr[i].getExceptionClass(); in typeNotFound() local 143 if ((one == type) || (one == CstType.OBJECT)) { in typeNotFound()
|
D | LocalVariableList.java | 165 Item one = (Item) get0(i); in itemToLocal() local 167 if ((one != null) && one.matchesAllButType(item)) { in itemToLocal() 168 return one; in itemToLocal() 190 Item one = (Item) get0(i); in pcAndIndexToLocal() local 192 if ((one != null) && one.matchesPcAndIndex(pc, index)) { in pcAndIndexToLocal() 193 return one; in pcAndIndexToLocal()
|
/dalvik/dx/src/com/android/dx/dex/cf/ |
D | CfTranslator.java | 148 Field one = fields.get(i); in processFields() local 150 CstFieldRef field = new CstFieldRef(thisClass, one.getNat()); in processFields() 151 int accessFlags = one.getAccessFlags(); in processFields() 154 TypedConstant constVal = one.getConstantValue(); in processFields() 166 AttributeTranslator.getAnnotations(one.getAttributes()); in processFields() 171 String msg = "...while processing " + one.getName().toHuman() + in processFields() 172 " " + one.getDescriptor().toHuman(); in processFields() 227 Method one = methods.get(i); in processMethods() local 229 CstMethodRef meth = new CstMethodRef(thisClass, one.getNat()); in processMethods() 230 int accessFlags = one.getAccessFlags(); in processMethods() [all …]
|
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
D | URITest.java | 131 URI one = new URI("file:/C:/test/ws"); in test_relativizeBasedOneEclipseCoreResources() local 135 assertEquals(empty, one.relativize(two)); in test_relativizeBasedOneEclipseCoreResources() 137 one = new URI("file:/C:/test/ws"); in test_relativizeBasedOneEclipseCoreResources() 140 assertEquals(result, one.relativize(two)); in test_relativizeBasedOneEclipseCoreResources() 142 one = new URI("file:/C:/test/ws/"); in test_relativizeBasedOneEclipseCoreResources() 143 assertEquals(result, one.relativize(two)); in test_relativizeBasedOneEclipseCoreResources()
|
/dalvik/dx/src/com/android/dx/dex/code/ |
D | BlockAddresses.java | 131 BasicBlock one = blocks.get(i); in setupArrays() local 132 int label = one.getLabel(); in setupArrays() 133 Insn insn = one.getInsns().get(0); in setupArrays() 137 SourcePosition pos = one.getLastInsn().getPosition(); in setupArrays()
|
/dalvik/libcore/math/src/test/java/tests/api/java/math/ |
D | BigIntegerTest.java | 38 BigInteger one = new BigInteger("1", 10); field in BigIntegerTest 491 assertTrue("0=1", !zero.equals(one)); in test_equalsLjava_lang_Object() 493 assertTrue("1=-1", !one.equals(minusOne)); in test_equalsLjava_lang_Object() 509 assertTrue("Smaller number returned >= 0", one.compareTo(two) < 0); in test_compareToLjava_math_BigInteger() 510 assertTrue("Larger number returned >= 0", two.compareTo(one) > 0); in test_compareToLjava_math_BigInteger() 511 assertTrue("Equal numbers did not return 0", one.compareTo(one) == 0); in test_compareToLjava_math_BigInteger() 513 two.negate().compareTo(one) < 0); in test_compareToLjava_math_BigInteger() 575 assertTrue("0+1", zero.add(one).equals(one)); in test_addLjava_math_BigInteger() 576 assertTrue("1+0", one.add(zero).equals(one)); in test_addLjava_math_BigInteger() 577 assertTrue("1+1", one.add(one).equals(two)); in test_addLjava_math_BigInteger() [all …]
|
/dalvik/tests/004-annotations/src/android/test/anno/ |
D | FullyNoted.java | 20 @AnnoSimpleParameter int one, in bar() 29 @AnnoSimpleParameter int one, in bar1()
|