Home
last modified time | relevance | path

Searched refs:localId (Results 1 – 25 of 41) sorted by relevance

12

/base/account/os_account/services/accountmgr/test/moduletest/os_account/
Dos_account_database_operator_test.cpp70 int localId = 1; // 1 is invalid test local id variable
71 info.SetLocalId(localId);
73 EXPECT_EQ(info.GetLocalId(), localId);
87 int localId = 300; // 300 is invalid test local id variable
88 info.SetLocalId(localId);
90 EXPECT_EQ(info.GetLocalId(), localId);
Dos_account_manager_service_module_test.cpp419 int localId = Constants::MAX_USER_ID + 1; variable
420 EXPECT_EQ(osAccountManagerService_->IsOsAccountActived(localId, isOsAccountActived),
471 int localId = Constants::START_USER_ID - 1; variable
472 EXPECT_EQ(osAccountManagerService_->SetOsAccountConstraints(localId, CONSTANTS_VECTOR, enable),
514 int localId = Constants::START_USER_ID - 1; variable
515 …EXPECT_EQ(osAccountManagerService_->IsOsAccountConstraintEnable(localId, CONSTANTS_STRING_WIFI, is…
517 …EXPECT_EQ(osAccountManagerService_->CheckOsAccountConstraintEnabled(localId, CONSTANTS_STRING_WIFI…
734 int localId = Constants::START_USER_ID - 1; variable
735 EXPECT_EQ(osAccountManagerService_->SetOsAccountName(localId, STRING_EMPTY),
836 int localId = Constants::START_USER_ID - 1; variable
[all …]
/base/account/os_account/services/accountmgr/src/osaccount/
Dos_account_stub.cpp476 int32_t localId; in ProcRemoveOsAccount() local
477 if (!data.ReadInt32(localId)) { in ProcRemoveOsAccount()
482 ErrCode result = RemoveOsAccount(localId); in ProcRemoveOsAccount()
492 int32_t localId; in ProcSetOsAccountName() local
493 if (!data.ReadInt32(localId)) { in ProcSetOsAccountName()
498 ErrCode result = SetOsAccountName(localId, localName); in ProcSetOsAccountName()
508 int32_t localId; in ProcSetOsAccountConstraints() local
509 if (!data.ReadInt32(localId)) { in ProcSetOsAccountConstraints()
520 ErrCode result = SetOsAccountConstraints(localId, constraints, enable); in ProcSetOsAccountConstraints()
530 int32_t localId; in ProcSetOsAccountProfilePhoto() local
[all …]
Dos_account_interface.cpp364 int localId = osAccountInfo.GetLocalId(); in SendToStorageAccountStart() local
366 int err = proxy->ActiveUserKey(localId, emptyData, emptyData); in SendToStorageAccountStart()
370 err = proxy->PrepareStartUser(localId); in SendToStorageAccountStart()
414 int localId = osAccountInfo.GetLocalId(); in SendToStorageAccountStop() local
415 int err = proxy->StopUser(localId); in SendToStorageAccountStop()
420 err = proxy->InactiveUserKey(localId); in SendToStorageAccountStop()
Dos_account_manager_service.cpp57 ErrCode CheckInvalidLocalId(int localId) in CheckInvalidLocalId() argument
59 if (localId > Constants::MAX_USER_ID) { in CheckInvalidLocalId()
60 ACCOUNT_LOGE("id %{public}d is out of range", localId); in CheckInvalidLocalId()
66 ErrCode CheckLocalId(int localId) in CheckLocalId() argument
68 if (localId < Constants::START_USER_ID) { in CheckLocalId()
69 ACCOUNT_LOGE("id %{public}d is system reserved", localId); in CheckLocalId()
72 return CheckInvalidLocalId(localId); in CheckLocalId()
697 std::string localId = std::to_string(osAccountInfo.GetLocalId()); in DumpStateByAccounts() local
698 state.emplace_back("ID: " + localId); in DumpStateByAccounts()
Dinner_os_account_manager.cpp643 constraintSourceTypeInfo.localId = -1; in QueryOsAccountConstraintSourceTypes()
654 constraintSourceTypeInfo.localId = -1; in QueryOsAccountConstraintSourceTypes()
786 …Code IInnerOsAccountManager::DealWithDeviceOwnerId(const bool isDeviceOwner, const int32_t localId) in DealWithDeviceOwnerId() argument
789 if (isDeviceOwner && localId != deviceOwnerId_) { in DealWithDeviceOwnerId()
791 deviceOwnerId_ = localId; in DealWithDeviceOwnerId()
792 return osAccountControl_->UpdateDeviceOwnerId(localId); in DealWithDeviceOwnerId()
794 if (isDeviceOwner == false && localId == deviceOwnerId_) { in DealWithDeviceOwnerId()
1425 void IInnerOsAccountManager::AddLocalIdToOperating(int32_t localId) in AddLocalIdToOperating() argument
1428 operatingId_.push_back(localId); in AddLocalIdToOperating()
1431 void IInnerOsAccountManager::RemoveLocalIdToOperating(int32_t localId) in RemoveLocalIdToOperating() argument
[all …]
/base/account/os_account/frameworks/domain_account/test/moduletest/src/
Dmock_domain_auth_callback.cpp41 int32_t localId = accountInfo_.GetLocalId(); in OnResult() local
42 if (localId > START_USER_ID) { in OnResult()
43 ErrCode errCode = OsAccountManager::RemoveOsAccount(localId); in OnResult()
49 ACCOUNT_LOGI("removeOsAccount successfully, localId: %{public}d", localId); in OnResult()
/base/account/os_account/frameworks/osaccount/core/src/
Dos_account_event_proxy.cpp28 void OsAccountEventProxy::OnAccountsChanged(const int &localId) in OnAccountsChanged() argument
38 if (!data.WriteInt32(localId)) { in OnAccountsChanged()
39 ACCOUNT_LOGE("failed to write WriteInt32 localId %{public}d.", localId); in OnAccountsChanged()
46 result, localId); in OnAccountsChanged()
Dos_account.cpp30 static ErrCode CheckInvalidLocalId(int localId) in CheckInvalidLocalId() argument
32 if (localId > Constants::MAX_USER_ID) { in CheckInvalidLocalId()
33 ACCOUNT_LOGE("id %{public}d is out of range", localId); in CheckInvalidLocalId()
39 static ErrCode CheckLocalId(int localId) in CheckLocalId() argument
41 if (localId < Constants::START_USER_ID) { in CheckLocalId()
42 ACCOUNT_LOGE("id %{public}d is system reserved", localId); in CheckLocalId()
45 return CheckInvalidLocalId(localId); in CheckLocalId()
/base/account/os_account/interfaces/innerkits/osaccount/native/include/
Dos_account_info.h39 int32_t localId; member
47 … OsAccountInfo(int localId, const std::string localName, OsAccountType type, int64_t serialNumber);
51 void SetLocalId(int localId);
/base/account/os_account/services/accountmgr/include/osaccount/
Diinner_os_account_manager.h113 void AddLocalIdToOperating(int32_t localId);
114 void RemoveLocalIdToOperating(int32_t localId);
115 bool IsLocalIdInOperating(int32_t localId);
117 ErrCode DealWithDeviceOwnerId(const bool isDeviceOwner, const int32_t localId);
/base/account/os_account/frameworks/osaccount/core/include/
Dos_account_event_proxy.h29 void OnAccountsChanged(const int &localId) override;
/base/account/os_account/frameworks/domain_account/src/
Ddomain_account_plugin_stub.cpp234 int32_t localId; in ProcOnAccountBound() local
235 if (!data.ReadInt32(localId)) { in ProcOnAccountBound()
244 ErrCode result = OnAccountBound(*info, localId, callback); in ProcOnAccountBound()
Ddomain_account_plugin_service.cpp152 …de DomainAccountPluginService::OnAccountBound(const DomainAccountInfo &info, const int32_t localId, in OnAccountBound() argument
161 innerPlugin_->OnAccountBound(info, localId, callbackPtr); in OnAccountBound()
/base/print/print_fwk/frameworks/innerkitsimpl/src/
Dprint_utils.cpp46 std::string PrintUtils::GetGlobalId(const std::string& extensionId, const std::string& localId) in GetGlobalId() argument
48 return extensionId + GLOBAL_ID_DELIMITER + localId; in GetGlobalId()
/base/print/print_fwk/frameworks/innerkitsimpl/include/
Dprint_utils.h26 static std::string GetGlobalId(const std::string& extensionId, const std::string& localId);
/base/account/os_account/frameworks/osaccount/native/src/
Dos_account_info.cpp62 OsAccountInfo::OsAccountInfo(int localId, const std::string localName, OsAccountType type, int64_t … in OsAccountInfo() argument
63 : localId_(localId), localName_(localName), type_(type), serialNumber_(serialNumber) in OsAccountInfo()
82 void OsAccountInfo::SetLocalId(int localId) in SetLocalId() argument
84 localId_ = localId; in SetLocalId()
/base/account/os_account/interfaces/kits/napi/distributedaccount/include/
Dnapi_distributed_account.h34 int32_t localId = -1; // invalid local id member
/base/account/os_account/interfaces/innerkits/domain_account/native/include/
Ddomain_account_plugin.h71 virtual void OnAccountBound(const DomainAccountInfo &info, const int32_t localId,
/base/account/os_account/frameworks/ohosaccount/test/moduletests/account_mgr_test/
Daccount_mgr_inner_sdk_func_test.cpp590 int32_t localId = osAccountInfoOne.GetLocalId(); variable
600 …EXPECT_EQ(OhosAccountKits::GetInstance().SetOhosAccountInfoByUserId(localId, accountInfo, g_eventL…
601 …EXPECT_EQ(OhosAccountKits::GetInstance().GetOhosAccountInfoByUserId(localId, accountInfoget), ERR_…
609 …OhosAccountKits::GetInstance().SetOhosAccountInfoByUserId(localId, accountInfo, g_eventTokenInvali…
610 …EXPECT_EQ(OhosAccountKits::GetInstance().GetOhosAccountInfoByUserId(localId, accountInfoget), ERR_…
618 …EXPECT_EQ(OhosAccountKits::GetInstance().SetOhosAccountInfoByUserId(localId, accountInfo, g_eventL…
619 …EXPECT_EQ(OhosAccountKits::GetInstance().GetOhosAccountInfoByUserId(localId, accountInfoget), ERR_…
628 …EXPECT_EQ(OhosAccountKits::GetInstance().SetOhosAccountInfoByUserId(localId, accountInfo, g_eventL…
629 …EXPECT_EQ(OhosAccountKits::GetInstance().GetOhosAccountInfoByUserId(localId, accountInfoget), ERR_…
634 EXPECT_EQ(OsAccountManager::RemoveOsAccount(localId), ERR_OK);
/base/account/os_account/frameworks/domain_account/include/
Didomain_account_plugin.h42 virtual ErrCode OnAccountBound(const DomainAccountInfo &info, const int32_t localId,
Ddomain_account_plugin_service.h41 ErrCode OnAccountBound(const DomainAccountInfo &info, const int32_t localId,
/base/account/os_account/interfaces/kits/napi/distributedaccount/src/
Dnapi_distributed_account.cpp86 if (!GetIntProperty(env, argv[PARAM_ZERO], asyncContext->localId)) { in ParseQueryOhosAccountInfoAsyncContext()
103 if (!GetIntProperty(env, argv[PARAM_ZERO], asyncContext->localId)) { in ParseQueryOhosAccountInfoAsyncContext()
185 if (!GetIntProperty(env, argv[PARAM_ZERO], asyncContext->localId)) { in ParseUpdateOhosAccountInfoWithTwoArgs()
222 if (!GetIntProperty(env, argv[PARAM_ZERO], asyncContext->localId)) { in ParseUpdateOhosAccountInfoAsyncContext()
367 asyncContext->localId, asyncContext->ohosAccountInfo); in QueryOhosAccountInfoExecuteCB()
427 context->localId, context->ohosAccountInfo, context->event); in UpdateOhosAccountInfoExecuteCB()
/base/account/os_account/services/accountmgr/include/domain_account/
Dinner_domain_account_manager.h48 ErrCode OnAccountBound(const DomainAccountInfo &info, const int32_t localId,
78 const int32_t localId, const sptr<IDomainAccountCallback> &callback);
/base/account/os_account/frameworks/domain_account/test/moduletest/include/
Dmock_domain_plugin.h37 void OnAccountBound(const DomainAccountInfo &info, const int32_t localId,

12