Home
last modified time | relevance | path

Searched refs:callingUid (Results 1 – 25 of 93) sorted by relevance

1234

/base/location/services/location_gnss/gnss/source/
Dgnss_ability_skeleton.cpp32 pid_t callingUid = IPCSkeleton::GetCallingUid(); in OnRemoteRequest() local
34 code, option.GetFlags(), callingPid, callingUid); in OnRemoteRequest()
47 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
55 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
62 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
69 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
73 reply.WriteInt32(RegisterGnssStatusCallback(client, callingUid)); in OnRemoteRequest()
77 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
85 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
89 reply.WriteInt32(RegisterNmeaMessageCallback(client, callingUid)); in OnRemoteRequest()
[all …]
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/
Dhks_response.cpp78 auto callingUid = IPCSkeleton::GetCallingUid(); in HksGetProcessInfoForIPC() local
79 uint8_t *name = static_cast<uint8_t *>(HksMalloc(sizeof(callingUid))); in HksGetProcessInfoForIPC()
82 (void)memcpy_s(name, sizeof(callingUid), &callingUid, sizeof(callingUid)); in HksGetProcessInfoForIPC()
83 processInfo->processName.size = sizeof(callingUid); in HksGetProcessInfoForIPC()
88 OHOS::AccountSA::OsAccountManager::GetOsAccountLocalIdFromUid(callingUid, userId); in HksGetProcessInfoForIPC()
89 …etProcessInfoForIPC callingUid = %" LOG_PUBLIC "d, userId = %" LOG_PUBLIC "d", callingUid, userId); in HksGetProcessInfoForIPC()
91 GetOsAccountIdFromUid(callingUid, userId); in HksGetProcessInfoForIPC()
93 callingUid, userId); in HksGetProcessInfoForIPC()
Dhks_response_samgr.c77 uint32_t callingUid = (uint32_t)(ipcContext->callingUid); in HksGetProcessInfoForIPC() local
78 uint8_t *name = (uint8_t *)HksMalloc(sizeof(callingUid)); in HksGetProcessInfoForIPC()
80 (void)memcpy_s(name, sizeof(callingUid), &callingUid, sizeof(callingUid)); in HksGetProcessInfoForIPC()
82 processInfo->processName.size = sizeof(callingUid); in HksGetProcessInfoForIPC()
/base/location/services/location_passive/passive/source/
Dpassive_ability_skeleton.cpp36 pid_t callingUid = IPCSkeleton::GetCallingUid(); in OnRemoteRequest() local
38 code, option.GetFlags(), callingPid, callingUid); in OnRemoteRequest()
50 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
58 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
65 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
72 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
79 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
/base/location/services/location_network/network/source/
Dnetwork_ability_skeleton.cpp37 pid_t callingUid = IPCSkeleton::GetCallingUid(); in OnRemoteRequest() local
39 code, option.GetFlags(), callingPid, callingUid); in OnRemoteRequest()
53 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
61 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
68 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
75 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
/base/account/os_account/services/accountmgr/src/appaccount/
Dapp_account_manager_service.cpp50 int32_t callingUid = -1; in AddAccount() local
53 ErrCode ret = GetCallingInfo(callingUid, bundleName, appIndex); in AddAccount()
57 return innerManager_->AddAccount(name, extraInfo, callingUid, bundleName, appIndex); in AddAccount()
82 int32_t callingUid = -1; in CreateAccount() local
85 ErrCode ret = GetCallingInfo(callingUid, bundleName, appIndex); in CreateAccount()
89 return innerManager_->CreateAccount(name, options, callingUid, bundleName, appIndex); in CreateAccount()
112 int32_t callingUid = -1; in DeleteAccount() local
115 ErrCode ret = GetCallingInfo(callingUid, bundleName, appIndex); in DeleteAccount()
119 return innerManager_->DeleteAccount(name, callingUid, bundleName, appIndex); in DeleteAccount()
124 int32_t callingUid = -1; in GetAccountExtraInfo() local
[all …]
/base/location/services/location_geocode/geocode/source/
Dgeo_convert_skeleton.cpp29 pid_t callingUid = IPCSkeleton::GetCallingUid(); in OnRemoteRequest() local
31 code, option.GetFlags(), callingPid, callingUid); in OnRemoteRequest()
42 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
49 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
56 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
63 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
71 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
79 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/
Dcm_response.cpp60 auto callingUid = IPCSkeleton::GetCallingUid(); in CmGetProcessInfoForIPC() local
62 OHOS::AccountSA::OsAccountManager::GetOsAccountLocalIdFromUid(callingUid, userId); in CmGetProcessInfoForIPC()
63 CM_LOG_I("CmGetProcessInfoForIPC callingUid = %d, userId = %d", callingUid, userId); in CmGetProcessInfoForIPC()
65 cmContext->uid = (uint32_t)callingUid; in CmGetProcessInfoForIPC()
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
Dat_not_mock_app_account_manager_service_module_test.cpp66 int32_t callingUid; variable
69 … int result = g_accountManagerService->GetBundleNameAndCheckPerm(callingUid, bundleName, permName);
84 int32_t callingUid; variable
87 int result = g_accountManagerService->GetCallingInfo(callingUid, bundleName, appIndex);
/base/security/permission_lite/services/pms/src/
Dpms_server_internal.c127 uid_t callingUid = GetCallingUid(); in ReplyCheckPermission() local
128 …G_INFO(HILOG_MODULE_APP, "Enter ID_CHECK, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyCheckPermission()
142 uid_t callingUid = GetCallingUid(); in ReplyGrantPermission() local
143 …G_INFO(HILOG_MODULE_APP, "Enter ID_GRANT, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyGrantPermission()
156 uid_t callingUid = GetCallingUid(); in ReplyRevokePermission() local
157 …_INFO(HILOG_MODULE_APP, "Enter ID_REVOKE, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyRevokePermission()
170 uid_t callingUid = GetCallingUid(); in ReplyGrantRuntimePermission() local
171 …HILOG_MODULE_APP, "Enter ID_GRANTRUNTIME, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyGrantRuntimePermission()
184 uid_t callingUid = GetCallingUid(); in ReplyRevokeRuntimePermission() local
185 …ILOG_MODULE_APP, "Enter ID_REVOKERUNTIME, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyRevokeRuntimePermission()
[all …]
Dpms_server.c114 uid_t callingUid = GetCallingUid(); in ReplyCheckSelfPermission() local
115 …FO(HILOG_MODULE_APP, "Enter ID_CHECKSELF, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyCheckSelfPermission()
119 int32_t ret = api->CheckPermission(callingUid, permName); in ReplyCheckSelfPermission()
120 …HILOG_INFO(HILOG_MODULE_APP, "check self permission, [uid: %u][perm: %s][ret: %d]", callingUid, pe… in ReplyCheckSelfPermission()
127 uid_t callingUid = GetCallingUid(); in ReplyQueryPermission() local
128 …G_INFO(HILOG_MODULE_APP, "Enter ID_Query, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyQueryPermission()
/base/telephony/call_manager/services/video/src/
Dvideo_control_manager.cpp46 int32_t VideoControlManager::ControlCamera(std::u16string cameraId, int32_t callingUid, int32_t cal… in ControlCamera() argument
49 return CloseCamera(cameraId, callingUid, callingPid); in ControlCamera()
51 return OpenCamera(cameraId, callingUid, callingPid); in ControlCamera()
98 int32_t VideoControlManager::OpenCamera(std::u16string cameraId, int32_t callingUid, int32_t callin… in OpenCamera() argument
108 …DelayedSingleton<CellularCallConnection>::GetInstance()->ControlCamera(cameraId, callingUid, calli… in OpenCamera()
115 int32_t VideoControlManager::CloseCamera(std::u16string cameraId, int32_t callingUid, int32_t calli… in CloseCamera() argument
119 cameraId, callingUid, callingPid); in CloseCamera()
/base/telephony/call_manager/services/video/include/
Dvideo_control_manager.h30 int32_t ControlCamera(std::u16string cameraId, int32_t callingUid, int32_t callingPid);
38 int32_t OpenCamera(std::u16string cameraId, int32_t callingUid, int32_t callingPid);
39 int32_t CloseCamera(std::u16string cameraId, int32_t callingUid, int32_t callingPid);
/base/useriam/user_auth_framework/services/context/src/
Dtrace.cpp79 if (metaData.callingUid.has_value()) { in ProcessUserAuthEvent()
80 info.callingUid = metaData.callingUid.value(); in ProcessUserAuthEvent()
117 if (metaData.callingUid.has_value()) { in ProcessPinAuthEvent()
118 info.callingUid = metaData.callingUid.value(); in ProcessPinAuthEvent()
Dcontext_callback_impl.cpp96 void ContextCallbackImpl::SetTraceCallingUid(uint64_t callingUid) in SetTraceCallingUid() argument
98 metaData_.callingUid = callingUid; in SetTraceCallingUid()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
Dsys_event_service_ohos.cpp350 auto callingUid = IPCSkeleton::GetCallingUid(); in BuildEventQuery() local
351 if (rules.empty() && (callingUid == HID_SHELL || callingUid == HID_ROOT || in BuildEventQuery()
352 callingUid == HID_OHOS)) { in BuildEventQuery()
356 return !any_of(rules.cbegin(), rules.cend(), [this, callingUid, &builder] (auto& rule) { in BuildEventQuery()
357 if (rule.domain.empty() && callingUid != HID_SHELL && callingUid != HID_ROOT && in BuildEventQuery()
358 callingUid != HID_OHOS) { in BuildEventQuery()
362 [this, callingUid, &builder, &rule] (auto& eventName) { in BuildEventQuery()
363 if (eventName.empty() && callingUid != HID_SHELL && callingUid != HID_ROOT && in BuildEventQuery()
364 callingUid != HID_OHOS) { in BuildEventQuery()
425 auto callingUid = IPCSkeleton::GetCallingUid(); in HasAccessPermission() local
[all …]
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dbundle_manager_helper_test.cpp49 pid_t callingUid = IPCSkeleton::GetCallingUid(); variable
51 EXPECT_EQ(bundleManager->GetBundleNameByUid(callingUid), "bundleName");
61 pid_t callingUid = 100; variable
63 EXPECT_TRUE(bundleManager->IsSystemApp(callingUid));
/base/useriam/user_auth_framework/frameworks/native/common/dfx/inc/
Dhisysevent_adapter.h25 uint64_t callingUid = 0; member
36 uint64_t callingUid = 0; member
/base/security/access_token/services/tokensyncmanager/src/service/
Dtoken_sync_manager_stub.cpp67 int callingUid = IPCSkeleton::GetCallingUid(); in IsRootCalling() local
68 ACCESSTOKEN_LOG_DEBUG(LABEL, "Calling uid: %{public}d", callingUid); in IsRootCalling()
69 return callingUid == ROOT_UID; in IsRootCalling()
/base/useriam/user_auth_framework/frameworks/native/common/dfx/src/
Dhisysevent_adapter.cpp108 STR_CALLING_ID, info.callingUid, in ReportUserAuth()
119 ret, info.callingUid, info.authType, info.atl, info.authResult, in ReportUserAuth()
129 STR_CALLING_ID, info.callingUid, in ReportPinAuth()
137 ret, info.userId, info.callingUid, info.authTimeString.c_str(), info.authResult, in ReportPinAuth()
/base/account/os_account/frameworks/domain_account/src/
Ddomain_account_common.cpp94 GetAccessTokenOptions::GetAccessTokenOptions(const int32_t &callingUid, const AAFwk::WantParams &ge… in GetAccessTokenOptions() argument
95 : callingUid_(callingUid), getTokenParams_(getTokenParams) in GetAccessTokenOptions()
154 if (!parcel.ReadInt32(callingUid)) { in ReadFromParcel()
167 if (!parcel.WriteInt32(callingUid)) { in Marshalling()
/base/notification/common_event_service/services/src/
Dcommon_event_manager_service.cpp215 auto callingUid = IPCSkeleton::GetCallingUid(); in SubscribeCommonEvent() local
217 …tring bundleName = DelayedSingleton<BundleManagerHelper>::GetInstance()->GetBundleName(callingUid); in SubscribeCommonEvent()
225 callingUid, in SubscribeCommonEvent()
237 callingUid, in SubscribeCommonEvent()
290 auto callingUid = IPCSkeleton::GetCallingUid(); in GetStickyCommonEvent() local
291 …tring bundleName = DelayedSingleton<BundleManagerHelper>::GetInstance()->GetBundleName(callingUid); in GetStickyCommonEvent()
297 callingUid); in GetStickyCommonEvent()
/base/update/sys_installer/frameworks/ipc_server/src/
Dsys_installer_stub.cpp157 int32_t callingUid = OHOS::IPCSkeleton::GetCallingUid(); in CheckCallingPerm() local
158 LOG(INFO) << "CheckCallingPerm callingUid:" << callingUid; in CheckCallingPerm()
159 if (callingUid == 0) { in CheckCallingPerm()
162 return callingUid == Updater::Utils::USER_UPDATE_AUTHORITY && IsPermissionGranted(); in CheckCallingPerm()
/base/useriam/user_auth_framework/services/context/inc/
Dcontext_callback.h44 std::optional<uint64_t> callingUid; member
71 virtual void SetTraceCallingUid(uint64_t callingUid) = 0;
/base/account/os_account/interfaces/innerkits/domain_account/native/include/
Ddomain_account_common.h71 GetAccessTokenOptions(const int32_t &callingUid, const AAFwk::WantParams &getTokenParams);
83 int32_t callingUid = -1; member

1234