/art/test/003-omnibus-opcodes/src/ |
D | Compare.java | 29 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 …]
|
D | Array.java | 26 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 …]
|
D | Switch.java | 11 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 …]
|
D | IntMath.java | 35 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 …]
|
D | FloatMath.java | 33 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 …]
|
D | InstField.java | 41 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 …]
|
D | Classes.java | 27 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 …]
|
D | StaticField.java | 57 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 …]
|
D | Throw.java | 33 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 …]
|
D | UnresTest1.java | 11 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 …]
|
D | UnresTest2.java | 13 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()
|
D | MethodCall.java | 29 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()
|
D | InternedString.java | 39 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()
|
D | Monitor.java | 29 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/ |
D | Main.java | 36 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/712-varhandle-invocations/src/ |
D | VarHandleBadCoordinateTests.java | 294 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/ |
D | build | 81 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/ |
D | Main.java | 32 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/ |
D | ClassAttrs.java | 155 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/ |
D | Main.java | 20 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/ |
D | ObjectsHandlerTest.java | 27 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()
|
D | InstanceTest.java | 35 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))); 431 assertTrue(root.isRoot()); [all …]
|
/art/test/959-invoke-polymorphic-accessors/src/ |
D | Main.java | 70 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 …]
|
/art/test/592-checker-regression-bool-input/src/ |
D | Main.java | 29 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/412-new-array/src/ |
D | Main.java | 249 assertTrue(exception instanceof NullPointerException); in testSmaliFillArrayData() 275 assertTrue(exception instanceof IndexOutOfBoundsException); in testSmaliFillArrayData() 288 assertTrue(exception instanceof NullPointerException); in testSmaliFillArrayData() 314 assertTrue(exception instanceof IndexOutOfBoundsException); in testSmaliFillArrayData() 327 assertTrue(exception instanceof NullPointerException); in testSmaliFillArrayData() 353 assertTrue(exception instanceof IndexOutOfBoundsException); in testSmaliFillArrayData() 366 assertTrue(exception instanceof NullPointerException); in testSmaliFillArrayData() 392 assertTrue(exception instanceof IndexOutOfBoundsException); in testSmaliFillArrayData() 405 assertTrue(exception instanceof NullPointerException); in testSmaliFillArrayData() 431 assertTrue(exception instanceof IndexOutOfBoundsException); in testSmaliFillArrayData() [all …]
|