Home
last modified time | relevance | path

Searched refs:userid_t (Results 1 – 16 of 16) sorted by relevance

/system/vold/
DFsCrypt.h24 bool fscrypt_vold_create_user_key(userid_t user_id, int serial, bool ephemeral);
25 bool fscrypt_destroy_user_key(userid_t user_id);
26 bool fscrypt_add_user_key_auth(userid_t user_id, int serial, const std::string& token,
28 bool fscrypt_fixate_newest_user_key_auth(userid_t user_id);
30 bool fscrypt_unlock_user_key(userid_t user_id, int serial, const std::string& token,
32 bool fscrypt_lock_user_key(userid_t user_id);
34 bool fscrypt_prepare_user_storage(const std::string& volume_uuid, userid_t user_id, int serial,
36 bool fscrypt_destroy_user_storage(const std::string& volume_uuid, userid_t user_id, int flags);
DUtils.h114 std::string BuildDataSystemLegacyPath(userid_t userid);
115 std::string BuildDataSystemCePath(userid_t userid);
116 std::string BuildDataSystemDePath(userid_t userid);
117 std::string BuildDataMiscLegacyPath(userid_t userid);
118 std::string BuildDataMiscCePath(userid_t userid);
119 std::string BuildDataMiscDePath(userid_t userid);
120 std::string BuildDataProfilesDePath(userid_t userid);
121 std::string BuildDataVendorCePath(userid_t userid);
122 std::string BuildDataVendorDePath(userid_t userid);
125 std::string BuildDataMediaCePath(const std::string& volumeUuid, userid_t userid);
[all …]
DVolumeManager.h89 int onUserAdded(userid_t userId, int userSerialNumber);
90 int onUserRemoved(userid_t userId);
91 int onUserStarted(userid_t userId);
92 int onUserStopped(userid_t userId);
138 int linkPrimary(userid_t userId);
155 std::unordered_map<userid_t, int> mAddedUsers;
156 std::unordered_set<userid_t> mStartedUsers;
DFsCrypt.cpp90 std::set<userid_t> s_ephemeral_users;
93 std::map<userid_t, std::string> s_de_key_raw_refs;
94 std::map<userid_t, std::string> s_ce_key_raw_refs;
96 std::map<userid_t, KeyBuffer> s_ce_keys;
108 static std::string get_de_key_path(userid_t user_id) { in get_de_key_path()
112 static std::string get_ce_key_directory_path(userid_t user_id) { in get_ce_key_directory_path()
185 static bool read_and_fixate_user_ce_key(userid_t user_id, in read_and_fixate_user_ce_key()
202 static bool read_and_install_user_ce_key(userid_t user_id, in read_and_install_user_ce_key()
235 static bool create_and_install_user_keys(userid_t user_id, bool create_ephemeral) { in create_and_install_user_keys()
268 static bool lookup_key_ref(const std::map<userid_t, std::string>& key_map, userid_t user_id, in lookup_key_ref() argument
[all …]
DUtils.cpp678 std::string BuildDataSystemLegacyPath(userid_t userId) { in BuildDataSystemLegacyPath()
682 std::string BuildDataSystemCePath(userid_t userId) { in BuildDataSystemCePath()
686 std::string BuildDataSystemDePath(userid_t userId) { in BuildDataSystemDePath()
690 std::string BuildDataMiscLegacyPath(userid_t userId) { in BuildDataMiscLegacyPath()
694 std::string BuildDataMiscCePath(userid_t userId) { in BuildDataMiscCePath()
698 std::string BuildDataMiscDePath(userid_t userId) { in BuildDataMiscDePath()
703 std::string BuildDataProfilesDePath(userid_t userId) { in BuildDataProfilesDePath()
707 std::string BuildDataVendorCePath(userid_t userId) { in BuildDataVendorCePath()
711 std::string BuildDataVendorDePath(userid_t userId) { in BuildDataVendorDePath()
725 std::string BuildDataMediaCePath(const std::string& volumeUuid, userid_t userId) { in BuildDataMediaCePath()
[all …]
DVolumeManager.cpp367 int VolumeManager::linkPrimary(userid_t userId) { in linkPrimary()
380 int VolumeManager::onUserAdded(userid_t userId, int userSerialNumber) { in onUserAdded()
385 int VolumeManager::onUserRemoved(userid_t userId) { in onUserRemoved()
390 int VolumeManager::onUserStarted(userid_t userId) { in onUserStarted()
405 int VolumeManager::onUserStopped(userid_t userId) { in onUserStopped()
427 for (userid_t userId : mStartedUsers) { in setPrimary()
574 userid_t user_id = multiuser_get_user_id(uid); in remountUid()
/system/core/libcutils/include/cutils/
Dmultiuser.h26 typedef uid_t userid_t; typedef
29 extern userid_t multiuser_get_user_id(uid_t uid);
32 extern uid_t multiuser_get_uid(userid_t user_id, appid_t app_id);
34 extern gid_t multiuser_get_cache_gid(userid_t user_id, appid_t app_id);
35 extern gid_t multiuser_get_ext_gid(userid_t user_id, appid_t app_id);
36 extern gid_t multiuser_get_ext_cache_gid(userid_t user_id, appid_t app_id);
37 extern gid_t multiuser_get_shared_gid(userid_t user_id, appid_t app_id);
/system/core/libcutils/include_vndk/cutils/
Dmultiuser.h26 typedef uid_t userid_t; typedef
29 extern userid_t multiuser_get_user_id(uid_t uid);
32 extern uid_t multiuser_get_uid(userid_t user_id, appid_t app_id);
34 extern gid_t multiuser_get_cache_gid(userid_t user_id, appid_t app_id);
35 extern gid_t multiuser_get_ext_gid(userid_t user_id, appid_t app_id);
36 extern gid_t multiuser_get_ext_cache_gid(userid_t user_id, appid_t app_id);
37 extern gid_t multiuser_get_shared_gid(userid_t user_id, appid_t app_id);
/system/core/libcutils/
Dmultiuser.cpp20 userid_t multiuser_get_user_id(uid_t uid) { in multiuser_get_user_id()
28 uid_t multiuser_get_uid(userid_t user_id, appid_t app_id) { in multiuser_get_uid()
32 gid_t multiuser_get_cache_gid(userid_t user_id, appid_t app_id) { in multiuser_get_cache_gid()
40 gid_t multiuser_get_ext_gid(userid_t user_id, appid_t app_id) { in multiuser_get_ext_gid()
48 gid_t multiuser_get_ext_cache_gid(userid_t user_id, appid_t app_id) { in multiuser_get_ext_cache_gid()
56 gid_t multiuser_get_shared_gid(userid_t, appid_t app_id) { in multiuser_get_shared_gid() argument
/system/core/storaged/include/
Dstoraged.h89 unordered_map<userid_t, bool> proto_loaded;
90 void load_proto(userid_t user_id);
91 char* prepare_proto(userid_t user_id, StoragedProto* proto);
92 void flush_proto(userid_t user_id, StoragedProto* proto);
93 void flush_proto_data(userid_t user_id, const char* data, ssize_t size);
94 string proto_path(userid_t user_id) { in proto_path()
134 void add_user_ce(userid_t user_id);
135 void remove_user_ce(userid_t user_id);
Dstoraged_uid_monitor.h63 userid_t user_id;
127 void load_uid_io_proto(userid_t user_id, const UidIOUsage& proto);
128 void clear_user_history(userid_t user_id);
/system/vold/model/
DVolumeBase.h30 static constexpr userid_t USER_UNKNOWN = ((userid_t)-1);
86 userid_t getMountUserId() const { return mMountUserId; } in getMountUserId()
94 status_t setMountUserId(userid_t mountUserId);
139 userid_t mMountUserId;
DVolumeBase.cpp86 status_t VolumeBase::setMountUserId(userid_t mountUserId) { in setMountUserId()
/system/core/storaged/
Dstoraged.cpp166 void storaged_t::add_user_ce(userid_t user_id) { in add_user_ce()
171 void storaged_t::remove_user_ce(userid_t user_id) { in remove_user_ce()
177 void storaged_t::load_proto(userid_t user_id) { in load_proto()
204 char* storaged_t:: prepare_proto(userid_t user_id, StoragedProto* proto) { in prepare_proto()
238 void storaged_t::flush_proto_data(userid_t user_id, in flush_proto_data()
294 void storaged_t::flush_proto(userid_t user_id, StoragedProto* proto) { in flush_proto()
Dstoraged_uid_monitor.cpp416 unordered_map<userid_t, UidIOItem*> user_items; in update_uid_io_proto()
419 userid_t user_id = entry.ios.user_id; in update_uid_io_proto()
451 void uid_monitor::clear_user_history(userid_t user_id) in clear_user_history()
473 void uid_monitor::load_uid_io_proto(userid_t user_id, const UidIOUsage& uid_io_proto) in load_uid_io_proto()
/system/core/sdcard/
Dsdcard.cpp102 uid_t fsuid, gid_t fsgid, bool multi_user, userid_t userid, gid_t gid, in sdcardfs_setup()
155 uid_t fsuid, gid_t fsgid, bool multi_user, userid_t userid, in sdcardfs_setup_secondary()
167 gid_t gid, userid_t userid, bool multi_user, bool full_write, in run_sdcardfs()
240 userid_t userid = 0; in main()