/art/test/427-bitwise/src/ |
Main.java | 21 public static void expectEquals(int expected, int result) { 27 public static void expectEquals(long expected, long result) { 45 expectEquals(1, $opt$And(5, 3)); 46 expectEquals(0, $opt$And(0, 0)); 47 expectEquals(0, $opt$And(0, 3)); 48 expectEquals(0, $opt$And(3, 0)); 49 expectEquals(1, $opt$And(1, -3)); 50 expectEquals(-12, $opt$And(-12, -3)); 52 expectEquals(1, $opt$AndLit8(1)); 53 expectEquals(0, $opt$AndLit8(0)) [all...] |
/art/test/431-optimizing-arith-shifts/src/ |
Main.java | 19 public static void expectEquals(int expected, int result) { 25 public static void expectEquals(long expected, long result) { 41 expectEquals(48, $opt$ShlIntConst2(12)); 42 expectEquals(12, $opt$ShlIntConst0(12)); 43 expectEquals(-48, $opt$ShlInt(-12, 2)); 44 expectEquals(1024, $opt$ShlInt(32, 5)); 46 expectEquals(7, $opt$ShlInt(7, 0)); 47 expectEquals(14, $opt$ShlInt(7, 1)); 48 expectEquals(0, $opt$ShlInt(0, 30)); 50 expectEquals(1073741824L, $opt$ShlInt(1, 30)) [all...] |
/art/test/428-optimizing-arith-rem/src/ |
Main.java | 25 expectEquals(2, $opt$RemConst(6)); 26 expectEquals(2, $opt$Rem(6, 4)); 27 expectEquals(2, $opt$Rem(6, -4)); 28 expectEquals(0, $opt$Rem(6, 3)); 29 expectEquals(0, $opt$Rem(6, -3)); 30 expectEquals(0, $opt$Rem(6, 1)); 31 expectEquals(0, $opt$Rem(6, -1)); 32 expectEquals(-1, $opt$Rem(-7, 3)); 33 expectEquals(-1, $opt$Rem(-7, -3)); 34 expectEquals(0, $opt$Rem(6, 6)) [all...] |
/art/test/416-optimizing-arith-not/src/ |
Main.java | 21 public static void expectEquals(int expected, int result) { 27 public static void expectEquals(long expected, long result) { 39 expectEquals(1, smaliNotInt(-2)); 40 expectEquals(0, smaliNotInt(-1)); 41 expectEquals(-1, smaliNotInt(0)); 42 expectEquals(-2, smaliNotInt(1)); 43 expectEquals(2147483647, smaliNotInt(-2147483648)); // -(2^31) 44 expectEquals(2147483646, smaliNotInt(-2147483647)); // -(2^31 - 1) 45 expectEquals(-2147483647, smaliNotInt(2147483646)); // 2^31 - 2 46 expectEquals(-2147483648, smaliNotInt(2147483647)); // 2^31 - [all...] |
/art/test/567-checker-compare/src/ |
Main.java | 352 expectEquals(-1, compareBooleans(false, true)); 354 expectEquals(0, compareBooleans(false, false)); 355 expectEquals(0, compareBooleans(true, true)); 357 expectEquals(1, compareBooleans(true, false)); 361 expectEquals(-1, compareBytes(Byte.MIN_VALUE, (byte)(Byte.MIN_VALUE + 1))); 362 expectEquals(-1, compareBytes(Byte.MIN_VALUE, (byte)-1)); 363 expectEquals(-1, compareBytes(Byte.MIN_VALUE, (byte)0)); 364 expectEquals(-1, compareBytes(Byte.MIN_VALUE, (byte)1)); 365 expectEquals(-1, compareBytes(Byte.MIN_VALUE, Byte.MAX_VALUE)); 366 expectEquals(-1, compareBytes((byte)-1, (byte)0)) [all...] |
/art/test/589-super-imt/src/ |
Main.java | 112 expectEquals(main.method1(), Main.class); 113 expectEquals(main.method2(), Main.class); 114 expectEquals(main.method3(), Main.class); 115 expectEquals(main.method4(), Main.class); 116 expectEquals(main.method5(), Main.class); 117 expectEquals(main.method6(), Main.class); 118 expectEquals(main.method7(), Main.class); 119 expectEquals(main.method8(), Main.class); 120 expectEquals(main.method9(), Main.class); 121 expectEquals(main.method10(), Main.class) [all...] |
/external/chromium-libpac/test/js-unittest/ |
bindings.js | 13 function expectEquals(expectation, actual) { 24 expectEquals(undefined, dnsResolve()); 25 expectEquals(undefined, dnsResolve(null)); 26 expectEquals(undefined, dnsResolve(undefined)); 27 expectEquals('127.0.0.1', dnsResolve("")); 28 expectEquals(undefined, dnsResolve({foo: 'bar'})); 29 expectEquals(undefined, dnsResolve(fn)); 30 expectEquals(undefined, dnsResolve(['3'])); 31 expectEquals('127.0.0.1', dnsResolve("arg1", "arg2", "arg3", "arg4"));
|
pac_library_unittest.js | 43 t.expectEquals(0, dnsDomainLevels("www")); 44 t.expectEquals(2, dnsDomainLevels("www.google.com")); 45 t.expectEquals(3, dnsDomainLevels("192.168.1.1")); 80 t.expectEquals("::1;::2;::3", sortIpAddressList("::2;::3;::1")); 81 t.expectEquals( 88 t.expectEquals("127.0.0.1", sortIpAddressList("127.0.0.1")); 89 t.expectEquals("::1", sortIpAddressList("::1")) 92 t.expectEquals("0:0::1;192.168.1.1", sortIpAddressList("192.168.1.1;0:0::1")); 95 t.expectEquals("::1;192.168.1.3", sortIpAddressList("::1;192.168.1.3")); 98 t.expectEquals("0::1;::1;0:0::1", sortIpAddressList("0::1;::1;0:0::1")) [all...] |
/art/test/566-checker-signum/src/ |
Main.java | 138 expectEquals(0, signBoolean(false)); 139 expectEquals(1, signBoolean(true)); 143 expectEquals(-1, signByte((byte)Byte.MIN_VALUE)); 144 expectEquals(-1, signByte((byte)-64)); 145 expectEquals(-1, signByte((byte)-1)); 146 expectEquals(0, signByte((byte)0)); 147 expectEquals(1, signByte((byte)1)); 148 expectEquals(1, signByte((byte)64)); 149 expectEquals(1, signByte((byte)Byte.MAX_VALUE)); 153 expectEquals(-1, signShort((short)Short.MIN_VALUE)) [all...] |
/art/test/561-shared-slowpaths/src/ |
Main.java | 51 expectEquals(z, 0); 53 expectEquals(x[i], i); 54 expectEquals(y[i], i); 65 expectEquals(z, 1); 67 expectEquals(x[i], 0); 68 expectEquals(y[i], 0); 79 expectEquals(z, 1); 81 expectEquals(x[i], 0); 82 expectEquals(y[i], 0); 93 expectEquals(z, 1) [all...] |
/art/test/703-floating-point-div/src/ |
Main.java | 22 public static void expectEquals(long expected, long result) { 28 public static void expectEquals(int expected, int result) { 46 expectEquals(Double.doubleToRawLongBits(dPi/d1), 0x1921fb54442d18L); 47 expectEquals(Double.doubleToRawLongBits(dPi/d2), 0xbff921fb54442d18L); 48 expectEquals(Double.doubleToRawLongBits(dPi/d3), 0x7ff0000000000000L); 49 expectEquals(Double.doubleToRawLongBits(dPi/d4), 0x7fe921fb54442d18L); 50 expectEquals(Double.doubleToRawLongBits(dPi/d5), 0x0L); 51 expectEquals(Double.doubleToRawLongBits(dPi/d6), 0x8000000000000000L); 52 expectEquals(Double.doubleToRawLongBits(dPi/d7), 0xfff0000000000000L); 54 expectEquals(Double.doubleToRawLongBits(dPi/d8), 0xc90fdaa22168cL) [all...] |
/art/test/704-multiply-accumulate/src/ |
Main.java | 25 public static void expectEquals(long expected, long result) { 31 public static void expectEquals(int expected, int result) { 50 expectEquals(result, -891); 53 expectEquals(result, -801); 56 expectEquals(result, -2147483648); 59 expectEquals(result, -2147483648); 62 expectEquals(result, 2147483647); 67 expectEquals(result, 200); 72 expectEquals(result, 200); 81 expectEquals(result, 100) [all...] |
/art/test/432-optimizing-cmp/src/ |
Main.java | 33 expectEquals(0, smaliCmpLong(0L, 0L)); 34 expectEquals(0, smaliCmpLong(1L, 1L)); 35 expectEquals(-1, smaliCmpLong(1L, 2L)); 36 expectEquals(1, smaliCmpLong(2L, 1L)); 37 expectEquals(-1, smaliCmpLong(Long.MIN_VALUE, Long.MAX_VALUE)); 38 expectEquals(1, smaliCmpLong(Long.MAX_VALUE, Long.MIN_VALUE)); 39 expectEquals(0, smaliCmpLong(Long.MIN_VALUE, Long.MIN_VALUE)); 40 expectEquals(0, smaliCmpLong(Long.MAX_VALUE, Long.MAX_VALUE)); 55 expectEquals(0, smaliCmpGtFloat(0F, 0F)); 56 expectEquals(0, smaliCmpGtFloat(-0F, 0F)) [all...] |
/art/test/411-optimizing-arith-mul/src/ |
Main.java | 21 public static void expectEquals(int expected, int result) { 27 public static void expectEquals(long expected, long result) { 33 public static void expectEquals(float expected, float result) { 39 public static void expectEquals(double expected, double result) { 87 expectEquals(15, $opt$Mul(5, 3)); 88 expectEquals(0, $opt$Mul(0, 0)); 89 expectEquals(0, $opt$Mul(0, 3)); 90 expectEquals(0, $opt$Mul(3, 0)); 91 expectEquals(-3, $opt$Mul(1, -3)); 92 expectEquals(36, $opt$Mul(-12, -3)) [all...] |
/art/test/417-optimizing-arith-div/src/ |
Main.java | 21 public static void expectEquals(int expected, int result) { 27 public static void expectEquals(long expected, long result) { 33 public static void expectEquals(float expected, float result) { 39 public static void expectEquals(double expected, double result) { 113 expectEquals(2, $opt$DivConst(6)); 114 expectEquals(2, $opt$Div(6, 3)); 115 expectEquals(6, $opt$Div(6, 1)); 116 expectEquals(-2, $opt$Div(6, -3)); 117 expectEquals(1, $opt$Div(4, 3)); 118 expectEquals(-1, $opt$Div(4, -3)) [all...] |
/art/test/610-arraycopy/src/ |
Main.java | 25 expectEquals(0, ((Integer)a[0]).intValue()); 26 expectEquals(0, ((Integer)a[1]).intValue()); 27 expectEquals(1, ((Integer)a[2]).intValue()); 28 expectEquals(2, ((Integer)a[3]).intValue()); 29 expectEquals(4, ((Integer)a[4]).intValue()); 32 public static void expectEquals(int expected, int actual) {
|
/art/test/414-optimizing-arith-sub/src/ |
Main.java | 21 public static void expectEquals(int expected, int result) { 27 public static void expectEquals(long expected, long result) { 33 public static void expectEquals(float expected, float result) { 39 public static void expectEquals(double expected, double result) { 81 expectEquals(2, $opt$Sub(5, 3)); 82 expectEquals(0, $opt$Sub(0, 0)); 83 expectEquals(-3, $opt$Sub(0, 3)); 84 expectEquals(3, $opt$Sub(3, 0)); 85 expectEquals(4, $opt$Sub(1, -3)); 86 expectEquals(-9, $opt$Sub(-12, -3)) [all...] |
/external/chromium-libpac/test/ |
proxy_test_script.h | 30 "function expectEquals(expectation, actual) {\n" \ 41 " expectEquals(undefined, dnsResolve());\n" \ 42 " expectEquals(undefined, dnsResolve(null));\n" \ 43 " expectEquals(undefined, dnsResolve(undefined));\n" \ 44 " expectEquals('127.0.0.1', dnsResolve(\"\"));\n" \ 45 " expectEquals(undefined, dnsResolve({foo: 'bar'}));\n" \ 46 " expectEquals(undefined, dnsResolve(fn));\n" \ 47 " expectEquals(undefined, dnsResolve(['3']));\n" \ 48 " expectEquals('127.0.0.1', dnsResolve(\"arg1\", \"arg2\", \"arg3\", \"arg4\"));\n" \ 204 " t.expectEquals(0, dnsDomainLevels(\"www\"));\n" [all...] |
/art/test/403-optimizing-long/src/ |
Main.java | 21 public static void expectEquals(long expected, long result) { 29 expectEquals(42, l); 33 expectEquals(42, l); 36 expectEquals(42, l); 39 expectEquals(42, l); 42 expectEquals(42, l); 45 expectEquals(83, l); 48 expectEquals(1, l); 51 expectEquals(57, l); 54 expectEquals(900000000006L, l) [all...] |
/art/test/529-checker-unresolved/src/ |
Main.java | 73 expectEquals((byte)1, UnresolvedClass.staticByte); 74 expectEquals('1', UnresolvedClass.staticChar); 75 expectEquals(123456789, UnresolvedClass.staticInt); 76 expectEquals(123456789123456789l, UnresolvedClass.staticLong); 77 expectEquals(123456789123456789f, UnresolvedClass.staticFloat); 78 expectEquals(123456789123456789d, UnresolvedClass.staticDouble); 79 expectEquals(o, UnresolvedClass.staticObject); 108 expectEquals((byte)1, c.instanceByte); 109 expectEquals('1', c.instanceChar); 110 expectEquals(123456789, c.instanceInt) [all...] |
/art/test/582-checker-bce-length/src/ |
Main.java | 74 expectEquals(1, fail); 75 expectEquals(0, a[0]); 76 expectEquals(1, a[1]); 77 expectEquals(2, a[2]); 78 expectEquals(3, a[3]); 85 expectEquals(1, fail); 86 expectEquals(-101, a[0]); 87 expectEquals(-102, a[1]); 88 expectEquals(-103, a[2]); 89 expectEquals(-104, a[3]) [all...] |
/art/test/562-bce-preheader/src/ |
Main.java | 119 expectEquals(8, doit(x, -6)); 120 expectEquals(7, doit(x, -5)); 121 expectEquals(6, doit(x, -4)); 122 expectEquals(5, doit(x, -3)); 123 expectEquals(4, doit(x, -2)); 124 expectEquals(3, doit(x, -1)); 125 expectEquals(3, doit(x, 0)); 126 expectEquals(3, doit(x, 1)); 127 expectEquals(3, doit(x, 22)); 132 expectEquals(7, foo(a, b, -1)) [all...] |
/art/test/402-optimizing-control-flow/src/ |
Main.java | 22 public static void expectEquals(int expected, int value) { 30 expectEquals(42, result); 33 expectEquals(7, result); 36 expectEquals(45, result); 39 expectEquals(45, result); 42 expectEquals(44, result); 45 expectEquals(7, result);
|
/art/test/530-checker-loops1/src/ |
Main.java | 680 expectEquals(n, a.length); 682 expectEquals(a[i], k); 685 expectEquals(m, b.length); 687 expectEquals(b[i], 1); 695 expectEquals(a[i], n + n); 732 expectEquals(0, linear(empty)); 733 expectEquals(55, linear(x)); 734 expectEquals(0, linearDown(empty)); 735 expectEquals(55, linearDown(x)); 736 expectEquals(0, linearObscure(empty)) [all...] |
/art/test/405-optimizing-long-allocator/src/ |
Main.java | 23 expectEquals(4, $opt$TestLostCopy()); 24 expectEquals(-10, $opt$TestTwoLive()); 25 expectEquals(-20, $opt$TestThreeLive()); 26 expectEquals(5, $opt$TestFourLive()); 27 expectEquals(10, $opt$TestMultipleLive()); 28 expectEquals(1, $opt$TestWithBreakAndContinue()); 29 expectEquals(-15, $opt$testSpillInIf(5, 6, 7)); 30 expectEquals(-567, $opt$TestAgressiveLive1(1, 2, 3, 4, 5, 6, 7)); 31 expectEquals(-77, $opt$TestAgressiveLive2(1, 2, 3, 4, 5, 6, 7)); 33 expectEquals(-55834574850L, $opt$testSpillInIf(5, 6L << 32, 7L << 32)) [all...] |