Home
last modified time | relevance | path

Searched refs:app_id (Results 1 – 25 of 41) sorted by relevance

12

/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 uid_t multiuser_get_sdk_sandbox_uid(userid_t user_id, appid_t app_id) { in multiuser_get_sdk_sandbox_uid() argument
34 if (app_id >= AID_APP_START && app_id <= AID_APP_END) { in multiuser_get_sdk_sandbox_uid()
35 return (user_id * AID_USER_OFFSET) + (app_id % AID_USER_OFFSET) + sdk_sandbox_offset; in multiuser_get_sdk_sandbox_uid()
42 appid_t app_id = multiuser_get_app_id(uid); in multiuser_convert_sdk_sandbox_to_app_uid() local
44 if (app_id >= AID_SDK_SANDBOX_PROCESS_START && app_id <= AID_SDK_SANDBOX_PROCESS_END) { in multiuser_convert_sdk_sandbox_to_app_uid()
51 gid_t multiuser_get_cache_gid(userid_t user_id, appid_t app_id) { in multiuser_get_cache_gid() argument
52 if (app_id >= AID_APP_START && app_id <= AID_APP_END) { in multiuser_get_cache_gid()
53 return multiuser_get_uid(user_id, (app_id - AID_APP_START) + AID_CACHE_GID_START); in multiuser_get_cache_gid()
[all …]
/system/security/keystore/tests/
Daaid_truncation_test.cpp93 KeyAttestationApplicationId app_id; in TEST() local
95 app_id.packageInfos.push_back(std::move(pInfo)); in TEST()
97 auto result = build_attestation_application_id(app_id); in TEST()
104 KeyAttestationApplicationId app_id; in TEST() local
106 app_id.packageInfos.push_back(std::move(pInfo)); in TEST()
108 auto result = build_attestation_application_id(app_id); in TEST()
125 KeyAttestationApplicationId app_id; in TEST() local
126 app_id.packageInfos.push_back(std::move(pInfo)); in TEST()
128 auto result = build_attestation_application_id(app_id); in TEST()
149 KeyAttestationApplicationId app_id; in TEST() local
[all …]
/system/core/libcutils/include_outside_system/cutils/
Dmultiuser.h32 extern uid_t multiuser_get_uid(userid_t user_id, appid_t app_id);
33 extern uid_t multiuser_get_sdk_sandbox_uid(userid_t user_id, appid_t app_id);
36 extern gid_t multiuser_get_cache_gid(userid_t user_id, appid_t app_id);
37 extern gid_t multiuser_get_ext_gid(userid_t user_id, appid_t app_id);
38 extern gid_t multiuser_get_ext_cache_gid(userid_t user_id, appid_t app_id);
39 extern gid_t multiuser_get_shared_gid(userid_t user_id, appid_t app_id);
/system/core/libcutils/include/cutils/
Dmultiuser.h32 extern uid_t multiuser_get_uid(userid_t user_id, appid_t app_id);
33 extern uid_t multiuser_get_sdk_sandbox_uid(userid_t user_id, appid_t app_id);
36 extern gid_t multiuser_get_cache_gid(userid_t user_id, appid_t app_id);
37 extern gid_t multiuser_get_ext_gid(userid_t user_id, appid_t app_id);
38 extern gid_t multiuser_get_ext_cache_gid(userid_t user_id, appid_t app_id);
39 extern gid_t multiuser_get_shared_gid(userid_t user_id, appid_t app_id);
/system/core/trusty/metrics/include/trusty/metrics/
Dtipc.h104 char app_id[UUID_STR_SIZE]; member
117 char app_id[UUID_STR_SIZE]; member
163 char app_id[UUID_STR_SIZE]; member
Dmetrics.h47 virtual void HandleCrash(const std::string& app_id) = 0;
/system/librustutils/
Dusers.rs34 pub fn multiuser_get_uid(user_id: u32, app_id: u32) -> u32 { in multiuser_get_uid()
35 (user_id * AID_USER_OFFSET) + (app_id % AID_USER_OFFSET) in multiuser_get_uid()
/system/core/trusty/metrics/
Dmetrics.cpp97 auto app_id_ptr = crash_args.app_id; in HandleEvent()
98 std::string app_id(app_id_ptr, UUID_STR_SIZE); in HandleEvent() local
100 HandleCrash(app_id); in HandleEvent()
Dmetrics_test.cpp57 virtual void HandleCrash(const std::string& app_id) override { crashed_app_ = app_id; } in HandleCrash() argument
/system/chre/platform/zephyr/include/chre/target_platform/
Dstatic_nanoapp_init.h26 #define CHRE_STATIC_NANOAPP_INIT(app_name, app_id, app_version, app_perms) \ argument
38 app_info.appId = app_id; \
/system/update_engine/payload_consumer/
Dinstall_plan.h89 std::string app_id; // App ID of the payload member
101 app_id == that.app_id;
Dinstall_plan_unittest.cc32 .app_id = "foo-app-id", in TEST()
/system/chre/host/test/hal_generic/aidl/
Devent_logger_test.cc120 msg.app_id = i; in TEST()
152 fromMsg.app_id = 5; in TEST()
/system/keymint/ta/src/
Dcert.rs302 app_id: &'a [u8], in attestation_extension()
332 AuthorizationList::new(sw_chars, sw_params, attestation_ids, None, Some(app_id))?; in attestation_extension()
409 pub app_id: Option<KeyParam>, field
441 app_id: Option<&'a [u8]>, in new()
482 app_id: match app_id { in new()
483 Some(app_id) => Some(KeyParam::AttestationApplicationId(try_to_vec(app_id)?)), in new()
526 app_id: attest_app_id, in new_from_key_params()
600 app_id: None, in decode_value()
1098 if let Some(KeyParam::AttestationApplicationId(app_id)) = &self.app_id { in value_len()
1102 val: der::asn1::OctetStringRef::new(app_id.as_slice())?, in value_len()
[all …]
Dkeys.rs172 if let Some(SigningInfo { attestation_info: Some((challenge, app_id)), .. }) = &info { in generate_cert()
173 let unique_id = self.calculate_unique_id(app_id, params)?; in generate_cert()
178 app_id, in generate_cert()
244 fn calculate_unique_id(&self, app_id: &[u8], params: &[KeyParam]) -> Result<Vec<u8>, Error> { in calculate_unique_id()
253 let mut combined_input = vec_try_with_capacity!(datetime_data.len() + app_id.len() + 1)?; in calculate_unique_id()
255 combined_input.extend_from_slice(app_id); in calculate_unique_id()
/system/chre/platform/android/
Dhost_link.cc77 message.app_id, message.message_type, message.host_endpoint, in handleNanoappMessage()
123 nanoappListEntry->app_id = nanoapp->getAppId(); in handleNanoappListRequest()
/system/chre/platform/shared/include/chre/platform/shared/generated/
Dhost_messages_generated.h586 uint64_t app_id() const {
644 void add_app_id(uint64_t app_id) {
645 fbb_.AddElement<uint64_t>(NanoappMessage::VT_APP_ID, app_id, 0);
686 uint64_t app_id = 0,
696 builder_.add_app_id(app_id);
710 uint64_t app_id = 0,
722 app_id,
1121 uint64_t app_id() const {
1164 void add_app_id(uint64_t app_id) {
1165 fbb_.AddElement<uint64_t>(NanoappListEntry::VT_APP_ID, app_id, 0);
[all …]
/system/chre/host/common/pigweed/
Dhal_rpc_client.cc193 if (message.app_id == mClient->mServerNanoappId) { in handleNanoappMessage()
214 if (nanoapp->app_id == mClient->mServerNanoappId) { in handleNanoappListResponse()
/system/chre/host/common/include/chre_host/generated/
Dhost_messages_generated.h902 uint64_t app_id;
912 : app_id(0),
938 uint64_t app_id() const {
1026 void add_app_id(uint64_t app_id) {
1027 fbb_.AddElement<uint64_t>(NanoappMessage::VT_APP_ID, app_id, 0);
1068 uint64_t app_id = 0,
1078 builder_.add_app_id(app_id);
1092 uint64_t app_id = 0,
1104 app_id,
1639 uint64_t app_id;
[all …]
/system/chre/platform/shared/
Dhost_protocol_chre.cc66 nanoappMsg->app_id(), nanoappMsg->message_type(), in decodeMessageFromHost()
95 hostClientId, request->transaction_id(), request->app_id(), in decodeMessageFromHost()
107 hostClientId, request->transaction_id(), request->app_id(), in decodeMessageFromHost()
/system/chre/host/hal_generic/common/
Dgeneric_context_hub_base.h279 msg.msg_1_0.appName = message.app_id; in onNanoappMessage()
309 nanoapp->app_id, nanoapp->version, nanoapp->permissions, in onNanoappListResponse()
314 appInfo.info_1_0.appId = nanoapp->app_id; in onNanoappListResponse()
Dmulti_client_context_hub_base.cc661 mLogger.addNanoappDetokenizer(info->app_id, info->instance_id, in handleMessageFromChre()
724 mTestModeSystemNanoapps->push_back(nanoapp->app_id); in onNanoappListResponse()
726 mTestModeNanoapps->push_back(nanoapp->app_id); in onNanoappListResponse()
745 appInfo.nanoappId = nanoapp->app_id; in onNanoappListResponse()
858 outMessage.nanoappId = message.app_id; in onNanoappMessage()
887 mMetricsReporter->logApWakeupOccurred(message.app_id); in onNanoappMessage()
/system/security/keystore2/tests/
Dkeystore2_client_authorizations_tests.rs741 .app_id(b"app-id".to_vec()); in keystore2_gen_key_auth_app_id_test_success()
750 .app_id(b"app-id".to_vec()), in keystore2_gen_key_auth_app_id_test_success()
772 .app_id(b"app-id".to_vec()); in keystore2_gen_key_auth_app_id_test_fail()
781 .app_id(b"invalid-app-id".to_vec()), in keystore2_gen_key_auth_app_id_test_fail()
820 .app_id(b"app-id".to_vec()) in keystore2_gen_attested_key_auth_app_id_app_data_test_success()
861 .app_id(b"app-id".to_vec()) in keystore2_gen_attestation_key_with_auth_app_id_app_data_test_fail()
/system/keymint/common/src/keyblob/
Dlegacy.rs284 if let Ok(Some(app_id)) = get_opt_tag_value!(params, ApplicationId) { in hidden()
285 results.try_push(KeyParam::ApplicationId(try_to_vec(app_id)?))?; in hidden()
/system/security/keystore2/src/
Dkm_compat.rs313 app_id: &[u8], in getKeyCharacteristics()
317 KeyBlob::Raw(keyblob) => self.real.getKeyCharacteristics(keyblob, app_id, app_data), in getKeyCharacteristics()
318 KeyBlob::Wrapped(keyblob) => self.soft.getKeyCharacteristics(keyblob, app_id, app_data), in getKeyCharacteristics()

12