HomeSort by relevance Sort by last modified time
    Searched refs:from_path (Results 1 - 19 of 19) sorted by null

  /external/google-breakpad/src/common/tests/
file_utils.h 38 // Copies a file from |from_path| to |to_path|. Returns true on success.
39 bool CopyFile(const char* from_path, const char* to_path);
file_utils.cc 44 bool CopyFile(const char* from_path, const char* to_path) {
45 int infile = HANDLE_EINTR(open(from_path, O_RDONLY));
  /external/libmtp/examples/
sendfile.c 47 int sendfile_function(char * from_path, char *to_path)
49 printf("Sending %s to %s\n",from_path,to_path);
57 if ( stat(from_path, &sb) == -1 ) {
58 fprintf(stderr, "%s: ", from_path);
64 filename = basename(from_path);
79 ret = LIBMTP_Send_File_From_File(device, from_path, genfile, progress, NULL);
getfile.c 40 getfile_function(char * from_path,char * to_path)
42 int id = parse_path (from_path,files,folders);
44 printf("Getting %s to %s\n",from_path,to_path);
sendtr.c 185 int sendtrack_function(char * from_path, char * to_path, char *partist, char *palbumartist, char *ptitle, char *pgenre, char *palbum, char *pcomposer, uint16_t tracknum, uint16_t length, uint16_t year, uint32_t storageid, uint16_t quiet)
198 printf("Sending track %s to %s\n", from_path, to_path);
211 if (stat(from_path, &sb) == -1) {
212 fprintf(stderr, "%s: ", from_path);
226 trackmeta->filetype = find_filetype (from_path);
368 ret = LIBMTP_Send_Track_From_File(device, from_path, trackmeta, progress, NULL);
  /external/trappy/trappy/plotter/
IPythonConf.py 68 def install_local_resource(from_path, to_path):
72 :param from_path: Path relative to this file
73 :type from_path: str
79 from_path = os.path.join(base_dir, from_path)
80 shutil.copy(from_path, to_path)
83 def install_resource(from_path, to_path):
86 :param from_path: URL or relative path
87 :type from_path: str
93 if from_path.startswith("http")
    [all...]
  /development/samples/SampleSyncAdapter/samplesyncadapter_server/
dashboard.py 103 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
109 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
126 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
143 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
154 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
171 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
web_services.py 238 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
  /external/libchrome/base/files/
file_util.h 86 BASE_EXPORT bool Move(const FilePath& from_path, const FilePath& to_path);
88 // Renames file |from_path| to |to_path|. Both paths must be on the same
94 BASE_EXPORT bool ReplaceFile(const FilePath& from_path,
103 BASE_EXPORT bool CopyFile(const FilePath& from_path, const FilePath& to_path);
115 BASE_EXPORT bool CopyDirectory(const FilePath& from_path,
444 BASE_EXPORT bool MoveUnsafe(const FilePath& from_path,
448 // Copy from_path to to_path recursively and then delete from_path recursively.
452 BASE_EXPORT bool CopyAndDeleteDirectory(const FilePath& from_path,
file_util_posix.cc 253 bool ReplaceFile(const FilePath& from_path,
257 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0)
264 bool CopyDirectory(const FilePath& from_path,
272 DCHECK(from_path.value().find('*') == std::string::npos);
274 if (from_path.value().size() >= PATH_MAX) {
289 FilePath real_from_path = MakeAbsoluteFilePath(from_path);
298 FileEnumerator traversal(from_path, recursive, traverse_type);
303 FilePath current = from_path;
304 if (stat(from_path.value().c_str(), &from_stat) < 0) {
306 << from_path.value() << " errno = " << errno
    [all...]
file_util.cc 46 bool Move(const FilePath& from_path, const FilePath& to_path) {
47 if (from_path.ReferencesParent() || to_path.ReferencesParent())
49 return internal::MoveUnsafe(from_path, to_path);
  /external/toolchain-utils/automation/common/
command.py 188 def RemoteCopyFrom(from_machine, from_path, to_path, username=None):
189 from_path = os.path.expanduser(from_path) + '/'
199 (login, from_path), to_path))
  /external/autotest/client/cros/faft/utils/
os_interface.py 175 def copy_file(self, from_path, to_path):
177 cmd = 'cp -f %s %s' % (from_path, to_path)
180 def copy_dir(self, from_path, to_path):
182 cmd = 'cp -rf %s %s' % (from_path, to_path)
  /external/autotest/server/cros/ap_configurators/
pyauto_utils.py 63 from_path = os.path.join(self._backup_dir, self._backup_basename)
64 logging.info('Reinstating backup from %s to %s' % (from_path, self._path))
65 shutil.move(from_path, self._path)
  /external/google-breakpad/src/common/linux/tests/
crash_generator.cc 257 char from_path[PATH_MAX], to_path[PATH_MAX]; local
259 int num_chars = snprintf(from_path, PATH_MAX, "/proc/%d/%s",
269 if (!CopyFile(from_path, to_path))
  /system/extras/simpleperf/scripts/
binary_cache_builder.py 129 def _copy_to_binary_cache(self, from_path, expected_build_id, target_file):
142 log_info('copy to binary_cache: %s to %s' % (from_path, target_file))
143 shutil.copy(from_path, target_file)
annotate.py 569 from_path = self._find_source_file(path)
574 from_path = path
577 from_path = key
583 from_path = self._find_source_file(path)
585 if from_path is None:
588 self._annotate_file(from_path, to_path, self.file_periods[key], is_java)
591 def _annotate_file(self, from_path, to_path, file_period, is_java):
600 log_info('annotate file %s' % from_path)
601 with open(from_path, 'r') as rf:
  /development/vndk/tools/definition-tool/tests/
test_tagged_dict.py 254 for from_path in from_paths:
256 self.assertEqual(d.is_path_visible(from_path, to_path),
  /frameworks/native/cmds/installd/
InstalldNativeService.cpp 2364 char from_path[PKG_PATH_MAX]; local
    [all...]

Completed in 533 milliseconds