Home
last modified time | relevance | path

Searched refs:data_dir (Results 1 – 15 of 15) sorted by relevance

/system/apex/apexd/
Dapex_file_repository_test.cpp75 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 …]
Dapex_file_repository.cpp107 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()
Dapex_file_repository.h67 android::base::Result<void> AddDataApex(const std::string& data_dir);
Dapexd_test.cpp253 TemporaryDir data_dir; in TEST_F() local
/system/security/identity/
Dmain.cpp46 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/
Drun-as.cpp205 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/
Dpackagelistparser_test.cpp53 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()
Dpackagelistparser.cpp72 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/
Dsimpleperf_app_runner.cpp226 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/
Dpackagelistparser.h43 char* data_dir; member
/system/core/fs_mgr/libfiemap/
Dimage_manager.cpp61 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/
Dimage_manager.h141 const std::string& data_dir,
178 ImageManager(const std::string& metadata_dir, const std::string& data_dir,
/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz_utils.h149 const std::string& data_dir) { in Open() argument
150 auto impl = android::fiemap::ImageManager::Open(metadata_dir, data_dir); in Open()
Dsnapshot_fuzz_utils.cpp386 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/
Dgsi_service.cpp781 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()