Home
last modified time | relevance | path

Searched refs:sys (Results 1 – 25 of 83) sorted by relevance

1234

/build/soong/python/tests/
Dpy-cmd_test.py17 import sys
33 assert_equal("len(sys.argv)", len(sys.argv), 3)
34 assert_equal("sys.argv[1]", sys.argv[1], "arg1")
35 assert_equal("sys.argv[2]", sys.argv[2], "arg2")
37 assert_equal("len(sys.argv)", len(sys.argv), 3)
38 assert_equal("sys.argv[1]", sys.argv[1], "--arg1")
39 assert_equal("sys.argv[2]", sys.argv[2], "arg2")
41 assert_equal("len(sys.argv)", len(sys.argv), 1)
45 sys.exit(1)
46 sys.exit(0)
[all …]
Dpar_test.py17 import sys
35 assert_equal("sys.argv[0]", sys.argv[0], archive)
36 assert_equal("sys.executable", sys.executable, None)
37 assert_equal("sys.exec_prefix", sys.exec_prefix, archive)
38 assert_equal("sys.prefix", sys.prefix, archive)
42 assert_equal("len(sys.path)", len(sys.path), 3)
43 assert_equal("sys.path[0]", sys.path[0], archive)
44 assert_equal("sys.path[1]", sys.path[1], os.path.join(archive, "internal"))
45 assert_equal("sys.path[2]", sys.path[2], os.path.join(archive, "internal", "stdlib"))
48 assert_equal("len(sys.argv)", len(sys.argv), 3)
[all …]
/build/make/tools/
Djava-layers.py5 import sys
8 sys.stderr.write("usage: java-layers.py DEPENDENCY_FILE SOURCE_DIRECTORIES...\n")
9 sys.stderr.write("\n")
10 sys.stderr.write("Enforces layering between java packages. Scans\n")
11 sys.stderr.write("DIRECTORY and prints errors when the packages violate\n")
12 sys.stderr.write("the rules defined in the DEPENDENCY_FILE.\n")
13 sys.stderr.write("\n")
14 sys.stderr.write("Prints a warning when an unknown package is encountered\n")
15 sys.stderr.write("on the assumption that it should fit somewhere into the\n")
16 sys.stderr.write("layering.\n")
[all …]
Dfileslist_util.py18 import getopt, json, sys
45 sys.exit(2)
50 sys.exit(2)
55 sys.exit(2)
60 sys.exit()
63 sys.exit()
68 main(sys.argv)
Dnormalize_path.py21 import sys
23 if len(sys.argv) > 1:
24 for p in sys.argv[1:]:
26 sys.exit(0)
28 for line in sys.stdin:
Dcheck_radio_versions.py17 import sys
25 if len(sys.argv) < 2:
26 sys.exit(0)
29 f = open(sys.argv[1])
39 for item in sys.argv[2:]:
74 fn, versions[digest], key, sys.argv[1])
79 sys.exit(1)
Dmerge-event-log-tags.py34 import sys
50 opts, args = getopt.getopt(sys.argv[1:], "ho:m:")
54 sys.exit(2)
59 sys.exit(2)
65 print >> sys.stderr, "unhandled option %s" % (o,)
66 sys.exit(1)
136 print >> sys.stderr, "%s:%d: error: %s" % (fn, ln, msg)
137 sys.exit(1)
141 print >> sys.stderr, "%s:%d: warning: %s" % (fn, ln, msg)
163 print >> sys.stderr, ("Error: Tag number not defined for tag `%s'."
[all …]
Dfilter-product-graph.py5 import sys
36 lines = sys.stdin.readlines()
45 sys.stderr.write("argv: " + str(sys.argv) + "\n")
46 if not (len(sys.argv) == 2 and sys.argv[1] == "--all"):
47 targets = sys.argv[1:]
Djava-event-log-tags.py31 import sys
38 opts, args = getopt.getopt(sys.argv[1:], "ho:")
42 sys.exit(2)
47 sys.exit(2)
51 print >> sys.stderr, "unhandled option %s" % (o,)
52 sys.exit(1)
57 sys.exit(1)
95 print >> sys.stderr, "%s:%d: error: %s" % (fn, ln, msg)
96 sys.exit(1)
Dpost_process_props.py18 import sys
62 sys.stderr.write("error: %s cannot exceed %d bytes: " %
64 sys.stderr.write("%s (%d)\n" % (p.value, len(p.value)))
68 sys.stderr.write("error: found unresolved optional prop assignment:\n")
69 sys.stderr.write(str(p) + "\n")
104 sys.stderr.write("error: found duplicate sysprop assignments:\n")
106 sys.stderr.write("%s\n" % str(p))
221 sys.stderr.write("bad command line: " + str(argv) + "\n")
222 sys.exit(1)
227 sys.exit(1)
[all …]
Dgenerate-self-extracting-archive.py37 import sys
124 sys.exit(1)
138 sys.exit(1)
142 sys.exit(1)
181 main(sys.argv)
Dsoong_to_convert.py57 import sys
130 if len(sys.argv) != 2:
131 print("usage: soong_conversion.py <file>", file=sys.stderr)
132 sys.exit(1)
134 main(sys.argv[1])
Dextract_kernel.py23 import sys
173 sys.stderr.write(
189 default=sys.stdin)
196 const=sys.stdout)
203 const=sys.stdout)
210 const=sys.stdout)
241 sys.exit(main())
/build/soong/finder/fs/
Dfs_linux.go25 sys := info.Sys()
26 linuxStats, ok := sys.(*syscall.Stat_t)
30 return 0, fmt.Errorf("%v is not a *syscall.Stat_t", sys)
34 sys := info.Sys()
35 linuxStats, ok := sys.(*syscall.Stat_t)
39 return 0, fmt.Errorf("%v is not a *syscall.Stat_t", sys)
43 sys := info.Sys()
44 linuxStats, ok := sys.(*syscall.Stat_t)
48 return time.Time{}, fmt.Errorf("%v is not a *syscall.Stat_t", sys)
Dfs_darwin.go25 sys := info.Sys()
26 darwinStats, ok := sys.(*syscall.Stat_t)
30 return 0, fmt.Errorf("%v is not a *syscall.Stat_t", sys)
34 sys := info.Sys()
35 darwinStats, ok := sys.(*syscall.Stat_t)
39 return 0, fmt.Errorf("%v is not a *syscall.Stat_t", sys)
43 sys := info.Sys()
44 darwinStats, ok := sys.(*syscall.Stat_t)
48 return time.Time{}, fmt.Errorf("%v is not a *syscall.Stat_t", sys)
/build/make/tools/releasetools/
Dmake_recovery_patch.py21 import sys
25 if sys.hexversion < 0x02070000:
26 print("Python 2.7 or newer is required.", file=sys.stderr)
27 sys.exit(1)
48 sys.exit(0)
67 main(sys.argv[1:])
Dimg_from_target_files.py44 import sys
50 if sys.hexversion < 0x02070000:
51 print('Python 2.7 or newer is required.', file=sys.stderr)
52 sys.exit(1)
234 sys.exit(1)
246 main(sys.argv[1:])
249 sys.exit(1)
Dimg_from_target_files44 import sys
50 if sys.hexversion < 0x02070000:
51 print('Python 2.7 or newer is required.', file=sys.stderr)
52 sys.exit(1)
234 sys.exit(1)
246 main(sys.argv[1:])
249 sys.exit(1)
/build/make/core/tasks/
Dfind-shareduid-violation.py21 import sys
24 if len(sys.argv) < 3:
28 product_out = sys.argv[1]
29 aapt = sys.argv[2]
46 print(error_msg, file=sys.stderr)
47 sys.exit()
/build/soong/python/tests/testpkg/
Dpar_test.py16 import sys
28 archive = sys.modules["__main__"].__loader__.archive
34 if sys.version_info[0] == 2:
43 sys.exit(1)
/build/soong/python/scripts/
Dmain.py2 import sys
4 sys.argv[0] = __loader__.archive
10 sys.executable = None
/build/make/core/tasks/check_boot_jars/
Dcheck_boot_jars.py12 import sys
59 print >> sys.stderr, ('Error: %s contains class file %s, whose package name %s is empty or'
64 print >> sys.stderr, ('Error: %s does not contain any class files.' % jar)
89 sys.exit(main(sys.argv[1:]))
/build/make/core/
Dchecktree3 import sys, os, re
69 if len(sys.argv) == 1:
71 elif len(sys.argv) == 2 and sys.argv[1] == "-a":
76 sys.exit(1)
112 sys.exit(2)
/build/make/tools/fs_config/
Dfs_config_generator.py17 import sys
292 sys.exit('Could not parse capability define "%s":"%s"'
339 sys.exit('Error processing parsed data: "%s"' % (str(exception)))
389 sys.exit(
566 sys.exit('Invalid section "%s" in file: "%s"' % (section,
600 sys.exit('AID "%s" must be prefixed with a partition name' %
606 sys.exit(emsg)
633 sys.exit(error_message(tmp_errmsg))
638 sys.exit(error_message('Found specified but unset "value"'))
643 sys.exit(error_message(exception))
[all …]
/build/soong/scripts/
Dconstruct_context.py22 import sys
74 args = parse_args(sys.argv[1:])
86 print('error: ' + str(err), file=sys.stderr)
87 sys.exit(-1)

1234