Home
last modified time | relevance | path

Searched refs:GRANTEE_UID (Results 1 – 4 of 4) sorted by relevance

/system/security/keystore2/tests/
Dkeystore2_client_grant_key_tests.rs114 static GRANTEE_UID: u32 = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_grant_key_with_perm_none() variable
115 static GRANTEE_GID: u32 = GRANTEE_UID; in keystore2_grant_key_with_perm_none()
123 GRANTEE_UID.try_into().unwrap(), in keystore2_grant_key_with_perm_none()
140 Uid::from_raw(GRANTEE_UID), 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() variable
171 static GRANTEE_GID: u32 = GRANTEE_UID; in keystore2_grant_get_info_use_key_perm()
179 GRANTEE_UID.try_into().unwrap(), in keystore2_grant_get_info_use_key_perm()
195 Uid::from_raw(GRANTEE_UID), 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() variable
254 static GRANTEE_GID: u32 = GRANTEE_UID; in keystore2_grant_delete_key_success()
[all …]
Dkeystore2_client_keystore_engine_tests.rs166 static GRANTEE_UID: u32 = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_perofrm_crypto_op_using_keystore2_engine_rsa_key_success() constant
167 static GRANTEE_GID: u32 = GRANTEE_UID; in keystore2_perofrm_crypto_op_using_keystore2_engine_rsa_key_success()
180 GRANTEE_UID, in keystore2_perofrm_crypto_op_using_keystore2_engine_rsa_key_success()
192 Uid::from_raw(GRANTEE_UID), 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() variable
210 static GRANTEE_GID: u32 = GRANTEE_UID; in keystore2_perofrm_crypto_op_using_keystore2_engine_ec_key_success()
223 GRANTEE_UID, in keystore2_perofrm_crypto_op_using_keystore2_engine_ec_key_success()
235 Uid::from_raw(GRANTEE_UID), 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() constant
253 static GRANTEE_GID: u32 = GRANTEE_UID; in keystore2_perofrm_crypto_op_using_keystore2_engine_pem_pub_key_success()
[all …]
Dkeystore2_client_list_entries_tests.rs60 static GRANTEE_UID: u32 = USER_ID * AID_USER_OFFSET + APPLICATION_ID; in keystore2_list_entries_success() variable
61 static GRANTEE_GID: u32 = GRANTEE_UID; in keystore2_list_entries_success()
111 .grant(&key_metadata.key, GRANTEE_UID.try_into().unwrap(), access_vector) in keystore2_list_entries_success()
121 Uid::from_raw(GRANTEE_UID), in keystore2_list_entries_success()
145 assert_eq!(key.nspace, GRANTEE_UID.try_into().unwrap()); in keystore2_list_entries_success()
/system/security/keystore2/src/
Ddatabase.rs3204 const GRANTEE_UID: u32 = 12; in test_grant_ungrant() constant
3228 .grant(&app_key, CALLER_UID, GRANTEE_UID, PVEC1, |k, a| { in test_grant_ungrant()
3331 assert_eq!(r, (next_random, GRANTEE_UID, 1, PVEC1)); in test_grant_ungrant()
3333 assert_eq!(r, (next_random + 1, GRANTEE_UID, 2, PVEC2)); in test_grant_ungrant()
3341 db.ungrant(&app_key, CALLER_UID, GRANTEE_UID, |_| Ok(()))?; in test_grant_ungrant()
3342 db.ungrant(&selinux_key, CALLER_UID, GRANTEE_UID, |_| Ok(()))?; in test_grant_ungrant()
3732 const GRANTEE_UID: u32 = 2u32; in test_insert_and_load_full_keyentry_from_grant_by_key_id() constant
3746 GRANTEE_UID, in test_insert_and_load_full_keyentry_from_grant_by_key_id()
3762 GRANTEE_UID, in test_insert_and_load_full_keyentry_from_grant_by_key_id()
3799 GRANTEE_UID, in test_insert_and_load_full_keyentry_from_grant_by_key_id()