/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 | 38 assertTrue(hasJitCompiledEntrypoint(Main.class, "callThrough")); in testCompilationUseAndCollection() 39 assertTrue(hasJitCompiledCode(Main.class, "callThrough")); in testCompilationUseAndCollection() 54 assertTrue(hasJitCompiledEntrypoint(Main.class, "callThrough")); in testGcWithCallThroughStubOnStack() 56 assertTrue(new Throwable().getStackTrace()[1].getMethodName().equals("callThrough")); in testGcWithCallThroughStubOnStack() 62 assertTrue(hasJitCompiledCode(Main.class, "callThrough")); in testGcWithCallThroughStubOnStack() 78 assertTrue(new Throwable().getStackTrace()[1].getMethodName().equals("callThrough")); in testMixedFramesOnStackStage2() 86 assertTrue(hasJitCompiledEntrypoint(Main.class, "callThrough")); in testMixedFramesOnStackStage3() 88 assertTrue(new Throwable().getStackTrace()[1].getMethodName().equals("callThrough")); in testMixedFramesOnStackStage3() 101 assertTrue(hasJitCompiledCode(Main.class, "callThrough")); in doJitGcsUntilFullJitGcIsScheduled() 105 assertTrue(hasJitCompiledEntrypoint(Main.class, "callThrough")); in doJitGcsUntilFullJitGcIsScheduled() [all …]
|
/art/test/712-varhandle-invocations/src/ |
D | VarHandleBadCoordinateTests.java | 299 assertTrue(i == alignedIndex); in doTest() 305 assertTrue(i == alignedIndex); in doTest() 311 assertTrue(i == alignedIndex); in doTest() 317 assertTrue(i == alignedIndex); in doTest() 323 assertTrue(i == alignedIndex); in doTest() 329 assertTrue(i == alignedIndex); in doTest() 335 assertTrue(i == alignedIndex); in doTest() 341 assertTrue(i == alignedIndex); in doTest() 347 assertTrue(i == alignedIndex); in doTest() 353 assertTrue(i == alignedIndex); in doTest() [all …]
|
D | VarHandleFpCasTests.java | 39 assertTrue(vh.compareAndSet(a, 0.0f, 1.0f)); in doTest() 40 assertTrue(vh.compareAndSet(a, 1.0f, 0.0f)); in doTest() 42 assertTrue(vh.compareAndSet(a, 0.0f, Float.NaN)); in doTest() 43 assertTrue(vh.compareAndSet(a, Float.NaN, 0.0f)); in doTest() 69 assertTrue(vh.compareAndSet(a, 0.0, 1.0)); in doTest() 70 assertTrue(vh.compareAndSet(a, 1.0, 0.0)); in doTest() 72 assertTrue(vh.compareAndSet(a, 0.0, Double.NaN)); in doTest() 73 assertTrue(vh.compareAndSet(a, Double.NaN, 0.0)); in doTest()
|
/art/test/670-bitstring-type-check/ |
D | generate-sources | 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/580-checker-fp16/src-art/ |
D | Main.java | 49 static public void assertTrue(boolean condition) { in assertTrue() method in Main 213 assertTrue(FP16.greater(FP16.POSITIVE_INFINITY, FP16.NEGATIVE_INFINITY)); in testGreater() 214 assertTrue(FP16.greater(FP16.POSITIVE_INFINITY, FP16.MAX_VALUE)); in testGreater() 217 assertTrue(FP16.greater(FP16.LOWEST_VALUE, FP16.NEGATIVE_INFINITY)); in testGreater() 222 assertTrue(FP16.greater(FP16.MIN_NORMAL, FP16.MIN_VALUE)); in testGreater() 224 assertTrue(FP16.greater(FP16.toHalf(12.4f), FP16.toHalf(12.3f))); in testGreater() 227 assertTrue(FP16.greater(FP16.toHalf(-12.3f), FP16.toHalf(-12.4f))); in testGreater() 228 assertTrue(FP16.greater((short) 0x3ff, FP16.MIN_VALUE)); in testGreater() 231 assertTrue(FP16.greater(FP16.toHalf(0.0f), FP16.toHalf(-1.0f))); in testGreater() 234 assertTrue(FP16.greater(FP16.toHalf(1.0f), FP16.toHalf(0.0f))); in testGreater() [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/596-app-images/src-art/ |
D | Main.java | 52 assertTrue("App image is loaded", checkAppImageLoaded("596-app-images")); in testAppImageLoaded() 53 assertTrue("App image contains Inner", checkAppImageContains(Inner.class)); in testAppImageLoaded() 66 assertTrue(klass.toString() + " is preinitialized", checkInitialized(klass)); in assertInitialized() 96 assertTrue("Class in app image isn't loaded a second time after loading dex file again", in testReloadInternedString() 120 assertTrue("Ensure app image is loaded if it should be", in testLoadingSecondaryAppImage() 124 assertTrue("Ensure Secondary class is in the app image if the CLC is correct", in testLoadingSecondaryAppImage() 126 assertTrue("Ensure Secondary class is preinitialized if the CLC is correct", in testLoadingSecondaryAppImage() 132 private static void assertTrue(String message, boolean flag) { in assertTrue() method in Main 145 assertTrue(sb.toString(), (a == null && b == null) || (a != null && a.equals(b))); in assertEquals() 149 assertTrue(message, !flag); in assertFalse() [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/597-app-images-same-classloader/src-art/ |
D | Main.java | 47 assertTrue("Ensure app image is loaded if it should be", in testLoadingSecondaryAppImageInLoadedClassLoader() 51 assertTrue("Ensure Secondary class is in the app image", in testLoadingSecondaryAppImageInLoadedClassLoader() 53 assertTrue("Ensure Secondary class is preinitialized", checkInitialized(secondaryCls)); in testLoadingSecondaryAppImageInLoadedClassLoader() 58 private static void assertTrue(String message, boolean flag) { in assertTrue() method in Main 66 assertTrue(message, !flag); in assertFalse()
|
/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()
|