Home
last modified time | relevance | path

Searched refs:currentUserId (Results 1 - 25 of 53) sorted by relevance

123

/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/
H A Dbundle_resource_callback.cpp30 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 Ddata_share_called_config.cpp61 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 Dbundle_sandbox_exception_handler.cpp169 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 Dload_config_common_strategy.cpp35 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 Dload_config_data_info_strategy.cpp56 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 Ddata_provider_config.cpp35 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 Ddata_share_silent_config.cpp31 bool DataShareSilentConfig::IsSilentProxyEnable(uint32_t callerTokenId, int32_t currentUserId, in IsSilentProxyEnable() argument
41 if (!DataShareProfileConfig::GetProfileInfo(calledBundleName, currentUserId, profileInfos)) { in IsSilentProxyEnable()
H A Ddata_share_silent_config.h31 bool IsSilentProxyEnable(uint32_t callerTokenId, int32_t currentUserId,
H A Ddata_share_service_impl.cpp112 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 Ddata_provider_config.h35 int32_t currentUserId = -1; member
/foundation/bundlemanager/distributed_bundle_framework/services/dbms/src/
H A Ddistributed_data_storage.cpp81 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 Dformdatamgr_fuzzer.cpp56 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 Drdb_subscriber_manager.cpp131 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 Dform_sys_event_receiver.cpp262 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 Ddata_share_called_config.h39 int32_t currentUserId = -1; member
/foundation/ability/form_fwk/services/include/
H A Dform_sys_event_receiver.h67 void HandleUserIdForms(int32_t currentUserId, int32_t lastUserId);
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/common/
H A Dcontext.h39 int32_t currentUserId = -1; member in OHOS::DataShare::Context
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_mgr_service.cpp360 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 Ddata_share_subscriber_managers_test.cpp113 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 Dload_config_from_data_proxy_node_strategy.cpp34 context->calledBundleName, context->currentUserId, context->bundleInfo) != E_OK) { in operator ()()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/strategies/
H A Dget_data_strategy.cpp39 auto result = PublishedData::Query(context->calledBundleName, context->currentUserId); in Execute()
H A Dpublish_strategy.cpp45 PublishedDataNode node(context->uri, context->calledBundleName, item.subscriberId_, context->currentUserId, in Execute()
/foundation/ability/ability_runtime/services/abilitymgr/include/
H A Dability_connect_manager.h273 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 Dapp_control_manager.cpp331 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 Dextend_resource_manager_host_impl.cpp586 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()

Completed in 12 milliseconds

123