/external/rust/crates/grpcio-sys/grpc/tools/distrib/ |
D | check_include_guards.py | 25 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/ |
D | check_include_guards.py | 25 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/ |
D | helper_logger.py | 40 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/ |
D | artifacts_uploader.py | 52 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/ |
D | fix_include_guards | 26 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)
|
D | check_include_violations | 39 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:
|
D | check_proto_comments | 33 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/ |
D | lsattr.c | 193 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/ |
D | util_fuzz.cc | 8 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/ |
D | release.py | 35 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/ |
D | upload_test_benchmarks.py | 95 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/ |
D | HandleLibCXXABI.cmake | 37 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/ |
D | HandleLibCXXABI.cmake | 35 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/ |
D | cifar100.py | 71 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')
|
D | cifar10.py | 65 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/ |
D | file01.sh | 30 local fpath 35 fpath="$TST_DATAROOT/$fname" 37 fpath="$fname" 40 EXPECT_PASS file "$fpath" \> file.out
|
/external/harfbuzz_ng/test/fuzzing/ |
D | run-shape-fuzzer-tests.py | 10 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:
|
D | run-subset-fuzzer-tests.py | 10 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/ |
D | data_utils.py | 238 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.py | 129 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/ |
D | wciia.py | 72 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/ |
D | wciia.py | 73 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/ |
D | run-tests.py | 20 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/ |
D | utils.py | 26 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/ |
D | nftw.c | 9 display_info(const char *fpath, const struct stat *sb, in display_info() argument 12 printf("%s\n", fpath); in display_info()
|