/external/chromium-trace/catapult/devil/devil/utils/ |
file_utils.py | 8 def MergeFiles(dest_file, source_files): 12 dest_file: File to be written to. 16 if not os.path.exists(os.path.dirname(dest_file)): 17 os.makedirs(os.path.dirname(dest_file)) 19 with open(dest_file, 'w') as dest_f: 24 # Something went wrong when creating dest_file. Cleaning up. 26 os.remove(dest_file)
|
/external/libmojo/third_party/catapult/devil/devil/utils/ |
file_utils.py | 8 def MergeFiles(dest_file, source_files): 12 dest_file: File to be written to. 16 if not os.path.exists(os.path.dirname(dest_file)): 17 os.makedirs(os.path.dirname(dest_file)) 19 with open(dest_file, 'w') as dest_f: 24 # Something went wrong when creating dest_file. Cleaning up. 26 os.remove(dest_file)
|
/development/tools/idegen/ |
index-gen.sh | 42 dest_file=${root_dir}/module-index.txt 44 echo "Generating index file $dest_file..." 50 sed -e 's/LOCAL_PACKAGE_NAME *:= *//g' -e 's/LOCAL_MODULE *:= *//g' -e 's/\^M*$//g' < $tmp_file > $dest_file 52 mv $dest_file $tmp_file 55 grep -v "^$root_dir/vendor/google" $tmp_file > $dest_file
|
/system/core/adb/ |
bugreport.cpp | 40 BugreportStandardStreamsCallback(const std::string& dest_dir, const std::string& dest_file, 45 dest_file_(dest_file), 229 std::string dest_file, dest_dir; local 242 dest_file = argv[1]; 246 if (dest_file.empty()) { 248 dest_file = "bugreport.zip"; 250 if (!android::base::EndsWithIgnoreCase(dest_file, ".zip")) { 251 dest_file += ".zip"; 267 BugreportStandardStreamsCallback bugz_callback(dest_dir, dest_file, show_progress, this);
|
bugreport_test.cpp | 182 std::string dest_file = local 187 EXPECT_CALL(br_, DoSyncPull(ElementsAre(StrEq("/device/da_bugreport.zip")), StrEq(dest_file), 199 std::string dest_file = local 207 EXPECT_CALL(br_, DoSyncPull(ElementsAre(StrEq("/device/da_bugreport.zip")), StrEq(dest_file), 339 std::string dest_file = local 346 EXPECT_CALL(br_, DoSyncPull(ElementsAre(StrEq("/device/da_bugreport.zip")), StrEq(dest_file), 372 std::string dest_file = local 379 EXPECT_CALL(br_, DoSyncPull(ElementsAre(StrEq("/device/da_bugreport.zip")), StrEq(dest_file),
|
/external/skia/tools/svg/ |
svg_downloader.py | 22 dest_file = os.path.join(output_dir, prefix + os.path.basename(svg_url)) 24 urllib.urlretrieve(svg_url, dest_file)
|
/external/skqp/tools/svg/ |
svg_downloader.py | 22 dest_file = os.path.join(output_dir, prefix + os.path.basename(svg_url)) 24 urllib.urlretrieve(svg_url, dest_file)
|
/external/autotest/server/hosts/ |
teststation_host.py | 139 def download_file(self, src_url, dest_file, unzip=False, unzip_dest=None): 143 @param dest_file: Destination for the file to be downloaded to. 146 provided, dest_file's directory is used. 151 self.run('wget -q -O "%s" "%s"' % (dest_file, src_url)) 153 readlink_result = self.run('readlink -f "%s"' % dest_file) 158 self.run('unzip "%s" -x -d "%s"' % (dest_file, unzip_dest)) 163 self.run('rm -f "%s"' % dest_file)
|
/external/python/cpython3/Lib/test/ |
test_symbol.py | 16 def _copy_file_without_generated_symbols(self, source_file, dest_file): 19 with open(dest_file, 'w') as fp:
|
test_keyword.py | 41 def _copy_file_without_generated_keywords(self, source_file, dest_file): 45 with open(dest_file, 'wb') as fp:
|
/pdk/build/ |
pdk_utils.py | 69 dest_file = dest_top + "/" + file_name 70 dest_dir = os.path.dirname(dest_file) 73 print "copy file ", src_full_name, " to ", dest_file 74 os.system("cp -a " + src_full_name + " " + dest_file) 78 def copy_file_new_name_if_exists(src_full_name, dest_dir, dest_file): 79 """copy src_full_name (including dir + file name) to dest_dir/dest_file 84 dest_full_name = dest_dir + "/" + dest_file
|
/external/icu/tools/ |
icuutil.py | 153 def MakeAndCopyOverlayTzIcuData(icu_build_dir, dest_file): 223 shutil.copyfile(generated_dat_file, dest_file) 224 print 'ICU overlay .dat can be found here: %s' % dest_file
|
/external/autotest/server/cros/ |
sonic_extension_downloader.py | 54 def download_extension(dest_file): 57 @param dest_file: Path to a destination file for the extension. 62 with open(dest_file, 'w') as f:
|
/external/toolchain-utils/cros_utils/ |
logger.py | 87 dest_file = '%s.%s' % (basename, extension) 88 if os.path.exists(dest_file): 89 os.remove(dest_file) 90 os.symlink(src_file, dest_file) 253 dest_file = '%s.%s' % (basename, extension) 254 print('MockLogger: Calling os.symlink(%s, %s)' % (src_file, dest_file))
|
/art/patchoat/ |
patchoat_test.cc | 238 std::unique_ptr<File> dest_file(OS::OpenFileReadWrite(dest_image_filename.c_str())); 239 if (dest_file.get() == nullptr) { 245 if (!dest_file->ReadFully(&dest_header, sizeof(dest_header))) { 252 if (!dest_file->ResetOffset()) { 258 if (!dest_file->WriteFully(&dest_header, sizeof(dest_header))) { 261 dest_file->Erase(); 264 if (dest_file->FlushCloseOrErase() != 0) {
|
/external/python/cpython3/Tools/importbench/ |
importbench.py | 219 if options.dest_file: 220 with options.dest_file: 221 json.dump(new_results, options.dest_file, indent=2) 234 parser.add_argument('-w', '--write', dest='dest_file',
|
/external/devlib/devlib/utils/ |
ssh.py | 450 dest_file = os.path.basename(filename) 451 logger.debug("pull_file {} {}".format(filename, dest_file)) 461 dest_file)) 463 self._gem5_shell("ls -la {}".format(dest_file)) 465 self._gem5_util("writefile {}".format(dest_file)) 469 dest_file)): 473 if os.path.exists(os.path.join(dest, dest_file)): 476 .format(dest_file)) 478 shutil.move(os.path.join(self.gem5_out_dir, dest_file), dest) [all...] |
/external/tensorflow/tensorflow/tools/git/ |
gen_git_source.py | 218 spec, head_symlink, _, dest_file = arglist 231 write_version_info(dest_file, git_version)
|
/external/autotest/client/bin/ |
local_host_unittest.py | 197 dest_file = os.path.join(self.tmpdir.name, 'dest') 199 host.get_file(source_file, dest_file) 200 self.assertTrue(os.path.isfile(dest_file))
|
/external/toolchain-utils/ |
repo_to_repo.py | 81 dest_file = os.path.join(dest_dir, f) 83 if os.path.exists(dest_file): 84 command = 'rm -rf %s' % dest_file
|
/external/vulkan-validation-layers/scripts/ |
helper_file_generator.py | 149 dest_file = '' 150 dest_file += self.OutputDestFile() 152 if dest_file.endswith('\n'): 153 dest_file = dest_file[:-1] 154 write(dest_file, file=self.outFile); [all...] |
/external/autotest/client/common_lib/ |
utils_unittest.py | 451 dest_file = self.god.create_mock_class(file, "file") 455 utils.open.expect_call(dest, "wb").and_return(dest_file) 456 utils.shutil.copyfileobj.expect_call(src_file, dest_file) 457 dest_file.close.expect_call() [all...] |
/external/autotest/contrib/ |
coverage.py | [all...] |
/external/libchrome/base/files/ |
file_path_watcher_unittest.cc | 597 FilePath dest_file(dest_subdir.AppendASCII("file")); 604 ASSERT_TRUE(SetupWatch(dest_file, &file_watcher, file_delegate.get(), false));
|
/external/toolchain-utils/crosperf/ |
results_cache.py | 69 dest_file = os.path.join( 71 ret = self.ce.CopyFiles(file_to_copy, dest_file, recursive=False)
|