Home
last modified time | relevance | path

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

/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/core/libpackagelistparser/include/packagelistparser/
Dpackagelistparser.h43 char* data_dir; member
/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz_utils.h83 const std::string& metadata_dir, const std::string& data_dir);
144 const std::string& data_dir) { in Open() argument
145 auto impl = android::fiemap::ImageManager::Open(metadata_dir, data_dir); in Open()
Dsnapshot_fuzz_utils.cpp385 const std::string& metadata_dir, const std::string& data_dir) { in CheckCreateFakeImageManager() argument
387 PCHECK(Mkdir(data_dir)); in CheckCreateFakeImageManager()
388 return SnapshotFuzzImageManager::Open(metadata_dir, data_dir); in CheckCreateFakeImageManager()
/system/core/fs_mgr/libfiemap/
Dimage_manager.cpp58 auto data_dir = "/data/gsi/" + dir_prefix; in Open() local
62 data_dir = path; in Open()
64 return Open(metadata_dir, data_dir); in Open()
68 const std::string& data_dir) { in Open() argument
69 return std::unique_ptr<ImageManager>(new ImageManager(metadata_dir, data_dir)); in Open()
72 ImageManager::ImageManager(const std::string& metadata_dir, const std::string& data_dir) in ImageManager() argument
73 : metadata_dir_(metadata_dir), data_dir_(data_dir) { in ImageManager()
/system/core/fs_mgr/libfiemap/include/libfiemap/
Dimage_manager.h134 const std::string& data_dir);
169 ImageManager(const std::string& metadata_dir, const std::string& data_dir);
/system/extras/simpleperf/simpleperf_app_runner/
Dsimpleperf_app_runner.cpp205 if (TEMP_FAILURE_RETRY(chdir(info->data_dir)) == -1) { in main()
/system/gsid/
Dgsi_service.cpp714 std::string metadata_dir, data_dir; in openImageService() local
719 if (!android::base::Realpath(in_data_dir, &data_dir)) { in openImageService()
724 !android::base::StartsWith(data_dir, kImageDataPrefix)) { in openImageService()
733 auto impl = ImageManager::Open(metadata_dir, data_dir); in openImageService()