/dalvik/dx/tests/116-leb128/com/android/dx/util/ |
D | Leb128UtilsTest.java | 28 assertEquals(0, Leb128.readUnsignedLeb128(new ByteArrayByteInput((byte) 0))); in testDecodeUnsignedLeb() 29 assertEquals(1, Leb128.readUnsignedLeb128(new ByteArrayByteInput((byte) 1))); in testDecodeUnsignedLeb() 30 assertEquals(127, Leb128.readUnsignedLeb128(new ByteArrayByteInput((byte) 0x7f))); in testDecodeUnsignedLeb() 31 assertEquals(16256, Leb128.readUnsignedLeb128( in testDecodeUnsignedLeb() 36 assertEquals(new byte[] { 0 }, encodeUnsignedLeb(0)); in testEncodeUnsignedLeb() 37 assertEquals(new byte[] { 1 }, encodeUnsignedLeb(1)); in testEncodeUnsignedLeb() 38 assertEquals(new byte[] { 0x7f }, encodeUnsignedLeb(127)); in testEncodeUnsignedLeb() 39 assertEquals(new byte[] { (byte) 0x80, 0x7f }, encodeUnsignedLeb(16256)); in testEncodeUnsignedLeb() 40 assertEquals(new byte[] { (byte) 0xb4, 0x07 }, encodeUnsignedLeb(0x3b4)); in testEncodeUnsignedLeb() 41 assertEquals(new byte[] { (byte) 0x8c, 0x08 }, encodeUnsignedLeb(0x40c)); in testEncodeUnsignedLeb() [all …]
|
/dalvik/tests/082-inline-execute/src/junit/framework/ |
D | Assert.java | 59 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() method in Assert 70 static public void assertEquals(Object expected, Object actual) { in assertEquals() method in Assert 71 assertEquals(null, expected, actual); in assertEquals() 76 static public void assertEquals(String message, String expected, String actual) { in assertEquals() method in Assert 86 static public void assertEquals(String expected, String actual) { in assertEquals() method in Assert 87 assertEquals(null, expected, actual); in assertEquals() 94 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() method in Assert 107 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() method in Assert 108 assertEquals(null, expected, actual, delta); in assertEquals() 115 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() method in Assert [all …]
|
/dalvik/tests/021-string2/src/junit/framework/ |
D | Assert.java | 59 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() method in Assert 70 static public void assertEquals(Object expected, Object actual) { in assertEquals() method in Assert 71 assertEquals(null, expected, actual); in assertEquals() 76 static public void assertEquals(String message, String expected, String actual) { in assertEquals() method in Assert 86 static public void assertEquals(String expected, String actual) { in assertEquals() method in Assert 87 assertEquals(null, expected, actual); in assertEquals() 94 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() method in Assert 107 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() method in Assert 108 assertEquals(null, expected, actual, delta); in assertEquals() 115 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() method in Assert [all …]
|
/dalvik/dx/tests/115-merge/com/android/dx/merge/ |
D | DexMergeTest.java | 46 assertEquals(1, basic.getDeclaredMethods().length); in testFillArrayData() 66 assertEquals(1, basic.getDeclaredMethods().length); in testTryCatchFinally() 78 assertEquals(1, basic.getDeclaredMethods().length); in testStaticValues() 81 assertEquals((byte) 1, staticValues.getField("a").get(null)); in testStaticValues() 82 assertEquals((short) 2, staticValues.getField("b").get(null)); in testStaticValues() 83 assertEquals('C', staticValues.getField("c").get(null)); in testStaticValues() 84 assertEquals(0xabcd1234, staticValues.getField("d").get(null)); in testStaticValues() 85 assertEquals(4660046610375530309L,staticValues.getField("e").get(null)); in testStaticValues() 86 assertEquals(0.5f, staticValues.getField("f").get(null)); in testStaticValues() 87 assertEquals(-0.25, staticValues.getField("g").get(null)); in testStaticValues() [all …]
|
/dalvik/dx/tests/117-modified-utf8/com/android/dx/util/ |
D | Mutf8Test.java | 31 assertEquals('A', in.readByte()); in testDecode() 32 assertEquals("BC\u0000", Mutf8.decode(in, new char[3])); in testDecode() 33 assertEquals('E', in.readByte()); in testDecode() 37 assertEquals(Arrays.toString(new byte[] { 'B', 'C', (byte) 0xc0, (byte) 0x80 }), in testEncode()
|
/dalvik/dx/junit-tests/com/android/dx/util/ |
D | BitsTest.java | 23 assertEquals(label(0), 0, Bits.makeBitSet(0).length); in test_makeBitSet() 26 assertEquals(label(i), 1, Bits.makeBitSet(i).length); in test_makeBitSet() 30 assertEquals(label(i), 2, Bits.makeBitSet(i).length); in test_makeBitSet() 38 assertEquals(label(i), expect, Bits.makeBitSet(i).length); in test_makeBitSet() 48 assertEquals(label(i), expect * 32, in test_getMax() 98 assertEquals(label(1), 0x41, bits[0]); in test1_set1() 99 assertEquals(label(2), 0xfffffbf7, bits[1]); in test1_set1() 184 assertEquals(label(i), 0, Bits.bitCount(new int[i])); in test1_bitCount() 208 assertEquals(label(i), count, Bits.bitCount(bits)); in test2_bitCount() 273 assertEquals(label(i), -1, Bits.findFirst(bits, i)); in test1_findFirst1() [all …]
|
D | BitIntSetTest.java | 26 assertEquals(0, set.elements()); in test_basic() 36 assertEquals(3, set.elements()); in test_basic() 56 assertEquals(iter.next(), 0); in test_iterator() 58 assertEquals(iter.next(), 1); in test_iterator() 60 assertEquals(iter.next(), 31); in test_iterator() 110 assertEquals(values[i], iter.next()); in test_expand() 196 assertEquals(set.toString(), "{}"); in test_toString() 200 assertEquals(set.toString(), "{1}"); in test_toString() 204 assertEquals(set.toString(), "{1, 2}"); in test_toString()
|
D | ListIntSetTest.java | 26 assertEquals(0, set.elements()); in test_basic() 36 assertEquals(3, set.elements()); in test_basic() 56 assertEquals(iter.next(), 0); in test_iterator() 58 assertEquals(iter.next(), 1); in test_iterator() 60 assertEquals(iter.next(), 31); in test_iterator() 187 assertEquals(set.toString(), "{}"); in test_toString() 191 assertEquals(set.toString(), "{1}"); in test_toString() 195 assertEquals(set.toString(), "{1, 2}"); in test_toString()
|
/dalvik/tests/021-string2/src/ |
D | Main.java | 35 Assert.assertEquals(test.compareTo(test1), 0); in main() 40 Assert.assertEquals(test.compareTo(sub), 0); in main() 41 Assert.assertEquals(sub.compareTo(test), 0); in main() 78 Assert.assertEquals(4, strings.length); in main() 80 Assert.assertEquals("this is a path", test.replaceAll("/", " ")); in main() 81 Assert.assertEquals("this is a path", test.replace("/", " ")); in main()
|
/dalvik/tests/082-inline-execute/src/ |
D | Main.java | 150 Assert.assertEquals(str32.compareTo(str33), -1); in stringCompareToTest() 151 Assert.assertEquals(str33.compareTo(str32), 1); in stringCompareToTest() 157 Assert.assertEquals(test.compareTo(test1), 0); in stringCompareToTest() 162 Assert.assertEquals(test.compareTo(sub), 0); in stringCompareToTest() 163 Assert.assertEquals(sub.compareTo(test), 0); in stringCompareToTest() 199 Assert.assertEquals(4, strings.length); in stringCompareToTest() 201 Assert.assertEquals("this is a path", test.replaceAll("/", " ")); in stringCompareToTest() 202 Assert.assertEquals("this is a path", test.replace("/", " ")); in stringCompareToTest()
|
/dalvik/dx/tests/119-merge-conflict/com/android/dx/merge/ |
D | MergeConflictTest.java | 39 assertEquals("Multiple dex files define Ltestdata/A;", expected.getMessage()); in testMergeConflict()
|