Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 455) sorted by relevance

12345678910>>...19

/art/build/
Dart.go32 func globalFlags(ctx android.LoadHookContext) ([]string, []string) {
36 opt := ctx.Config().GetenvWithDefault("ART_NDEBUG_OPT_FLAG", "-O3")
40 gcType := ctx.Config().GetenvWithDefault("ART_DEFAULT_GC_TYPE", "CMC")
42 if ctx.Config().IsEnvTrue("ART_TEST_DEBUG_GC") {
49 if ctx.Config().IsEnvTrue("ART_HEAP_POISONING") {
53 if ctx.Config().IsEnvTrue("ART_USE_CXX_INTERPRETER") {
57 if !ctx.Config().IsEnvFalse("ART_USE_READ_BARRIER") && ctx.Config().ArtUseReadBarrier() {
60 barrierType := ctx.Config().GetenvWithDefault("ART_READ_BARRIER_TYPE", "BAKER")
68 if !ctx.Config().IsEnvFalse("ART_USE_GENERATIONAL_CC") {
73 if ctx.Config().IsEnvTrue("ART_USE_READ_BARRIER") {
[all …]
Dmakevars.go46 func makeVarsProvider(ctx android.MakeVarsContext) {
47 ctx.Strict("LIBART_IMG_HOST_BASE_ADDRESS", ctx.Config().LibartImgHostBaseAddress())
48 ctx.Strict("LIBART_IMG_TARGET_BASE_ADDRESS", ctx.Config().LibartImgDeviceBaseAddress())
50 testMap := testMap(ctx.Config())
59 ctx.Strict("ART_TEST_LIST_"+name, strings.Join(android.FirstUniqueStrings(testMap[name]), " "))
63 testcasesContent := testcasesContent(ctx.Config())
68 ctx.Strict("ART_TESTCASES_CONTENT", strings.Join(copy_cmds, " "))
71 …clang_path := filepath.Join(config.ClangDefaultBase, ctx.Config().PrebuiltOS(), config.ClangDefaul…
77 ctx.Strict("ART_TESTCASES_PREBUILT_CONTENT", strings.Join(copy_cmds, " "))
Dcodegen.go41 func codegen(ctx android.LoadHookContext, c *codegenProperties, t moduleType) {
44 e := ctx.Config().Getenv("ART_HOST_CODEGEN_ARCHS")
51 e = ctx.Config().Getenv("ART_TARGET_CODEGEN_ARCHS")
53 deviceArches = defaultDeviceCodegenArches(ctx)
72 ctx.ModuleErrorf("Unknown codegen architecture %q", archName)
96 ctx.AppendProperties(sp)
146 ctx.AppendProperties(cp)
148 ctx.AppendProperties(lp)
150 ctx.AppendProperties(staticLP)
153 ctx.AppendProperties(sharedLP)
[all …]
/art/test/674-hiddenapi/
Dbuild.py26 def build(ctx): argument
27 if ctx.jvm:
29 ctx.default_build(use_hiddenapi=True)
32 os.mkdir(ctx.test_dir / "res")
33 os.rename(ctx.test_dir / "674-hiddenapi.jar", ctx.test_dir / "res/boot.jar")
37 ctx.bash("rm -rf classes*")
39 ctx.default_build(use_hiddenapi=False)
/art/test/817-hiddenapi/
Dbuild.py19 def build(ctx): argument
20 if ctx.jvm:
30 ctx.default_build(use_hiddenapi=True)
33 os.mkdir(ctx.test_dir / "res")
34 os.rename(ctx.test_dir / "817-hiddenapi.jar", ctx.test_dir / "res/boot.jar")
38 ctx.bash("rm -rf classes*")
40 ctx.default_build(use_hiddenapi=False)
/art/test/118-noimage-dex2oat/
Drun.py18 def run(ctx, args): argument
26 ctx.echo("Run -Xnoimage-dex2oat")
27 ctx.default_run(args, runtime_option=["-Xnoimage-dex2oat"])
30 ctx.echo("Run -Ximage-dex2oat")
31 ctx.default_run(args, runtime_option=["-Ximage-dex2oat"])
34 ctx.echo("Run default")
35 ctx.default_run(args)
38 ctx.run(fr"sed -i '/^dalvikvm.* E.*\] /d' '{args.stderr_file}'")
/art/test/370-dex-v37/
Dbuild.py16 def build(ctx): argument
17 ctx.default_build()
18 if ctx.jvm:
21 with open(ctx.test_dir / "classes.dex", "rb+") as f:
25 (ctx.test_dir / "370-dex-v37.jar").unlink()
26 ctx.soong_zip([
27 "-o", ctx.test_dir / "370-dex-v37.jar", "-j", "-f",
28 ctx.test_dir / "classes.dex"
/art/runtime/
Dmonitor_android.cc40 android_log_event_list ctx(EVENT_LOG_TAG_dvm_lock_sample); in LogContentionEvent() local
52 ctx << proc_name; in LogContentionEvent()
59 ctx << (Thread::IsSensitiveThread() ? kIsSensitive : kIsNotSensitive); in LogContentionEvent()
64 ctx << thread_name; in LogContentionEvent()
67 ctx << wait_ms; in LogContentionEvent()
78 ctx << filename; in LogContentionEvent()
81 ctx << line_number; in LogContentionEvent()
85 ctx << method_name; in LogContentionEvent()
95 ctx << owner_filename; in LogContentionEvent()
98 ctx << owner_line_number; in LogContentionEvent()
[all …]
/art/test/180-native-default-method/
Dbuild.py16 def build(ctx): argument
17 ctx.default_build(d8_dex_container=False)
18 if ctx.jvm:
21 with open(ctx.test_dir / "classes.dex", "rb+") as f:
25 (ctx.test_dir / "180-native-default-method.jar").unlink()
26 ctx.soong_zip([
27 "-o", ctx.test_dir / "180-native-default-method.jar", "-j",
28 "-f", ctx.test_dir / "classes.dex"
/art/test/115-native-bridge/
Drun.py20 def run(ctx, args): argument
22 test_dir = ctx.env.DEX_LOCATION
31 ctx.run(f"ln -sf {libpath}/{bridge_so} {test_dir}/.")
32 ctx.run(
35 ctx.run(f"ln -sf {libpath}/libarttest.so {test_dir}/libarttest2.so")
36 ctx.run(f"ln -sf {libpath}/libarttestd.so {test_dir}/libarttestd2.so")
38 ctx.default_run(
44 ctx.run(
/art/test/909-attach-agent/
Drun.py18 def run(ctx, args): argument
25 ctx.expected_stdout = ctx.expected_stdout.with_suffix(".interpreter.txt")
27 ctx.default_run(
34 ctx.default_run(
41 ctx.default_run(
46 ctx.default_run(
/art/test/004-JniTest/
Dbuild.py31 def build(ctx): argument
32 ctx.default_build(d8_flags=["--release"])
35 shutil.rmtree(ctx.test_dir / "classes-aotex")
36 if not ctx.jvm:
37 os.remove(ctx.test_dir / "classes-aotex.jar")
38 os.remove(ctx.test_dir / "004-JniTest-aotex.jar")
/art/test/1969-force-early-return-void/
Drun.py18 def run(ctx, args): argument
19 ctx.default_run(args, jvmti=True)
22 ctx.expected_stdout = ctx.expected_stdout.with_suffix(".jvm.txt")
27 ctx.expected_stdout = ctx.expected_stdout.with_suffix(".no-jvm.txt")
/art/test/971-iface-super/
Dbuild.py19 def build(ctx): argument
20 ctx.bash("./generate-sources --" + ctx.mode)
21 if ctx.jvm:
23 ctx.default_build(api_level="default-methods")
/art/test/968-default-partial-compile-gen/
Dbuild.py19 def build(ctx): argument
20 ctx.bash("./generate-sources --" + ctx.mode)
21 if ctx.jvm:
23 ctx.default_build(api_level="default-methods")
/art/test/2000-virtual-list-structural/
Dbuild.py19 def build(ctx): argument
20 ctx.bash("./generate-sources")
21 ctx.default_build(use_desugar=False)
23 os.rename(ctx.test_dir / "src-ex/java/util/AbstractCollection.bak",
24 ctx.test_dir / "src-ex/java/util/AbstractCollection.java")
/art/test/677-fsi/
Drun.py18 def run(ctx, args): argument
21 ctx.default_run(
27 ctx.run(fr"sed -i '/Hello World/!d' '{args.stdout_file}'")
28 ctx.run(
33 ctx.run(fr"sed -i 's/^.*: //' '{args.stderr_file}'")
/art/test/004-ThreadStress/
Drun.py20 def run(ctx, args): argument
22 ctx.default_run(args, runtime_option=["-Xlockprofthreshold:10"])
26 ctx.default_run(
34 ctx.run(fr"sed -i 's/[0-9][0-9]*/N/g' '{args.stdout_file}'")
39 ctx.run(fr"sed -i '/Exception creating thread peer:/d' '{args.stderr_file}'")
/art/test/1966-get-set-local-objects-no-table/
Dbuild.py19 def build(ctx): argument
20 ctx.bash("./generate-sources --" + ctx.mode)
21 ctx.default_build()
/art/test/1965-get-set-local-primitive-no-tables/
Dbuild.py19 def build(ctx): argument
20 ctx.bash("./generate-sources --" + ctx.mode)
21 ctx.default_build()
/art/test/2239-varhandle-perf/
Dbuild.py17 def build(ctx): argument
18 ctx.bash("./generate-sources")
19 if ctx.jvm:
22 ctx.default_build(api_level="var-handles")
Drun.py18 def run(ctx, args): argument
19 ctx.default_run(args)
23 ctx.run(fr"cat '{args.stdout_file}'")
26 ctx.run(fr"> '{args.stdout_file}'")
/art/test/970-iface-super-resolution-gen/
Dbuild.py19 def build(ctx): argument
20 ctx.bash("./generate-sources --" + ctx.mode)
21 ctx.default_build(api_level="default-methods")
/art/test/952-invoke-custom/
Dbuild.py17 def build(ctx): argument
18 ctx.bash("./generate-sources")
19 ctx.default_build(use_desugar=False,
21 javac_classpath=[ctx.test_dir / "transformer.jar"])
/art/test/149-suspend-all-stress/
Drun.py18 def run(ctx, args): argument
19 ctx.default_run(args)
22 ctx.run(fr"tail -n 1 '{args.stdout_file}' > temp-stdout.txt")
23 ctx.run(fr"mv temp-stdout.txt '{args.stdout_file}'")

12345678910>>...19