/external/chromium-crossbench/tests/crossbench/plt/ |
D | test_win.py | 44 bin_path = self.path("foo/bar/default/crossbench_mock_binary.exe") 45 self.assertIsNone(self.platform.which(bin_path)) 46 with mock.patch("shutil.which", return_value=bin_path) as cm: 47 self.assertEqual(self.platform.which(bin_path), bin_path) 48 cm.assert_called_once_with(os.fspath(bin_path)) 64 bin_path = self.path("foo/bar/default/crossbench_mock_binary.exe") 65 self.assertIsNone(self.platform.search_app(bin_path)) 66 with mock.patch("shutil.which", return_value=bin_path) as cm: 68 self.assertEqual(self.platform.search_app(bin_path), bin_path) 70 cm.assert_called_once_with(os.fspath(bin_path)) [all …]
|
/external/bcc/tests/cc/ |
D | test_usdt_probes.cc | 63 if(probe->in_shared_object(probe->bin_path())) 67 REQUIRE(probe->bin_path().find("/test_libbcc") != std::string::npos); 196 static int probe_num_locations(const char *bin_path, const char *func_name) { in probe_num_locations() argument 201 sprintf(cmd, cmdfmt, bin_path, func_name); in probe_num_locations() 209 static int probe_num_arguments(const char *bin_path, const char *func_name) { in probe_num_arguments() argument 215 sprintf(cmd, cmdfmt, bin_path, func_name); in probe_num_arguments() 257 REQUIRE(probe->in_shared_object(probe->bin_path()) == true); 261 auto bin_path = probe->bin_path(); variable 263 (bin_path.find("/ruby") != std::string::npos) || 264 (bin_path.find("/libruby") != std::string::npos); [all …]
|
/external/ltp/testcases/misc/math/float/exp_log/ |
D | genexp_log.c | 68 char *funct, *bin_path; in main() local 76 bin_path = argv[1]; in main() 78 funct = malloc(strlen(bin_path) + MAX_FNAME_LEN); in main() 79 sprintf(funct, "%s/genexp", bin_path); in main() 83 sprintf(funct, "%s/genlog", bin_path); in main() 87 sprintf(funct, "%s/genlog10", bin_path); in main() 91 sprintf(funct, "%s/genfrexp", bin_path); in main() 95 sprintf(funct, "%s/genldexp", bin_path); in main() 99 sprintf(funct, "%s/genhypot", bin_path); in main() 103 sprintf(funct, "%s/genmodf", bin_path); in main()
|
/external/ltp/testcases/misc/math/float/trigo/ |
D | gentrigo.c | 69 char *funct, *bin_path; in main() local 77 bin_path = argv[1]; in main() 79 funct = malloc(strlen(bin_path) + MAX_FNAME_LEN); in main() 80 sprintf(funct, "%s/gencos", bin_path); in main() 84 sprintf(funct, "%s/gensin", bin_path); in main() 88 sprintf(funct, "%s/gentan", bin_path); in main() 92 sprintf(funct, "%s/genatan", bin_path); in main() 96 sprintf(funct, "%s/genatan2", bin_path); in main() 100 sprintf(funct, "%s/genacos", bin_path); in main() 104 sprintf(funct, "%s/genasin", bin_path); in main()
|
/external/ltp/testcases/misc/math/float/power/ |
D | genpower.c | 68 char *funct, *bin_path; in main() local 76 bin_path = argv[1]; in main() 78 funct = malloc(strlen(bin_path) + MAX_FNAME_LEN); in main() 79 sprintf(funct, "%s/genceil", bin_path); in main() 83 sprintf(funct, "%s/genfabs", bin_path); in main() 87 sprintf(funct, "%s/genfloor", bin_path); in main() 91 sprintf(funct, "%s/genfmod", bin_path); in main() 95 sprintf(funct, "%s/genpow", bin_path); in main() 99 sprintf(funct, "%s/gensqrt", bin_path); in main()
|
/external/ltp/testcases/misc/math/float/bessel/ |
D | genbessel.c | 72 char *funct, *bin_path; in main() local 78 bin_path = argv[1]; in main() 79 funct = malloc(strlen(bin_path) + MAX_FNAME_LEN); in main() 82 sprintf(funct, "%s/genj0", bin_path); in main() 86 sprintf(funct, "%s/genj1", bin_path); in main() 90 sprintf(funct, "%s/geny0", bin_path); in main() 94 sprintf(funct, "%s/geny1", bin_path); in main() 98 sprintf(funct, "%s/genlgamma", bin_path); in main()
|
/external/perfetto/python/perfetto/prebuilts/ |
D | perfetto_prebuilts.py | 62 bin_path = os.path.join(dir, file_name) 68 if os.path.exists(bin_path) and os.path.exists(sha256_path): 77 tmp_path = '%s.%d.tmp' % (bin_path, random.randint(0, 100000)) 86 os.replace(tmp_path, bin_path) 90 return bin_path 123 bin_path = get_perfetto_prebuilt(manifest) 125 sys.exit(subprocess.check_call([bin_path, *sys.argv[1:]])) 126 os.execv(bin_path, [bin_path] + sys.argv[1:])
|
/external/perfetto/tools/ |
D | tracebox | 214 bin_path = os.path.join(dir, file_name) 220 if os.path.exists(bin_path) and os.path.exists(sha256_path): 229 tmp_path = '%s.%d.tmp' % (bin_path, random.randint(0, 100000)) 238 os.replace(tmp_path, bin_path) 242 return bin_path 275 bin_path = get_perfetto_prebuilt(manifest) 277 sys.exit(subprocess.check_call([bin_path, *sys.argv[1:]])) 278 os.execv(bin_path, [bin_path] + sys.argv[1:])
|
D | traceconv | 228 bin_path = os.path.join(dir, file_name) 234 if os.path.exists(bin_path) and os.path.exists(sha256_path): 243 tmp_path = '%s.%d.tmp' % (bin_path, random.randint(0, 100000)) 252 os.replace(tmp_path, bin_path) 256 return bin_path 289 bin_path = get_perfetto_prebuilt(manifest) 291 sys.exit(subprocess.check_call([bin_path, *sys.argv[1:]])) 292 os.execv(bin_path, [bin_path] + sys.argv[1:])
|
D | trace_processor | 228 bin_path = os.path.join(dir, file_name) 234 if os.path.exists(bin_path) and os.path.exists(sha256_path): 243 tmp_path = '%s.%d.tmp' % (bin_path, random.randint(0, 100000)) 252 os.replace(tmp_path, bin_path) 256 return bin_path 289 bin_path = get_perfetto_prebuilt(manifest) 291 sys.exit(subprocess.check_call([bin_path, *sys.argv[1:]])) 292 os.execv(bin_path, [bin_path] + sys.argv[1:])
|
D | install_test_reporter_app | 90 bin_path = os.path.join(dir, file_name) 96 if os.path.exists(bin_path) and os.path.exists(sha256_path): 105 tmp_path = '%s.%d.tmp' % (bin_path, random.randint(0, 100000)) 114 os.replace(tmp_path, bin_path) 118 return bin_path 151 bin_path = get_perfetto_prebuilt(manifest) 153 sys.exit(subprocess.check_call([bin_path, *sys.argv[1:]])) 154 os.execv(bin_path, [bin_path] + sys.argv[1:])
|
D | cpu_profile | 235 bin_path = os.path.join(dir, file_name) 241 if os.path.exists(bin_path) and os.path.exists(sha256_path): 250 tmp_path = '%s.%d.tmp' % (bin_path, random.randint(0, 100000)) 259 os.replace(tmp_path, bin_path) 263 return bin_path 296 bin_path = get_perfetto_prebuilt(manifest) 298 sys.exit(subprocess.check_call([bin_path, *sys.argv[1:]])) 299 os.execv(bin_path, [bin_path] + sys.argv[1:])
|
/external/clang/utils/check_cfc/ |
D | test_check_cfc.py | 20 bin_path = r'/usr/bin' 26 bin_path, check_cfc.remove_dir_from_path(bin_path, bin_path)) 31 [superstring_path, bin_path, space_path, bin_path]) 32 stripped_path_var = check_cfc.remove_dir_from_path(path_var, bin_path) 34 self.assertNotIn(bin_path, stripped_path_var.split(os.pathsep)) 39 check_cfc.remove_dir_from_path(r'/usr//bin', bin_path)) 45 bin_path, check_cfc.remove_dir_from_path(path_var, r'/USR/BIN')) 49 bin_path, check_cfc.remove_dir_from_path(path_var, r'/USR/BIN'))
|
/external/arm-trusted-firmware/lib/romlib/ |
D | gen_combined_bl1_romlib.sh | 32 bin_path=$1 50 (cat $bin_path/bl1.bin 52 cat $bin_path/romlib/romlib.bin) > $bin_path/$$.tmp && 53 mv $bin_path/$$.tmp $bin_path/$output
|
/external/trusty/arm-trusted-firmware/lib/romlib/ |
D | gen_combined_bl1_romlib.sh | 32 bin_path=$1 50 (cat $bin_path/bl1.bin 52 cat $bin_path/romlib/romlib.bin) > $bin_path/$$.tmp && 53 mv $bin_path/$$.tmp $bin_path/$output
|
/external/ltp/testcases/misc/math/float/iperb/ |
D | geniperb.c | 72 char *funct, *bin_path; in main() local 78 bin_path = argv[1]; in main() 80 funct = malloc(strlen(bin_path) + MAX_FNAME_LEN); in main() 81 sprintf(funct, "%s/gencosh", bin_path); in main() 85 sprintf(funct, "%s/gensinh", bin_path); in main() 89 sprintf(funct, "%s/gentanh", bin_path); in main()
|
/external/bcc/src/cc/usdt/ |
D | usdt.cc | 35 Location::Location(uint64_t addr, const std::string &bin_path, const char *arg_fmt) in Location() argument 37 bin_path_(bin_path) { in Location() 58 Probe::Probe(const char *bin_path, const char *provider, const char *name, in Probe() argument 61 : bin_path_(bin_path), in Probe() 70 bool Probe::in_shared_object(const std::string &bin_path) { in in_shared_object() argument 71 if (object_type_map_.find(bin_path) == object_type_map_.end()) { in in_shared_object() 72 return (object_type_map_[bin_path] = bcc_elf_is_shared_obj(bin_path.c_str())); in in_shared_object() 74 return object_type_map_[bin_path]; in in_shared_object() 77 bool Probe::resolve_global_address(uint64_t *global, const std::string &bin_path, in resolve_global_address() argument 79 if (in_shared_object(bin_path)) { in resolve_global_address() [all …]
|
/external/ltp/testcases/misc/math/float/ |
D | main.c | 82 int generate(char *datadir, char *bin_path) in generate() argument 87 cmdline = malloc(2 * strlen(bin_path) + strlen(datadir) + strlen(GENERATOR) + strlen(fmt)); in generate() 90 sprintf(cmdline, fmt, datadir, bin_path, GENERATOR, bin_path); in generate() 106 char *bin_path, *ltproot; in main() local 128 bin_path = malloc(strlen(ltproot) + 16); in main() 129 if (bin_path == NULL) { in main() 132 sprintf(bin_path, "%s/testcases/bin", ltproot); in main() 170 generate(datadir, bin_path); in main() 175 SAFE_FREE(bin_path); in main()
|
/external/brotli/scripts/dictionary/ |
D | step-02-rfc-to-bin.py | 29 bin_path = "dictionary.bin" variable 31 with open(bin_path, "wb") as output: 34 print("Parsed and saved " + str(len(dictionary)) + " bytes to " + bin_path)
|
/external/perfetto/python/perfetto/trace_processor/ |
D | platform.py | 42 def get_shell_path(self, bin_path: str) -> str: 43 if bin_path is not None: 44 if not os.path.isfile(bin_path): 46 return bin_path
|
/external/chromium-crossbench/crossbench/browsers/safari/ |
D | safari.py | 23 def find_safaridriver(bin_path: pth.AnyPath, 25 assert platform.is_file(bin_path), f"Invalid binary path: {bin_path}" 26 driver_path = bin_path.parent / "safaridriver" 30 assert compat.is_relative_to(bin_path, Safari.default_path(platform)), (
|
/external/chromium-crossbench/crossbench/plt/ |
D | macos.py | 68 bin_path = app_path / "Contents" / "MacOS" / app_path.stem 69 if self.exists(bin_path): 70 return bin_path 71 if not self.exists(bin_path.parent): 75 path for path in self.iterdir(bin_path.parent) if self.is_file(path) 86 bin_path = ( 89 if self.is_file(bin_path): 90 return bin_path
|
/external/tensorflow/tensorflow/tsl/platform/default/ |
D | env.cc | 207 string bin_path = this->GetExecutablePath(); in GetRunfilesDir() local 209 std::size_t pos = bin_path.find(runfiles_suffix); in GetRunfilesDir() 214 return bin_path.substr(0, pos + runfiles_suffix.length()); in GetRunfilesDir() 219 string runfiles_path = bin_path + runfiles_suffix; in GetRunfilesDir() 226 return bin_path.substr(0, bin_path.find_last_of("/\\")); in GetRunfilesDir()
|
/external/bcc/src/cc/ |
D | usdt.h | 224 Location(uint64_t addr, const std::string &bin_path, const char *arg_fmt); 246 bool resolve_global_address(uint64_t *global, const std::string &bin_path, 249 void add_location(uint64_t addr, const std::string &bin_path, const char *fmt); 252 Probe(const char *bin_path, const char *provider, const char *name, 281 bool in_shared_object(const std::string &bin_path); 283 const std::string &bin_path() { return bin_path_; } in bin_path() function 306 std::string resolve_bin_path(const std::string &bin_path); 314 Context(const std::string &bin_path, uint8_t mod_match_inode_only = 1); 316 Context(int pid, const std::string &bin_path,
|
/external/bcc/src/cc/includes/ |
D | usdt.h | 224 Location(uint64_t addr, const std::string &bin_path, const char *arg_fmt); 246 bool resolve_global_address(uint64_t *global, const std::string &bin_path, 249 void add_location(uint64_t addr, const std::string &bin_path, const char *fmt); 252 Probe(const char *bin_path, const char *provider, const char *name, 281 bool in_shared_object(const std::string &bin_path); 283 const std::string &bin_path() { return bin_path_; } in bin_path() function 306 std::string resolve_bin_path(const std::string &bin_path); 314 Context(const std::string &bin_path, uint8_t mod_match_inode_only = 1); 316 Context(int pid, const std::string &bin_path,
|