Home
last modified time | relevance | path

Searched refs:volume_uuid (Results 1 – 14 of 14) sorted by relevance

/aosp12/frameworks/native/cmds/installd/
H A Dutils.h47 std::string create_data_path(const char* volume_uuid);
49 std::string create_data_app_path(const char* volume_uuid);
51 std::string create_data_user_ce_path(const char* volume_uuid, userid_t userid);
52 std::string create_data_user_de_path(const char* volume_uuid, userid_t userid);
54 std::string create_data_user_ce_package_path(const char* volume_uuid,
56 std::string create_data_user_ce_package_path(const char* volume_uuid,
58 std::string create_data_user_de_package_path(const char* volume_uuid,
61 const char* volume_uuid, userid_t userid, const char* package_name);
76 std::string create_data_media_path(const char* volume_uuid, userid_t userid);
108 std::vector<userid_t> get_known_users(const char* volume_uuid);
[all …]
H A Dutils.cpp127 std::string data(create_data_path(volume_uuid)); in create_data_user_ce_package_path_as_user_link()
147 std::string create_data_path(const char* volume_uuid) { in create_data_path() argument
148 if (volume_uuid == nullptr) { in create_data_path()
150 } else if (!strcmp(volume_uuid, "TEST")) { in create_data_path()
154 CHECK(is_valid_filename(volume_uuid)); in create_data_path()
155 return StringPrintf("/mnt/expand/%s", volume_uuid); in create_data_path()
162 std::string create_data_app_path(const char* volume_uuid) { in create_data_app_path() argument
171 std::string data(create_data_path(volume_uuid)); in create_data_user_ce_path()
172 if (volume_uuid == nullptr && userid == 0) { in create_data_user_ce_path()
187 std::string data(create_data_path(volume_uuid)); in create_data_user_de_path()
[all …]
H A DInstalldNativeService.cpp921 const char* volume_uuid = volumeUuid ? volumeUuid->c_str() : nullptr; in snapshotAppData() local
1051 const char* volume_uuid = volumeUuid ? volumeUuid->c_str() : nullptr; in restoreAppDataSnapshot() local
1054 auto from_ce = create_data_misc_ce_rollback_package_path(volume_uuid, in restoreAppDataSnapshot()
1056 auto from_de = create_data_misc_de_rollback_package_path(volume_uuid, in restoreAppDataSnapshot()
1084 auto to_ce = create_data_user_ce_path(volume_uuid, user); in restoreAppDataSnapshot()
1094 auto to_de = create_data_user_de_path(volume_uuid, user); in restoreAppDataSnapshot()
1123 const char* volume_uuid = volumeUuid ? volumeUuid->c_str() : nullptr; in destroyAppDataSnapshot() local
1154 const char* volume_uuid = volumeUuid ? volumeUuid->c_str() : nullptr; in destroyCeSnapshotsNotSpecified() local
1156 auto base_path = create_data_misc_ce_rollback_base_path(volume_uuid, user); in destroyCeSnapshotsNotSpecified()
1175 volume_uuid, user, snapshot_id); in destroyCeSnapshotsNotSpecified()
[all …]
H A Ddexopt.h121 const std::string& pkgname, int uid, const std::optional<std::string>& volume_uuid,
126 const char* volume_uuid, const char* class_loader_context, const char* se_info,
H A Dotapreopt_parameters.cpp219 volume_uuid = ParseNull(param); in ReadArgumentsV1()
328 volume_uuid = ParseNull(param); in ReadArgumentsPostV1()
H A Dotapreopt_parameters.h43 const char* volume_uuid; variable
H A Ddexopt.cpp1536 int dexopt_flags, const char* volume_uuid, int uid, const char* instruction_set, in process_secondary_dex_dexopt() argument
1563 if (!validate_secondary_dex_path(pkgname, dex_path, volume_uuid, uid, storage_flag)) { in process_secondary_dex_dexopt()
1675 const char* volume_uuid, const char* class_loader_context, const char* se_info, in dexopt() argument
1716 if (process_secondary_dex_dexopt(dex_path, pkgname, dexopt_flags, volume_uuid, uid, in dexopt()
1934 const std::optional<std::string>& volume_uuid, int storage_flag, in reconcile_secondary_dex_file() argument
1955 const char* volume_uuid_cstr = volume_uuid ? volume_uuid->c_str() : nullptr; in reconcile_secondary_dex_file()
2059 const std::optional<std::string>& volume_uuid, int storage_flag, in hash_secondary_dex_file() argument
2063 const char* volume_uuid_cstr = volume_uuid ? volume_uuid->c_str() : nullptr; in hash_secondary_dex_file()
H A Dotapreopt.cpp490 parameters_.volume_uuid, in Dexopt()
/aosp12/system/vold/
H A DFsCrypt.cpp658 auto key_path = volkey_path(misc_path, volume_uuid); in read_or_create_volkey()
672 auto path = volkey_path(misc_path, volume_uuid); in destroy_volkey()
817 if (volume_uuid.empty()) { in fscrypt_prepare_user_storage()
834 if (volume_uuid.empty()) { in fscrypt_prepare_user_storage()
854 if (volume_uuid.empty()) { in fscrypt_prepare_user_storage()
873 if (volume_uuid.empty()) { in fscrypt_prepare_user_storage()
885 if (volume_uuid.empty()) { in fscrypt_prepare_user_storage()
916 if (volume_uuid.empty()) { in fscrypt_destroy_user_storage()
940 if (volume_uuid.empty()) { in fscrypt_destroy_user_storage()
991 res &= destroy_volume_keys("/data/misc_ce", volume_uuid); in fscrypt_destroy_volume_keys()
[all …]
H A Dvold_prepare_subdirs.cpp166 static bool prepare_subdirs(const std::string& volume_uuid, int user_id, int flags) { in prepare_subdirs() argument
170 auto user_de_path = android::vold::BuildDataUserDePath(volume_uuid, user_id); in prepare_subdirs()
175 if (volume_uuid.empty()) { in prepare_subdirs()
201 auto user_ce_path = android::vold::BuildDataUserCePath(volume_uuid, user_id); in prepare_subdirs()
206 if (volume_uuid.empty()) { in prepare_subdirs()
234 static bool destroy_subdirs(const std::string& volume_uuid, int user_id, int flags) { in destroy_subdirs() argument
236 if (volume_uuid.empty()) { in destroy_subdirs()
264 auto volume_uuid = args[1]; in main() local
268 if (!prepare_subdirs(volume_uuid, user_id, flags)) return -1; in main()
270 if (!destroy_subdirs(volume_uuid, user_id, flags)) return -1; in main()
H A DFsCrypt.h35 bool fscrypt_prepare_user_storage(const std::string& volume_uuid, userid_t user_id, int serial,
37 bool fscrypt_destroy_user_storage(const std::string& volume_uuid, userid_t user_id, int flags);
39 bool fscrypt_destroy_volume_keys(const std::string& volume_uuid);
/aosp12/frameworks/native/cmds/installd/tests/
H A Dinstalld_otapreopt_test.cpp67 ASSERT_STREQ(params.volume_uuid, ParseNull(args[i++])); in verifyPackageParameters()
/aosp12/frameworks/native/cmds/installd/binder/android/os/
H A DIInstalld.aidl101 int uid, in @utf8InCpp String[] isas, @nullable @utf8InCpp String volume_uuid, in reconcileSecondaryDexFile() argument
/aosp12/frameworks/base/core/jni/
H A Dcom_android_internal_os_Zygote.cpp1142 std::string_view volume_uuid, long long ce_data_inode, std::string_view actualCePath, in isolateAppDataPerPackage() argument
1148 snprintf(mirrorCeParent, PATH_MAX, "/data_mirror/data_ce/%s", volume_uuid.data()); in isolateAppDataPerPackage()
1150 snprintf(mirrorDePath, PATH_MAX, "/data_mirror/data_de/%s/%d", volume_uuid.data(), userId); in isolateAppDataPerPackage()