/system/apex/apexd/ |
D | apex_file_repository_test.cpp | 75 TemporaryDir built_in_dir, data_dir, decompression_dir; in TEST() local 80 fs::copy(GetTestFile("apex.apexd_test.apex"), data_dir.path); in TEST() 81 fs::copy(GetTestFile("apex.apexd_test_different_app.apex"), data_dir.path); in TEST() 85 ASSERT_TRUE(IsOk(instance.AddDataApex(data_dir.path))); in TEST() 108 ASSERT_EQ(StringPrintf("%s/%s", data_dir.path, apex_name.c_str()), *ret); in TEST() 120 ASSERT_TRUE(IsOk(instance.AddDataApex(data_dir.path))); in TEST() 305 TemporaryDir built_in_dir, data_dir, decompression_dir; in TEST() local 307 fs::copy(GetTestFile("apex.apexd_test_v2.apex"), data_dir.path); in TEST() 312 StringPrintf("%s/com.android.apex.compressed@1%s", data_dir.path, in TEST() 317 ASSERT_TRUE(IsOk(instance.AddDataApex(data_dir.path))); in TEST() [all …]
|
D | apex_file_repository.cpp | 107 Result<void> ApexFileRepository::AddDataApex(const std::string& data_dir) { in AddDataApex() argument 108 LOG(INFO) << "Scanning " << data_dir << " for data ApexFiles"; in AddDataApex() 109 if (access(data_dir.c_str(), F_OK) != 0 && errno == ENOENT) { in AddDataApex() 110 LOG(WARNING) << data_dir << " does not exist. Skipping"; in AddDataApex() 115 FindFilesBySuffix(data_dir, {kApexPackageSuffix}); in AddDataApex()
|
D | apex_file_repository.h | 67 android::base::Result<void> AddDataApex(const std::string& data_dir);
|
D | apexd_test.cpp | 253 TemporaryDir data_dir; in TEST_F() local
|
/system/security/identity/ |
D | main.cpp | 46 string data_dir = string(argv[1]); in main() local 47 CHECK(chdir(data_dir.c_str()) != -1) << "chdir: " << data_dir << ": " << strerror(errno); in main() 50 sp<CredentialStoreFactory> factory = new CredentialStoreFactory(data_dir); in main()
|
/system/core/run-as/ |
D | run-as.cpp | 205 free(info.data_dir); in main() 206 if (asprintf(&info.data_dir, "/data/user/%d/%s", userId, pkgname) == -1) { in main() 235 check_data_path(pkgname, info.data_dir, userAppId); in main() 254 if (TEMP_FAILURE_RETRY(chdir(info.data_dir)) == -1) { in main() 255 error(1, errno, "couldn't chdir to package's data directory '%s'", info.data_dir); in main() 257 setenv("HOME", info.data_dir, 1); in main()
|
/system/core/libpackagelistparser/ |
D | packagelistparser_test.cpp | 53 ASSERT_STREQ("/data/user/0/com.test.a0", packages[0]->data_dir); in TEST() 62 ASSERT_STREQ("/data/user/0/com.test.a1", packages[1]->data_dir); in TEST() 72 ASSERT_STREQ("/data/user/0/com.test.a2", packages[2]->data_dir); in TEST() 83 ASSERT_STREQ("/data/user/0/com.test.a3", packages[3]->data_dir); in TEST()
|
D | packagelistparser.cpp | 72 sscanf(line, "%ms %lu %d %ms %ms %ms %d %ld", &info->name, &uid, &debuggable, &info->data_dir, in parse_line() 136 free(info->data_dir); in packagelist_free()
|
/system/extras/simpleperf/simpleperf_app_runner/ |
D | simpleperf_app_runner.cpp | 226 std::string data_dir = info->data_dir; in main() local 233 data_dir = StringPrintf("/data/user/%d/%s", user_id, pkgname); in main() 252 if (TEMP_FAILURE_RETRY(chdir(data_dir.c_str())) == -1) { in main()
|
/system/core/libpackagelistparser/include/packagelistparser/ |
D | packagelistparser.h | 43 char* data_dir; member
|
/system/core/fs_mgr/libfiemap/ |
D | image_manager.cpp | 61 auto data_dir = "/data/gsi/" + dir_prefix; in Open() local 65 data_dir = path; in Open() 67 return Open(metadata_dir, data_dir, device_info); in Open() 71 const std::string& data_dir, in Open() argument 73 return std::unique_ptr<ImageManager>(new ImageManager(metadata_dir, data_dir, device_info)); in Open() 76 ImageManager::ImageManager(const std::string& metadata_dir, const std::string& data_dir, in ImageManager() argument 78 : metadata_dir_(metadata_dir), data_dir_(data_dir), device_info_(device_info) { in ImageManager()
|
/system/core/fs_mgr/libfiemap/include/libfiemap/ |
D | image_manager.h | 141 const std::string& data_dir, 178 ImageManager(const std::string& metadata_dir, const std::string& data_dir,
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot_fuzz_utils.h | 149 const std::string& data_dir) { in Open() argument 150 auto impl = android::fiemap::ImageManager::Open(metadata_dir, data_dir); in Open()
|
D | snapshot_fuzz_utils.cpp | 386 auto data_dir = fake_data_mount_point_ + "/image_manager_data"; in CheckCreateFakeImageManager() local 388 PCHECK(Mkdir(data_dir)); in CheckCreateFakeImageManager() 389 return SnapshotFuzzImageManager::Open(metadata_dir, data_dir); in CheckCreateFakeImageManager()
|
/system/gsid/ |
D | gsi_service.cpp | 781 std::string metadata_dir, data_dir; in openImageService() local 786 if (!android::base::Realpath(in_data_dir, &data_dir)) { in openImageService() 793 if (!StartsWith(data_dir, kImageDataPrefix) && !StartsWith(data_dir, kDsuSDPrefix)) { in openImageService() 802 auto impl = ImageManager::Open(metadata_dir, data_dir); in openImageService()
|