Searched refs:sys (Results 1 – 25 of 91) 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 | post_process_props.py | 18 import sys 62 sys.stderr.write("error: non-GRF device must not define " 70 sys.stderr.write("error: ro.board.first_api_level(%d) must be less than " 78 sys.stderr.write("error: ro.board.api_level(%d) must be neither less " 101 sys.stderr.write("error: %s cannot exceed %d bytes: " % 103 sys.stderr.write("%s (%d)\n" % (p.value, len(p.value))) 107 sys.stderr.write("error: found unresolved optional prop assignment:\n") 108 sys.stderr.write(str(p) + "\n") 143 sys.stderr.write("error: found duplicate sysprop assignments:\n") 145 sys.stderr.write("%s\n" % str(p)) [all …]
|
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 | compare_builds.py | 126 import sys 206 args = argparser.parse_args(sys.argv[1:]) 209 sys.stderr.write("Can't pass --detect-embedded-paths and --incremental together.\n") 210 sys.exit(1) 212 sys.stderr.write("Can't pass --detect-embedded-paths and --no-check-out-dir together.\n") 213 sys.exit(1) 215 sys.stderr.write("The --incremental flag is required if the --touch flag is passed.") 216 sys.exit(1) 319 sys.stderr.write("FAILED: Please run from the root of the tree.\n") 320 sys.exit(1) [all …]
|
D | extract_kernel.py | 23 import sys 181 sys.stderr.write( 190 return b.buffer if sys.version_info.major == 3 else b 202 default=to_bytes_io(sys.stdin)) 209 const=to_bytes_io(sys.stdout)) 216 const=to_bytes_io(sys.stdout)) 223 const=to_bytes_io(sys.stdout)) 230 const=to_bytes_io(sys.stdout)) 265 sys.exit(main())
|
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 | findleaves.py | 24 import sys 71 sys.stderr.write("""Usage: %(progName)s [<options>] [--dir=<dir>] <filenames> 83 "progName": os.path.split(sys.argv[0])[1], 85 sys.exit(1) 127 main(sys.argv)
|
/build/soong/finder/fs/ |
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)
|
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)
|
/build/make/tools/product_config/ |
D | inherit_tree.py | 9 import sys 12 sys.stdout.write("%s%s" % (prefix, node)) 15 sys.stdout.write(" {\n") 18 sys.stdout.write("%s}\n" % prefix); 20 sys.stdout.write("\n") 25 sys.exit(1) 46 main(sys.argv)
|
/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:])
|
/build/soong/scripts/check_boot_jars/ |
D | check_boot_jars.py | 12 import sys 57 print >> sys.stderr, 'Error processing jar %s - %s' % (jar, e) 58 print >> sys.stderr, stdout 70 print >> sys.stderr, ('Error: %s contains class file %s, whose package name "%s" is empty or' 75 print >> sys.stderr, ('Error: %s does not contain any packages.' % jar) 101 sys.exit(main(sys.argv[1:]))
|
/build/make/core/ |
D | dex_preopt_config_merger.py | 34 import sys 39 if len(sys.argv) < 2: 40 raise SystemExit('usage: %s <main-config> [dep-config ...]' % sys.argv[0]) 44 for arg in sys.argv[1:]: 95 with open(sys.argv[1], 'w') as f:
|
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/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/soong/scripts/ |
D | construct_context.py | 22 import sys 65 args = parse_args(sys.argv[1:]) 77 print('error: ' + str(err), file=sys.stderr) 78 sys.exit(-1)
|
1234