Home
last modified time | relevance | path

Searched refs:UID_TRANSFORM_DIVISOR (Results 1 - 17 of 17) sorted by relevance

/base/notification/common_event_service/services/src/
H A Dos_account_manager_helper.cpp29 const int32_t UID_TRANSFORM_DIVISOR = 200000; member
46 id = uid / UID_TRANSFORM_DIVISOR; in GetOsAccountLocalIdFromUid()
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/
H A Daccount_adapt.cpp26 constexpr static int UID_TRANSFORM_DIVISOR = 200000; member
40 return (callingUid / UID_TRANSFORM_DIVISOR); in GetCallingUserId()
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/
H A Dhks_response.cpp55 constexpr static int UID_TRANSFORM_DIVISOR = 200000; variable
58 osAccountId = uid / UID_TRANSFORM_DIVISOR; in GetOsAccountIdFromUid()
/base/account/os_account/services/accountmgr/src/
H A Daccount_mgr_service.cpp77 std::int32_t userId = IPCSkeleton::GetCallingUid() / UID_TRANSFORM_DIVISOR; in GetCallingUserID()
118 return QueryOhosAccountInfoByUserId(IPCSkeleton::GetCallingUid() / UID_TRANSFORM_DIVISOR, accountInfo); in QueryOhosAccountInfo()
123 return GetOhosAccountInfoByUserId(IPCSkeleton::GetCallingUid() / UID_TRANSFORM_DIVISOR, info); in GetOhosAccountInfo()
155 accountId = uid / UID_TRANSFORM_DIVISOR; in QueryDeviceAccountId()
/base/account/os_account/services/accountmgr/src/osaccount/
H A Dos_account_manager_service.cpp282 int callerUserId = IPCSkeleton::GetCallingUid() / UID_TRANSFORM_DIVISOR; in IsOsAccountActived()
321 int callerUserId = IPCSkeleton::GetCallingUid() / UID_TRANSFORM_DIVISOR; in CheckOsAccountConstraintEnabled()
342 int callerUserId = IPCSkeleton::GetCallingUid() / UID_TRANSFORM_DIVISOR; in IsOsAccountVerified()
370 id = uid / UID_TRANSFORM_DIVISOR; in GetOsAccountLocalIdFromProcess()
383 isMainOsAccount = ((uid / UID_TRANSFORM_DIVISOR) == MAIN_OS_ACCOUNT_LOCAL_ID); in IsMainOsAccount()
447 int id = IPCSkeleton::GetCallingUid() / UID_TRANSFORM_DIVISOR; in QueryCurrentOsAccount()
470 int id = IPCSkeleton::GetCallingUid() / UID_TRANSFORM_DIVISOR; in GetOsAccountTypeFromProcess()
490 int callerUserId = IPCSkeleton::GetCallingUid() / UID_TRANSFORM_DIVISOR; in GetOsAccountProfilePhoto()
766 int id = IPCSkeleton::GetCallingUid() / UID_TRANSFORM_DIVISOR; in IsCurrentOsAccountVerified()
784 int id = IPCSkeleton::GetCallingUid() / UID_TRANSFORM_DIVISOR; in SetCurrentOsAccountIsVerified()
[all...]
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/
H A Dhks_event_observer.cpp36 constexpr static int UID_TRANSFORM_DIVISOR = 200000; variable
39 osAccountId = uid / UID_TRANSFORM_DIVISOR; in GetOsAccountIdFromUid()
/base/account/os_account/frameworks/osaccount/native/test/unittest/
H A Dos_account_info_test.cpp34 constexpr std::int32_t UID_TRANSFORM_DIVISOR = 200000; member
488 setuid(TEST_UID * UID_TRANSFORM_DIVISOR); in HWTEST_F()
508 setuid(localId * UID_TRANSFORM_DIVISOR); in HWTEST_F()
514 setuid(localId * UID_TRANSFORM_DIVISOR); in HWTEST_F()
519 setuid(localId * UID_TRANSFORM_DIVISOR); in HWTEST_F()
/base/account/os_account/services/accountmgr/src/appaccount/
H A Dapp_account_manager_service.cpp27 constexpr int32_t UID_TRANSFORM_DIVISOR = 200000; // local account id = uid / UID_TRANSFORM_DIVISOR member
157 int32_t userId = appAccountCallingInfo.callingUid / UID_TRANSFORM_DIVISOR; in EnableAppAccess()
183 int32_t userId = appAccountCallingInfo.callingUid / UID_TRANSFORM_DIVISOR; in DisableAppAccess()
221 int32_t userId = appAccountCallingInfo.callingUid / UID_TRANSFORM_DIVISOR; in SetAppAccess()
452 int32_t userId = request.callerUid / UID_TRANSFORM_DIVISOR; in SetAuthTokenVisibility()
567 int32_t userId = callingUid / UID_TRANSFORM_DIVISOR; in GetAllAccounts()
608 int32_t userId = callingUid / UID_TRANSFORM_DIVISOR; in QueryAllAccessibleAccounts()
721 int32_t userId = callingUid / UID_TRANSFORM_DIVISOR; in SubscribeAppAccount()
H A Dapp_account_control_manager.cpp284 RemoveDataFromAssetByLabel(uid / UID_TRANSFORM_DIVISOR, SEC_ASSET_TAG_DATA_LABEL_NORMAL_2, in DeleteAccount()
587 GetDataFromAsset(appAccountCallingInfo.callingUid / UID_TRANSFORM_DIVISOR, alias, credential); in GetAccountCredential()
620 int32_t localId = appAccountCallingInfo.callingUid / UID_TRANSFORM_DIVISOR; in SetAccountCredential()
640 RemoveDataFromAsset(callingInfo.callingUid / UID_TRANSFORM_DIVISOR, alias); in DeleteAccountCredential()
681 GetDataFromAsset(request.callerUid / UID_TRANSFORM_DIVISOR, alias, token); in GetOAuthToken()
715 int32_t localId = request.callerUid / UID_TRANSFORM_DIVISOR; in SetOAuthToken()
746 GetDataFromAsset(request.callerUid / UID_TRANSFORM_DIVISOR, alias, token); in DeleteOAuthToken()
750 RemoveDataFromAsset(request.callerUid / UID_TRANSFORM_DIVISOR, alias); in DeleteOAuthToken()
840 GetDataFromAsset(request.callerUid / UID_TRANSFORM_DIVISOR, alias, tokenInfo.token); in GetAllOAuthTokens()
1063 int32_t localId = uid / UID_TRANSFORM_DIVISOR; in OnPackageRemoved()
[all...]
H A Dapp_account_authenticator_session.cpp106 userId_ = request_.callerUid / UID_TRANSFORM_DIVISOR; in Init()
H A Dinner_app_account_manager.cpp273 request.owner, request.callerUid / UID_TRANSFORM_DIVISOR, info); in GetAuthenticatorInfo()
/base/account/os_account/interfaces/innerkits/ohosaccount/native/include/
H A Daccount_info.h76 constexpr std::int32_t UID_TRANSFORM_DIVISOR = 200000; // local account id = uid / UID_TRANSFORM_DIVISOR member
/base/account/os_account/frameworks/osaccount/native/src/
H A Dos_account_manager.cpp112 id = uid / UID_TRANSFORM_DIVISOR; in GetOsAccountLocalIdFromUid()
127 bundleId = uid % UID_TRANSFORM_DIVISOR; in GetBundleIdFromUid()
/base/account/os_account/frameworks/ohosaccount/native/src/
H A Dohos_account_kits_impl.cpp339 std::int32_t accountID = uid / UID_TRANSFORM_DIVISOR; in GetDeviceAccountIdByUID()
/base/account/os_account/services/accountmgr/src/domain_account/
H A Dinner_domain_account_manager.cpp74 int32_t accountId = IPCSkeleton::GetCallingUid() / UID_TRANSFORM_DIVISOR; in IsSupportNetRequest()
85 std::int32_t userId = IPCSkeleton::GetCallingUid() / UID_TRANSFORM_DIVISOR; in GetCallingUserID()
1086 userId = callingUid / UID_TRANSFORM_DIVISOR; in QueryAccountInfo()
/base/account/os_account/frameworks/osaccount/native/test/moduletest/
H A Dos_account_manager_module_test.cpp2858 EXPECT_EQ(setuid(osAccountInfo.GetLocalId() * UID_TRANSFORM_DIVISOR), 0); in HWTEST_F()
2867 EXPECT_EQ(setuid(osAccountInfo.GetLocalId() * UID_TRANSFORM_DIVISOR), 0); in HWTEST_F()
2875 EXPECT_EQ(setuid(osAccountInfo.GetLocalId() * UID_TRANSFORM_DIVISOR), 0); in HWTEST_F()
/base/print/print_fwk/services/print_service/src/
H A Dprint_service_ability.cpp60 const int32_t UID_TRANSFORM_DIVISOR = 200000; member
2632 int32_t userId = IPCSkeleton::GetCallingUid() / UID_TRANSFORM_DIVISOR; in GetCurrentUserId()

Completed in 48 milliseconds