/art/tools/ahat/src/test/com/android/ahat/ |
D | ProguardMapTest.java | 24 import static org.junit.Assert.assertEquals; 60 assertEquals("foo.bar.Sludge", map.getClassName("foo.bar.Sludge")); in proguardMap() 61 assertEquals("fooBarSludge", map.getClassName("fooBarSludge")); in proguardMap() 62 assertEquals("myfield", map.getFieldName("foo.bar.Sludge", "myfield")); in proguardMap() 63 assertEquals("myfield", map.getFieldName("fooBarSludge", "myfield")); in proguardMap() 66 assertEquals("mymethod", frame.method); in proguardMap() 67 assertEquals("(Lfoo/bar/Sludge;)V", frame.signature); in proguardMap() 68 assertEquals("SourceFile.java", frame.filename); in proguardMap() 69 assertEquals(123, frame.line); in proguardMap() 75 assertEquals("foo.bar.Sludge", map.getClassName("foo.bar.Sludge")); in proguardMap() [all …]
|
D | QueryTest.java | 23 import static org.junit.Assert.assertEquals; 30 assertEquals("bar", query.get("foo", "not found")); in simple() 31 assertEquals("42", query.get("answer", "not found")); in simple() 32 assertEquals(42, query.getLong("answer", 0)); in simple() 33 assertEquals(42, query.getInt("answer", 0)); in simple() 34 assertEquals("not found", query.get("bar", "not found")); in simple() 35 assertEquals("really not found", query.get("bar", "really not found")); in simple() 36 assertEquals(0, query.getLong("bar", 0)); in simple() 37 assertEquals(0, query.getInt("bar", 0)); in simple() 38 assertEquals(42, query.getLong("bar", 42)); in simple() [all …]
|
D | DominatorsTest.java | 28 import static org.junit.Assert.assertEquals; 89 assertEquals("parent", graph.dom("child")); in parentWithChild() 105 assertEquals("parent", graph.dom("left")); in reachableTwoWays() 106 assertEquals("parent", graph.dom("right")); in reachableTwoWays() 107 assertEquals("parent", graph.dom("child")); in reachableTwoWays() 121 assertEquals("parent", graph.dom("child")); in reachableDirectAndIndirect() 122 assertEquals("parent", graph.dom("right")); in reachableDirectAndIndirect() 135 assertEquals("parent", graph.dom("middle")); in subDominator() 136 assertEquals("middle", graph.dom("child")); in subDominator() 149 assertEquals("parent", graph.dom("child")); in childSelfLoop() [all …]
|
D | SiteTest.java | 26 import static org.junit.Assert.assertEquals; 38 assertEquals("DumpedStuff.java", sKnownSite.getFilename()); in objectsAllocatedAtKnownSites() 39 assertEquals("allocateObjectAtKnownSite", sKnownSite.getMethodName()); in objectsAllocatedAtKnownSites() 40 assertEquals(29, sKnownSite.getLineNumber()); in objectsAllocatedAtKnownSites() 45 assertEquals("DumpedStuff.java", sKnownSubSite.getFilename()); in objectsAllocatedAtKnownSites() 46 assertEquals("allocateObjectAtKnownSubSite", sKnownSubSite.getMethodName()); in objectsAllocatedAtKnownSites() 47 assertEquals(37, sKnownSubSite.getLineNumber()); in objectsAllocatedAtKnownSites() 51 assertEquals("DumpedStuff.java", sKnownSubSiteParent.getFilename()); in objectsAllocatedAtKnownSites() 52 assertEquals("allocateObjectAtKnownSite", sKnownSubSiteParent.getMethodName()); in objectsAllocatedAtKnownSites() 53 assertEquals(30, sKnownSubSiteParent.getLineNumber()); in objectsAllocatedAtKnownSites() [all …]
|
D | InstanceTest.java | 31 import static org.junit.Assert.assertEquals; 42 assertEquals("hello, world", str.asString()); in asStringBasic() 49 assertEquals("Sigma (Ʃ) is not ASCII", str.asString()); in asStringNonAscii() 56 assertEquals("embedded\0...", str.asString()); in asStringEmbeddedZero() 63 assertEquals("char thing", str.asString()); in asStringCharArray() 70 assertEquals("hello", str.asString(5)); in asStringTruncated() 77 assertEquals("Sigma (Ʃ)", str.asString(9)); in asStringTruncatedNonAscii() 84 assertEquals("embed", str.asString(5)); in asStringTruncatedEmbeddedZero() 91 assertEquals("char ", str.asString(5)); in asStringCharArrayTruncated() 98 assertEquals("hello, world", str.asString(12)); in asStringExactMax() [all …]
|
/art/test/082-inline-execute/src/ |
D | Main.java | 112 Assert.assertEquals(str0.length(), 0); in test_String_length() 113 Assert.assertEquals(str1.length(), 1); in test_String_length() 114 Assert.assertEquals(str80.length(), 80); in test_String_length() 145 Assert.assertEquals(testStr.length() - 1, 33); // 33 = testStr.length()-1 as a constant. in test_String_charAt() 146 Assert.assertEquals('f', testStr.charAt(33)); in test_String_charAt() 152 Assert.assertEquals(a, testStr.charAt(0)); in test_String_charAt() 153 Assert.assertEquals(b, testStr.charAt(1)); in test_String_charAt() 154 Assert.assertEquals(c, testStr.charAt(10)); in test_String_charAt() 155 Assert.assertEquals(d, testStr.charAt(testStr.length()-1)); in test_String_charAt() 176 Assert.assertEquals(testStr.length(), 12); // 12 = " is the time".length() in test_String_charAtExc() [all …]
|
/art/test/412-new-array/src/ |
D | Main.java | 37 assertEquals(1, a.length); in $opt$TestAllocations() 40 assertEquals(2, b.length); in $opt$TestAllocations() 43 assertEquals(3, c.length); in $opt$TestAllocations() 46 assertEquals(4, d.length); in $opt$TestAllocations() 49 assertEquals(5, e.length); in $opt$TestAllocations() 52 assertEquals(6, f.length); in $opt$TestAllocations() 55 assertEquals(7, g.length); in $opt$TestAllocations() 58 assertEquals(8, h.length); in $opt$TestAllocations() 61 assertEquals(9, i.length); in $opt$TestAllocations() 66 assertEquals(1, a.length); in $opt$TestWithInitializations() [all …]
|
/art/test/411-optimizing-arith/src/ |
D | NegTest.java | 22 public static void assertEquals(int expected, int result) { in assertEquals() method in NegTest 28 public static void assertEquals(long expected, long result) { in assertEquals() method in NegTest 34 public static void assertEquals(float expected, float result) { in assertEquals() method in NegTest 40 public static void assertEquals(String expected, float result) { in assertEquals() method in NegTest 46 public static void assertEquals(double expected, double result) { in assertEquals() method in NegTest 52 public static void assertEquals(String expected, double result) { in assertEquals() method in NegTest 82 assertEquals(-1, $opt$noinline$NegInt(1)); in negInt() 83 assertEquals(1, $opt$noinline$NegInt(-1)); in negInt() 84 assertEquals(0, $opt$noinline$NegInt(0)); in negInt() 85 assertEquals(51, $opt$noinline$NegInt(-51)); in negInt() [all …]
|
/art/test/561-divrem/src/ |
D | Main.java | 18 public static void assertEquals(int expected, int actual) { in assertEquals() method in Main 24 public static void assertEquals(long expected, long actual) { in assertEquals() method in Main 31 assertEquals(0, $noinline$divInt(1)); in main() 32 assertEquals(1, $noinline$remInt(1)); in main() 34 assertEquals(0, $noinline$divInt(-1)); in main() 35 assertEquals(-1, $noinline$remInt(-1)); in main() 37 assertEquals(0, $noinline$divInt(0)); in main() 38 assertEquals(0, $noinline$remInt(0)); in main() 40 assertEquals(1, $noinline$divInt(Integer.MIN_VALUE)); in main() 41 assertEquals(0, $noinline$remInt(Integer.MIN_VALUE)); in main() [all …]
|
/art/test/414-static-fields/src/ |
D | Main.java | 34 assertEquals(42, staticField); in $opt$TestThisClassStaticField() 38 assertEquals(41, Other.staticField); in $opt$TestOtherClassStaticField() 43 assertEquals(a + 42, a + staticField); in $opt$TestAddThisClassStaticField() 48 assertEquals(a + 41, a + Other.staticField); in $opt$TestAddOtherClassStaticField() 52 assertEquals(40, OtherWithClinit.staticField); in $opt$TestOtherClassWithClinitStaticField() 56 assertEquals(false, sZ); in $opt$TestAccess() 57 assertEquals(0, sB); in $opt$TestAccess() 58 assertEquals(0, sC); in $opt$TestAccess() 59 assertEquals(0, sI); in $opt$TestAccess() 60 assertEquals(0, sJ); in $opt$TestAccess() [all …]
|
/art/test/407-arrays/src/ |
D | Main.java | 35 assertEquals(false, bools[0]); in $opt$testReads() 36 assertEquals(false, bools[index]); in $opt$testReads() 38 assertEquals(0, bytes[0]); in $opt$testReads() 39 assertEquals(0, bytes[index]); in $opt$testReads() 41 assertEquals(0, chars[0]); in $opt$testReads() 42 assertEquals(0, chars[index]); in $opt$testReads() 44 assertEquals(0, shorts[0]); in $opt$testReads() 45 assertEquals(0, shorts[index]); in $opt$testReads() 47 assertEquals(0, ints[0]); in $opt$testReads() 48 assertEquals(0, ints[index]); in $opt$testReads() [all …]
|
/art/test/406-fields/src/ |
D | Main.java | 27 assertEquals(false, fields.iZ); in $opt$testAll() 28 assertEquals(0, fields.iB); in $opt$testAll() 29 assertEquals(0, fields.iC); in $opt$testAll() 30 assertEquals(0, fields.iI); in $opt$testAll() 31 assertEquals(0, fields.iJ); in $opt$testAll() 32 assertEquals(0, fields.iS); in $opt$testAll() 33 assertEquals(0.0f, fields.iF); in $opt$testAll() 34 assertEquals(0.0, fields.iD); in $opt$testAll() 48 assertEquals(true, fields.iZ); in $opt$testAll() 49 assertEquals(-2, fields.iB); in $opt$testAll() [all …]
|
/art/test/410-floats/src/ |
D | Main.java | 19 assertEquals(4.2f, returnFloat()); in main() 23 assertEquals(45.4f, returnFloat(a)); in main() 25 assertEquals(4.4, returnDouble()); in main() 28 assertEquals(42.4, returnDouble(b)); in main() 30 assertEquals(4.2f, invokeReturnFloat()); in main() 31 assertEquals(4.4, invokeReturnDouble()); in main() 32 assertEquals(4.2f, takeAFloat(4.2f)); in main() 33 assertEquals(3.1, takeADouble(3.1)); in main() 34 assertEquals(12.7, takeThreeDouble(3.1, 4.4, 5.2)); in main() 35 assertEquals(12.7f, takeThreeFloat(3.1f, 4.4f, 5.2f)); in main() [all …]
|
/art/test/569-checker-pattern-replacement/src/ |
D | Main.java | 1160 assertEquals("arbitrary string", staticReturnArg2("arbitrary string")); in main() 1161 assertEquals(4321L, returnArg1(s, 4321L)); in main() 1163 assertEquals(9, staticReturn9()); in main() 1164 assertEquals(7, return7(s)); in main() 1165 assertEquals(null, staticReturnNull()); in main() 1166 assertEquals(null, returnNull(s)); in main() 1168 assertEquals(42, getInt(s)); in main() 1169 assertEquals(-42.0, getDouble(s)); in main() 1170 assertEquals(null, getObject(s)); in main() 1171 assertEquals("placeholder", getString(s)); in main() [all …]
|
/art/test/423-invoke-interface/src/ |
D | Main.java | 92 public static void assertEquals(int expected, int value) { in assertEquals() method in Main 99 assertEquals(factor * 1, object.return1()); in $opt$InvokeInterface() 100 assertEquals(factor * 2, object.return2()); in $opt$InvokeInterface() 101 assertEquals(factor * 3, object.return3()); in $opt$InvokeInterface() 102 assertEquals(factor * 4, object.return4()); in $opt$InvokeInterface() 103 assertEquals(factor * 5, object.return5()); in $opt$InvokeInterface() 104 assertEquals(factor * 6, object.return6()); in $opt$InvokeInterface() 105 assertEquals(factor * 7, object.return7()); in $opt$InvokeInterface() 106 assertEquals(factor * 8, object.return8()); in $opt$InvokeInterface() 107 assertEquals(factor * 9, object.return9()); in $opt$InvokeInterface() [all …]
|
/art/test/685-shifts/src/ |
D | Main.java | 38 private static void assertEquals(long expected, long actual) { in assertEquals() method in Main 47 assertEquals(smallLong, (Long)m.invoke(null, smallLong)); in main() 48 assertEquals(longLong, (Long)m.invoke(null, longLong)); in main() 51 assertEquals(smallLong, (Long)m.invoke(null, smallLong)); in main() 52 assertEquals(longLong, (Long)m.invoke(null, longLong)); in main() 55 assertEquals(smallLong, (Long)m.invoke(null, smallLong)); in main() 56 assertEquals(longLong, (Long)m.invoke(null, longLong)); in main() 59 assertEquals(smallLongShlOne, (Long)m.invoke(null, smallLong)); in main() 60 assertEquals(longLongShlOne, (Long)m.invoke(null, longLong)); in main() 63 assertEquals(smallLongShrOne, (Long)m.invoke(null, smallLong)); in main() [all …]
|
/art/test/021-string2/src/junit/framework/ |
D | Assert.java | 62 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() method in Assert 73 static public void assertEquals(Object expected, Object actual) { in assertEquals() method in Assert 74 assertEquals(null, expected, actual); in assertEquals() 79 static public void assertEquals(String message, String expected, String actual) { in assertEquals() method in Assert 90 static public void assertEquals(String expected, String actual) { in assertEquals() method in Assert 91 assertEquals(null, expected, actual); in assertEquals() 98 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() method in Assert 108 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() method in Assert 109 assertEquals(null, expected, actual, delta); in assertEquals() 116 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() method in Assert [all …]
|
/art/test/082-inline-execute/src/junit/framework/ |
D | Assert.java | 62 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() method in Assert 73 static public void assertEquals(Object expected, Object actual) { in assertEquals() method in Assert 74 assertEquals(null, expected, actual); in assertEquals() 79 static public void assertEquals(String message, String expected, String actual) { in assertEquals() method in Assert 90 static public void assertEquals(String expected, String actual) { in assertEquals() method in Assert 91 assertEquals(null, expected, actual); in assertEquals() 98 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() method in Assert 108 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() method in Assert 109 assertEquals(null, expected, actual, delta); in assertEquals() 116 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() method in Assert [all …]
|
/art/test/201-built-in-except-detail-messages/src/ |
D | Main.java | 33 private static void assertEquals(String expected, String actual) { in assertEquals() method in Main 59 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess() 67 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess() 75 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess() 83 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess() 91 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess() 99 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess() 110 assertEquals("java.lang.Exception cannot be stored in an array of type java.lang.String[]", in arrayStore() 120 assertEquals("java.lang.Integer cannot be stored in an array of type Main$C[][]", in arrayStore() 130 assertEquals("Main$C[] cannot be stored in an array of type java.lang.Float[][]", in arrayStore() [all …]
|
/art/test/953-invoke-polymorphic-compiler/src/ |
D | Main.java | 44 public static void assertEquals(int i1, int i2) { in assertEquals() method in Main 49 public static void assertEquals(long i1, long i2) { in assertEquals() method in Main 54 public static void assertEquals(Object o, Object p) { in assertEquals() method in Main 60 public static void assertEquals(String s1, String s2) { in assertEquals() method in Main 117 assertEquals((int) mh.invokeExact(33, -4), 33); in $opt$BasicTest() 118 assertEquals((int) mh.invokeExact(-4, 33), 33); in $opt$BasicTest() 123 assertEquals((int) mh.invokeExact(33, -4, 17), 33); in $opt$BasicTest() 124 assertEquals((int) mh.invokeExact(-4, 17, 33), 17); in $opt$BasicTest() 125 assertEquals((int) mh.invokeExact(17, 33, -4), 33); in $opt$BasicTest() 131 assertEquals((int) mh.invokeExact(33, -4, 77, 88, 99, 111), 33); in $opt$BasicTest() [all …]
|
/art/test/713-varhandle-invokers/src/ |
D | Main.java | 49 private static void assertEquals(int expected, int actual) { in assertEquals() method in Main 55 private static void assertEquals(float expected, float actual) { in assertEquals() method in Main 61 private static void assertEquals(double expected, double actual) { in assertEquals() method in Main 92 assertEquals(3, (int) invokerMethodHandle.invokeExact(fieldVarHandle, this, 4)); in run() 93 assertEquals(4, field); in run() 106 assertEquals(4, field); in run() 113 assertEquals(4, field); in run() 120 assertEquals(4, field); in run() 127 assertEquals(4, field); in run() 135 assertEquals(4, field); in run() [all …]
|
/art/test/580-fp16/src-art/ |
D | Main.java | 31 public static void assertEquals(short expected, short calculated) { in assertEquals() method in Main 36 public static void assertEquals(float expected, float calculated) { in assertEquals() method in Main 60 assertEquals(h, FP16.toHalf(FP16.toFloat(h))); in testHalfToFloatToHalfConversions() 68 assertEquals(FP16.POSITIVE_ZERO, FP16.toHalf(0.0f)); in testToHalf() 69 assertEquals(FP16.NEGATIVE_ZERO, FP16.toHalf(-0.0f)); in testToHalf() 70 assertEquals(FP16.NaN, FP16.toHalf(Float.NaN)); in testToHalf() 71 assertEquals(FP16.POSITIVE_INFINITY, FP16.toHalf(Float.POSITIVE_INFINITY)); in testToHalf() 72 assertEquals(FP16.NEGATIVE_INFINITY, FP16.toHalf(Float.NEGATIVE_INFINITY)); in testToHalf() 74 assertEquals((short) 0x3c01, FP16.toHalf(1.0009765625f)); in testToHalf() 75 assertEquals((short) 0xc000, FP16.toHalf(-2.0f)); in testToHalf() [all …]
|
/art/test/697-checker-string-append/src/ |
D | Main.java | 123 assertEquals(expected, result); in testAppendStringAndLong() 185 assertEquals(expected, result); in testAppendStringAndInt() 194 assertEquals("nullnull", $noinline$appendStringAndString(null, null)); in testAppendStringAndString() 195 assertEquals("nullTEST", $noinline$appendStringAndString(null, "TEST")); in testAppendStringAndString() 196 assertEquals("TESTnull", $noinline$appendStringAndString("TEST", null)); in testAppendStringAndString() 197 assertEquals("abcDEFGH", $noinline$appendStringAndString("abc", "DEFGH")); in testAppendStringAndString() 199 assertEquals("test\u0131", $noinline$appendStringAndString("test", "\u0131")); in testAppendStringAndString() 200 assertEquals("\u0131test", $noinline$appendStringAndString("\u0131", "test")); in testAppendStringAndString() 201 assertEquals("\u0131test\u0131", $noinline$appendStringAndString("\u0131", "test\u0131")); in testAppendStringAndString() 222 assertEquals("x17-1q", in testMiscelaneous() [all …]
|
/art/test/712-varhandle-invocations/src/ |
D | VarHandleUnitTest.java | 46 assertEquals(true, value); in assertTrue() 50 assertEquals(false, value); in assertFalse() 53 public final void assertEquals(boolean expected, boolean actual) { in assertEquals() method in VarHandleUnitTest 54 assertEquals(Boolean.valueOf(expected), Boolean.valueOf(actual)); in assertEquals() 57 public final void assertEquals(byte expected, byte actual) { in assertEquals() method in VarHandleUnitTest 58 assertEquals(Byte.valueOf(expected), Byte.valueOf(actual)); in assertEquals() 61 public final void assertEquals(char expected, char actual) { in assertEquals() method in VarHandleUnitTest 62 assertEquals(Character.valueOf(expected), Character.valueOf(actual)); in assertEquals() 65 public final void assertEquals(short expected, short actual) { in assertEquals() method in VarHandleUnitTest 66 assertEquals(Short.valueOf(expected), Short.valueOf(actual)); in assertEquals() [all …]
|
/art/test/445-checker-licm/src/ |
D | Main.java | 231 public static void assertEquals(int expected, int actual) { in assertEquals() method in Main 238 assertEquals(10, div()); in main() 239 assertEquals(100, innerDiv()); in main() 240 assertEquals(18900, innerMul()); in main() 241 assertEquals(105, divByA(2, 0)); in main() 242 assertEquals(12, arrayLength(new int[] { 4, 8 })); in main() 243 assertEquals(10, clinitCheck()); in main() 244 assertEquals(21, divAndIntrinsic(new int[] { 4, -2, 8, -3 })); in main() 245 assertEquals(45, invariantBoundIntrinsic(-10)); in main() 246 assertEquals(30, invariantBodyIntrinsic(2, 3)); in main() [all …]
|