/tools/security/fuzzing/measure_sandbox/ |
D | measure_sandbox.cpp | 95 void print_usage(char** argv) { in print_usage() argument 96 fprintf(stderr, "usage: %s <app|system> <file>\n", argv[0]); in print_usage() 99 int main(int argc, char** argv) { in main() argument 101 print_usage(argv); in main() 105 if (!strcmp(argv[1], "app")) { in main() 109 } else if (!strcmp(argv[1], "system")) { in main() 114 print_usage(argv); in main() 118 if (open(argv[2], O_RDONLY) == -1) { in main() 119 fprintf(stderr, "failed to open %s\n", argv[2]); in main()
|
/tools/security/sanitizer-status/ |
D | sanitizer-status.cpp | 165 int have_option(const char* option, const char** argv, const int argc) { in have_option() argument 167 if (!strcmp(option, argv[i])) in have_option() 172 int main(int argc, const char** argv) { in main() argument 179 if (test_everything || have_option("asan", argv, argc)) { in main() 198 if (test_everything || have_option("hwasan", argv, argc)) { in main() 217 if (test_everything || have_option("msan", argv, argc)) { in main() 228 if (test_everything || have_option("kasan", argv, argc)) { in main() 239 if (test_everything || have_option("kcov", argv, argc)) { in main() 250 if (test_everything || have_option("ubsan", argv, argc)) { in main() 261 if (test_everything || have_option("gwp_asan", argv, argc)) { in main() [all …]
|
/tools/security/fuzzing/orphans/libufdt/ |
D | mkcorpus.c | 56 int main(int argc, char *argv[]) { in main() argument 69 if (strcmp(argv[3], "-") == 0) { in main() 72 out = fopen(argv[3], "wbe"); in main() 74 fprintf(stderr, "fopen(%s) failed: %m\n", argv[1]); in main() 79 uint32_t len = htonl(get_file_length(argv[1])); in main() 86 append_file(out, argv[1]); in main() 87 append_file(out, argv[2]); in main()
|
/tools/acloud/metrics/ |
D | metrics.py | 27 def LogUsage(argv): argument 46 if _NO_METRICS in argv: 48 if len(argv) > 0 and argv[0] in _NO_METRICS_COMMANDS: 55 command_line=' '.join(argv), 56 test_references=[argv[0]])
|
D | metrics_test.py | 35 argv = ["create", "--local-instance"] 36 self.assertTrue(metrics.LogUsage(argv)) 39 argv = ["create", "--no-metrics"] 40 self.assertFalse(metrics.LogUsage(argv)) 43 argv = ["delete", "--all"] 44 self.assertFalse(metrics.LogUsage(argv))
|
/tools/asuite/atest/ |
D | bug_detector_unittest.py | 74 argv = ['test2', 'test1'] 76 dtr = bug_detector.BugDetector(argv, 0) 77 self.assertEqual(dtr.get_detect_key(argv), want_key) 80 argv = ['-v', 'test2', 'test1'] 82 dtr = bug_detector.BugDetector(argv, 0) 83 self.assertEqual(dtr.get_detect_key(argv), want_key) 86 argv = ['--verbose', 'test2', 'test3', 'test1'] 88 dtr = bug_detector.BugDetector(argv, 0) 89 self.assertEqual(dtr.get_detect_key(argv), want_key)
|
D | bug_detector.py | 40 def __init__(self, argv, exit_code, history_file=None): argument 48 self.detect_key = self.get_detect_key(argv) 55 def get_detect_key(self, argv): argument 67 argv_without_option = [x for x in argv if x not in _DETECT_OPTION_FILTER]
|
D | atest_main.py | 220 def _parse_args(argv: List[Any]) -> Tuple[argparse.ArgumentParser, List[str]]: 230 pruned_argv = argv 232 if CUSTOM_ARG_FLAG in argv: 233 custom_args_index = argv.index(CUSTOM_ARG_FLAG) 234 pruned_argv = argv[:custom_args_index] 238 for arg in argv[custom_args_index + 1 :]: 911 def _send_start_event(argv: List[Any], tests: List[str]): 919 command_line=' '.join(argv), 978 argv: List[Any], 998 argv, [all …]
|
/tools/netsim/testing/tests/wifi/nsd/ |
D | instrumentation_test.py | 47 if '--' in sys.argv: 48 index = sys.argv.index('--') 49 sys.argv = sys.argv[:1] + sys.argv[index + 1 :]
|
/tools/netsim/rust/ |
D | netsimd.cc | 1 extern "C" void rust_main(int argc, char *argv[]); 3 int main(int argc, char *argv[]) { rust_main(argc, argv); } in main() argument
|
/tools/netsim/rust/daemon/src/ |
D | rust_main.rs | 51 pub unsafe extern "C" fn rust_main(argc: c_int, argv: *const *const c_char) { in rust_main() 55 let netsimd_args = get_netsimd_args(argc, argv); in rust_main() 61 fn get_netsimd_args(argc: c_int, argv: *const *const c_char) -> NetsimdArgs { in get_netsimd_args() 68 let mut argv: Vec<_> = (0..argc) in get_netsimd_args() localVariable 72 std::ffi::CStr::from_ptr(*argv.add(i as usize)).to_str().unwrap().to_owned() in get_netsimd_args() 76 env_args.split(' ').for_each(|arg| argv.push(arg.to_string())); in get_netsimd_args() 78 NetsimdArgs::parse_from(argv) in get_netsimd_args() 82 let mut argv = env::args().collect::<Vec<String>>(); in get_netsimd_args() localVariable 84 env_args.split(' ').for_each(|arg| argv.push(arg.to_string())); in get_netsimd_args() 86 NetsimdArgs::parse_from(argv) in get_netsimd_args()
|
/tools/asuite/team_build_scripts/ |
D | filter_teams.py | 63 def parse_args(argv) -> argparse.Namespace: argument 71 return parser.parse_args(argv) 74 def main(argv): argument 75 args = parse_args(argv) 159 main(sys.argv[1:])
|
/tools/netsim/src/util/ |
D | ini_file.cc | 43 auto argv = stringutils::Split(line, "="); in Read() local 45 if (argv.size() != 2) continue; in Read() 46 auto key = stringutils::Trim(argv[0]); in Read() 47 auto val = stringutils::Trim(argv[1]); in Read()
|
/tools/test/graphicsbenchmark/functional_tests/native/ |
D | main.cpp | 32 int main(int argc, char **argv) { in main() argument 34 testing::InitGoogleTest(&argc, argv); in main() 42 int c = getopt_long(argc, argv, "", long_options, nullptr); in main()
|
/tools/dexter/dexter/ |
D | main.cc | 19 int main(int argc, char* argv[]) { in main() argument 20 Dexter dexter(argc, argv); in main()
|
D | dexter.h | 32 Dexter(int argc, char* argv[]) : argc_(argc), argv_(argv) {} in Dexter() argument
|
/tools/repohooks/tools/ |
D | google-java-format.py | 58 def main(argv): argument 61 opts = parser.parse_args(argv) 93 sys.exit(main(sys.argv[1:]))
|
D | pylint.py | 81 def main(argv): argument 84 opts, unknown = parser.parse_known_args(argv) 129 sys.exit(main(sys.argv[1:]))
|
D | clang-format.py | 67 def main(argv): argument 70 opts = parser.parse_args(argv) 145 sys.exit(main(sys.argv[1:]))
|
D | android_test_mapping_format.py | 178 def main(argv): argument 181 opts = parser.parse_args(argv) 198 sys.exit(main(sys.argv[1:]))
|
/tools/repohooks/rh/ |
D | config_test.py | 87 def main(argv): argument 90 opts = parser.parse_args(argv) 110 sys.exit(main(sys.argv[1:]))
|
/tools/acloud/public/acloud_kernel/ |
D | acloud_kernel.py | 67 def main(argv): argument 76 args = _ParseArgs(argv)
|
/tools/asuite/atest/integration_tests/ |
D | split_build_test_script.py | 679 argv: list[str], 756 return parser.parse_known_args(argv) 761 argv: list[str], 825 argv=argv, 860 argv: list[str] = None, 881 if not argv: 882 argv = sys.argv 886 args, unittest_argv = _parse_known_args(argv, argparser_update_func)
|
/tools/doc_generation/ |
D | switcher4.py | 236 def main(argv): argument 244 opts, args = getopt.getopt(argv,"",["work","verbose","solo","max="]) 300 main(sys.argv[1:])
|
/tools/test/connectivity/wts-acts/ |
D | __main__.py | 6 main(sys.argv[1:])
|