Home
last modified time | relevance | path

Searched refs:user_id (Results 1 – 25 of 55) sorted by relevance

123

/system/vold/
DFsCrypt.cpp113 static std::string get_de_key_path(userid_t user_id) { in get_de_key_path() argument
114 return StringPrintf("%s/de/%d", user_key_dir.c_str(), 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() argument
118 return StringPrintf("%s/ce/%d", user_key_dir.c_str(), 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() argument
193 auto const directory_path = get_ce_key_directory_path(user_id); in read_and_fixate_user_ce_key()
203 LOG(ERROR) << "Failed to find working ce key for user " << 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() argument
288 if (s_ce_policies.count(user_id) != 0) return true; in read_and_install_user_ce_key()
292 if (!read_and_fixate_user_ce_key(user_id, auth, &ce_key)) return false; in read_and_install_user_ce_key()
[all …]
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);
Dvold_prepare_subdirs.cpp148 static bool prepare_subdirs(const std::string& volume_uuid, int user_id, int flags) { in prepare_subdirs() argument
153 auto misc_de_path = android::vold::BuildDataMiscDePath(user_id); in prepare_subdirs()
161 auto vendor_de_path = android::vold::BuildDataVendorDePath(user_id); in prepare_subdirs()
171 auto misc_ce_path = android::vold::BuildDataMiscCePath(user_id); in prepare_subdirs()
179 auto system_ce_path = android::vold::BuildDataSystemCePath(user_id); in prepare_subdirs()
187 auto vendor_ce_path = android::vold::BuildDataVendorCePath(user_id); in prepare_subdirs()
197 static bool destroy_subdirs(const std::string& volume_uuid, int user_id, int flags) { in destroy_subdirs() argument
201 auto misc_ce_path = android::vold::BuildDataMiscCePath(user_id); in destroy_subdirs()
204 auto vendor_ce_path = android::vold::BuildDataVendorCePath(user_id); in destroy_subdirs()
208 auto misc_de_path = android::vold::BuildDataMiscDePath(user_id); in destroy_subdirs()
[all …]
/system/gatekeeper/
Dgatekeeper.cpp34 secure_id_t user_id = 0;// todo: rename to policy in Enroll() local
35 uint32_t uid = request.user_id; in Enroll()
39 GetRandom(&user_id, sizeof(secure_id_t)); in Enroll()
48 user_id = pw_handle->user_id; in Enroll()
57 if (!GetFailureRecord(uid, user_id, &record, throttle_secure)) { in Enroll()
64 if (!IncrementFailureRecord(uid, user_id, timestamp, &record, throttle_secure)) { in Enroll()
84 if (ClearFailureRecord(uid, user_id, true)) { in Enroll()
87 ClearFailureRecord(uid, user_id, false); in Enroll()
95 salt, user_id, flags, HANDLE_VERSION, request.provided_password)) { in Enroll()
118 secure_id_t user_id = password_handle->user_id; in Verify() local
[all …]
Dgatekeeper_messages.cpp30 uint32_t user_id; member
103 header->user_id = user_id; in Serialize()
123 user_id = header->user_id; in Deserialize()
145 VerifyRequest::VerifyRequest(uint32_t user_id, uint64_t challenge, in VerifyRequest() argument
147 this->user_id = user_id; in VerifyRequest()
183 VerifyResponse::VerifyResponse(uint32_t user_id, SizedBuffer auth_token) { in VerifyResponse() argument
184 this->user_id = user_id; in VerifyResponse()
220 EnrollRequest::EnrollRequest(uint32_t user_id, SizedBuffer password_handle, in EnrollRequest() argument
222 this->user_id = user_id; in EnrollRequest()
260 EnrollResponse::EnrollResponse(uint32_t user_id, SizedBuffer enrolled_password_handle) { in EnrollResponse() argument
[all …]
/system/core/libcutils/
Dmultiuser.cpp28 uid_t multiuser_get_uid(userid_t user_id, appid_t app_id) { in multiuser_get_uid() argument
29 return (user_id * AID_USER_OFFSET) + (app_id % AID_USER_OFFSET); in multiuser_get_uid()
32 gid_t multiuser_get_cache_gid(userid_t user_id, appid_t app_id) { in multiuser_get_cache_gid() argument
34 return multiuser_get_uid(user_id, (app_id - AID_APP_START) + AID_CACHE_GID_START); 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() argument
42 return multiuser_get_uid(user_id, (app_id - AID_APP_START) + AID_EXT_GID_START); 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() argument
50 return multiuser_get_uid(user_id, (app_id - AID_APP_START) + AID_EXT_CACHE_GID_START); in multiuser_get_ext_cache_gid()
/system/core/storaged/
Dstoraged.cpp164 void storaged_t::add_user_ce(userid_t user_id) { in add_user_ce() argument
165 if (!proto_loaded[user_id]) { in add_user_ce()
166 load_proto(user_id); in add_user_ce()
167 proto_loaded[user_id] = true; in add_user_ce()
171 void storaged_t::remove_user_ce(userid_t user_id) { in remove_user_ce() argument
172 proto_loaded[user_id] = false; in remove_user_ce()
173 mUidm.clear_user_history(user_id); in remove_user_ce()
174 RemoveFileIfExists(proto_path(user_id), nullptr); in remove_user_ce()
177 void storaged_t::load_proto(userid_t user_id) { in load_proto() argument
178 string proto_file = proto_path(user_id); in load_proto()
[all …]
Dstoraged_uid_monitor.cpp226 record.ios.user_id = p.second.user_id; in add_records_locked()
318 usage.user_id = multiuser_get_user_id(uid.uid); in update_curr_io_stats_locked()
416 userid_t user_id = entry.ios.user_id; in update_uid_io_proto() local
417 UidIOItem* item_proto = user_items[user_id]; in update_uid_io_proto()
419 item_proto = (*protos)[user_id].mutable_uid_io_usage() in update_uid_io_proto()
421 user_items[user_id] = item_proto; in update_uid_io_proto()
430 rec_proto->set_user_id(user_id); in update_uid_io_proto()
448 void uid_monitor::clear_user_history(userid_t user_id) in clear_user_history() argument
456 [user_id](const uid_record& rec) { in clear_user_history()
457 return rec.ios.user_id == user_id;}), in clear_user_history()
[all …]
/system/core/libcutils/include/cutils/
Dmultiuser.h32 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.h32 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/storaged/include/
Dstoraged.h90 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() argument
95 return string("/data/misc_ce/") + to_string(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; member
127 void load_uid_io_proto(userid_t user_id, const UidIOUsage& proto);
128 void clear_user_history(userid_t user_id);
/system/bt/btif/include/
Dbtif_sock_thread.h43 uint32_t user_id);
44 typedef void (*btsock_cmd_cb)(int cmd_fd, int type, int size, uint32_t user_id);
48 uint32_t user_id);
53 uint32_t user_id);
/system/bt/vendor_libs/test_vendor_lib/model/setup/
Dasync_manager.cc273 AsyncTaskId ExecAsync(AsyncUserId user_id, std::chrono::milliseconds delay, in ExecAsync() argument
276 std::chrono::steady_clock::now() + delay, callback, user_id)); in ExecAsync()
279 AsyncTaskId ExecAsyncPeriodically(AsyncUserId user_id, in ExecAsyncPeriodically() argument
284 std::chrono::steady_clock::now() + delay, period, callback, user_id)); in ExecAsyncPeriodically()
298 bool CancelAsyncTasksFromUser(AsyncUserId user_id) { in CancelAsyncTasksFromUser() argument
301 if (tasks_by_user_id_.count(user_id) == 0) { in CancelAsyncTasksFromUser()
304 for (auto task : tasks_by_user_id_[user_id]) { in CancelAsyncTasksFromUser()
350 user_id(user) {} in Task()
357 user_id(user) {} in Task()
375 AsyncUserId user_id; member in test_vendor_lib::AsyncManager::AsyncTaskManager::Task
[all …]
Dasync_manager.h66 AsyncTaskId ExecAsync(AsyncUserId user_id, std::chrono::milliseconds delay,
73 AsyncTaskId ExecAsyncPeriodically(AsyncUserId user_id,
90 bool CancelAsyncTasksFromUser(AsyncUserId user_id);
Dtest_model.cc199 AsyncUserId user_id = get_user_id_(); in IncomingHciConnection() local
201 [user_id, this](std::chrono::milliseconds delay, in IncomingHciConnection()
203 return schedule_task_(user_id, delay, std::move(task_callback)); in IncomingHciConnection()
206 dev->RegisterCloseCallback([this, socket_fd, index, user_id] { in IncomingHciConnection()
207 OnHciConnectionClosed(socket_fd, index, user_id); in IncomingHciConnection()
212 AsyncUserId user_id) { in OnHciConnectionClosed() argument
220 cancel_tasks_from_user_(user_id); in OnHciConnectionClosed()
/system/bt/test/rootcanal/
Dbluetooth_hci.h92 [this](test_vendor_lib::AsyncUserId user_id,
95 return async_manager_.ExecAsync(user_id, delay, task);
98 [this](test_vendor_lib::AsyncUserId user_id,
101 return async_manager_.ExecAsyncPeriodically(user_id, delay, period,
105 [this](test_vendor_lib::AsyncUserId user_id) {
106 async_manager_.CancelAsyncTasksFromUser(user_id);
/system/bt/btif/src/
Dbtif_sock_thread.cc81 uint32_t user_id; member
101 uint32_t user_id);
219 uint32_t user_id; member
221 int btsock_thread_add_fd(int h, int fd, int type, int flags, uint32_t user_id) { in btsock_thread_add_fd() argument
236 add_poll(h, fd, type, flags, user_id); in btsock_thread_add_fd()
242 sock_cmd_t cmd = {CMD_ADD_FD, fd, type, flags, user_id}; in btsock_thread_add_fd()
270 uint32_t user_id) { in btsock_thread_post_cmd() argument
280 sock_cmd_t cmd = {CMD_USER_PRIVATE, 0, type, size, user_id}; in btsock_thread_post_cmd()
363 uint32_t user_id) { in set_poll() argument
365 ps->user_id = user_id; in set_poll()
[all …]
Dbtif_sock.cc54 static void btsock_signaled(int fd, int type, int flags, uint32_t user_id);
262 static void btsock_signaled(int fd, int type, int flags, uint32_t user_id) { in btsock_signaled() argument
265 btsock_rfc_signaled(fd, flags, user_id); in btsock_signaled()
271 btsock_l2cap_signaled(fd, flags, user_id); in btsock_signaled()
275 << " flags=" << flags << " user_id=" << user_id; in btsock_signaled()
/system/bt/vendor_libs/test_vendor_lib/desktop/
Dtest_environment.h61 [this](test_vendor_lib::AsyncUserId user_id,
64 return async_manager_.ExecAsync(user_id, delay, task);
67 [this](test_vendor_lib::AsyncUserId user_id,
70 return async_manager_.ExecAsyncPeriodically(user_id, delay, period,
/system/gatekeeper/include/gatekeeper/
Dgatekeeper.h128 virtual bool GetFailureRecord(uint32_t uid, secure_id_t user_id, failure_record_t *record,
141 virtual bool ClearFailureRecord(uint32_t uid, secure_id_t user_id, bool secure) = 0;
180 secure_id_t user_id, secure_id_t authenticator_id, uint64_t challenge);
196 bool IncrementFailureRecord(uint32_t uid, secure_id_t user_id, uint64_t timestamp,
Dgatekeeper_messages.h162 uint32_t user_id; member
168 uint32_t user_id,
184 VerifyResponse(uint32_t user_id, SizedBuffer auth_token);
198 EnrollRequest(uint32_t user_id, SizedBuffer password_handle,
223 EnrollResponse(uint32_t user_id, SizedBuffer enrolled_password_handle);
/system/core/storaged/tests/
Dstoraged_test.cpp452 .user_id = 0, in TEST()
457 .user_id = 0, in TEST()
462 .user_id = 1, in TEST()
474 .user_id = 1, in TEST()
479 .user_id = 0, in TEST()
500 EXPECT_EQ(user_0_item_0.records().entries(0).user_id(), 0UL); in TEST()
503 EXPECT_EQ(user_0_item_0.records().entries(1).user_id(), 0UL); in TEST()
510 EXPECT_EQ(user_0_item_1.records().entries(0).user_id(), 0UL); in TEST()
519 EXPECT_EQ(user_1_item_0.records().entries(0).user_id(), 1UL); in TEST()
527 EXPECT_EQ(user_1_item_1.records().entries(0).user_id(), 1UL); in TEST()
[all …]
/system/apex/apexd/aidl/android/apex/
DIApexService.aidl41 long snapshotCeData(int user_id, int rollback_id, in @utf8InCpp String apex_name); in snapshotCeData() argument
47 void restoreCeData(int user_id, int rollback_id, in @utf8InCpp String apex_name); in restoreCeData() argument
58 void destroyCeSnapshotsNotSpecified(int user_id, in int[] retain_rollback_ids); in destroyCeSnapshotsNotSpecified() argument
/system/apex/apexd/
Dapexd.h78 android::base::Result<ino_t> snapshotCeData(const int user_id,
81 android::base::Result<void> restoreCeData(const int user_id,
86 int user_id, const std::vector<int>& retain_rollback_ids);

123