/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/ |
H A D | bundle_resource_callback.cpp | 30 int32_t currentUserId = AccountHelper::GetCurrentActiveUserId(); in OnUserIdSwitched() local 31 if (currentUserId != userId) { in OnUserIdSwitched() 32 APP_LOGE("userId:%{public}d current:%{public}d not same", userId, currentUserId); in OnUserIdSwitched() 75 int32_t currentUserId = AccountHelper::GetCurrentActiveUserId(); in OnSystemLanguageChange() local 76 if (currentUserId <= 0) { in OnSystemLanguageChange() 77 currentUserId = Constants::START_USERID; in OnSystemLanguageChange() 80 if (!manager->AddAllResourceInfo(currentUserId, type)) { in OnSystemLanguageChange() 81 APP_LOGE("AddAllResourceInfo currentUserId %{public}d failed", currentUserId); in OnSystemLanguageChange() 122 int32_t currentUserId in OnApplicationThemeChanged() local 142 int32_t currentUserId = AccountHelper::GetCurrentActiveUserId(); OnOverlayStatusChanged() local 180 int32_t currentUserId = AccountHelper::GetCurrentActiveUserId(); SetThemeIdForThemeChanged() local [all...] |
/foundation/distributeddatamgr/data_share/frameworks/native/permission/src/ |
H A D | data_share_called_config.cpp | 61 providerInfo_.bundleName.c_str(), providerInfo_.currentUserId, in GetFromProxyData() 103 providerInfo_.currentUserId = GetUserByToken(tokenId); in GetProviderInfo() 122 BundleFlag::GET_BUNDLE_WITH_EXTENSION_INFO, bundleInfo, providerInfo_.currentUserId); in GetBundleInfoFromBMS() 125 providerInfo_.bundleName.c_str(), providerInfo_.currentUserId, in GetBundleInfoFromBMS()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/sandbox_app/ |
H A D | bundle_sandbox_exception_handler.cpp | 169 int32_t currentUserId = Constants::INVALID_USERID; in RemoveDataDir() 173 if (currentUserId == Constants::INVALID_USERID) { in RemoveDataDir() 174 currentUserId = AccountHelper::GetCurrentActiveUserId(); in RemoveDataDir() 175 APP_LOGD("current active userId is %{public}d", currentUserId); in RemoveDataDir() 176 if (currentUserId == Constants::INVALID_USERID) { in RemoveDataDir() 180 auto it = sandboxDirs.find(currentUserId); in RemoveDataDir()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/strategies/general/ |
H A D | load_config_common_strategy.cpp | 35 context->currentUserId = DistributedKv::AccountDelegate::GetInstance()->GetUserByToken(context->callerTokenId);
in operator ()() 40 if (context->currentUserId == 0) {
in operator ()() 42 context->uri, context->currentUserId, context->callerTokenId, context->calledBundleName);
in operator ()()
|
H A D | load_config_data_info_strategy.cpp | 56 context->calledBundleName, context->calledStoreName, metaData, context->currentUserId, context->appIndex)) {
in operator ()() 61 context->calledBundleName, context->calledStoreName, metaData, context->currentUserId, context->appIndex)) {
in operator ()()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/ |
H A D | data_provider_config.cpp | 35 providerInfo_.currentUserId = DistributedKv::AccountDelegate::GetInstance()->GetUserByToken(callerTokenId); in DataProviderConfig() 37 if (providerInfo_.currentUserId == 0) { in DataProviderConfig() 38 LoadConfigCommonStrategy::GetInfoFromProxyURI(providerInfo_.uri, providerInfo_.currentUserId, in DataProviderConfig() 56 providerInfo_.bundleName, providerInfo_.currentUserId, bundleInfo, providerInfo_.appIndex); in GetBundleInfo() 65 providerInfo_.bundleName.c_str(), providerInfo_.currentUserId, in GetFromProxyData() 135 providerInfo_.tableName.append("_").append(std::to_string(providerInfo_.currentUserId)); in GetFromExtensionProperties() 148 providerInfo_.bundleName, providerInfo_.currentUserId, bundleInfo, providerInfo_.appIndex); in GetFromExtension()
|
H A D | data_share_silent_config.cpp | 31 bool DataShareSilentConfig::IsSilentProxyEnable(uint32_t callerTokenId, int32_t currentUserId, in IsSilentProxyEnable() argument 41 if (!DataShareProfileConfig::GetProfileInfo(calledBundleName, currentUserId, profileInfos)) { in IsSilentProxyEnable()
|
H A D | data_share_silent_config.h | 31 bool IsSilentProxyEnable(uint32_t callerTokenId, int32_t currentUserId,
|
H A D | data_share_service_impl.cpp | 112 RdbSubscriberManager::GetInstance().Emit(uri, providerInfo.currentUserId, metaData); in InsertEx() 153 RdbSubscriberManager::GetInstance().Emit(uri, providerInfo.currentUserId, metaData); in UpdateEx() 173 RdbSubscriberManager::GetInstance().Emit(uri, providerInfo.currentUserId, metaData); in DeleteEx() 217 Key(uri, tpltId.subscriberId_, tpltId.bundleName_), context->currentUserId, tplt); in AddTemplate() 236 Key(uri, tpltId.subscriberId_, tpltId.bundleName_), context->currentUserId); in DelTemplate() 283 userId = context->currentUserId; 389 context->uri, context->calledBundleName, subscriberId, context->currentUserId); 392 userId = context->currentUserId; 421 context->uri, context->calledBundleName, subscriberId, context->currentUserId); 454 context->uri, context->calledBundleName, subscriberId, context->currentUserId); [all...] |
H A D | data_provider_config.h | 35 int32_t currentUserId = -1; member
|
/foundation/bundlemanager/distributed_bundle_framework/services/dbms/src/ |
H A D | distributed_data_storage.cpp | 81 int32_t currentUserId = AccountManagerHelper::GetCurrentActiveUserId(); in SaveStorageDistributeInfo() local 82 if (currentUserId == Constants::INVALID_USERID) { in SaveStorageDistributeInfo() 83 currentUserId = Constants::START_USERID; in SaveStorageDistributeInfo() 85 if (userId != currentUserId) { in SaveStorageDistributeInfo() 86 APP_LOGW("install userid:%{public}d is not currentUserId:%{public}d", userId, currentUserId); in SaveStorageDistributeInfo() 95 bool ret = bundleMgr->GetBundleInfo(bundleName, FLAGS, bundleInfo, currentUserId); in SaveStorageDistributeInfo() 97 APP_LOGW("GetBundleInfo:%{public}s userid:%{public}d failed", bundleName.c_str(), currentUserId); in SaveStorageDistributeInfo() 98 DeleteStorageDistributeInfo(bundleName, currentUserId); in SaveStorageDistributeInfo() 141 int32_t currentUserId in DeleteStorageDistributeInfo() local [all...] |
/foundation/ability/form_fwk/test/fuzztest/formdatamgr_fuzzer/ |
H A D | formdatamgr_fuzzer.cpp | 56 int32_t currentUserId = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local 57 formDataMgr.CheckEnoughForm(callingUid, currentUserId); in DoSomethingInterestingWithMyAPI()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/subscriber_managers/ |
H A D | rdb_subscriber_manager.cpp | 131 Notify(key, context->currentUserId, node, context->calledSourceDir, context->version);
in Add() 134 key, context->currentUserId, context->calledSourceDir, context->version);
in Add() 215 Notify(key, context->currentUserId, node, context->calledSourceDir, context->version);
in Enable() 237 Notify(key, context->currentUserId, val, context->calledSourceDir, context->version);
in Emit() 242 uri, context->currentUserId, context->calledSourceDir, context->version, context->calledBundleName);
in Emit() 375 Notify(key, context->currentUserId, val, context->calledSourceDir, context->version);
in Emit() 380 uri, context->currentUserId, context->calledSourceDir, context->version, context->calledBundleName);
in Emit()
|
/foundation/ability/form_fwk/services/src/ |
H A D | form_sys_event_receiver.cpp | 262 void FormSysEventReceiver::HandleUserIdForms(int32_t currentUserId, int32_t lastUserId) in HandleUserIdForms() argument 264 HILOG_INFO("currentUserId:%{public}d", currentUserId); in HandleUserIdForms() 265 FormRenderMgr::GetInstance().RerenderAllFormsImmediate(currentUserId); in HandleUserIdForms()
|
/foundation/distributeddatamgr/data_share/frameworks/native/permission/include/ |
H A D | data_share_called_config.h | 39 int32_t currentUserId = -1; member
|
/foundation/ability/form_fwk/services/include/ |
H A D | form_sys_event_receiver.h | 67 void HandleUserIdForms(int32_t currentUserId, int32_t lastUserId);
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/common/ |
H A D | context.h | 39 int32_t currentUserId = -1;
member in OHOS::DataShare::Context
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_mgr_service.cpp | 360 int32_t currentUserId = userId; in GetConnectAbility() local 361 if (currentUserId == Constants::UNSPECIFIED_USERID) { in GetConnectAbility() 362 currentUserId = AccountHelper::GetCurrentActiveUserId(); in GetConnectAbility()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | data_share_subscriber_managers_test.cpp | 113 auto result = TemplateManager::GetInstance().Add(key, context->currentUserId, tpl);
in HWTEST_F() 115 result = TemplateManager::GetInstance().Delete(key, context->currentUserId);
in HWTEST_F()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/strategies/data_proxy/ |
H A D | load_config_from_data_proxy_node_strategy.cpp | 34 context->calledBundleName, context->currentUserId, context->bundleInfo) != E_OK) {
in operator ()()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/strategies/ |
H A D | get_data_strategy.cpp | 39 auto result = PublishedData::Query(context->calledBundleName, context->currentUserId);
in Execute()
|
H A D | publish_strategy.cpp | 45 PublishedDataNode node(context->uri, context->calledBundleName, item.subscriberId_, context->currentUserId,
in Execute()
|
/foundation/ability/ability_runtime/services/abilitymgr/include/ |
H A D | ability_connect_manager.h | 273 void OnAbilityDied(const std::shared_ptr<AbilityRecord> &abilityRecord, int32_t currentUserId); 537 void HandleAbilityDiedTask(const std::shared_ptr<AbilityRecord> &abilityRecord, int32_t currentUserId); 540 void RestartAbility(const std::shared_ptr<AbilityRecord> &abilityRecord, int32_t currentUserId); 629 void KeepAbilityAlive(const std::shared_ptr<AbilityRecord> &abilityRecord, int32_t currentUserId);
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/app_control/ |
H A D | app_control_manager.cpp | 331 int32_t currentUserId = AccountHelper::GetCurrentActiveUserId(); in SetAppInstallControlStatus() local 332 if (currentUserId == Constants::INVALID_USERID) { in SetAppInstallControlStatus() 333 currentUserId = Constants::START_USERID; in SetAppInstallControlStatus() 336 AppControlConstants::APP_DISALLOWED_UNINSTALL, currentUserId, appIds); in SetAppInstallControlStatus()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/extend_resource/ |
H A D | extend_resource_manager_host_impl.cpp | 586 int32_t currentUserId = AccountHelper::GetCurrentActiveUserId(); in ResetBundleResourceIcon() local 587 if ((currentUserId <= 0)) { in ResetBundleResourceIcon() 588 currentUserId = Constants::START_USERID; in ResetBundleResourceIcon() 590 if (!manager->AddResourceInfoByBundleName(bundleName, currentUserId)) { in ResetBundleResourceIcon()
|