Home
last modified time | relevance | path

Searched refs:assertTrue (Results 1 – 25 of 46) sorted by relevance

12

/art/test/003-omnibus-opcodes/src/
DCompare.java29 Main.assertTrue(false); in testIntCompare()
31 Main.assertTrue(false); in testIntCompare()
33 Main.assertTrue(false); in testIntCompare()
35 Main.assertTrue(false); in testIntCompare()
37 Main.assertTrue(false); in testIntCompare()
39 Main.assertTrue(false); in testIntCompare()
43 Main.assertTrue(true); in testIntCompare()
45 Main.assertTrue(false); in testIntCompare()
49 Main.assertTrue(false); in testIntCompare()
51 Main.assertTrue(false); in testIntCompare()
[all …]
DArray.java26 Main.assertTrue(bytes[0] == 0); in checkBytes()
27 Main.assertTrue(bytes[1] == -1); in checkBytes()
28 Main.assertTrue(bytes[2] == -2); in checkBytes()
29 Main.assertTrue(bytes[3] == -3); in checkBytes()
30 Main.assertTrue(bytes[4] == -4); in checkBytes()
33 Main.assertTrue(shorts[0] == 20); in checkShorts()
34 Main.assertTrue(shorts[1] == 10); in checkShorts()
35 Main.assertTrue(shorts[2] == 0); in checkShorts()
36 Main.assertTrue(shorts[3] == -10); in checkShorts()
37 Main.assertTrue(shorts[4] == -20); in checkShorts()
[all …]
DSwitch.java11 case -1: Main.assertTrue(false); break; in testSwitch()
12 case 0: Main.assertTrue(false); break; in testSwitch()
14 case 2: Main.assertTrue(false); break; in testSwitch()
15 case 3: Main.assertTrue(false); break; in testSwitch()
16 case 4: Main.assertTrue(false); break; in testSwitch()
17 default: Main.assertTrue(false); break; in testSwitch()
20 case 3: Main.assertTrue(false); break; in testSwitch()
21 case 4: Main.assertTrue(false); break; in testSwitch()
29 case 0x12345679: Main.assertTrue(false); break; in testSwitch()
30 default: Main.assertTrue(false); break; in testSwitch()
[all …]
DIntMath.java35 Main.assertTrue(i1 == 0x44332211); in shiftTest1()
36 Main.assertTrue(i2 == 0xbbaa9988); in shiftTest1()
37 Main.assertTrue(l == 0xbbaa998844332211L); in shiftTest1()
48 Main.assertTrue(l == 0xbbaa998844332211L); in shiftTest1()
66 Main.assertTrue(result == 0x1122334455667788L); in shiftTest2()
82 Main.assertTrue((int) b == -1); in unsignedShiftTest()
83 Main.assertTrue((int) s == -1); in unsignedShiftTest()
84 Main.assertTrue((int) c == 0x0fff); in unsignedShiftTest()
85 Main.assertTrue(i == 268435455); in unsignedShiftTest()
96 Main.assertTrue(1 << thirtyTwo == 1); in shiftTest3()
[all …]
DFloatMath.java33 Main.assertTrue(i == 1234); in convTest()
37 Main.assertTrue(i == -1234); in convTest()
42 Main.assertTrue(l == 1238); in convTest()
46 Main.assertTrue(l == -1238); in convTest()
51 Main.assertTrue(d > 1238.567 && d < 1238.568); in convTest()
56 Main.assertTrue(i == 1234); in convTest()
60 Main.assertTrue(i == -1234); in convTest()
65 Main.assertTrue(l == 5678956789L); in convTest()
69 Main.assertTrue(l == -5678956789L); in convTest()
74 Main.assertTrue(f > 1238.567 && f < 1238.568); in convTest()
[all …]
DInstField.java41 Main.assertTrue(false); in nullCheck()
47 Main.assertTrue(false); in nullCheck()
53 Main.assertTrue(false); in nullCheck()
59 Main.assertTrue(false); in nullCheck()
89 Main.assertTrue(mBoolean1); in checkFields()
90 Main.assertTrue(!mBoolean2); in checkFields()
91 Main.assertTrue(mByte1 == 127); in checkFields()
92 Main.assertTrue(mByte2 == -128); in checkFields()
93 Main.assertTrue(mChar1 == 32767); in checkFields()
94 Main.assertTrue(mChar2 == 65535); in checkFields()
[all …]
DClasses.java27 Main.assertTrue(!wantSub); in subFunc()
37 Main.assertTrue(thisRef instanceof Classes); in checkCast()
39 Main.assertTrue(moreRef instanceof Classes); in checkCast()
42 Main.assertTrue(moreRef instanceof MoreClasses); in checkCast()
43 Main.assertTrue(!(thisRef instanceof MoreClasses)); in checkCast()
47 Main.assertTrue(false); in checkCast()
51 Main.assertTrue(cce.getMessage().regionMatches(false, 0, "Classes", 0, 7)); in checkCast()
53 Main.assertTrue(!(thisRef instanceof MoreClasses)); in checkCast()
58 Main.assertTrue(false); in checkCast()
62 Main.assertTrue(cce.getMessage().regionMatches(false, 0, "Classes", 0, 7)); in checkCast()
[all …]
DStaticField.java57 Main.assertTrue(mBoolean1); in checkFields()
58 Main.assertTrue(!mBoolean2); in checkFields()
59 Main.assertTrue(mByte1 == 127); in checkFields()
60 Main.assertTrue(mByte2 == -128); in checkFields()
61 Main.assertTrue(mChar1 == 32767); in checkFields()
62 Main.assertTrue(mChar2 == 65535); in checkFields()
63 Main.assertTrue(mShort1 == 32767); in checkFields()
64 Main.assertTrue(mShort2 == -32768); in checkFields()
65 Main.assertTrue(mInt1 == 65537); in checkFields()
66 Main.assertTrue(mInt2 == -65537); in checkFields()
[all …]
DThrow.java33 Main.assertTrue(false); in one()
39 Main.assertTrue(false); in one()
59 Main.assertTrue(gotA); in twoA()
60 Main.assertTrue(!gotN); in twoA()
61 Main.assertTrue(!gotWeird); in twoA()
81 Main.assertTrue(!gotA); in twoN()
82 Main.assertTrue(gotN); in twoN()
83 Main.assertTrue(!gotWeird); in twoN()
95 Main.assertTrue(false); in rethrow()
98 Main.assertTrue(false); in rethrow()
[all …]
DUnresTest1.java11 Main.assertTrue(false); in run()
17 Main.assertTrue(false); in run()
23 Main.assertTrue(false); in run()
30 Main.assertTrue(false); in run()
36 Main.assertTrue(false); in run()
43 Main.assertTrue(false); in run()
49 Main.assertTrue(false); in run()
56 Main.assertTrue(false); in run()
62 Main.assertTrue(false); in run()
69 Main.assertTrue(false); in run()
[all …]
DUnresTest2.java13 Main.assertTrue(false); in checkCasts()
19 Main.assertTrue(false); in checkCasts()
34 Main.assertTrue(false); in run()
36 Main.assertTrue(ncdfe.getCause() instanceof ClassNotFoundException); in run()
42 Main.assertTrue(false); in run()
51 Main.assertTrue(false); in run()
DMethodCall.java29 Main.assertTrue(val == 7); in tryThing()
46 Main.assertTrue(a0 == 0); in manyArgs()
47 Main.assertTrue(a9 > 8.99 && a9 < 9.01); in manyArgs()
48 Main.assertTrue(a16 == -16); in manyArgs()
49 Main.assertTrue(a25 == 25); in manyArgs()
50 Main.assertTrue(a29.equals("twenty nine")); in manyArgs()
63 Main.assertTrue(false); in run()
DInternedString.java39 Main.assertTrue(strRef.get() == null); in testDeadInternedString()
47 Main.assertTrue(CONST == CONST.intern()); in testImmortalInternedString()
49 Main.assertTrue(strRef.get() != null); in testImmortalInternedString()
57 Main.assertTrue(strRef.get() == CONST); in testImmortalInternedString()
DMonitor.java29 Main.assertTrue(obj == null); in subTest()
43 Main.assertTrue(false); in run()
55 Main.assertTrue(mVal == 2); in run()
/art/test/667-jit-jni-stub/src/
DMain.java36 assertTrue(hasJitCompiledEntrypoint(Main.class, "callThrough")); in testCompilationUseAndCollection()
37 assertTrue(hasJitCompiledCode(Main.class, "callThrough")); in testCompilationUseAndCollection()
56 assertTrue(hasJitCompiledEntrypoint(Main.class, "callThrough")); in testGcWithCallThroughStubOnStack()
58 assertTrue(new Throwable().getStackTrace()[1].getMethodName().equals("callThrough")); in testGcWithCallThroughStubOnStack()
64 assertTrue(hasJitCompiledCode(Main.class, "callThrough")); in testGcWithCallThroughStubOnStack()
73 assertTrue(hasJitCompiledEntrypoint(Main.class, "callThrough")); in testSingleInvocationTriggersRecompilation()
75 assertTrue(hasJitCompiledCode(Main.class, "callThrough")); in testSingleInvocationTriggersRecompilation()
85 assertTrue(hasJitCompiledCode(Main.class, "callThrough")); in testMixedFramesOnStack()
94 assertTrue(new Throwable().getStackTrace()[1].getMethodName().equals("callThrough")); in testMixedFramesOnStackStage2()
102 assertTrue(hasJitCompiledEntrypoint(Main.class, "callThrough")); in testMixedFramesOnStackStage3()
[all …]
/art/test/580-fp16/src-art/
DMain.java41 static public void assertTrue(boolean condition) { in assertTrue() method in Main
205 assertTrue(FP16.greater(FP16.POSITIVE_INFINITY, FP16.NEGATIVE_INFINITY)); in testGreater()
206 assertTrue(FP16.greater(FP16.POSITIVE_INFINITY, FP16.MAX_VALUE)); in testGreater()
209 assertTrue(FP16.greater(FP16.LOWEST_VALUE, FP16.NEGATIVE_INFINITY)); in testGreater()
214 assertTrue(FP16.greater(FP16.MIN_NORMAL, FP16.MIN_VALUE)); in testGreater()
216 assertTrue(FP16.greater(FP16.toHalf(12.4f), FP16.toHalf(12.3f))); in testGreater()
219 assertTrue(FP16.greater(FP16.toHalf(-12.3f), FP16.toHalf(-12.4f))); in testGreater()
220 assertTrue(FP16.greater((short) 0x3ff, FP16.MIN_VALUE)); in testGreater()
223 assertTrue(FP16.greater(FP16.toHalf(0.0f), FP16.toHalf(-1.0f))); in testGreater()
226 assertTrue(FP16.greater(FP16.toHalf(1.0f), FP16.toHalf(0.0f))); in testGreater()
[all …]
/art/test/712-varhandle-invocations/src/
DVarHandleBadCoordinateTests.java294 assertTrue(i == alignedIndex); in doTest()
300 assertTrue(i == alignedIndex); in doTest()
306 assertTrue(i == alignedIndex); in doTest()
312 assertTrue(i == alignedIndex); in doTest()
318 assertTrue(i == alignedIndex); in doTest()
324 assertTrue(i == alignedIndex); in doTest()
330 assertTrue(i == alignedIndex); in doTest()
336 assertTrue(i == alignedIndex); in doTest()
342 assertTrue(i == alignedIndex); in doTest()
348 assertTrue(i == alignedIndex); in doTest()
[all …]
/art/test/670-bitstring-type-check/
Dbuild81 assertTrue(o instanceof Level1Class0);
85 assertTrue(i < 2);
90 assertTrue(i < 3);
95 assertTrue(i < 4);
100 assertTrue(i < 5);
105 assertTrue(i < 6);
110 assertTrue(i < 7);
115 assertTrue(i < 8);
120 assertTrue(i < 9);
124 assertTrue(createInstance("Level1Class8192") instanceof Level1Class8192);
[all …]
/art/test/021-string2/src/
DMain.java32 Assert.assertTrue(test.equals(test)); in main()
33 Assert.assertTrue(test.equals(test1)); in main()
37 Assert.assertTrue(test1.compareTo(test2) > 0); in main()
38 Assert.assertTrue(test2.compareTo(test1) < 0); in main()
41 Assert.assertTrue(test.compareTo("") > 0); in main()
42 Assert.assertTrue("".compareTo(test) < 0); in main()
47 Assert.assertTrue(test.equals(sub)); in main()
48 Assert.assertTrue(sub.equals(test)); in main()
66 Assert.assertTrue(test.equals("123456789")); in main()
70 Assert.assertTrue(test.equals("23456789")); in main()
[all …]
/art/test/031-class-attributes/src/
DClassAttrs.java155 assertTrue(String.class.isAssignableFrom(String.class)); in test_isAssignableFrom()
158 assertTrue(Object.class.isAssignableFrom(Object.class)); in test_isAssignableFrom()
159 assertTrue(Object.class.isAssignableFrom(Class.class)); in test_isAssignableFrom()
160 assertTrue(Object.class.isAssignableFrom(String.class)); in test_isAssignableFrom()
165 assertTrue(CharSequence.class.isAssignableFrom(String.class)); in test_isAssignableFrom()
169 assertTrue(AccessibleObject.class.isAssignableFrom(Method.class)); in test_isAssignableFrom()
173 assertTrue(int[].class.isAssignableFrom(int[].class)); in test_isAssignableFrom()
176 assertTrue(Object.class.isAssignableFrom(int[].class)); in test_isAssignableFrom()
188 assertTrue(String.class.isInstance("hello")); in test_isInstance()
191 assertTrue(Object.class.isInstance(new Object())); in test_isInstance()
[all …]
/art/test/422-instanceof/src/
DMain.java20 public static void assertTrue(boolean value) { in assertTrue() method in Main
47 assertTrue($opt$InstanceOfMain()); in $opt$TestMain()
51 assertTrue($opt$InstanceOfMain()); in $opt$TestMain()
58 assertTrue($opt$InstanceOfFinalClass()); in $opt$TestFinalClass()
/art/tools/ahat/src/test/com/android/ahat/
DObjectsHandlerTest.java27 import static org.junit.Assert.assertTrue;
41 assertTrue(dumped.get(0).getClassName().equals("DumpedStuff")); in getObjects()
46 assertTrue(direct.isEmpty()); in getObjects()
52 assertTrue(subclass.get(0).getClassName().equals("DumpedStuff")); in getObjects()
DInstanceTest.java35 import static org.junit.Assert.assertTrue;
221 assertTrue(referent.isWeaklyReachable()); in unreachableReferent()
261 assertTrue(path.get(0).isDominator); in gcRootPath()
264 assertTrue(path.get(1).isDominator); in gcRootPath()
268 assertTrue(path.get(2).isDominator); in gcRootPath()
271 assertTrue(path.get(3).isDominator); in gcRootPath()
292 assertTrue(path.get(5).isDominator); in gcRootPath()
354 assertTrue(sizeStrong < sizeSoft); in retainedSizeByRetained()
403 assertTrue(obj.toString().endsWith(String.format("[4]@%08x", id)));
419 assertTrue(main.isRoot());
[all …]
/art/test/592-checker-regression-bool-input/src/
DMain.java29 public static void assertTrue(boolean result) { in assertTrue() method in Main
48 assertTrue((Boolean) m.invoke(null, null)); in main()
52 assertTrue((Boolean) m.invoke(null, null)); in main()
/art/test/959-invoke-polymorphic-accessors/src/
DMain.java70 public static void assertTrue(boolean value) throws AssertionError { in assertTrue() method in Main.Tester
132 assertTrue(got == value); in getByte()
175 assertTrue(got == value); in getChar()
213 assertTrue(got == value); in getShort()
251 assertTrue(got == value); in getInt()
289 assertTrue(got == value); in getLong()
327 assertTrue(got == value); in getFloat()
366 assertTrue(got == value); in getDouble()
406 assertTrue(got.equals(value)); in getString()
447 assertTrue(got == value); in getBoolean()
[all …]

12