/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/ |
H A D | app_event_processor_proxy.cpp | 89 std::for_each(allUserIds.begin(), allUserIds.end(), [&userIds, this](const auto& userId) {
in GetValidUserIds() 90 if (reportConfig_.userIdNames.find(userId.name) != reportConfig_.userIdNames.end()
in GetValidUserIds() 91 && processor_->ValidateUserId(userId) == 0) {
in GetValidUserIds() 92 userIds.emplace_back(userId);
in GetValidUserIds()
|
/base/customization/enterprise_device_management/interfaces/inner_api/device_control/src/ |
H A D | device_control_proxy.cpp | 83 int32_t DeviceControlProxy::LockScreen(AppExecFwk::ElementName &admin, int32_t userId) in LockScreen() argument 93 data.WriteInt32(userId); in LockScreen() 94 EDMLOGD("DeviceControlProxy LockScreen userId = %{public}d.", userId); in LockScreen() 109 EDMLOGD("DeviceControlProxy OperateDevice operate = %{public}s userId = %{public}d.", param.operate.c_str(), in OperateDevice() 110 param.userId); in OperateDevice()
|
/base/account/os_account/interfaces/innerkits/ohosaccount/native/include/ |
H A D | ohos_account_kits_impl.h | 37 const int32_t userId, const OhosAccountInfo& ohosAccountInfo, const std::string& eventStr) final;
41 ErrCode GetOhosAccountInfoByUserId(int32_t userId, OhosAccountInfo &accountInfo) final;
42 std::pair<bool, OhosAccountInfo> QueryOhosAccountInfoByUserId(std::int32_t userId) final;
43 ErrCode QueryOhosAccountInfoByUserId(std::int32_t userId, OhosAccountInfo &accountInfo);
|
/base/print/print_fwk/test/unittest/service_test/ |
H A D | print_service_helper_test.cpp | 116 int userId = 0; in HWTEST_F() local 118 EXPECT_EQ(helper.QueryExtension(mgr, userId, extensionInfos), false); in HWTEST_F() 131 int userId = 0; in HWTEST_F() local 133 EXPECT_EQ(helper.QueryNameForUid(mgr, userId, userName), false); in HWTEST_F()
|
/base/notification/common_event_service/interfaces/kits/cj/src/ |
H A D | common_event_manager_impl.cpp | 29 int32_t CommonEventManagerImpl::PublishEvent(char *event, int32_t userId) in PublishEvent() argument 34 return OHOS::EventFwk::CommonEventManager::PublishCommonEventAsUser(data, userId) ? NO_ERROR : ERR_CES_FAILED; in PublishEvent() 37 int32_t CommonEventManagerImpl::PublishEventWithData(char *event, int32_t userId, in PublishEventWithData() argument 59 return OHOS::EventFwk::CommonEventManager::NewPublishCommonEventAsUser(data, publishInfo, userId); in PublishEventWithData()
|
/base/security/device_auth/services/data_manager/inc/ |
H A D | data_manager.h | 37 HcString userId; /* the user account id */ member 50 HcString userId; /* the user account id */ member 65 const char *userId; member 75 const char *userId; member
|
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/ |
H A D | visit_record_file_manager.cpp | 93 int32_t VisitRecordFileManager::AddVisitRecord(const std::string& bundleName, const int32_t& userId,
in AddVisitRecord() argument 100 int32_t res = visitRecordJsonManager_->AddVisitRecord(bundleName, userId, docUri);
in AddVisitRecord() 104 int32_t VisitRecordFileManager::GetVisitRecordList(const std::string& bundleName, const int32_t& userId,
in GetVisitRecordList() argument 111 int32_t res = visitRecordJsonManager_->GetVisitRecordList(bundleName, userId, infoVec);
in GetVisitRecordList()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/systemapi_wrap/useridm_test/user_iam_api_mock/ |
H A D | user_idm_client.cpp | 56 int32_t UserIdmClient::GetCredentialInfo(int32_t userId, AuthType authType, in GetCredentialInfo() argument 59 if (userId == 0) { in GetCredentialInfo() 93 int32_t UserIdmClient::GetSecUserInfo(int32_t userId, const std::shared_ptr<GetSecUserInfoCallback>& callback) in GetSecUserInfo() argument 95 if (userId == 0) { in GetSecUserInfo()
|
/base/theme/screenlock_mgr/frameworks/native/src/ |
H A D | screenlock_manager.cpp | 119 int32_t ScreenLockManager::Lock(int32_t userId) in Lock() argument 126 return proxy->Lock(userId); in Lock() 129 int32_t ScreenLockManager::RequestStrongAuth(int reasonFlag, int32_t userId) in RequestStrongAuth() argument 136 return proxy->RequestStrongAuth(reasonFlag, userId); in RequestStrongAuth()
|
/foundation/ability/ability_runtime/test/unittest/app_scheduler_test/ |
H A D | app_mgr_client_mock.h | 43 MOCK_METHOD3(ClearUpApplicationData, AppMgrResultCode(const std::string&, int32_t appCloneIndex, int32_t userId));
50 std::vector<RunningProcessInfo> &info, int32_t userId));
52 const AAFwk::Want &want, const sptr<IRemoteObject> &observer, const BundleInfo &bundleInfo, int32_t userId));
55 MOCK_METHOD2(UpdateConfiguration, AppMgrResultCode(const Configuration &config, const int32_t userId));
|
/foundation/ability/form_fwk/services/include/ |
H A D | form_db_cache.h | 90 * @param userId user ID. 94 ErrCode DeleteFormInfoByBundleName(const std::string &bundleName, const int32_t userId, 116 * @brief delete forms bu userId. 117 * @param userId user ID. 119 void DeleteDBFormsByUserId(const int32_t userId); 123 * @param userId User ID. 129 void GetNoHostInvalidDBForms(int32_t userId, int32_t callingUid, std::set<int64_t> &matchedFormIds, 144 * @param userId User ID. 150 ErrCode DeleteInvalidDBForms(int32_t userId, int32_t callingUid, std::set<int64_t> &matchedFormIds,
|
H A D | form_render_mgr.h | 58 ErrCode ReloadForm(const std::vector<FormRecord> &&formRecords, const std::string &bundleName, int32_t userId); 97 void DisconnectAllRenderConnections(int32_t userId); 99 void RerenderAllFormsImmediate(int32_t userId); 102 void InitRenderInner(bool isSandbox, int32_t userId); 109 // <userId, FormRenderMgrInner> 111 // <userId, FormSandboxRenderMgrInner>
|
/foundation/ability/form_fwk/test/fuzztest/formdbcacheannex_fuzzer/ |
H A D | formdbcacheannex_fuzzer.cpp | 62 int32_t userId = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local 63 formDbCache.DeleteDBFormsByUserId(userId); in DoSomethingInterestingWithMyAPI() 67 formDbCache.GetNoHostInvalidDBForms(userId, callingUid, matchedFormIds, noHostFormDBList, foundFormsMap); in DoSomethingInterestingWithMyAPI() 69 formDbCache.DeleteInvalidDBForms(userId, callingUid, matchedFormIds, foundFormsMap); in DoSomethingInterestingWithMyAPI()
|
/foundation/ability/ability_runtime/services/abilitymgr/src/interceptor/ |
H A D | control_interceptor.cpp | 35 if (CheckControl(param.want, param.userId, controlRule)) { in DoProcess() 57 param.requestCode, param.userId)); in DoProcess() 68 bool ControlInterceptor::CheckControl(const Want &want, int32_t userId, in CheckControl() argument 92 auto ret = appControlMgr->GetAppRunningControlRule(bundleName, userId, controlRule); in CheckControl()
|
/foundation/ability/ability_runtime/test/fuzztest/abilityapppreloader_fuzzer/ |
H A D | abilityapppreloader_fuzzer.cpp | 61 int32_t userId = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local 64 appPreloader->GeneratePreloadRequest(bundleName, userId, appIndex, request); in DoSomethingInterestingWithMyAPI() 69 appPreloader->GetLaunchWant(bundleName, userId, launchWant); in DoSomethingInterestingWithMyAPI() 70 appPreloader->GetLaunchAbilityInfo(launchWant, userId, abilityInfo); in DoSomethingInterestingWithMyAPI()
|
/foundation/ability/ability_runtime/test/mock/frameworks_kits_ability_native_test/include/ |
H A D | mock_bundle_manager.cpp | 26 const std::string& appName, const ApplicationFlag flag, const int userId, ApplicationInfo& appInfo) in GetApplicationInfo() 63 bool BundleMgrProxy::GetHapModuleInfo(const AbilityInfo& abilityInfo, int32_t userId, HapModuleInfo& hapModuleInfo) in GetHapModuleInfo() argument 83 const std::string& appName, const ApplicationFlag flag, const int userId, ApplicationInfo& appInfo) in GetApplicationInfo() 134 bool BundleMgrService::GetHapModuleInfo(const AbilityInfo& abilityInfo, int32_t userId, HapModuleInfo& hapModuleInfo) in GetHapModuleInfo() argument 25 GetApplicationInfo( const std::string& appName, const ApplicationFlag flag, const int userId, ApplicationInfo& appInfo) GetApplicationInfo() argument 82 GetApplicationInfo( const std::string& appName, const ApplicationFlag flag, const int userId, ApplicationInfo& appInfo) GetApplicationInfo() argument
|
H A D | mock_bundle_manager_form.h | 45 int GetUidByBundleName(const std::string& bundleName, int32_t userId, int32_t appCloneIndex) override 68 const std::string& bundleName, const BundleFlag flag, BundleInfo& bundleInfo, int32_t userId) override; 95 int GetUidByBundleName(const std::string& bundleName, int32_t userId, int32_t appCloneIndex) override; 97 const std::string& bundleName, const BundleFlag flag, BundleInfo& bundleInfo, int32_t userId) override;
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | bundle_permission_mgr.h | 41 * @param userId Indicates the userId of the bundle. 45 const int32_t userId); 57 * @param userId Indicates the userId of the bundle. 61 const std::string &bundleName, const std::string &permissionName, const int32_t userId); 63 static int32_t InitHapToken(const InnerBundleInfo &innerBundleInfo, const int32_t userId, 123 const int32_t userId, const int32_t dlpType);
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | el5_filekey_callback.cpp | 47 info.uid, info.bundleName, info.userId, keyId); in OnRegenerateAppKey() 52 bundleInfo.SetkeyId(info.userId, keyId); in OnRegenerateAppKey() 64 ServiceConstants::PATH_SEPARATOR + std::to_string(info.userId) + ServiceConstants::BASE; in CheckEl5Dir() 88 ServiceConstants::PATH_SEPARATOR + std::to_string(info.userId) + ServiceConstants::DATABASE + info.bundleName; in CheckEl5Dir()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_event_handler_test/ |
H A D | bms_event_handler_unlocked_test.cpp | 45 bool CreateBundleDataDir(const BundleInfo &bundleInfo, int32_t userId); 69 bool BmsEventHandlerUnLockedTest::CreateBundleDataDir(const BundleInfo &bundleInfo, int32_t userId) in CreateBundleDataDir() argument 76 UpdateAppDataMgr::UpdateAppDataDirSelinuxLabel(userId); in CreateBundleDataDir() 77 return UpdateAppDataMgr::CreateBundleDataDir(bundleInfo, userId, ServiceConstants::DIR_EL2); in CreateBundleDataDir()
|
/foundation/multimedia/ringtone_library/services/utils/src/ |
H A D | permission_utils.cpp | 122 int32_t userId = uid / baseUserRange; in GetPackageNameByBundleName() local 123 RINGTONE_DEBUG_LOG("uid:%{private}d, userId:%{private}d", uid, userId); in GetPackageNameByBundleName() 131 int ret = bundleManager_->GetLaunchWantForBundle(bundleName, want, userId); in GetPackageNameByBundleName() 133 RINGTONE_ERR_LOG("Can not get bundleName by want, err=%{public}d, userId=%{private}d", in GetPackageNameByBundleName() 134 ret, userId); in GetPackageNameByBundleName()
|
/foundation/resourceschedule/background_task_mgr/services/common/src/ |
H A D | system_event_observer.cpp | 87 int32_t userId = eventData.GetCode();
in OnReceiveEventContinuousTask() local 88 BGTASK_LOGI("user of id :%{public}d state is changed, action is : %{public}s", userId, action.c_str());
in OnReceiveEventContinuousTask() 89 auto task = [bgContinuousTaskMgr, userId]() { bgContinuousTaskMgr->OnAccountsStateChanged(userId); };
in OnReceiveEventContinuousTask()
|
/foundation/resourceschedule/device_usage_statistics/services/common/src/ |
H A D | bundle_active_continuous_task_observer.cpp | 88 int32_t userId = -1; in ReportContinuousTaskEvent() local 96 OHOS::ErrCode ret = BundleActiveAccountHelper::GetUserId(uid, userId); in ReportContinuousTaskEvent() 97 if (ret == ERR_OK && userId != -1 && !bundleName.empty()) { in ReportContinuousTaskEvent() 98 BundleActiveReportHandlerObject tmpHandlerObject(userId, ""); in ReportContinuousTaskEvent()
|
/foundation/communication/netmanager_ext/services/vpnmanager/include/ |
H A D | net_vpn_impl.h | 43 NetVpnImpl(sptr<VpnConfig> config, const std::string &pkg, int32_t userId, std::vector<int32_t> &activeUserIds); 97 void GenerateUidRangesByRefusedApps(int32_t userId, const std::set<int32_t> &uids, std::vector<int32_t> &beginUids, 99 std::set<int32_t> GetAppsUids(int32_t userId, const std::vector<std::string> &applications); 100 int32_t GenerateUidRanges(int32_t userId, std::vector<int32_t> &beginUids, std::vector<int32_t> &endUids);
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/ |
H A D | distributed_kv_data_manager_encrypt_test.cpp | 32 static UserId userId; member in DistributedKvDataManagerEncryptTest 58 UserId DistributedKvDataManagerEncryptTest::userId; member in DistributedKvDataManagerEncryptTest 77 userId.userId = "account0"; in SetUpTestCase()
|