Home
last modified time | relevance | path

Searched refs:fpath (Results 1 – 25 of 61) sorted by relevance

123

/external/rust/crates/grpcio-sys/grpc/tools/distrib/
Dcheck_include_guards.py25 def build_valid_guard(fpath): argument
26 prefix = 'GRPC_' if not fpath.startswith('include/') else ''
28 fpath.replace('++', 'XX').replace('.', '_').upper().split('/')[1:])
31 def load(fpath): argument
32 with open(fpath, 'r') as f:
36 def save(fpath, contents): argument
37 with open(fpath, 'w') as f:
51 def fail(self, fpath, regexp, fcontents, match_txt, correct, fix): argument
52 c_core_header = 'include' in fpath and not ('grpc++' in fpath or
53 'grpcpp' in fpath)
[all …]
/external/grpc-grpc/tools/distrib/
Dcheck_include_guards.py25 def build_valid_guard(fpath): argument
26 prefix = 'GRPC_' if not fpath.startswith('include/') else ''
28 fpath.replace('++', 'XX').replace('.', '_').upper().split('/')[1:])
31 def load(fpath): argument
32 with open(fpath, 'r') as f:
36 def save(fpath, contents): argument
37 with open(fpath, 'w') as f:
51 def fail(self, fpath, regexp, fcontents, match_txt, correct, fix): argument
52 cpp_header = 'grpc++' in fpath or 'grpcpp' in fpath
63 print invalid_guards_msg_template.format(fpath, regexp.pattern,
[all …]
/external/autotest/client/cros/video/
Dhelper_logger.py40 fpath = '/sys/module/s5p_mfc/parameters/debug'
41 if os.path.exists(fpath):
42 vlog.add_log([fpath],
50 fpath = '/sys/module/rockchip_vpu/parameters/debug'
51 if os.path.exists(fpath):
52 vlog.add_log([fpath],
60 fpath = '/sys/module/rk3288_vpu/parameters/debug'
61 if os.path.exists(fpath):
62 vlog.add_log([fpath],
68 fpath = '/sys/module/go2001/parameters/go2001_debug_level'
[all …]
/external/perfetto/infra/ci/worker/
Dartifacts_uploader.py52 def upload_one_file(fpath): argument
54 relpath = os.path.relpath(fpath, os.getenv('ARTIFACTS_DIR'))
56 assert (os.path.exists(fpath))
57 fsize = os.path.getsize(fpath)
58 mime_type = mimetypes.guess_type(fpath)[0] or 'application/octet-stream'
62 with open(fpath, 'rb') as f:
74 def upload_one_file_with_retries(fpath): argument
76 res = upload_one_file(fpath)
79 logging.warning('Upload of %s failed, retrying in %s seconds', fpath, retry)
86 fpath = os.path.join(root, fname)
[all …]
/external/perfetto/tools/
Dfix_include_guards26 def fix_guards(fpath, checkonly): argument
27 with open(fpath, 'r', encoding='utf-8') as f:
34 guard = re.sub(r'[^a-zA-Z0-9_-]', '_', fpath.upper()) + '_'
42 assert endif_line_idx > 0, fpath
60 print('Wrong #include guards in %s' % fpath, file=sys.stderr)
62 with open(fpath, 'w', encoding='utf-8') as f:
76 fpath = os.path.join(root, name)
77 num_files_changed += fix_guards(fpath, checkonly)
Dcheck_include_violations39 fpath = os.path.join(root, fname)
40 rel_path = os.path.relpath(fpath, ROOT_DIR)
41 if not os.path.isfile(fpath):
43 if fpath.endswith('.cc'):
48 if fpath.endswith('.h'):
49 with open(fpath) as f:
Dcheck_proto_comments33 fpath = os.path.join(root, fname)
34 if not os.path.isfile(fpath):
36 if not fpath.endswith('.proto'):
38 with open(fpath) as f:
49 rel_path = os.path.relpath(fpath, ROOT_DIR)
/external/toybox/toys/other/
Dlsattr.c193 char *fpath = NULL; in retell_dir() local
202 fpath = dirtree_path(root, NULL); in retell_dir()
205 print_file_attr(fpath); in retell_dir()
207 xprintf("\n%s:\n", fpath); in retell_dir()
208 free(fpath); in retell_dir()
212 free(fpath); in retell_dir()
283 char *fpath = NULL; in update_attr() local
297 fpath = dirtree_path(root, NULL); in update_attr()
298 if (-1 == (fd=open(fpath, O_RDONLY | O_NONBLOCK))) { in update_attr()
299 free(fpath); in update_attr()
[all …]
/external/oss-fuzz/projects/mysql-server/targets/
Dutil_fuzz.cc8 static int remove_cb(const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf) { in remove_cb() argument
11 rv = rmdir(fpath); in remove_cb()
13 rv = remove(fpath); in remove_cb()
15 printf("lol %s\n", fpath); in remove_cb()
28 static int cp_cb(const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf) { in cp_cb() argument
32 snprintf(newname, CP_NAME_MAX_SIZE-1, "%s%s", globalto, fpath+globallen); in cp_cb()
36 int fdin = open(fpath, O_RDONLY); in cp_cb()
/external/python/dateutil/
Drelease.py35 for fpath in glob.glob('dist/*'):
36 subprocess.check_call(['gpg', '--armor', '--output', fpath + '.asc',
37 '--detach-sig', fpath])
40 for fpath in glob.glob('dist/*'):
41 if fpath.endswith('.asc'):
44 subprocess.check_call(['gpg', '--verify', fpath + '.asc', fpath])
/external/tensorflow/tensorflow/tools/test/
Dupload_test_benchmarks.py95 fpath = os.path.join(dirpath, fname)
96 return os.path.isfile(fpath) and not os.path.islink(fpath)
100 fpath = os.path.join(dirpath, fname)
101 return os.stat(fpath).st_mtime
210 fpath = os.path.join(opts.datadir, fname)
212 with open(fpath, "r") as fd:
215 shutil.move(fpath, os.path.join(opts.archivedir, fname))
218 print("Cannot process '%s', skipping. Error: %s" % (fpath, e))
/external/llvm-project/libcxx/cmake/Modules/
DHandleLibCXXABI.cmake37 foreach(fpath ${LIBCXX_ABILIB_FILES})
40 message(STATUS "Looking for ${fpath} in ${incpath}")
41 if (EXISTS "${incpath}/${fpath}")
43 message(STATUS "Looking for ${fpath} in ${incpath} - found")
44 get_filename_component(dstdir ${fpath} PATH)
45 get_filename_component(ifile ${fpath} NAME)
46 set(src ${incpath}/${fpath})
52 COMMENT "Copying C++ ABI header ${fpath}...")
56 set(dst "${LIBCXX_HEADER_DIR}/include/c++/v1/${dstdir}/${fpath}")
60 COMMENT "Copying C++ ABI header ${fpath}...")
[all …]
/external/libcxx/cmake/Modules/
DHandleLibCXXABI.cmake35 foreach(fpath ${LIBCXX_ABILIB_FILES})
38 if (EXISTS "${incpath}/${fpath}")
40 get_filename_component(dstdir ${fpath} PATH)
41 get_filename_component(ifile ${fpath} NAME)
42 set(src ${incpath}/${fpath})
48 COMMENT "Copying C++ ABI header ${fpath}...")
52 set(dst "${LIBCXX_HEADER_DIR}/include/c++/v1/${dstdir}/${fpath}")
56 COMMENT "Copying C++ ABI header ${fpath}...")
61 install(FILES "${LIBCXX_BINARY_INCLUDE_DIR}/${fpath}"
70 message(WARNING "Failed to find ${fpath}")
/external/tensorflow/tensorflow/python/keras/datasets/
Dcifar100.py71 fpath = os.path.join(path, 'train')
72 x_train, y_train = load_batch(fpath, label_key=label_mode + '_labels')
74 fpath = os.path.join(path, 'test')
75 x_test, y_test = load_batch(fpath, label_key=label_mode + '_labels')
Dcifar10.py65 fpath = os.path.join(path, 'data_batch_' + str(i))
67 y_train[(i - 1) * 10000:i * 10000]) = load_batch(fpath)
69 fpath = os.path.join(path, 'test_batch')
70 x_test, y_test = load_batch(fpath)
/external/ltp/testcases/commands/file/
Dfile01.sh30 local fpath
35 fpath="$TST_DATAROOT/$fname"
37 fpath="$fname"
40 EXPECT_PASS file "$fpath" \> file.out
/external/harfbuzz_ng/test/fuzzing/
Drun-shape-fuzzer-tests.py10 def is_exe (fpath): argument
11 return os.path.isfile (fpath) and os.access (fpath, os.X_OK)
13 fpath, _ = os.path.split (program)
14 if fpath:
Drun-subset-fuzzer-tests.py10 def is_exe(fpath): argument
11 return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
13 fpath, _ = os.path.split(program)
14 if fpath:
/external/tensorflow/tensorflow/python/keras/utils/
Ddata_utils.py238 fpath = untar_fpath + '.tar.gz'
240 fpath = os.path.join(datadir, fname)
243 if os.path.exists(fpath):
246 if not validate_file(fpath, file_hash, algorithm=hash_algorithm):
274 urlretrieve(origin, fpath, dl_progress)
280 if os.path.exists(fpath):
281 os.remove(fpath)
287 _extract_archive(fpath, datadir, archive_format='tar')
291 _extract_archive(fpath, datadir, archive_format)
293 return fpath
[all …]
/external/python/cpython3/Lib/zoneinfo/
D_tzpath.py129 def valid_key(fpath): argument
131 with open(fpath, "rb") as f:
150 fpath = os.path.join(root, file)
152 key = os.path.relpath(fpath, start=tz_root)
159 if valid_key(fpath):
/external/llvm/utils/
Dwciia.py72 def find_owners(fpath): argument
82 if fpath == path:
89 if len(fpath) < len(path):
90 rpos = path.find(fpath)
/external/llvm-project/llvm/utils/
Dwciia.py73 def find_owners(fpath): argument
83 if fpath == path:
90 if len(fpath) < len(path):
91 rpos = path.find(fpath)
/external/harfbuzz_ng/test/subset/
Drun-tests.py20 def is_exe (fpath): argument
21 return os.path.isfile (fpath) and os.access (fpath, os.X_OK)
23 fpath, _ = os.path.split (program)
24 if fpath:
/external/llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/
Dutils.py26 fpath = os.path.realpath(path)
28 if not os.path.isfile(fpath):
32 mode = os.stat(fpath).st_mode
45 return os.access(fpath, os.X_OK)
/external/rust/crates/walkdir/compare/
Dnftw.c9 display_info(const char *fpath, const struct stat *sb, in display_info() argument
12 printf("%s\n", fpath); in display_info()

123