/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/toybox/toys/other/ |
D | lsattr.c | 144 char *fpath = NULL; in retell_dir() local 153 fpath = dirtree_path(root, NULL); in retell_dir() 156 print_file_attr(fpath); in retell_dir() 159 xprintf("\n%s:\n", fpath); in retell_dir() 160 free(fpath); in retell_dir() 164 free(fpath); in retell_dir() 255 char *fpath = NULL; in update_attr() local 269 fpath = dirtree_path(root, NULL); in update_attr() 270 if (-1 == (fd=open(fpath, O_RDONLY | O_NONBLOCK))) { in update_attr() 271 free(fpath); in update_attr() [all …]
|
/external/perfetto/tools/ |
D | fix_include_guards | 20 def fix_guards(fpath, checkonly): argument 21 with open(fpath, 'rb') as f: 24 guard = re.sub(r'[^a-zA-Z0-9_-]', '_', fpath.upper()) + '_' 32 assert endif_line_idx > 0, fpath 50 print >>sys.stderr, 'Wrong #include guards in %s' % fpath 52 with open(fpath, 'w') as f: 64 fpath = os.path.join(root, name) 65 num_files_changed += fix_guards(fpath, checkonly)
|
/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/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/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/utils/ |
D | data_utils.py | 212 fpath = untar_fpath + '.tar.gz' 214 fpath = os.path.join(datadir, fname) 217 if os.path.exists(fpath): 220 if not validate_file(fpath, file_hash, algorithm=hash_algorithm): 248 urlretrieve(origin, fpath, dl_progress) 254 if os.path.exists(fpath): 255 os.remove(fpath) 261 _extract_archive(fpath, datadir, archive_format='tar') 265 _extract_archive(fpath, datadir, archive_format) 267 return fpath [all …]
|
/external/tensorflow/tensorflow/python/keras/datasets/ |
D | cifar100.py | 51 fpath = os.path.join(path, 'train') 52 x_train, y_train = load_batch(fpath, label_key=label_mode + '_labels') 54 fpath = os.path.join(path, 'test') 55 x_test, y_test = load_batch(fpath, label_key=label_mode + '_labels')
|
D | cifar10.py | 48 fpath = os.path.join(path, 'data_batch_' + str(i)) 50 y_train[(i - 1) * 10000:i * 10000]) = load_batch(fpath) 52 fpath = os.path.join(path, 'test_batch') 53 x_test, y_test = load_batch(fpath)
|
D | cifar.py | 26 def load_batch(fpath, label_key='labels'): argument 37 with open(fpath, 'rb') as f:
|
/external/ltp/testcases/commands/file/ |
D | file01.sh | 47 local fpath 52 fpath="$TST_DATAROOT/$fname" 54 fpath="$fname" 57 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:
|
/external/v8/src/inspector/build/ |
D | compile-scripts.py | 60 def is_exe(fpath): argument 61 return path.isfile(fpath) and os.access(fpath, os.X_OK) 63 fpath, fname = path.split(program) 64 if fpath:
|
/external/swiftshader/third_party/llvm-7.0/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/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/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/perfetto/gn/standalone/ |
D | glob.py | 58 fpath = os.path.join(pardir, fname) 61 if fnmatch.fnmatch(fpath, filter): 65 writepath(fpath)
|
/external/libcap-ng/libcap-ng-0.7/utils/ |
D | filecap.c | 44 static int check_file(const char *fpath, in check_file() argument 52 int fd = open(fpath, O_RDONLY|O_CLOEXEC); in check_file() 64 printf("%s ", fpath); in check_file()
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/ |
D | select-implied.ll | 145 ; cmp1 and cmp2 are false on the 'fpath' path and thus cmp3 is true. 147 ; CHECK: fpath: 155 br i1 %or, label %end, label %fpath 157 fpath:
|
/external/mksh/src/ |
D | exec.c | 713 if (!tp->u.fpath) { in comexec() 722 if (include(tp->u.fpath, 0, NULL, false) < 0 || in comexec() 734 cp = tp->u.fpath; in comexec() 738 "function not defined by", tp->u.fpath); in comexec() 1180 char *fpath; in findcom() local 1199 if ((fpath = str_val(global(TFPATH))) == null) { in findcom() 1200 tp->u.fpath = NULL; in findcom() 1203 tp->u.fpath = search_path(name, fpath, R_OK, in findcom() 1244 (fpath = str_val(global(TFPATH))) != null && in findcom() 1245 (npath.ro = search_path(name, fpath, R_OK, in findcom() [all …]
|
/external/vboot_reference/cgpt/ |
D | cgpt_nor.c | 188 static int remove_file_or_dir(const char *fpath, const struct stat *sb, in remove_file_or_dir() argument 190 return remove(fpath); in remove_file_or_dir()
|
/external/python/cpython2/Lib/test/ |
D | test_zipfile.py | 442 for fpath, fdata in SMALL_TEST_DATA: 443 zipfp.writestr(fpath, fdata) 446 for fpath, fdata in SMALL_TEST_DATA: 447 writtenfile = zipfp.extract(fpath) 450 correctfile = os.path.join(os.getcwd(), fpath) 465 for fpath, fdata in SMALL_TEST_DATA: 466 zipfp.writestr(fpath, fdata) 470 for fpath, fdata in SMALL_TEST_DATA: 471 outfile = os.path.join(os.getcwd(), fpath) 616 for fpath, fdata in SMALL_TEST_DATA: [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_zipfile.py | 1022 for fpath, fdata in SMALL_TEST_DATA: 1023 zipfp.writestr(fpath, fdata) 1029 for fpath, fdata in SMALL_TEST_DATA: 1030 writtenfile = zipfp.extract(fpath) 1033 correctfile = os.path.join(os.getcwd(), fpath) 1047 for fpath, fdata in SMALL_TEST_DATA: 1048 writtenfile = zipfp.extract(fpath, target) 1051 correctfile = os.path.join(target, fpath) 1076 for fpath, fdata in SMALL_TEST_DATA: 1077 outfile = os.path.join(os.getcwd(), fpath) [all …]
|
/external/python/cpython3/Doc/tools/extensions/ |
D | pyspecific.py | 298 fpath = path.join(source_dir, fname) 299 self.state.document.settings.record_dependencies.add(fpath) 301 with io.open(fpath, encoding='utf-8') as fp:
|