Home
last modified time | relevance | path

Searched refs:src_path (Results 1 – 25 of 178) sorted by relevance

12345678

/aosp_15_r20/external/python/watchdog/src/watchdog/observers/
Dinotify.py143 src_path = self._decode_path(move_from.src_path)
144 dest_path = self._decode_path(move_to.src_path)
146 self.queue_event(cls(src_path, dest_path))
147 self.queue_event(DirModifiedEvent(os.path.dirname(src_path)))
150 for sub_moved_event in generate_sub_moved_events(src_path, dest_path):
154 src_path = self._decode_path(event.src_path)
158 self.queue_event(cls("", src_path))
161 self.queue_event(cls(src_path))
162 self.queue_event(DirModifiedEvent(os.path.dirname(src_path)))
164 for sub_created_event in generate_sub_created_events(src_path):
[all …]
Dfsevents.py96 src_path = event.src_path if event.is_directory else os.path.dirname(event.src_path)
97 if src_path == self._absolute_watch_path:
109 …def _queue_created_event(self, event: FileSystemEvent, src_path: bytes | str, dirname: bytes | str…
111 self.queue_event(cls(src_path))
114 …def _queue_deleted_event(self, event: FileSystemEvent, src_path: bytes | str, dirname: bytes | str…
116 self.queue_event(cls(src_path))
119 …def _queue_modified_event(self, event: FileSystemEvent, src_path: bytes | str, dirname: bytes | st…
121 self.queue_event(cls(src_path))
126 src_path: bytes | str,
133 self.queue_event(cls(src_path, dst_path))
[all …]
Dkqueue.py481 self._register_kevent(event.src_path, is_directory=event.is_directory)
483 self._unregister_kevent(event.src_path)
486 self._unregister_kevent(event.src_path)
501 src_path = descriptor.path
508 src_path,
515 yield DirModifiedEvent(src_path)
517 yield FileModifiedEvent(src_path)
520 if self.watch.is_recursive or self.watch.path == src_path:
525 yield DirModifiedEvent(src_path)
527 yield FileModifiedEvent(src_path)
[all …]
Dpolling.py97 for src_path in events.files_deleted:
98 self.queue_event(FileDeletedEvent(src_path))
99 for src_path in events.files_modified:
100 self.queue_event(FileModifiedEvent(src_path))
101 for src_path in events.files_created:
102 self.queue_event(FileCreatedEvent(src_path))
103 for src_path, dest_path in events.files_moved:
104 self.queue_event(FileMovedEvent(src_path, dest_path))
107 for src_path in events.dirs_deleted:
108 self.queue_event(DirDeletedEvent(src_path))
[all …]
Dread_directory_changes.py74 src_path = os.path.join(self.watch.path, winapi_event.src_path)
77 last_renamed_src_path = src_path
79 dest_path = src_path
80 src_path = last_renamed_src_path
82 self.queue_event(DirMovedEvent(src_path, dest_path))
84 for sub_moved_event in generate_sub_moved_events(src_path, dest_path):
87 self.queue_event(FileMovedEvent(src_path, dest_path))
89 cls = DirModifiedEvent if os.path.isdir(src_path) else FileModifiedEvent
90 self.queue_event(cls(src_path))
92 isdir = os.path.isdir(src_path)
[all …]
Dinotify_c.py199 return self._moved_from_events[destination_event.cookie].src_path
248 def _recursive_simulate(src_path: bytes) -> list[InotifyEvent]:
250 for root, dirnames, filenames in os.walk(src_path):
296 src_path = os.path.join(wd_path, name) if name else wd_path # avoid trailing slash
297 inotify_event = InotifyEvent(wd, mask, cookie, name, src_path)
306 self._wd_for_path[inotify_event.src_path] = moved_wd
307 self._path_for_wd[moved_wd] = inotify_event.src_path
312 … _move_to_path = _path.replace(move_src_path, inotify_event.src_path)
315 src_path = os.path.join(wd_path, name)
316 inotify_event = InotifyEvent(wd, mask, cookie, name, src_path)
[all …]
/aosp_15_r20/external/python/watchdog/tests/
Dtest_emitter.py59 assert event.src_path == p("a")
62 assert event.src_path == p("a")
74 assert event.src_path == p("a")
78 assert os.path.normpath(event.src_path) == os.path.normpath(p(""))
85 assert event.src_path == p("a")
89 assert event.src_path == p("a")
105 assert event.src_path == p("a_\udce4")
110 assert os.path.normpath(event.src_path) == os.path.normpath(p(""))
136 assert event.src_path == p("a")
143 assert event.src_path == p("a")
[all …]
Dtest_events.py31 assert path_1 == event.src_path
46 assert path_1 == event.src_path
61 assert path_1 == event.src_path
69 assert path_1 == event.src_path
78 assert path_1 == event.src_path
86 assert path_1 == event.src_path
94 assert path_1 == event.src_path
102 assert path_1 == event.src_path
110 assert path_1 == event.src_path
118 assert path_1 == event.src_path
/aosp_15_r20/external/icu/tools/icu4c_srcgen/
H A Dgenerate_ndk.py82 def modify_func_declarations(src_path: str, dst_path: str,
91 with open(src_path, "r") as file:
153 for src_path in header_only_files:
154 dest_path = base_dest_path + os.path.basename(src_path)
157 src_path
184 for src_path in files:
185 base_header_name = os.path.basename(src_path)
191 shutil.copyfile(src_path, dst_path)
251 for src_path in files:
252 header_content = src_path.read_text()
[all …]
/aosp_15_r20/device/google/cuttlefish/host/libs/command_util/
Dsnapshot_utils.cc73 std::string src_path = src_dir_path + "/" + src_base_path; in CopyDirectoryImpl() local
76 LOG(DEBUG) << "Handling... " << src_path; in CopyDirectoryImpl()
79 CF_EXPECTF(lstat(src_path.data(), &src_stat) != -1, "Failed in lstat({})", in CopyDirectoryImpl()
80 src_path); in CopyDirectoryImpl()
83 CF_EXPECTF(android::base::Readlink(src_path, &target), in CopyDirectoryImpl()
84 "Readlink failed for {}", src_path); in CopyDirectoryImpl()
97 LOG(DEBUG) << "Ignoring a named pipe or socket " << src_path; in CopyDirectoryImpl()
101 if (DirectoryExists(src_path)) { in CopyDirectoryImpl()
102 LOG(DEBUG) << "Recursively calling CopyDirectoryImpl(" << src_path << ", " in CopyDirectoryImpl()
104 CF_EXPECT(CopyDirectoryImpl(src_path, dest_path, predicate)); in CopyDirectoryImpl()
[all …]
/aosp_15_r20/external/cronet/build/
H A Dzip_helpers.py45 src_path=None, argument
62 assert (src_path is None) != (data is None), (
86 if src_path and os.path.islink(src_path):
88 zip_file.writestr(zipinfo, os.readlink(src_path))
92 if src_path:
93 st = os.stat(src_path)
98 if src_path:
99 with open(src_path, 'rb') as f:
137 src_path = tup
138 zip_path = os.path.relpath(src_path, base_dir)
[all …]
/aosp_15_r20/external/angle/build/
H A Dzip_helpers.py45 src_path=None, argument
62 assert (src_path is None) != (data is None), (
86 if src_path and os.path.islink(src_path):
88 zip_file.writestr(zipinfo, os.readlink(src_path))
92 if src_path:
93 st = os.stat(src_path)
98 if src_path:
99 with open(src_path, 'rb') as f:
137 src_path = tup
138 zip_path = os.path.relpath(src_path, base_dir)
[all …]
/aosp_15_r20/development/tools/cargo_embargo/testdata/either/
H A Dcargo.metadata94 … "src_path": "/usr/local/google/home/mgeisler/src/aosp/external/rust/crates/either/src/lib.rs",
171 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
185 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
199 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
352 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
366 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
380 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
394 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
408 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
422 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
[all …]
/aosp_15_r20/development/tools/cargo_embargo/testdata/async-trait/
H A Dcargo.metadata159 …"src_path": "/usr/local/google/home/mgeisler/src/aosp/external/rust/crates/async-trait/src/lib.rs",
173 …"src_path": "/usr/local/google/home/mgeisler/src/aosp/external/rust/crates/async-trait/tests/test.…
187 …"src_path": "/usr/local/google/home/mgeisler/src/aosp/external/rust/crates/async-trait/tests/compi…
201 … "src_path": "/usr/local/google/home/mgeisler/src/aosp/external/rust/crates/async-trait/build.rs",
250 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
264 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
278 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
292 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
306 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
320 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/winnow/examples/ndjson/
Dexample.ndjson1 …nd":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/home/epage/.ca…
3 …nd":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/home/epage/.ca…
4 …nd":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/home/epage/.ca…
5 …,"target":{"kind":["lib"],"crate_types":["lib"],"name":"unicode-ident","src_path":"/home/epage/.ca…
6 …l","target":{"kind":["lib"],"crate_types":["lib"],"name":"proc-macro2","src_path":"/home/epage/.ca…
9 …nd":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/home/epage/.ca…
10 …o.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"cfg-if","src_path":"/home/epage/.ca…
11 ….toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"autocfg","src_path":"/home/epage/.ca…
12 …nd":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/home/epage/.ca…
13 …nd":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/home/epage/.ca…
[all …]
/aosp_15_r20/external/autotest/client/cros/
H A Dnetwork_chroot.py249 src_path = os.path.join('/', rootdir)
251 if not os.path.exists(src_path):
253 elif os.path.islink(src_path):
254 link_path = os.readlink(src_path)
258 mount_arg = '%s,%s' % (src_path, src_path)
264 src_path = os.path.join('/', config_file)
266 if os.path.exists(src_path):
267 shutil.copyfile(src_path, dst_path)
269 for src_path, target_path in self.ROOT_SYMLINKS:
270 link_path = self.chroot_path(src_path)
/aosp_15_r20/external/cronet/build/android/gyp/
H A Dapkbuilder.py150 src_path = path_parts[0]
154 dest_path = os.path.basename(src_path)
155 return src_path, dest_path
170 src_path, dest_path = _SplitAssetPath(path)
171 if os.path.isdir(src_path):
172 for f in build_utils.FindInDirectory(src_path, '*'):
173 ret.append((f, os.path.join(dest_path, f[len(src_path) + 1:])))
175 ret.append((src_path, dest_path))
203 for src_path, dest_path in path_tuples:
205 os.path.splitext(src_path)[1] not in _NO_COMPRESS_EXTENSIONS)
[all …]
/aosp_15_r20/external/angle/build/android/gyp/
H A Dapkbuilder.py150 src_path = path_parts[0]
154 dest_path = os.path.basename(src_path)
155 return src_path, dest_path
170 src_path, dest_path = _SplitAssetPath(path)
171 if os.path.isdir(src_path):
172 for f in build_utils.FindInDirectory(src_path, '*'):
173 ret.append((f, os.path.join(dest_path, f[len(src_path) + 1:])))
175 ret.append((src_path, dest_path))
203 for src_path, dest_path in path_tuples:
205 os.path.splitext(src_path)[1] not in _NO_COMPRESS_EXTENSIONS)
[all …]
/aosp_15_r20/development/tools/cargo_embargo/testdata/plotters/
H A Dcargo.metadata131 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
145 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
258 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
320 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
391 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
405 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
505 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
519 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
533 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
547 …"src_path": "/usr/local/google/home/mgeisler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/…
[all …]
/aosp_15_r20/external/python/watchdog/src/watchdog/
Devents.py113 src_path: bytes | str
356 if event.src_path:
357 paths.append(os.fsdecode(event.src_path))
441 if event.src_path:
442 paths.append(os.fsdecode(event.src_path))
462 self.logger.info("Moved %s: from %s to %s", what, event.src_path, event.dest_path)
468 self.logger.info("Created %s: %s", what, event.src_path)
474 self.logger.info("Deleted %s: %s", what, event.src_path)
480 self.logger.info("Modified %s: %s", what, event.src_path)
485 self.logger.info("Closed modified file: %s", event.src_path)
[all …]
/aosp_15_r20/libcore/tools/expected_upstream/
H A Dojluni_modify_expectation.py214 src_path = args.source_file if is_src_given else entry.src_path
217 if openjdk_finder.has_file(src_path):
223 src_path = guessed_src_path
227 entry.src_path = src_path
247 src_path = openjdk_finder.find_src_path_from_classname(class_or_src_path)
248 if src_path is None:
255 ojluni_path = OpenjdkFinder.translate_src_path_to_ojluni_path(src_path)
265 new_entry = ExpectedUpstreamEntry(ojluni_path, str_tag_or_commit, src_path)
H A Dcommon_util.py68 src_path: str # source path in the commit pointed by the git_ref
77 self.src_path == other.src_path and
117 file.write(','.join([e.dst_path, e.git_ref, e.src_path]))
287 def translate_src_path_to_ojluni_path(src_path: str) -> str:
291 if src_path.startswith(base_path):
293 relative_path = src_path[length:]
300 if src_path.startswith(base_path):
302 relative_path = src_path[length:]
320 src_path = None
324 src_path = full_path
[all …]
/aosp_15_r20/external/cronet/third_party/libxml/chromium/
H A Droll.py307 def prepare_libxml_distribution(src_path, libxml2_repo_path, temp_dir): argument
344 src_path, THIRD_PARTY_LIBXML_SRC, '..', 'chromium', patch),
360 def roll_libxml_linux(src_path, libxml2_repo_path, fast): argument
361 with WorkingDir(src_path):
368 src_path, libxml2_repo_path, temp_dir)
406 def roll_libxml_win32(src_path): argument
407 with WorkingDir(src_path):
425 def roll_libxml_mac(src_path, icu4c_path): argument
432 src_path, THIRD_PARTY_LIBXML_SRC, '..')
/aosp_15_r20/external/rust/crates/uefi/src/fs/file_system/
Dfs.rs54 src_path: impl AsRef<Path>, in copy()
57 let src_path = src_path.as_ref(); in copy() localVariable
62 .open(src_path, UefiFileMode::Read, false)? in copy()
65 path: src_path.to_path_buf(), in copy()
74 path: src_path.to_path_buf(), in copy()
107 path: src_path.to_path_buf(), in copy()
117 path: src_path.to_path_buf(), in copy()
342 src_path: impl AsRef<Path>, in rename()
345 self.copy(&src_path, dest_path)?; in rename()
346 self.remove_file(src_path) in rename()
/aosp_15_r20/external/rust/android-crates-io/crates/uefi/src/fs/file_system/
Dfs.rs54 src_path: impl AsRef<Path>, in copy()
57 let src_path = src_path.as_ref(); in copy() localVariable
62 .open(src_path, UefiFileMode::Read, false)? in copy()
65 path: src_path.to_path_buf(), in copy()
74 path: src_path.to_path_buf(), in copy()
107 path: src_path.to_path_buf(), in copy()
117 path: src_path.to_path_buf(), in copy()
342 src_path: impl AsRef<Path>, in rename()
345 self.copy(&src_path, dest_path)?; in rename()
346 self.remove_file(src_path) in rename()

12345678