/system/librustutils/ |
D | users.rs | 21 pub use cutils_bindgen::AID_USER_OFFSET; 25 uid / AID_USER_OFFSET in multiuser_get_user_id() 30 uid % AID_USER_OFFSET in multiuser_get_app_id() 35 (user_id * AID_USER_OFFSET) + (app_id % AID_USER_OFFSET) in multiuser_get_uid()
|
D | Android.bp | 124 "AID_USER_OFFSET",
|
/system/core/libcutils/ |
D | multiuser.cpp | 21 return uid / AID_USER_OFFSET; in multiuser_get_user_id() 25 return uid % AID_USER_OFFSET; in multiuser_get_app_id() 29 return (user_id * AID_USER_OFFSET) + (app_id % AID_USER_OFFSET); in multiuser_get_uid() 35 return (user_id * AID_USER_OFFSET) + (app_id % AID_USER_OFFSET) + sdk_sandbox_offset; in multiuser_get_sdk_sandbox_uid()
|
/system/security/keystore2/tests/ |
D | keystore2_client_operation_tests.rs | 16 use rustutils::users::AID_USER_OFFSET; 49 let base_gid = 99 * AID_USER_OFFSET + 10001; in create_operations() 50 let base_uid = 99 * AID_USER_OFFSET + 10001; in create_operations() 139 let auid = 99 * AID_USER_OFFSET + 10604; in keystore2_forced_op_after_backendbusy_test() 140 let agid = 99 * AID_USER_OFFSET + 10604; in keystore2_forced_op_after_backendbusy_test() 208 let auid = 99 * AID_USER_OFFSET + 10205; in keystore2_max_forced_ops_test() 209 let agid = 99 * AID_USER_OFFSET + 10205; in keystore2_max_forced_ops_test() 291 let uid = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_ops_prune_test() 292 let gid = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_ops_prune_test() 391 let uid = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_forced_op_perm_denied_test() [all …]
|
D | keystore2_client_grant_key_tests.rs | 16 use rustutils::users::AID_USER_OFFSET; 93 let grantee_uid = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_grant_key_with_invalid_perm_expecting_syserror() 114 static GRANTEE_UID: u32 = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_grant_key_with_perm_none() 170 static GRANTEE_UID: u32 = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_grant_get_info_use_key_perm() 253 static GRANTEE_UID: u32 = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_grant_delete_key_success() 326 static GRANTEE_UID: u32 = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_grant_key_fails_with_permission_denied() 331 static SEC_GRANTEE_UID: u32 = SEC_USER_ID * AID_USER_OFFSET + SEC_APPLICATION_ID; in keystore2_grant_key_fails_with_permission_denied() 420 let grantee_uid = user_id * AID_USER_OFFSET + application_id; in keystore2_grant_key_fails_with_grant_perm_expect_perm_denied() 441 let grantee_uid = user_id * AID_USER_OFFSET + application_id; in keystore2_grant_fails_with_non_existing_key_expect_key_not_found_err() 466 static GRANTEE_UID: u32 = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_ungrant_key_success() [all …]
|
D | keystore2_client_list_entries_tests.rs | 16 use rustutils::users::AID_USER_OFFSET; 60 static GRANTEE_UID: u32 = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_list_entries_success() 162 let auid = 91 * AID_USER_OFFSET + 10001; in keystore2_list_entries_fails_perm_denied() 163 let agid = 91 * AID_USER_OFFSET + 10001; in keystore2_list_entries_fails_perm_denied() 201 static CLIENT_UID: u32 = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_list_entries_with_long_aliases_success() 268 static CLIENT_UID: u32 = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_list_entries_batched_with_long_aliases_success() 335 static CLIENT_UID: u32 = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_list_entries_batched_with_multi_procs_success() 435 static CLIENT_UID: u32 = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_list_entries_batched_with_empty_keystore_success() 518 static CLIENT_UID: u32 = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_list_entries_batched_validate_count_and_order_success() 655 let auid = 91 * AID_USER_OFFSET + 10001; in keystore2_list_entries_batched_fails_perm_denied() [all …]
|
D | keystore2_client_keystore_engine_tests.rs | 16 use rustutils::users::AID_USER_OFFSET; 166 static GRANTEE_UID: u32 = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_perofrm_crypto_op_using_keystore2_engine_rsa_key_success() 209 static GRANTEE_UID: u32 = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_perofrm_crypto_op_using_keystore2_engine_ec_key_success() 252 static GRANTEE_UID: u32 = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_perofrm_crypto_op_using_keystore2_engine_pem_pub_key_success()
|
D | keystore2_client_update_subcomponent_tests.rs | 16 use rustutils::users::AID_USER_OFFSET; 162 static GRANTEE_1_UID: u32 = USER_ID_1 * AID_USER_OFFSET + APPLICATION_ID; in keystore2_update_subcomponent_fails_permission_denied() 166 static GRANTEE_2_UID: u32 = USER_ID_2 * AID_USER_OFFSET + APPLICATION_ID; in keystore2_update_subcomponent_fails_permission_denied()
|
D | keystore2_client_ec_key_tests.rs | 16 use rustutils::users::AID_USER_OFFSET; 433 let uid1 = USER_ID * AID_USER_OFFSET + APPLICATION_ID_1; in keystore2_key_owner_validation() 434 let gid1 = USER_ID * AID_USER_OFFSET + APPLICATION_ID_1; in keystore2_key_owner_validation() 459 let uid2 = USER_ID * AID_USER_OFFSET + APPLICATION_ID_2; in keystore2_key_owner_validation() 460 let gid2 = USER_ID * AID_USER_OFFSET + APPLICATION_ID_2; in keystore2_key_owner_validation()
|
/system/core/run-as/ |
D | run-as.cpp | 156 gid_t shared_app_gid = userAppId % AID_USER_OFFSET - AID_APP_START + AID_SHARED_GID_START; in get_supplementary_gids() 204 if ((UID_MAX - info.uid) / AID_USER_OFFSET < (uid_t)userId) { in main() 209 uid_t userAppId = (AID_USER_OFFSET * userId) + info.uid; in main()
|
/system/extras/simpleperf/simpleperf_app_runner/ |
D | simpleperf_app_runner.cpp | 108 gid_t shared_app_gid = userAppId % AID_USER_OFFSET - AID_APP_START + AID_SHARED_GID_START; in GetSupplementaryGids() 229 if ((UID_MAX - info->uid) / AID_USER_OFFSET < user_id) { in main() 232 user_app_id = (AID_USER_OFFSET * user_id) + info->uid; in main()
|
/system/security/keystore2/tests/legacy_blobs/ |
D | keystore2_legacy_blob_tests.rs | 16 use rustutils::users::AID_USER_OFFSET; 138 let auid = 99 * AID_USER_OFFSET + 10001; in keystore2_encrypted_characteristics() 139 let agid = 99 * AID_USER_OFFSET + 10001; in keystore2_encrypted_characteristics() 389 let auid = 98 * AID_USER_OFFSET + 10001; in keystore2_encrypted_certificates() 390 let agid = 98 * AID_USER_OFFSET + 10001; in keystore2_encrypted_certificates()
|
/system/extras/simpleperf/app_api/java/com/android/simpleperf/ |
D | ProfileSession.java | 110 final int AID_USER_OFFSET = 100000; in ProfileSession() local 112 if (uid >= AID_USER_OFFSET) { in ProfileSession() 113 int user_id = uid / AID_USER_OFFSET; in ProfileSession()
|
/system/core/libcutils/include/cutils/ |
D | android_filesystem_config.h | 232 #define AID_USER_OFFSET 100000 /* offset for uid ranges for each user */ macro
|
/system/core/libcutils/include/private/ |
D | android_filesystem_config.h | 232 #define AID_USER_OFFSET 100000 /* offset for uid ranges for each user */ macro
|
/system/core/libcutils/include_outside_system/cutils/ |
D | android_filesystem_config.h | 232 #define AID_USER_OFFSET 100000 /* offset for uid ranges for each user */ macro
|
/system/security/keystore2/legacykeystore/ |
D | lib.rs | 171 params![rustutils::users::AID_USER_OFFSET, user_id], in remove_user() 635 db.put(2 + 2 * rustutils::users::AID_USER_OFFSET, "test1", TEST_BLOB1) in test_delete_user() 637 db.put(4 + 2 * rustutils::users::AID_USER_OFFSET, "test2", TEST_BLOB2) in test_delete_user() 645 db.list(2 + 2 * rustutils::users::AID_USER_OFFSET).expect("Failed to list entries.") in test_delete_user() 650 db.list(4 + 2 * rustutils::users::AID_USER_OFFSET).expect("Failed to list entries.") in test_delete_user()
|
/system/bpfprogs/ |
D | timeInState.c | 165 if (((uid % AID_USER_OFFSET) >= AID_SDK_SANDBOX_PROCESS_START) && 166 ((uid % AID_USER_OFFSET) <= AID_SDK_SANDBOX_PROCESS_END)) {
|
/system/extras/simpleperf/app_api/cpp/ |
D | simpleperf.cpp | 35 constexpr int AID_USER_OFFSET = 100000; variable 496 if (uid >= AID_USER_OFFSET) { in ProfileSession() 497 int user_id = uid / AID_USER_OFFSET; in ProfileSession()
|
/system/security/keystore2/src/ |
D | utils.rs | 471 pub const AID_USER_OFFSET: u32 = rustutils::users::AID_USER_OFFSET; constant
|
D | database.rs | 53 use crate::utils::{get_current_time_in_milliseconds, watchdog as wd, AID_USER_OFFSET}; 2429 aid_user_offset = AID_USER_OFFSET in unbind_keys_for_user() 2500 aid_user_offset = AID_USER_OFFSET in unbind_auth_bound_keys_for_user() 5079 let nspace: i64 = (user_id * AID_USER_OFFSET).into(); in test_unbind_auth_bound_keys_for_user() 5081 let other_user_nspace: i64 = (other_user_id * AID_USER_OFFSET).into(); in test_unbind_auth_bound_keys_for_user() 5423 let uid_offset: i64 = (uid as i64) * (AID_USER_OFFSET as i64); in test_get_list_app_uids_for_sid() 5489 let uid_offset: i64 = (uid as i64) * (AID_USER_OFFSET as i64); in test_get_list_app_uids_with_multiple_sids()
|
/system/logging/logd/ |
D | LogStatistics.cpp | 249 uid_t userId = uid % AID_USER_OFFSET; in UidToNameLocked()
|
/system/extras/simpleperf/ |
D | environment.cpp | 1016 return getuid() % AID_USER_OFFSET >= AID_APP_START; in IsInAppUid()
|
/system/netd/tests/ |
D | binder_test.cpp | 164 constexpr int BASE_UID = AID_USER_OFFSET * 5;
|