Searched refs:sys (Results 1 – 25 of 83) sorted by relevance
1234
/build/soong/python/tests/ |
D | py-cmd_test.py | 17 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 …]
|
D | par_test.py | 17 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/ |
D | java-layers.py | 5 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 …]
|
D | fileslist_util.py | 18 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)
|
D | normalize_path.py | 21 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:
|
D | check_radio_versions.py | 17 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)
|
D | merge-event-log-tags.py | 34 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 …]
|
D | filter-product-graph.py | 5 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:]
|
D | java-event-log-tags.py | 31 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)
|
D | post_process_props.py | 18 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 …]
|
D | generate-self-extracting-archive.py | 37 import sys 124 sys.exit(1) 138 sys.exit(1) 142 sys.exit(1) 181 main(sys.argv)
|
D | soong_to_convert.py | 57 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])
|
D | extract_kernel.py | 23 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/ |
D | fs_linux.go | 25 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)
|
D | fs_darwin.go | 25 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/ |
D | make_recovery_patch.py | 21 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:])
|
D | img_from_target_files.py | 44 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)
|
D | img_from_target_files | 44 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/ |
D | find-shareduid-violation.py | 21 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/ |
D | par_test.py | 16 import sys 28 archive = sys.modules["__main__"].__loader__.archive 34 if sys.version_info[0] == 2: 43 sys.exit(1)
|
/build/soong/python/scripts/ |
D | main.py | 2 import sys 4 sys.argv[0] = __loader__.archive 10 sys.executable = None
|
/build/make/core/tasks/check_boot_jars/ |
D | check_boot_jars.py | 12 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/ |
D | checktree | 3 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/ |
D | fs_config_generator.py | 17 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/ |
D | construct_context.py | 22 import sys 74 args = parse_args(sys.argv[1:]) 86 print('error: ' + str(err), file=sys.stderr) 87 sys.exit(-1)
|
1234