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_clear_user_key_auth(userid_t user_id, int serial, const std::string& token,
30 bool fscrypt_fixate_newest_user_key_auth(userid_t user_id);
32 bool fscrypt_unlock_user_key(userid_t user_id, int serial, const std::string& token,
34 bool fscrypt_lock_user_key(userid_t user_id);
36 bool fscrypt_prepare_user_storage(const std::string& volume_uuid, userid_t user_id, int serial,
38 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.cpp92 std::set<userid_t> s_ephemeral_users;
95 std::map<userid_t, EncryptionPolicy> s_de_policies;
96 std::map<userid_t, EncryptionPolicy> s_ce_policies;
113 static std::string get_de_key_path(userid_t user_id) { in get_de_key_path()
117 static std::string get_ce_key_directory_path(userid_t user_id) { in get_ce_key_directory_path()
190 static bool read_and_fixate_user_ce_key(userid_t user_id, in read_and_fixate_user_ce_key()
286 static bool read_and_install_user_ce_key(userid_t user_id, in read_and_install_user_ce_key()
320 static bool create_and_install_user_keys(userid_t user_id, bool create_ephemeral) { in create_and_install_user_keys()
354 static bool lookup_policy(const std::map<userid_t, EncryptionPolicy>& key_map, userid_t user_id, in lookup_policy() argument
395 userid_t user_id = std::stoi(entry->d_name); in load_all_de_keys()
[all …]
DUtils.cpp680 std::string BuildDataSystemLegacyPath(userid_t userId) { in BuildDataSystemLegacyPath()
684 std::string BuildDataSystemCePath(userid_t userId) { in BuildDataSystemCePath()
688 std::string BuildDataSystemDePath(userid_t userId) { in BuildDataSystemDePath()
692 std::string BuildDataMiscLegacyPath(userid_t userId) { in BuildDataMiscLegacyPath()
696 std::string BuildDataMiscCePath(userid_t userId) { in BuildDataMiscCePath()
700 std::string BuildDataMiscDePath(userid_t userId) { in BuildDataMiscDePath()
705 std::string BuildDataProfilesDePath(userid_t userId) { in BuildDataProfilesDePath()
709 std::string BuildDataVendorCePath(userid_t userId) { in BuildDataVendorCePath()
713 std::string BuildDataVendorDePath(userid_t userId) { in BuildDataVendorDePath()
727 std::string BuildDataMediaCePath(const std::string& volumeUuid, userid_t userId) { in BuildDataMediaCePath()
[all …]
DVolumeManager.cpp363 int VolumeManager::linkPrimary(userid_t userId) { in linkPrimary()
376 int VolumeManager::onUserAdded(userid_t userId, int userSerialNumber) { in onUserAdded()
381 int VolumeManager::onUserRemoved(userid_t userId) { in onUserRemoved()
386 int VolumeManager::onUserStarted(userid_t userId) { in onUserStarted()
401 int VolumeManager::onUserStopped(userid_t userId) { in onUserStopped()
423 for (userid_t userId : mStartedUsers) { in setPrimary()
570 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.cpp164 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()
237 void storaged_t::flush_proto_data(userid_t user_id, in flush_proto_data()
293 void storaged_t::flush_proto(userid_t user_id, StoragedProto* proto) { in flush_proto()
Dstoraged_uid_monitor.cpp413 unordered_map<userid_t, UidIOItem*> user_items; in update_uid_io_proto()
416 userid_t user_id = entry.ios.user_id; in update_uid_io_proto()
448 void uid_monitor::clear_user_history(userid_t user_id) in clear_user_history()
470 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()