Home
last modified time | relevance | path

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

/system/vold/
DFsCrypt.h25 bool fscrypt_vold_create_user_key(userid_t user_id, int serial, bool ephemeral);
26 bool fscrypt_destroy_user_key(userid_t user_id);
27 bool fscrypt_add_user_key_auth(userid_t user_id, int serial, const std::string& secret);
28 bool fscrypt_clear_user_key_auth(userid_t user_id, int serial, const std::string& secret);
29 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& secret);
33 bool fscrypt_lock_user_key(userid_t user_id);
35 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);
DUtils.h49 std::string GetFuseMountPathForUser(userid_t user_id, const std::string& relative_upper_path);
143 std::string BuildDataSystemLegacyPath(userid_t userid);
144 std::string BuildDataSystemCePath(userid_t userid);
145 std::string BuildDataSystemDePath(userid_t userid);
146 std::string BuildDataMiscLegacyPath(userid_t userid);
147 std::string BuildDataMiscCePath(userid_t userid);
148 std::string BuildDataMiscDePath(userid_t userid);
149 std::string BuildDataProfilesDePath(userid_t userid);
150 std::string BuildDataVendorCePath(userid_t userid);
151 std::string BuildDataVendorDePath(userid_t userid);
[all …]
DVolumeManager.h105 const std::set<userid_t>& getStartedUsers() const { return mStartedUsers; } in getStartedUsers()
109 int onUserAdded(userid_t userId, int userSerialNumber);
110 int onUserRemoved(userid_t userId);
111 int onUserStarted(userid_t userId);
112 int onUserStopped(userid_t userId);
206 int linkPrimary(userid_t userId);
208 void createEmulatedVolumesForUser(userid_t userId);
209 void destroyEmulatedVolumesForUser(userid_t userId);
228 std::unordered_map<userid_t, int> mAddedUsers;
231 std::set<userid_t> mStartedUsers;
DFsCrypt.cpp98 std::set<userid_t> s_ephemeral_users;
101 std::map<userid_t, EncryptionPolicy> s_de_policies;
102 std::map<userid_t, EncryptionPolicy> s_ce_policies;
119 static std::string get_de_key_path(userid_t user_id) { in get_de_key_path()
123 static std::string get_ce_key_directory_path(userid_t user_id) { in get_ce_key_directory_path()
197 static bool read_and_fixate_user_ce_key(userid_t user_id, in read_and_fixate_user_ce_key()
292 static bool read_and_install_user_ce_key(userid_t user_id, in read_and_install_user_ce_key()
326 static bool create_and_install_user_keys(userid_t user_id, bool create_ephemeral) { in create_and_install_user_keys()
360 static bool lookup_policy(const std::map<userid_t, EncryptionPolicy>& key_map, userid_t user_id, in lookup_policy() argument
402 userid_t user_id = std::stoi(entry->d_name); in load_all_de_keys()
[all …]
DVolumeManager.cpp372 void VolumeManager::destroyEmulatedVolumesForUser(userid_t userId) { in destroyEmulatedVolumesForUser()
405 void VolumeManager::createEmulatedVolumesForUser(userid_t userId) { in createEmulatedVolumesForUser()
430 int VolumeManager::onUserAdded(userid_t userId, int userSerialNumber) { in onUserAdded()
437 int VolumeManager::onUserRemoved(userid_t userId) { in onUserRemoved()
445 int VolumeManager::onUserStarted(userid_t userId) { in onUserStarted()
458 int VolumeManager::onUserStopped(userid_t userId) { in onUserStopped()
581 bool scanProcProcesses(uid_t uid, userid_t userId, ScanProcCallback callback, void* params) { in scanProcProcesses()
625 if (userId != static_cast<userid_t>(-1) && multiuser_get_user_id(sb.st_uid) != userId) { in scanProcProcesses()
757 static std::string getStorageDirSrc(userid_t userId, const std::string& dirName, in getStorageDirSrc()
768 static std::string getStorageDirTarget(userid_t userId, std::string dirName, in getStorageDirTarget()
[all …]
DUtils.cpp96 std::string GetFuseMountPathForUser(userid_t user_id, const std::string& relative_upper_path) { in GetFuseMountPathForUser()
1055 std::string BuildDataSystemLegacyPath(userid_t userId) { in BuildDataSystemLegacyPath()
1059 std::string BuildDataSystemCePath(userid_t userId) { in BuildDataSystemCePath()
1063 std::string BuildDataSystemDePath(userid_t userId) { in BuildDataSystemDePath()
1067 std::string BuildDataMiscLegacyPath(userid_t userId) { in BuildDataMiscLegacyPath()
1071 std::string BuildDataMiscCePath(userid_t userId) { in BuildDataMiscCePath()
1075 std::string BuildDataMiscDePath(userid_t userId) { in BuildDataMiscDePath()
1080 std::string BuildDataProfilesDePath(userid_t userId) { in BuildDataProfilesDePath()
1084 std::string BuildDataVendorCePath(userid_t userId) { in BuildDataVendorCePath()
1088 std::string BuildDataVendorDePath(userid_t userId) { in BuildDataVendorDePath()
[all …]
/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_outside_system/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.h90 unordered_map<userid_t, bool> proto_loaded;
91 void load_proto(userid_t user_id);
92 char* prepare_proto(userid_t user_id, StoragedProto* proto);
93 void flush_proto(userid_t user_id, StoragedProto* proto);
94 void flush_proto_data(userid_t user_id, const char* data, ssize_t size);
95 string proto_path(userid_t user_id) { in proto_path()
135 void add_user_ce(userid_t user_id);
136 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.h31 static constexpr userid_t USER_UNKNOWN = ((userid_t)-1);
87 userid_t getMountUserId() const { return mMountUserId; } in getMountUserId()
96 status_t setMountUserId(userid_t mountUserId);
146 userid_t mMountUserId;
DPrivateVolume.cpp193 for (userid_t user : vol_manager->getStartedUsers()) { in doPostMount()
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()
173 void storaged_t::remove_user_ce(userid_t user_id) { in remove_user_ce()
181 void storaged_t::load_proto(userid_t user_id) { in load_proto()
208 char* storaged_t:: prepare_proto(userid_t user_id, StoragedProto* proto) { in prepare_proto()
241 void storaged_t::flush_proto_data(userid_t user_id, in flush_proto_data()
297 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()