Home
last modified time | relevance | path

Searched refs:GetCurrentUserId (Results 1 – 25 of 77) sorted by relevance

1234

/ohos5.0/foundation/ability/ability_runtime/test/unittest/user_controller_test/
H A Duser_controller_test.cpp166 EXPECT_TRUE(userController.GetCurrentUserId() == 0);
182 EXPECT_TRUE(userController.GetCurrentUserId() == 0);
210 auto result = userController.GetCurrentUserId();
226 auto result = userController.GetCurrentUserId();
243 auto result = userController.GetCurrentUserId();
260 auto result = userController.GetCurrentUserId();
277 auto result = userController.GetCurrentUserId();
293 auto result = userController.GetCurrentUserId();
309 auto result = userController.GetCurrentUserId();
/ohos5.0/base/inputmethod/imf/test/unittest/cpp_test/src/
H A Dinput_method_private_member_test.cpp470 auto userId = TddUtil::GetCurrentUserId();
490 auto userId = TddUtil::GetCurrentUserId();
528 auto currentUserId = TddUtil::GetCurrentUserId();
560 auto currentUserId = TddUtil::GetCurrentUserId();
585 auto currentUserId = TddUtil::GetCurrentUserId();
602 auto currentUserId = TddUtil::GetCurrentUserId();
733 auto currentUserId = TddUtil::GetCurrentUserId();
749 auto currentUserId = TddUtil::GetCurrentUserId();
777 auto currentUserId = TddUtil::GetCurrentUserId();
792 auto currentUserId = TddUtil::GetCurrentUserId();
/ohos5.0/base/account/os_account/frameworks/account_iam/src/
H A Daccount_iam_client.cpp76 if ((userId == -1) && (!GetCurrentUserId(userId))) { in AddCredential()
101 if ((userId == -1) && (!GetCurrentUserId(userId))) { in UpdateCredential()
126 if ((userId == -1) && (!GetCurrentUserId(userId))) { in DelCred()
147 if ((userId == -1) && (!GetCurrentUserId(userId))) { in DelUser()
232 (!GetCurrentUserId(authOptions.accountId))) { in AuthUser()
386 if (!GetCurrentUserId(userId)) { in RegisterPINInputer()
509 bool AccountIAMClient::GetCurrentUserId(int32_t &userId) in GetCurrentUserId() function in OHOS::AccountSA::AccountIAMClient
/ohos5.0/base/location/frameworks/location_common/common/source/
H A Dlocation_data_rdb_manager.cpp34 if (!CommonUtils::GetCurrentUserId(userId)) { in GetLocationDataUriByCurrentUserId()
54 if (!CommonUtils::GetCurrentUserId(userId)) { in GetLocationDataSecureUri()
146 if (!CommonUtils::GetCurrentUserId(userId)) { in GetSwitchStateFromSysparaForCurrentUser()
155 if (!CommonUtils::GetCurrentUserId(userId)) { in SetSwitchStateToSysparaForCurrentUser()
H A Dcommon_utils.cpp129 bool CommonUtils::GetCurrentUserId(int &userId) in GetCurrentUserId() function in OHOS::Location::CommonUtils
291 bool ret = GetCurrentUserId(userId); in CheckAppInstalled()
437 if (!GetCurrentUserId(currentUserId)) { in CheckAppForUser()
/ohos5.0/base/inputmethod/imf/test/unittest/cpp_test/common/src/
H A Dtdd_util.cpp90 int32_t TddUtil::GetCurrentUserId() in GetCurrentUserId() function in OHOS::MiscServices::TddUtil
112 HapInfoParams infoParams = { .userID = GetCurrentUserId(), in AllocTestTokenID()
138 HapInfoParams infoParams = { .userID = GetUserIdByBundleName(bundleName, GetCurrentUserId()), in GetTestTokenID()
174 auto uid = bundleMgr->GetUidByBundleName(bundleName, GetCurrentUserId()); in GetUid()
372 auto userId = GetCurrentUserId(); in InitCurrentImePermissionInfo()
/ohos5.0/foundation/multimedia/player_framework/frameworks/native/system_sound_manager/
H A Dsystem_sound_manager_vibrate.cpp117 int32_t currentuserId = GetCurrentUserId(); in AssembleUri()
137 int32_t SystemSoundManagerImpl::GetCurrentUserId() in GetCurrentUserId() function in OHOS::Media::SystemSoundManagerImpl
163 int32_t currentuserId = GetCurrentUserId(); in CreateDataShareHelperProxy()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/storage/src/
H A Dstorage_status_service.cpp154 int StorageStatusService::GetCurrentUserId() in GetCurrentUserId() function in OHOS::StorageManager::StorageStatusService
173 int userId = GetCurrentUserId(); in GetBundleStats()
180 int userId = GetCurrentUserId(); in GetUserStorageStats()
248 int userId = GetCurrentUserId(); in GetCurrentBundleStats()
/ohos5.0/foundation/bundlemanager/bundle_tool/frameworks/src/
H A Dbundle_command.cpp626 userId = BundleCommandCommon::GetCurrentUserId(Constants::UNSPECIFIED_USERID); in RunAsInstallCommand()
1057 userId = BundleCommandCommon::GetCurrentUserId(Constants::UNSPECIFIED_USERID); in RunAsDumpCommand()
1236 userId = BundleCommandCommon::GetCurrentUserId(Constants::UNSPECIFIED_USERID); in RunAsCleanCommand()
1404 userId = BundleCommandCommon::GetCurrentUserId(Constants::UNSPECIFIED_USERID); in RunAsEnableCommand()
1550 userId = BundleCommandCommon::GetCurrentUserId(Constants::UNSPECIFIED_USERID); in RunAsDisableCommand()
1865 userId = BundleCommandCommon::GetCurrentUserId(Constants::UNSPECIFIED_USERID); in RunAsDumpOverlay()
2293 userId = BundleCommandCommon::GetCurrentUserId(userId); in CleanBundleCacheFilesOperation()
2311 userId = BundleCommandCommon::GetCurrentUserId(userId); in CleanBundleDataFilesOperation()
2328 userId = BundleCommandCommon::GetCurrentUserId(userId); in SetApplicationEnabledOperation()
2363 userId = BundleCommandCommon::GetCurrentUserId(userId); in DumpOverlayInfo()
[all …]
/ohos5.0/base/account/os_account/services/accountmgr/src/account_iam/
H A Daccount_iam_service.cpp32 static bool GetCurrentUserId(int32_t &userId) in GetCurrentUserId() function
55 if (!GetCurrentUserId(accountId)) { in NormalizeAccountId()
185 (!GetCurrentUserId(authParam.userId))) { in AuthUser()
/ohos5.0/base/customization/enterprise_device_management/services/edm/src/
H A Denterprise_device_mgr_ability.cpp1015 int32_t EnterpriseDeviceMgrAbility::GetCurrentUserId() in GetCurrentUserId() function in OHOS::EDM::EnterpriseDeviceMgrAbility
1175 … std::shared_ptr<Admin> deviceAdmin = adminMgr_->GetAdminByPkgName(bundleName, GetCurrentUserId()); in CheckHandlePolicyPermission()
1186 deviceAdmin->GetAdminType() != AdminType::VIRTUAL_ADMIN && userId != GetCurrentUserId()) { in CheckHandlePolicyPermission()
1247 adminMgr_->GetEnabledAdmin(AdminType::NORMAL, normalList, GetCurrentUserId()); in GetEnabledAdmin()
1273 auto adminItem = adminMgr_->GetAdminByPkgName(admin.GetBundleName(), GetCurrentUserId()); in GetEnterpriseInfo()
1280 … adminItem->GetAdminType() == AdminType::SUB_SUPER_ADMIN)) ? DEFAULT_USER_ID : GetCurrentUserId(); in GetEnterpriseInfo()
1298 int32_t userId = GetCurrentUserId(); in SetEnterpriseInfo()
1354 …red_ptr<Admin> adminItem = adminMgr_->GetAdminByPkgName(admin.GetBundleName(), GetCurrentUserId()); in VerifyManagedEvent()
1426 …d::shared_ptr<Admin> adminItem = adminMgr_->GetAdminByPkgName(parentAdminName, GetCurrentUserId()); in SetDelegatedPolicies()
1465 …d::shared_ptr<Admin> adminItem = adminMgr_->GetAdminByPkgName(parentAdminName, GetCurrentUserId()); in GetDelegatedPolicies()
[all …]
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/
H A Duser_controller.cpp111 … if (GetCurrentUserId() != USER_ID_NO_HEAD && !Rosen::SceneBoardJudgement::IsSceneBoardEnabled()) { in StartUser()
117 auto oldUserId = GetCurrentUserId(); in StartUser()
230 int32_t UserController::GetCurrentUserId() in GetCurrentUserId() function in OHOS::AAFwk::UserController
249 int32_t oldUserId = GetCurrentUserId(); in IsCurrentUser()
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/ipc/
H A Dconnection_detector.cpp202 int32_t ConnectionDetector::GetCurrentUserId() in GetCurrentUserId() function in OHOS::Storage::DistributedFile::ConnectionDetector
215 auto userId = GetCurrentUserId(); in ParseHmdfsPath()
/ohos5.0/base/location/test/location_locator/source/
H A Dlocation_config_manager_test.cpp42 bool ret = CommonUtils::GetCurrentUserId(userId); in GetLocationSwitchConfigPath()
116 CommonUtils::GetCurrentUserId(userId);
/ohos5.0/foundation/bundlemanager/bundle_tool/frameworks/include/
H A Dbundle_command_common.h38 static int32_t GetCurrentUserId(int32_t userId);
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/device/
H A Ddevice_manager_agent_sup_test.cpp165 auto userId = testPtr->GetCurrentUserId();
169 userId = testPtr->GetCurrentUserId();
175 userId = testPtr->GetCurrentUserId();
/ohos5.0/foundation/barrierfree/accessibility/services/aams/test/unittest/
H A Daccessibility_common_event_test.cpp174 int32_t userId = AccessibilityAbilityHelper::GetInstance().GetCurrentUserId();
198 int32_t userId = AccessibilityAbilityHelper::GetInstance().GetCurrentUserId();
/ohos5.0/base/useriam/user_auth_framework/services/ipc/src/
H A Dtemplate_cache_manager.cpp39 int32_t GetCurrentUserId() in GetCurrentUserId() function
151 int32_t userId = GetCurrentUserId(); in Subscribe()
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/manager/
H A Daudio_setting_provider.cpp284 int32_t AudioSettingProvider::GetCurrentUserId() in GetCurrentUserId() function in OHOS::AudioStandard::AudioSettingProvider
319 int32_t currentuserId = GetCurrentUserId(); in CreateDataShareHelper()
360 int32_t currentuserId = GetCurrentUserId(); in AssembleUri()
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/ipc/
H A Dconnection_detector.h50 static int32_t GetCurrentUserId();
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/network/softbus/
H A Dsoftbus_asset_recv_listener.h47 static int32_t GetCurrentUserId();
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/storage/
H A Dstorage_status_service.h45 int GetCurrentUserId();
/ohos5.0/base/location/services/location_locator/locator/source/
H A Dlocation_config_manager.cpp99 bool ret = CommonUtils::GetCurrentUserId(userId); in GetLocationSwitchConfigPath()
110 bool ret = CommonUtils::GetCurrentUserId(userId); in GetPrivacyTypeConfigPath()
/ohos5.0/base/inputmethod/imf/test/unittest/cpp_test/common/include/
H A Dtdd_util.h42 static int32_t GetCurrentUserId();
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_asset_recv_listener.cpp65 int32_t userId = GetCurrentUserId(); in GetRecvPath()
165 int32_t SoftbusAssetRecvListener::GetCurrentUserId() in GetCurrentUserId() function in OHOS::Storage::DistributedFile::SoftbusAssetRecvListener

1234