/external/tensorflow/tensorflow/python/lib/io/ |
D | file_io_test.py | 167 dir_path = os.path.join(self._base_dir, "temp_dir") 168 file_io.create_dir(dir_path) 171 file_path = os.path.join(dir_path, name) 173 expected_match = [os.path.join(dir_path, name) for name in files] 175 file_io.get_matching_files(os.path.join(dir_path, "file*.txt")), 179 os.path.join(dir_path, files[0]), os.path.join(dir_path, files[2]) 183 file_io.delete_recursively(dir_path) 184 self.assertFalse(file_io.file_exists(os.path.join(dir_path, "file3.txt"))) 187 dir_path = os.path.join(self._base_dir, "dir_(special)") 188 file_io.create_dir(dir_path) [all …]
|
/external/webrtc/sdk/android/src/jni/pc/ |
D | call_session_file_rotating_log_sink.cc | 24 std::string dir_path = JavaToStdString(jni, j_dirPath); in JNI_CallSessionFileRotatingLogSink_AddSink() local 26 new rtc::CallSessionFileRotatingLogSink(dir_path, j_maxFileSize); in JNI_CallSessionFileRotatingLogSink_AddSink() 30 << dir_path; in JNI_CallSessionFileRotatingLogSink_AddSink() 52 std::string dir_path = JavaToStdString(jni, j_dirPath); in JNI_CallSessionFileRotatingLogSink_GetLogData() local 53 rtc::CallSessionFileRotatingStreamReader file_reader(dir_path); in JNI_CallSessionFileRotatingLogSink_GetLogData() 57 << "CallSessionFileRotatingStream returns 0 size for path " << dir_path; in JNI_CallSessionFileRotatingLogSink_GetLogData()
|
/external/python/pyfakefs/pyfakefs/tests/ |
D | fake_filesystem_shutil_test.py | 64 dir_path = os.path.join(directory, 'subdir') 65 self.create_dir(dir_path) 71 self.assertFalse(os.path.exists(dir_path)) 76 dir_path = os.path.join(directory, 'subdir') 77 self.create_dir(dir_path) 82 self.assertFalse(os.path.exists(dir_path)) 88 dir_path = self.make_path('foo') 89 self.create_file(os.path.join(dir_path, 'bar')) 90 file_path = os.path.join(dir_path, 'baz') 93 self.assertRaises(OSError, shutil.rmtree, dir_path) [all …]
|
D | fake_os_test.py | 129 dir_path = self.make_path('xyzzy', 'plugh') 132 self.create_file(self.os.path.join(dir_path, f)) 135 path_des = self.os.open(dir_path, os.O_RDONLY) 364 dir_path = self.make_path('foo') 365 self.os.mkdir(dir_path + self.os.sep + self.os.sep) 366 self.assertTrue(self.os.path.exists(dir_path)) 700 dir_path = self.os.path.join(directory, 'plugh') 701 self.create_dir(dir_path) 702 self.assertTrue(self.os.path.exists(dir_path)) 703 self.assert_raises_os_error(dir_error, self.os.remove, dir_path) [all …]
|
/external/jsoncpp/devtools/ |
D | antglob.py | 99 def glob(dir_path, argument 108 dir_path = dir_path.replace('/',os.path.sep) 127 dir_path = child_dirs.pop() 128 for entry in listdir(dir_path): 129 full_path = os.path.join(dir_path, entry) 152 yield os.path.join(dir_path, entry) 155 return list(glob_impl(dir_path))
|
/external/chromium-trace/catapult/dependency_manager/dependency_manager/ |
D | dependency_manager_util.py | 25 def RemoveDir(dir_path): argument 26 assert os.path.isabs(dir_path) 28 dir_path = u'\\\\?\\' + dir_path 29 if os.path.isdir(dir_path): 30 shutil.rmtree(dir_path, onerror=_WinReadOnlyHandler)
|
D | dependency_manager_util_unittest.py | 106 def CreateZipArchiveFromDir(self, dir_path): argument 109 archive_path = shutil.make_archive(base_path, 'zip', dir_path) 140 dir_path = self.tmp_dir 142 dir_path = u'\\\\?\\' + dir_path 148 contents_dir_path = os.path.join(dir_path, archive_suffix) 154 archive_path = shutil.make_archive(base_path, 'zip', dir_path)
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/codegen/ |
D | gen_common.py | 48 def MakeDir(dir_path): argument 54 dir_path = os.path.abspath(dir_path) 56 if not os.path.exists(dir_path): 58 os.makedirs(dir_path) 63 if not os.path.isdir(dir_path): 69 def DeleteDirTree(dir_path): argument 77 shutil.rmtree(dir_path, False)
|
/external/webrtc/rtc_base/ |
D | file_rotating_stream.h | 34 FileRotatingStream(const std::string& dir_path, 39 FileRotatingStream(const std::string& dir_path, 142 CallSessionFileRotatingStream(const std::string& dir_path, 166 FileRotatingStreamReader(const std::string& dir_path, 178 CallSessionFileRotatingStreamReader(const std::string& dir_path);
|
D | file_rotating_stream.cc | 173 FileRotatingStream::FileRotatingStream(const std::string& dir_path, in FileRotatingStream() argument 177 : dir_path_(AddTrailingPathDelimiterIfNeeded(dir_path)), in FileRotatingStream() 186 RTC_DCHECK(IsFolder(dir_path)); in FileRotatingStream() 343 const std::string& dir_path, in CallSessionFileRotatingStream() argument 345 : FileRotatingStream(dir_path, in CallSessionFileRotatingStream() 388 const std::string& dir_path, in FileRotatingStreamReader() argument 390 file_names_ = GetFilesWithPrefix(AddTrailingPathDelimiterIfNeeded(dir_path), in FileRotatingStreamReader() 425 const std::string& dir_path) in CallSessionFileRotatingStreamReader() argument 426 : FileRotatingStreamReader(dir_path, kCallSessionLogPrefix) {} in CallSessionFileRotatingStreamReader()
|
/external/chromium-trace/catapult/devil/devil/utils/ |
D | zip_utils.py | 41 for dir_path, _, file_names in os.walk(path): 42 dir_arc_path = os.path.join(arc_path, os.path.relpath(dir_path, path)) 43 logger.debug('dir: %s -> %s', dir_path, dir_arc_path) 44 zip_file.write(dir_path, dir_arc_path, zipfile.ZIP_STORED) 46 file_path = os.path.join(dir_path, f)
|
/external/adhd/cras/src/tests/ |
D | file_wait_unittest.cc | 104 std::string dir_path; in TEST() local 109 dir_path = tmp_dir + "/" + pid_buf; in TEST() 110 subdir_path = dir_path + "/subdir"; in TEST() 143 ASSERT_EQ(0, RmRF(dir_path)); in TEST() 144 ASSERT_EQ(0, mkdir(dir_path.c_str(), 0700)); in TEST() 248 file_path = dir_path + "//does_not_exist_too"; in TEST() 256 ASSERT_EQ(0, chdir(dir_path.c_str())); in TEST() 269 EXPECT_EQ(0, RmRF(dir_path)); in TEST()
|
/external/mesa3d/src/util/ |
D | disk_cache_os.c | 281 choose_lru_file_matching(const char *dir_path, in choose_lru_file_matching() argument 282 bool (*predicate)(const char *dir_path, in choose_lru_file_matching() argument 292 dir = opendir(dir_path); in choose_lru_file_matching() 306 if (!predicate(dir_path, &sb, entry->d_name, len)) in choose_lru_file_matching() 324 if (asprintf(&filename, "%s/%s", dir_path, lru_name) < 0) in choose_lru_file_matching() 464 char *dir_path; in disk_cache_evict_lru_item() local 472 if (asprintf(&dir_path, "%s/%02" PRIx64 , cache->path, rand64 & 0xff) < 0) in disk_cache_evict_lru_item() 475 size_t size = unlink_lru_file_from_directory(dir_path); in disk_cache_evict_lru_item() 477 free(dir_path); in disk_cache_evict_lru_item() 492 dir_path = choose_lru_file_matching(cache->path, in disk_cache_evict_lru_item() [all …]
|
/external/autotest/site_utils/admin/ |
D | clean_staged_images.py | 40 for dir_path, dir_names, file_names in os.walk(root): 41 if os.path.basename(dir_path) in _EXEMPTED_DIRECTORIES: 42 logging.debug('Skipping %s', dir_path) 46 yield dir_path
|
/external/autotest/utils/ |
D | unittest_suite.py | 165 for dir_path, sub_dirs, file_names in os.walk(start): 171 os.unlink(os.path.join(dir_path, file_name)) 175 print 'Skipping', dir_path 182 file_path = os.path.join(dir_path, file_name) 190 path_no_py = os.path.join(dir_path, file_name).rstrip('.py')
|
/external/libese/libese-hw/nxp/pn80t/ |
D | linux_spidev.c | 81 char dir_path[256]; in gpio_configure() local 93 if (snprintf(dir_path, sizeof(dir_path), "/sys/class/gpio/gpio%d/direction", in gpio_configure() 94 num) >= (int)sizeof(dir_path)) { in gpio_configure() 109 fd = open(dir_path, O_WRONLY); in gpio_configure()
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/ |
D | dump_mlir_util.cc | 201 void SetCrashReproducer(mlir::PassManager& pm, llvm::StringRef dir_path) { in SetCrashReproducer() argument 202 std::string path = dir_path.str(); in SetCrashReproducer() 221 LOG(ERROR) << "MLIR crash reproducer is set to '" << dir_path.str() in SetCrashReproducer() 261 llvm::StringRef dir_path) { in applyTensorflowAndCLOptions() argument 263 SetCrashReproducer(pm, dir_path); in applyTensorflowAndCLOptions()
|
D | dump_mlir_util.h | 73 void SetCrashReproducer(mlir::PassManager& pm, llvm::StringRef dir_path = ""); 82 llvm::StringRef dir_path = "");
|
/external/llvm-project/libcxx/utils/libcxx/test/ |
D | googlebenchmark.py | 76 dir_path = os.path.join(source_path, subdir) 77 if not os.path.isdir(dir_path): 79 for fn in lit.util.listdir_files(dir_path,
|
/external/libcxx/utils/libcxx/test/ |
D | googlebenchmark.py | 76 dir_path = os.path.join(source_path, subdir) 77 if not os.path.isdir(dir_path): 79 for fn in lit.util.listdir_files(dir_path,
|
/external/llvm-project/llvm/utils/lit/lit/formats/ |
D | googletest.py | 94 dir_path = os.path.join(source_path, subdir) 95 if not os.path.isdir(dir_path): 97 for fn in lit.util.listdir_files(dir_path,
|
/external/tensorflow/tensorflow/lite/tools/evaluation/ |
D | utils.cc | 73 std::string dir_path = StripTrailingSlashes(directory); in GetSortedFileNames() local 74 if ((dir = opendir(dir_path.c_str())) != nullptr) { in GetSortedFileNames() 85 result->emplace_back(dir_path + "/" + filename); in GetSortedFileNames()
|
/external/llvm-project/llvm/utils/lit/lit/builtin_commands/ |
D | diff.py | 107 def printDirVsFile(dir_path, file_path): argument 112 sys.stdout.write(msg % (dir_path, file_path) + "\n") 114 def printFileVsDir(file_path, dir_path): argument 119 sys.stdout.write(msg % (file_path, dir_path) + "\n")
|
/external/libchrome/mojo/public/tools/bindings/ |
D | mojom_types_downgrader.py | 78 for dir_path, _, filenames in os.walk(path): 80 mojom_filepaths.append(os.path.join(dir_path, filename))
|
/external/tensorflow/tensorflow/python/tools/api/generator/ |
D | create_python_api.py | 529 def get_module(dir_path, relative_to_dir): argument 539 dir_path = dir_path[len(relative_to_dir):] 541 dir_path = dir_path.replace(os.sep, '/') 542 return dir_path.replace('/', '.').strip('.')
|