/system/libvintf/xsd/halManifest/vts/ |
D | ValidateHalManifest.cpp | 26 static void get_files_in_dirs(const char* dir_path, std::vector<std::string>& files) { in get_files_in_dirs() argument 30 d = opendir(dir_path); in get_files_in_dirs() 58 for (const char* dir_path : vintf_locations) { in TEST() local 60 get_files_in_dirs(dir_path, files); in TEST() 63 EXPECT_VALID_XML((dir_path + "/"s + file_name).c_str(), xsd); in TEST() 72 for (const char* dir_path : fragment_locations) { in TEST() local 74 get_files_in_dirs(dir_path, files); in TEST() 76 EXPECT_VALID_XML((dir_path + "/"s + file_name).c_str(), xsd); in TEST()
|
/system/linkerconfig/ |
D | main.cc | 215 Result<void> GenerateConfiguration(Configuration config, std::string dir_path, in GenerateConfiguration() argument 218 if (dir_path != "") { in GenerateConfiguration() 219 file_path = dir_path + "/ld.config.txt"; in GenerateConfiguration() 233 const std::string& dir_path) { in GenerateBaseLinkerConfiguration() argument 234 return GenerateConfiguration(GetConfiguration(ctx), dir_path, true); in GenerateBaseLinkerConfiguration() 238 const std::string& dir_path) { in GenerateRecoveryLinkerConfiguration() argument 241 dir_path, in GenerateRecoveryLinkerConfiguration() 248 std::string dir_path = base_dir + "/" + target_apex.name; in GenerateApexConfiguration() local 249 if (auto ret = mkdir(dir_path.c_str(), 0755); ret != 0 && errno != EEXIST) { in GenerateApexConfiguration() 250 return ErrnoError() << "Failed to create directory " << dir_path; in GenerateApexConfiguration() [all …]
|
/system/linkerconfig/modules/tests/ |
D | apex_testbase.h | 51 void Mkdir(std::string dir_path) { in Mkdir() 52 if (access(dir_path.c_str(), F_OK) == 0) return; in Mkdir() 53 Mkdir(android::base::Dirname(dir_path)); in Mkdir() 54 ASSERT_NE(-1, mkdir(dir_path.c_str(), 0755) == -1) in Mkdir() 55 << "Failed to create a directory: " << dir_path; in Mkdir()
|
/system/core/libmodprobe/ |
D | libmodprobe_test.cpp | 130 auto dir_path = std::string(dir.path); in TEST() local 131 ASSERT_TRUE(android::base::WriteStringToFile(modules_alias, dir_path + "/modules.alias", 0600, in TEST() 134 ASSERT_TRUE(android::base::WriteStringToFile(modules_dep, dir_path + "/modules.dep", 0600, in TEST() 136 ASSERT_TRUE(android::base::WriteStringToFile(modules_softdep, dir_path + "/modules.softdep", in TEST() 138 ASSERT_TRUE(android::base::WriteStringToFile(modules_options, dir_path + "/modules.options", in TEST() 140 ASSERT_TRUE(android::base::WriteStringToFile(modules_load, dir_path + "/modules.load", 0600, in TEST() 142 ASSERT_TRUE(android::base::WriteStringToFile(modules_blocklist, dir_path + "/modules.blocklist", in TEST()
|
/system/apex/libs/libapexutil/ |
D | apexutil_test.cpp | 48 void Mkdir(std::string dir_path) { in Mkdir() argument 49 if (access(dir_path.c_str(), F_OK) == 0) in Mkdir() 51 ASSERT_NE(-1, mkdir(dir_path.c_str(), 0755) == -1) in Mkdir() 52 << "Failed to create a directory: " << dir_path; in Mkdir()
|
/system/core/init/ |
D | first_stage_init.cpp | 103 std::string GetModuleLoadList(bool recovery, const std::string& dir_path) { in GetModuleLoadList() argument 107 std::string recovery_load_path = dir_path + "/modules.load.recovery"; in GetModuleLoadList() 155 std::string dir_path = MODULE_BASE_DIR "/"; in LoadKernelModules() local 156 dir_path.append(module_dir); in LoadKernelModules() 157 Modprobe m({dir_path}, GetModuleLoadList(recovery, dir_path)); in LoadKernelModules()
|
/system/media/camera/docs/ |
D | metadata-generate | 92 local dir_path="$(dirname "$file")" 93 echo "Trying to cd into $dir_path" >& /dev/null 95 local git_path="$(cd "$dir_path"; 99 local diff_result="$(cd "$dir_path";
|
/system/update_engine/common/ |
D | prefs.cc | 42 for (base::FilePath dir_path = path_enum.Next(); !dir_path.empty(); in DeleteEmptyDirectories() local 43 dir_path = path_enum.Next()) { in DeleteEmptyDirectories() 44 DeleteEmptyDirectories(dir_path); in DeleteEmptyDirectories() 45 if (base::IsDirectoryEmpty(dir_path)) in DeleteEmptyDirectories() 46 base::DeleteFile(dir_path, false); in DeleteEmptyDirectories()
|
/system/update_engine/payload_consumer/ |
D | partition_update_generator_android.cc | 230 std::string dir_path; in Create() local 231 if (!dynamic_control->GetDeviceDir(&dir_path)) { in Create() 237 boot_control, std::move(dir_path), block_size)); in Create()
|
/system/tools/mkbootimg/ |
D | unpack_bootimg.py | 29 def create_out_dir(dir_path): argument 31 if not os.path.exists(dir_path): 32 os.makedirs(dir_path)
|
/system/extras/simpleperf/ |
D | utils.cpp | 235 std::string dir_path = path.substr(0, next_end); in MkdirWithParents() local 236 if (!IsDir(dir_path)) { in MkdirWithParents() 238 int ret = mkdir(dir_path.c_str()); in MkdirWithParents() 240 int ret = mkdir(dir_path.c_str(), 0755); in MkdirWithParents() 243 PLOG(ERROR) << "failed to create dir " << dir_path; in MkdirWithParents()
|
/system/core/debuggerd/tombstoned/ |
D | tombstoned.cpp | 77 CrashQueue(const std::string& dir_path, const std::string& file_name_prefix, size_t max_artifacts, in CrashQueue() argument 80 dir_path_(dir_path), in CrashQueue() 81 dir_fd_(open(dir_path.c_str(), O_DIRECTORY | O_RDONLY | O_CLOEXEC)), in CrashQueue() 87 PLOG(FATAL) << "failed to open directory: " << dir_path; in CrashQueue()
|
/system/incremental_delivery/incfs/tests/ |
D | incfs_test.cpp | 259 const auto dir_path = mountPath(test_dir_name_); in TEST_F() local 260 ASSERT_FALSE(exists(dir_path)); in TEST_F() 261 ASSERT_EQ(makeDir(control_, dir_path), 0); in TEST_F() 262 ASSERT_TRUE(exists(dir_path)); in TEST_F() 266 const auto dir_path = mountPath(test_dir_name_); in TEST_F() local 267 ASSERT_FALSE(exists(dir_path)); in TEST_F() 268 ASSERT_EQ(makeDirs(control_, dir_path), 0); in TEST_F() 269 ASSERT_TRUE(exists(dir_path)); in TEST_F() 270 ASSERT_EQ(makeDirs(control_, dir_path), 0); in TEST_F() 271 auto nested = dir_path + "/couple/more/nested/levels"; in TEST_F()
|
/system/extras/puncture_fs/ |
D | puncture_fs.cpp | 73 static bool create_unique_file(const char * const dir_path, const u64 size, in create_unique_file() argument 83 sprintf(file_path, "%s/file_%lu", dir_path, id); in create_unique_file()
|
/system/linkerconfig/contents/tests/configuration/include/ |
D | linkerconfigparser.h | 41 std::string dir_path = match[2]; in ParseDirPath() local 48 conf.sections[section_name].dirs.push_back(dir_path); in ParseDirPath()
|
/system/core/adb/client/ |
D | file_sync_client.cpp | 1016 std::string dir_path = path; in sync_stat_fallback() local 1017 dir_path.push_back('/'); in sync_stat_fallback() 1021 if (sync_lstat(sc, dir_path, &tmp_st)) { in sync_stat_fallback()
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot.cpp | 1472 auto dir_path = metadata_dir_ + "/snapshots"s; in ListSnapshots() local 1473 std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(dir_path.c_str()), closedir); in ListSnapshots() 1475 PLOG(ERROR) << "opendir failed: " << dir_path; in ListSnapshots()
|