HomeSort by relevance Sort by last modified time
    Searched refs:from_path (Results 1 - 18 of 18) 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 49 int sendfile_function(char * from_path, char *to_path)
51 printf("Sending %s to %s\n",from_path,to_path);
59 if ( stat(from_path, &sb) == -1 ) {
60 fprintf(stderr, "%s: ", from_path);
66 filename = basename(from_path);
81 ret = LIBMTP_Send_File_From_File(device, from_path, genfile, progress, NULL);
getfile.c 42 getfile_function(char * from_path,char * to_path)
44 int id = parse_path (from_path,files,folders);
46 printf("Getting %s to %s\n",from_path,to_path);
sendtr.c 164 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)
176 printf("Sending track %s to %s\n",from_path,to_path);
189 if ( stat(from_path, &sb) == -1 ) {
190 fprintf(stderr, "%s: ", from_path);
195 trackmeta->filetype = find_filetype (from_path);
350 ret = LIBMTP_Send_Track_From_File(device, from_path, trackmeta, progress, NULL);
  /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,
435 BASE_EXPORT bool MoveUnsafe(const FilePath& from_path,
439 // Copy from_path to to_path recursively and then delete from_path recursively.
443 BASE_EXPORT bool CopyAndDeleteDirectory(const FilePath& from_path,
file_util_posix.cc 240 bool ReplaceFile(const FilePath& from_path,
244 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0)
251 bool CopyDirectory(const FilePath& from_path,
259 DCHECK(from_path.value().find('*') == std::string::npos);
261 if (from_path.value().size() >= PATH_MAX) {
276 FilePath real_from_path = MakeAbsoluteFilePath(from_path);
288 FileEnumerator traversal(from_path, recursive, traverse_type);
293 FilePath current = from_path;
294 if (stat(from_path.value().c_str(), &from_stat) < 0) {
296 << 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 128 def _copy_to_binary_cache(self, from_path, expected_build_id, target_file):
141 log_info('copy to binary_cache: %s to %s' % (from_path, target_file))
142 shutil.copy(from_path, target_file)
annotate.py 554 from_path = self._find_source_file(path)
559 from_path = path
565 from_path = self._find_source_file(path)
567 if from_path is None:
570 self._annotate_file(from_path, to_path, self.file_periods[key], is_java)
573 def _annotate_file(self, from_path, to_path, file_period, is_java):
582 log_info('annotate file %s' % from_path)
583 with open(from_path, 'r') as rf:
  /development/vndk/tools/definition-tool/tests/
test_tagged_dict.py 241 for from_path in from_paths:
243 self.assertEqual(d.is_path_visible(from_path, to_path),
  /frameworks/native/cmds/installd/
InstalldNativeService.cpp 2218 char from_path[PKG_PATH_MAX]; local
    [all...]

Completed in 1383 milliseconds