Home
last modified time | relevance | path

Searched refs:check (Results 1 – 25 of 165) sorted by relevance

1234567

/art/test/044-proxy/src/
DReturnsAndArgPassing.java22 static void check(boolean x) { in check() method in ReturnsAndArgPassing
57 check(proxy instanceof Proxy); in invoke()
58 check(method.getDeclaringClass() == MyInterface.class); in invoke()
63 check(args == null); in invoke()
66 check(args == null); in invoke()
78 check(args.length == 6); in invoke()
86 check(name.endsWith("Bar")); in invoke()
103 check(fooInvocations == 0); in testProxyReturns()
105 check(fooInvocations == 1); in testProxyReturns()
107 check(barInvocations == 0); in testProxyReturns()
[all …]
/art/test/530-instanceof-checkcast/src/
DMain.java42 check(true, exactCheck instanceof ExactCheck); in checkInstanceOfNonTryCatch()
43 check(false, regularObject instanceof ExactCheck); in checkInstanceOfNonTryCatch()
45 check(true, abstractCheckImpl instanceof AbstractCheck); in checkInstanceOfNonTryCatch()
46 check(false, regularObject instanceof AbstractCheck); in checkInstanceOfNonTryCatch()
48 check(true, interfaceCheckImpl instanceof InterfaceCheck); in checkInstanceOfNonTryCatch()
49 check(false, regularObject instanceof InterfaceCheck); in checkInstanceOfNonTryCatch()
51 check(true, normalCheck instanceof NormalCheck); in checkInstanceOfNonTryCatch()
52 check(true, exactCheck instanceof NormalCheck); in checkInstanceOfNonTryCatch()
53 check(false, regularObject instanceof NormalCheck); in checkInstanceOfNonTryCatch()
55 check(false, regularObject instanceof int[]); in checkInstanceOfNonTryCatch()
[all …]
/art/test/064-field-access/src/
DMain.java245 private static void check(boolean b) { in check() method in SubClass
252 check(otherProtectedClassPublicBooleanInstanceField == true); in doDirectTests()
253 check(otherProtectedClassPublicByteInstanceField == 2); in doDirectTests()
254 check(otherProtectedClassPublicCharInstanceField == 3); in doDirectTests()
255 check(otherProtectedClassPublicShortInstanceField == 4); in doDirectTests()
256 check(otherProtectedClassPublicIntInstanceField == 5); in doDirectTests()
257 check(otherProtectedClassPublicLongInstanceField == 6); in doDirectTests()
258 check(otherProtectedClassPublicFloatInstanceField == 7.0f); in doDirectTests()
259 check(otherProtectedClassPublicDoubleInstanceField == 8.0); in doDirectTests()
260 check(otherProtectedClassPublicObjectInstanceField == "9"); in doDirectTests()
[all …]
/art/test/122-npe/src/
DMain.java51 check(npe, thisLine += 4); in methodTwo()
59 check(npe, thisLine += 8); in methodTwo()
67 check(npe, thisLine += 8); in methodTwo()
74 check(npe, thisLine += 7); in methodTwo()
81 check(npe, thisLine += 7); in methodTwo()
88 check(npe, thisLine += 7); in methodTwo()
95 check(npe, thisLine += 7); in methodTwo()
102 check(npe, thisLine += 7); in methodTwo()
109 check(npe, thisLine += 7); in methodTwo()
116 check(npe, thisLine += 7); in methodTwo()
[all …]
/art/test/004-UnsafeTest/src/
DMain.java21 private static void check(int actual, int expected, String msg) { in check() method in Main
28 private static void check(long actual, long expected, String msg) { in check() method in Main
35 private static void check(float actual, float expected, String msg) { in check() method in Main
42 private static void check(double actual, double expected, String msg) { in check() method in Main
49 private static void check(Object actual, Object expected, String msg) { in check() method in Main
75 check(unsafe.arrayBaseOffset(boolean[].class), vmArrayBaseOffset(boolean[].class), in testArrayBaseOffset()
77 check(unsafe.arrayBaseOffset(byte[].class), vmArrayBaseOffset(byte[].class), in testArrayBaseOffset()
79 check(unsafe.arrayBaseOffset(char[].class), vmArrayBaseOffset(char[].class), in testArrayBaseOffset()
81 check(unsafe.arrayBaseOffset(double[].class), vmArrayBaseOffset(double[].class), in testArrayBaseOffset()
83 check(unsafe.arrayBaseOffset(float[].class), vmArrayBaseOffset(float[].class), in testArrayBaseOffset()
[all …]
/art/test/2235-JdkUnsafeTest/src/
DMain.java21 private static void check(int actual, int expected, String msg) { in check() method in Main
28 private static void check(long actual, long expected, String msg) { in check() method in Main
35 private static void check(float actual, float expected, String msg) { in check() method in Main
42 private static void check(double actual, double expected, String msg) { in check() method in Main
49 private static void check(Object actual, Object expected, String msg) { in check() method in Main
82 check(unsafe.arrayBaseOffset(boolean[].class), vmJdkArrayBaseOffset(boolean[].class), in testArrayBaseOffset()
84 check(unsafe.arrayBaseOffset(byte[].class), vmJdkArrayBaseOffset(byte[].class), in testArrayBaseOffset()
86 check(unsafe.arrayBaseOffset(char[].class), vmJdkArrayBaseOffset(char[].class), in testArrayBaseOffset()
88 check(unsafe.arrayBaseOffset(double[].class), vmJdkArrayBaseOffset(double[].class), in testArrayBaseOffset()
90 check(unsafe.arrayBaseOffset(float[].class), vmJdkArrayBaseOffset(float[].class), in testArrayBaseOffset()
[all …]
/art/compiler/optimizing/
Dprepare_for_register_allocation.cc52 void PrepareForRegisterAllocation::VisitNullCheck(HNullCheck* check) { in VisitNullCheck() argument
53 check->ReplaceWith(check->InputAt(0)); in VisitNullCheck()
55 HInstruction* next = check->GetNext(); in VisitNullCheck()
63 if (next->CanDoImplicitNullCheckOn(check->InputAt(0))) { in VisitNullCheck()
64 check->MarkEmittedAtUseSite(); in VisitNullCheck()
69 void PrepareForRegisterAllocation::VisitDivZeroCheck(HDivZeroCheck* check) { in VisitDivZeroCheck() argument
70 check->ReplaceWith(check->InputAt(0)); in VisitDivZeroCheck()
81 void PrepareForRegisterAllocation::VisitBoundsCheck(HBoundsCheck* check) { in VisitBoundsCheck() argument
82 check->ReplaceWith(check->InputAt(0)); in VisitBoundsCheck()
83 if (check->IsStringCharAt()) { in VisitBoundsCheck()
[all …]
Dx86_memory_gen.cc34 void VisitBoundsCheck(HBoundsCheck* check) override { in VisitBoundsCheck() argument
36 HArrayLength* array_len = check->InputAt(1)->AsArrayLength(); in VisitBoundsCheck()
55 if (array_len->GetNextDisregardingMoves() != check) { in VisitBoundsCheck()
65 array_len->MoveBefore(check); in VisitBoundsCheck()
/art/test/439-npe/src/
DMain.java317 check(npe, thisLine += 2, methodLine, "$opt$noinline$setObjectField"); in main()
323 check(npe, thisLine += 6, methodLine += 5, "$opt$noinline$setIntField"); in main()
329 check(npe, thisLine += 6, methodLine += 5, "$opt$noinline$setFloatField"); in main()
335 check(npe, thisLine += 6, methodLine += 5, "$opt$noinline$setLongField"); in main()
341 check(npe, thisLine += 6, methodLine += 5, "$opt$noinline$setDoubleField"); in main()
347 check(npe, thisLine += 6, methodLine += 5, "$opt$noinline$setByteField"); in main()
353 check(npe, thisLine += 6, methodLine += 5, "$opt$noinline$setBooleanField"); in main()
359 check(npe, thisLine += 6, methodLine += 5, "$opt$noinline$setCharField"); in main()
365 check(npe, thisLine += 6, methodLine += 5, "$opt$noinline$setShortField"); in main()
371 check(npe, thisLine += 6, methodLine += 5, "$opt$noinline$getObjectField"); in main()
[all …]
/art/test/536-checker-needs-access-check/
DAndroid.bp3 // Build rules for ART run-test `536-checker-needs-access-check`.
16 name: "art-run-test-536-checker-needs-access-check-src",
23 name: "art-run-test-536-checker-needs-access-check",
28 "art-run-test-536-checker-needs-access-check-src"
31 ":art-run-test-536-checker-needs-access-check-expected-stdout",
32 ":art-run-test-536-checker-needs-access-check-expected-stderr",
41 name: "art-run-test-536-checker-needs-access-check-expected-stdout",
42 out: ["art-run-test-536-checker-needs-access-check-expected-stdout.txt"],
49 name: "art-run-test-536-checker-needs-access-check-expected-stderr",
50 out: ["art-run-test-536-checker-needs-access-check-expected-stderr.txt"],
/art/test/121-simple-suspend-check/
DAndroid.bp3 // Build rules for ART run-test `121-simple-suspend-check`.
16 name: "art-run-test-121-simple-suspend-check",
21 ":art-run-test-121-simple-suspend-check-expected-stdout",
22 ":art-run-test-121-simple-suspend-check-expected-stderr",
28 name: "art-run-test-121-simple-suspend-check-expected-stdout",
29 out: ["art-run-test-121-simple-suspend-check-expected-stdout.txt"],
36 name: "art-run-test-121-simple-suspend-check-expected-stderr",
37 out: ["art-run-test-121-simple-suspend-check-expected-stderr.txt"],
/art/test/542-unresolved-access-check/
DAndroid.bp3 // Build rules for ART run-test `542-unresolved-access-check`.
16 name: "art-run-test-542-unresolved-access-check",
21 ":art-run-test-542-unresolved-access-check-expected-stdout",
22 ":art-run-test-542-unresolved-access-check-expected-stderr",
28 name: "art-run-test-542-unresolved-access-check-expected-stdout",
29 out: ["art-run-test-542-unresolved-access-check-expected-stdout.txt"],
36 name: "art-run-test-542-unresolved-access-check-expected-stderr",
37 out: ["art-run-test-542-unresolved-access-check-expected-stderr.txt"],
/art/test/109-suspend-check/
DAndroid.bp3 // Build rules for ART run-test `109-suspend-check`.
16 name: "art-run-test-109-suspend-check",
21 ":art-run-test-109-suspend-check-expected-stdout",
22 ":art-run-test-109-suspend-check-expected-stderr",
28 name: "art-run-test-109-suspend-check-expected-stdout",
29 out: ["art-run-test-109-suspend-check-expected-stdout.txt"],
36 name: "art-run-test-109-suspend-check-expected-stderr",
37 out: ["art-run-test-109-suspend-check-expected-stderr.txt"],
/art/test/108-check-cast/
DAndroid.bp3 // Build rules for ART run-test `108-check-cast`.
16 name: "art-run-test-108-check-cast",
21 ":art-run-test-108-check-cast-expected-stdout",
22 ":art-run-test-108-check-cast-expected-stderr",
28 name: "art-run-test-108-check-cast-expected-stdout",
29 out: ["art-run-test-108-check-cast-expected-stdout.txt"],
36 name: "art-run-test-108-check-cast-expected-stderr",
37 out: ["art-run-test-108-check-cast-expected-stderr.txt"],
/art/test/136-daemon-jni-shutdown/
Dexpected-stdout.txt2 About to call exception check
3 About to call exception check
4 About to call exception check
5 About to call exception check
/art/test/731-bounds-check-slow-path/
DAndroid.bp3 // Build rules for ART run-test `731-bounds-check-slow-path`.
16 name: "art-run-test-731-bounds-check-slow-path",
21 ":art-run-test-731-bounds-check-slow-path-expected-stdout",
22 ":art-run-test-731-bounds-check-slow-path-expected-stderr",
28 name: "art-run-test-731-bounds-check-slow-path-expected-stdout",
29 out: ["art-run-test-731-bounds-check-slow-path-expected-stdout.txt"],
36 name: "art-run-test-731-bounds-check-slow-path-expected-stderr",
37 out: ["art-run-test-731-bounds-check-slow-path-expected-stderr.txt"],
/art/test/479-regression-implicit-null-check/
DAndroid.bp3 // Build rules for ART run-test `479-regression-implicit-null-check`.
16 name: "art-run-test-479-regression-implicit-null-check",
21 ":art-run-test-479-regression-implicit-null-check-expected-stdout",
22 ":art-run-test-479-regression-implicit-null-check-expected-stderr",
28 name: "art-run-test-479-regression-implicit-null-check-expected-stdout",
29 out: ["art-run-test-479-regression-implicit-null-check-expected-stdout.txt"],
36 name: "art-run-test-479-regression-implicit-null-check-expected-stderr",
37 out: ["art-run-test-479-regression-implicit-null-check-expected-stderr.txt"],
/art/test/609-checker-x86-bounds-check/
DAndroid.bp3 // Build rules for ART run-test `609-checker-x86-bounds-check`.
16 name: "art-run-test-609-checker-x86-bounds-check",
21 ":art-run-test-609-checker-x86-bounds-check-expected-stdout",
22 ":art-run-test-609-checker-x86-bounds-check-expected-stderr",
31 name: "art-run-test-609-checker-x86-bounds-check-expected-stdout",
32 out: ["art-run-test-609-checker-x86-bounds-check-expected-stdout.txt"],
39 name: "art-run-test-609-checker-x86-bounds-check-expected-stderr",
40 out: ["art-run-test-609-checker-x86-bounds-check-expected-stderr.txt"],
/art/test/478-checker-clinit-check-pruning/
DAndroid.bp3 // Build rules for ART run-test `478-checker-clinit-check-pruning`.
16 name: "art-run-test-478-checker-clinit-check-pruning",
21 ":art-run-test-478-checker-clinit-check-pruning-expected-stdout",
22 ":art-run-test-478-checker-clinit-check-pruning-expected-stderr",
31 name: "art-run-test-478-checker-clinit-check-pruning-expected-stdout",
32 out: ["art-run-test-478-checker-clinit-check-pruning-expected-stdout.txt"],
39 name: "art-run-test-478-checker-clinit-check-pruning-expected-stderr",
40 out: ["art-run-test-478-checker-clinit-check-pruning-expected-stderr.txt"],
/art/test/2233-checker-remove-loop-suspend-check/
DAndroid.bp3 // Build rules for ART run-test `2233-checker-remove-loop-suspend-check`.
16 name: "art-run-test-2233-checker-remove-loop-suspend-check",
21 ":art-run-test-2233-checker-remove-loop-suspend-check-expected-stdout",
22 ":art-run-test-2233-checker-remove-loop-suspend-check-expected-stderr",
31 name: "art-run-test-2233-checker-remove-loop-suspend-check-expected-stdout",
32 out: ["art-run-test-2233-checker-remove-loop-suspend-check-expected-stdout.txt"],
39 name: "art-run-test-2233-checker-remove-loop-suspend-check-expected-stderr",
40 out: ["art-run-test-2233-checker-remove-loop-suspend-check-expected-stderr.txt"],
/art/test/486-checker-must-do-null-check/
DAndroid.bp3 // Build rules for ART run-test `486-checker-must-do-null-check`.
16 name: "art-run-test-486-checker-must-do-null-check",
21 ":art-run-test-486-checker-must-do-null-check-expected-stdout",
22 ":art-run-test-486-checker-must-do-null-check-expected-stderr",
31 name: "art-run-test-486-checker-must-do-null-check-expected-stdout",
32 out: ["art-run-test-486-checker-must-do-null-check-expected-stdout.txt"],
39 name: "art-run-test-486-checker-must-do-null-check-expected-stderr",
40 out: ["art-run-test-486-checker-must-do-null-check-expected-stderr.txt"],
/art/test/022-interface/src/
DMain.java40 static void check(boolean z) { in check() method in Main
91 check(o.equals(null)); in doObjectOverrideTests()
92 check(o.hashCode() == 0xC001D00D); in doObjectOverrideTests()
93 check(o.toString().equals("Mallet's Mallet")); in doObjectOverrideTests()
94 check(subObjectOverrideTests(new SubInterfaceImpl()) != null); in doObjectOverrideTests()
/art/test/1947-breakpoint-redefine-deopt/src/
DMain.java63 public static void check(boolean b, String msg) { in check() method in Main
80 check(isInterpretOnly() || !isMethodDeoptimized(targetMethod), in main()
86 check(isInterpretOnly() || isMethodDeoptimized(targetMethod), in main()
92 check(isInterpretOnly() || !isMethodDeoptimized(targetMethod), in main()
97 check(isInterpretOnly() || isMethodDeoptimized(targetMethod), in main()
/art/test/692-vdex-secondary-loader/src/
DMain.java24 private static void check(boolean expected, boolean actual, String message) { in check() method in Main
46 check(expectedClassesVerified, areClassesVerified(loader), "areClassesVerified"); in test()
47 check(expectedHasVdexFile, hasVdexFile(loader), "hasVdexFile"); in test()
48 check(expectedBackedByOat, isBackedByOatFile(loader), "isBackedByOatFile"); in test()
49 check(expectedBackedByOat, areClassesPreverified(loader), "areClassesPreverified"); in test()
/art/test/476-checker-ctor-fence-redun-elim/src/
DMain.java77 public void check(); in check() method
111 public void check() { in check() method in TestOneFinal
183 public void check() { in check() method in TestThreeFinal
222 public void check() { in check() method in TestMultiAlloc
277 public void check() { in check() method in TestThreeFinalTwice
324 public void check() { in check() method in TestNonEscaping.Invoke
367 public void check() { in check() method in TestNonEscaping.Store
419 public void check() { in check() method in TestDontOptimizeAcrossBlocks
470 public void check() { in check() method in TestDontOptimizeAcrossEscape.Invoke
525 public void check() { in check() method in TestDontOptimizeAcrossEscape.StoreIput
[all …]

1234567