/base/account/os_account/services/accountmgr/test/mock/common/ |
H A D | ability_manager_adapter_mock.cpp | 51 ErrCode AbilityManagerAdapter::StartUser(int accountId, in StartUser() argument 54 auto task = [accountId, callback] { callback->OnStartUserDone(accountId, 0); }; in StartUser() 61 ErrCode AbilityManagerAdapter::StopUser(int accountId, const sptr<AAFwk::IUserCallback> &callback) in StopUser() argument 63 auto task = [accountId, callback] { callback->OnStopUserDone(accountId, 0); }; in StopUser() 70 ErrCode AbilityManagerAdapter::LogoutUser(int accountId) in LogoutUser() argument 75 bool AbilityManagerAdapter::IsAllAppDied(int32_t accountId) in IsAllAppDied() argument
|
H A D | ability_manager_adapter_mock.h | 65 * @param accountId accountId. 69 ErrCode StartUser(int32_t accountId, const sptr<IUserCallback> &callback, bool isAppRecovery = false); 73 * @param accountId accountId. 78 ErrCode StopUser(int32_t accountId, const sptr<IUserCallback> &callback); 82 * @param accountId accountId. 86 ErrCode LogoutUser(int32_t accountId); 90 * @param accountId accountI [all...] |
H A D | ability_manager_adapter.h | 65 * @param accountId accountId. 69 ErrCode StartUser(int32_t accountId, const sptr<IUserCallback> &callback, bool isAppRecovery = false); 73 * @param accountId accountId. 78 ErrCode StopUser(int32_t accountId, const sptr<IUserCallback> &callback); 82 * @param accountId accountId. 86 ErrCode LogoutUser(int32_t accountId); 90 * @param accountId accountI [all...] |
/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/ |
H A D | account_adapt_test.cpp | 52 DlpBlob accountId; in HWTEST_F() local 55 accountId.data = &data; in HWTEST_F() 56 accountId.size = 0; in HWTEST_F() 58 // accountId != nullptr in HWTEST_F() 59 bool ret = IsAccountLogIn(osAccountId, accountType, &accountId); in HWTEST_F() 63 ret = IsAccountLogIn(osAccountId, accountType, &accountId); in HWTEST_F() 67 ret = IsAccountLogIn(osAccountId, accountType, &accountId); in HWTEST_F()
|
/base/customization/enterprise_device_management/services/edm_plugin/src/utils/ |
H A D | watermark_application_observer.cpp | 25 int32_t accountId = -1; in OnProcessCreated() local 26 ErrCode ret = AccountSA::OsAccountManager::GetOsAccountLocalIdFromUid(processData.uid, accountId); in OnProcessCreated() 31 listener_.SetProcessWatermarkOnAppStart(processData.bundleName, accountId, processData.pid, true); in OnProcessCreated()
|
/base/telephony/core_service/utils/vcard/include/ |
H A D | vcard_manager.h | 28 int32_t Import(const std::string &path, int32_t accountId); 30 const std::string &path, std::shared_ptr<DataShare::DataShareHelper> dataShareHelper, int32_t accountId); 65 void InsertContactDbAbility(int32_t accountId, int32_t &errorCode); 66 int32_t InsertRawContact(int32_t accountId); 67 bool IsAccountIdExit(int32_t accountId); 69 bool IsContactsIdExit(int32_t accountId); 74 void BatchInsertContactDbAbility(int32_t accountId, int32_t &errorCode); 75 void BatchInsertRawContact(int32_t accountId, uint32_t size, std::vector<int32_t> &rawIds, int32_t &errorCode);
|
/base/telephony/call_manager/services/call/src/ |
H A D | call_incoming_filter_manager.cpp | 36 callInfo.slotId = info.accountId; in PackCellularCallInfo() 37 callInfo.accountId = info.accountId; in PackCellularCallInfo() 53 info.phoneNum, info.accountId, isEcc); in DoIncomingFilter()
|
/base/account/os_account/services/accountmgr/src/account_iam/ |
H A D | account_iam_service.cpp | 44 static bool IsRestrictedAccountId(int32_t accountId) in IsRestrictedAccountId() argument 46 return (accountId == 0); in IsRestrictedAccountId() 49 static int32_t NormalizeAccountId(int32_t &accountId) in NormalizeAccountId() argument 51 if (accountId < -1) { in NormalizeAccountId() 52 ACCOUNT_LOGE("The id = %{public}d is invalid", accountId); in NormalizeAccountId() 54 } else if (accountId == -1) { in NormalizeAccountId() 55 if (!GetCurrentUserId(accountId)) { in NormalizeAccountId() 60 IInnerOsAccountManager::GetInstance().IsOsAccountExists(accountId, isOsAccountExits); in NormalizeAccountId() 239 int32_t accountId, AuthType authType, const sptr<IGetEnrolledIdCallback> &callback) in GetEnrolledId() 242 int32_t ret = NormalizeAccountId(accountId); in GetEnrolledId() 238 GetEnrolledId( int32_t accountId, AuthType authType, const sptr<IGetEnrolledIdCallback> &callback) GetEnrolledId() argument [all...] |
/base/inputmethod/imf/frameworks/kits/extension/src/ |
H A D | inputmethod_extension_context.cpp | 60 ErrCode InputMethodExtensionContext::StartAbilityWithAccount(const AAFwk::Want &want, int accountId) const in StartAbilityWithAccount() 62 IMSA_HILOGI("%{public}s start, accountId: %{public}d.", __func__, accountId); in StartAbilityWithAccount() 64 AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, token_, ILLEGAL_REQUEST_CODE, accountId); in StartAbilityWithAccount() 72 ErrCode InputMethodExtensionContext::StartAbilityWithAccount(const AAFwk::Want &want, int accountId, in StartAbilityWithAccount() argument 77 ILLEGAL_REQUEST_CODE, accountId); in StartAbilityWithAccount() 85 bool InputMethodExtensionContext::ConnectAbilityWithAccount(const AAFwk::Want &want, int accountId, in ConnectAbilityWithAccount() argument 89 ErrCode ret = ConnectionManager::GetInstance().ConnectAbilityWithAccount(token_, want, accountId, connectCallback); in ConnectAbilityWithAccount()
|
/base/print/print_fwk/frameworks/kits/extension/src/ |
H A D | print_extension_context.cpp | 59 ErrCode PrintExtensionContext::StartAbilityWithAccount(const AAFwk::Want &want, int accountId) const in StartAbilityWithAccount() 62 PRINT_HILOGD("%{public}d accountId:", accountId); in StartAbilityWithAccount() 64 AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, token_, ILLEGAL_REQUEST_CODE, accountId); in StartAbilityWithAccount() 73 const AAFwk::Want &want, int accountId, const AAFwk::StartOptions &startOptions) const in StartAbilityWithAccount() 77 want, startOptions, token_, ILLEGAL_REQUEST_CODE, accountId); in StartAbilityWithAccount() 86 const AAFwk::Want &want, int accountId, const sptr<AbilityConnectCallback> &connectCallback) const in ConnectAbilityWithAccount() 89 ErrCode ret = ConnectionManager::GetInstance().ConnectAbilityWithAccount(token_, want, accountId, connectCallback); in ConnectAbilityWithAccount() 72 StartAbilityWithAccount( const AAFwk::Want &want, int accountId, const AAFwk::StartOptions &startOptions) const StartAbilityWithAccount() argument 85 ConnectAbilityWithAccount( const AAFwk::Want &want, int accountId, const sptr<AbilityConnectCallback> &connectCallback) const ConnectAbilityWithAccount() argument
|
/base/account/os_account/services/accountmgr/include/ability_manager_adapter/ |
H A D | ability_manager_adapter.h | 65 * @param accountId accountId.
70 ErrCode StartUser(int32_t accountId, const sptr<IUserCallback> &callback, bool isAppRecovery = false);
74 * @param accountId accountId.
79 ErrCode StopUser(int32_t accountId, const sptr<IUserCallback> &callback);
83 * @param accountId accountId.
87 ErrCode LogoutUser(int32_t accountId);
91 * @param accountId accountI [all...] |
/base/theme/wallpaper_mgr/frameworks/kits/extension/src/ |
H A D | wallpaper_extension_context.cpp | 58 ErrCode WallpaperExtensionContext::StartAbilityWithAccount(const AAFwk::Want &want, int32_t accountId) const in StartAbilityWithAccount() 62 AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, token_, ILLEGAL_REQUEST_CODE, accountId); in StartAbilityWithAccount() 71 const AAFwk::Want &want, int32_t accountId, const AAFwk::StartOptions &startOptions) const in StartAbilityWithAccount() 75 want, startOptions, token_, ILLEGAL_REQUEST_CODE, accountId); in StartAbilityWithAccount() 84 const AAFwk::Want &want, int32_t accountId, const sptr<AbilityConnectCallback> &connectCallback) const in ConnectAbilityWithAccount() 87 ErrCode ret = ConnectionManager::GetInstance().ConnectAbilityWithAccount(token_, want, accountId, connectCallback); in ConnectAbilityWithAccount() 70 StartAbilityWithAccount( const AAFwk::Want &want, int32_t accountId, const AAFwk::StartOptions &startOptions) const StartAbilityWithAccount() argument 83 ConnectAbilityWithAccount( const AAFwk::Want &want, int32_t accountId, const sptr<AbilityConnectCallback> &connectCallback) const ConnectAbilityWithAccount() argument
|
/base/telephony/core_service/utils/vcard/src/ |
H A D | vcard_manager.cpp | 72 const std::string &path, std::shared_ptr<DataShare::DataShareHelper> dataShareHelper, int32_t accountId) in ImportLock() 80 int32_t errorCode = Import(path, accountId); in ImportLock() 86 int32_t VCardManager::Import(const std::string &path, int32_t accountId) in Import() argument 94 BatchInsertContactDbAbility(accountId, errorCode); in Import() 117 void VCardManager::InsertContactDbAbility(int32_t accountId, int32_t &errorCode) in InsertContactDbAbility() argument 128 auto rawId = InsertRawContact(accountId); in InsertContactDbAbility() 141 void VCardManager::BatchInsertContactDbAbility(int32_t accountId, int32_t &errorCode) in BatchInsertContactDbAbility() argument 149 InsertContactDbAbility(accountId, errorCode); in BatchInsertContactDbAbility() 163 BatchInsertRawContact(accountId, list.size(), rawIds, errorCode); in BatchInsertContactDbAbility() 177 int32_t accountId, uint32_ in BatchInsertRawContact() 71 ImportLock( const std::string &path, std::shared_ptr<DataShare::DataShareHelper> dataShareHelper, int32_t accountId) ImportLock() argument 176 BatchInsertRawContact( int32_t accountId, uint32_t size, std::vector<int32_t> &rawIds, int32_t &errorCode) BatchInsertRawContact() argument 239 InsertRawContact(int32_t accountId) InsertRawContact() argument 249 IsContactsIdExit(int32_t accountId) IsContactsIdExit() argument 281 IsAccountIdExit(int32_t accountId) IsAccountIdExit() argument [all...] |
/base/customization/enterprise_device_management/services/edm_plugin/src/ |
H A D | fingerprint_auth_plugin.cpp | 49 int32_t accountId = data.ReadInt32(); in OnHandlePolicy() local 50 ret = HandleFingerprintForAccountPolicy(disallow, accountId, policy); in OnHandlePolicy() 86 int32_t accountId, FingerprintPolicy &policy) in HandleFingerprintForAccountPolicy() 92 policy.accountIds.insert(accountId); in HandleFingerprintForAccountPolicy() 94 auto it = policy.accountIds.find(accountId); in HandleFingerprintForAccountPolicy() 126 int32_t accountId = data.ReadInt32(); in OnGetPolicy() local 127 auto it = policy.accountIds.find(accountId); in OnGetPolicy() 85 HandleFingerprintForAccountPolicy(bool disallow, int32_t accountId, FingerprintPolicy &policy) HandleFingerprintForAccountPolicy() argument
|
H A D | set_watermark_image_plugin.cpp | 89 int32_t accountId = data.ReadInt32(); in CancelWatermarkImage() local 90 if (bundleName.empty() || accountId <= 0) { in CancelWatermarkImage() 98 auto key = std::make_pair(bundleName, accountId); in CancelWatermarkImage() 102 SetProcessWatermark(bundleName, it->second.fileName, accountId, false); in CancelWatermarkImage() 158 int32_t accountId, int32_t pid, bool enabled) in SetProcessWatermarkOnAppStart() 160 if (bundleName.empty() || accountId <= 0 || pid <= 0) { in SetProcessWatermarkOnAppStart() 171 std::string fileName = currentData[std::pair<std::string, int32_t>{bundleName, accountId}].fileName; in SetProcessWatermarkOnAppStart() 188 auto key = std::make_pair(param.bundleName, param.accountId); in SetSingleWatermarkImage() 216 SetProcessWatermark(param.bundleName, oldFileName, param.accountId, false); in SetSingleWatermarkImage() 218 SetProcessWatermark(param.bundleName, fileName, param.accountId, tru in SetSingleWatermarkImage() 157 SetProcessWatermarkOnAppStart(const std::string &bundleName, int32_t accountId, int32_t pid, bool enabled) SetProcessWatermarkOnAppStart() argument 232 int32_t accountId = data.ReadInt32(); GetWatermarkParam() local 259 SetProcessWatermark(const std::string &bundleName, const std::string &fileName, int32_t accountId, bool enabled) SetProcessWatermark() argument [all...] |
/base/customization/enterprise_device_management/framework/extension/src/ |
H A D | enterprise_admin_stub_impl.cpp | 41 void EnterpriseAdminStubImpl::OnBundleAdded(const std::string &bundleName, int32_t accountId) in OnBundleAdded() argument 46 extension->OnBundleAdded(bundleName, accountId); in OnBundleAdded() 51 void EnterpriseAdminStubImpl::OnBundleRemoved(const std::string &bundleName, int32_t accountId) in OnBundleRemoved() argument 56 extension->OnBundleRemoved(bundleName, accountId); in OnBundleRemoved()
|
/base/customization/enterprise_device_management/interfaces/inner_api/restrictions/include/ |
H A D | restrictions_proxy.h | 34 std::string permissionTag, int32_t accountId); 36 std::string permissionTag, int32_t accountId); 39 std::vector<std::string> &bundles, int32_t accountId, bool isAdd); 40 int32_t GetDisallowedListForAccount(AppExecFwk::ElementName &admin, std::string feature, int32_t accountId,
|
/base/account/os_account/services/accountmgr/src/osaccount/ |
H A D | os_account_user_callback.cpp | 30 auto accountId = data.ReadInt32(); in OnStopUserDoneInner() local 32 OnStopUserDone(accountId, errCode); in OnStopUserDoneInner() 38 auto accountId = data.ReadInt32(); in OnStartUserDoneInner() local 40 OnStartUserDone(accountId, errCode); in OnStartUserDoneInner()
|
/base/customization/enterprise_device_management/services/edm/src/connection/ |
H A D | enterprise_admin_proxy.cpp | 43 void EnterpriseAdminProxy::OnBundleAdded(const std::string &bundleName, int32_t accountId) in OnBundleAdded() argument 51 data.WriteInt32(accountId); in OnBundleAdded() 56 void EnterpriseAdminProxy::OnBundleRemoved(const std::string &bundleName, int32_t accountId) in OnBundleRemoved() argument 64 data.WriteInt32(accountId); in OnBundleRemoved()
|
/base/print/print_fwk/test/unittest/extension_test/ |
H A D | print_extension_context_test.cpp | 66 int accountId = 0; in HWTEST_F() local 68 printExtensionContext.StartAbilityWithAccount(want, accountId); in HWTEST_F() 74 int accountId = 0; in HWTEST_F() local 77 printExtensionContext.StartAbilityWithAccount(want, accountId, startOptions); in HWTEST_F()
|
/base/telephony/call_manager/services/call_voice_assistant/src/ |
H A D | call_voice_assistant_manager.cpp | 412 fun("sim", std::to_string(nowInfo->accountId));
in GetSendString() 453 int32_t accountId = callObjectPtr->GetAccountId();
in CallStateUpdated() local 457 info->accountId = accountId;
in CallStateUpdated() 463 CallStatusActive(callId, accountId);
in CallStateUpdated() 466 CallStatusDialing(callId, accountId);
in CallStateUpdated() 469 CallStatusIncoming(callId, accountId);
in CallStateUpdated() 472 CallStatusDisconnected(callId, accountId);
in CallStateUpdated() 485 void CallVoiceAssistantManager::CallStatusIncoming(const int32_t& callId, const int32_t& accountId)
in CallStatusIncoming() argument 487 if (nowCallId != callId && nowAccountId != accountId) {
in CallStatusIncoming() 520 CallStatusDialing(const int32_t& callId, const int32_t& accountId) CallStatusDialing() argument 539 CallStatusActive(const int32_t& callId, const int32_t& accountId) CallStatusActive() argument 548 CallStatusDisconnected(const int32_t& callId, const int32_t& accountId) CallStatusDisconnected() argument [all...] |
/base/inputmethod/imf/frameworks/kits/extension/include/ |
H A D | inputmethod_extension_context.h | 77 * @param accountId caller user. 81 ErrCode StartAbilityWithAccount(const AAFwk::Want &want, int accountId) const; 83 ErrCode StartAbilityWithAccount(const AAFwk::Want &want, int accountId, 93 * @param accountId caller user. 100 bool ConnectAbilityWithAccount(const AAFwk::Want &want, int accountId,
|
/base/print/print_fwk/frameworks/kits/extension/include/ |
H A D | print_extension_context.h | 68 * @param accountId caller user. 72 ErrCode StartAbilityWithAccount(const AAFwk::Want &want, int accountId) const; 75 const AAFwk::Want &want, int accountId, const AAFwk::StartOptions &startOptions) const; 82 * @param accountId caller user. 89 const AAFwk::Want &want, int accountId, const sptr<AbilityConnectCallback> &connectCallback) const;
|
/base/theme/wallpaper_mgr/frameworks/kits/extension/include/ |
H A D | wallpaper_extension_context.h | 68 * @param accountId caller user. 72 ErrCode StartAbilityWithAccount(const AAFwk::Want &want, int32_t accountId) const; 75 const AAFwk::Want &want, int32_t accountId, const AAFwk::StartOptions &startOptions) const; 82 * @param accountId caller user. 89 const AAFwk::Want &want, int32_t accountId, const sptr<AbilityConnectCallback> &connectCallback) const;
|
/base/customization/enterprise_device_management/services/edm/include/connection/ |
H A D | enterprise_bundle_connection.h | 26 const std::string &bundleName, const int32_t accountId) : IEnterpriseConnection(want, code, userId),
in EnterpriseBundleConnection() 27 bundleName_(bundleName), accountId_(accountId) {}
in EnterpriseBundleConnection() 25 EnterpriseBundleConnection(const AAFwk::Want &want, uint32_t code, uint32_t userId, const std::string &bundleName, const int32_t accountId) EnterpriseBundleConnection() argument
|