/base/account/os_account/services/accountmgr/test/moduletest/os_account/ |
D | os_account_database_operator_test.cpp | 70 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);
|
D | os_account_manager_service_module_test.cpp | 419 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/ |
D | os_account_stub.cpp | 476 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 …]
|
D | os_account_interface.cpp | 364 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()
|
D | os_account_manager_service.cpp | 57 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()
|
D | inner_os_account_manager.cpp | 643 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/ |
D | mock_domain_auth_callback.cpp | 41 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/ |
D | os_account_event_proxy.cpp | 28 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()
|
D | os_account.cpp | 30 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/ |
D | os_account_info.h | 39 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/ |
D | iinner_os_account_manager.h | 113 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/ |
D | os_account_event_proxy.h | 29 void OnAccountsChanged(const int &localId) override;
|
/base/account/os_account/frameworks/domain_account/src/ |
D | domain_account_plugin_stub.cpp | 234 int32_t localId; in ProcOnAccountBound() local 235 if (!data.ReadInt32(localId)) { in ProcOnAccountBound() 244 ErrCode result = OnAccountBound(*info, localId, callback); in ProcOnAccountBound()
|
D | domain_account_plugin_service.cpp | 152 …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/ |
D | print_utils.cpp | 46 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/ |
D | print_utils.h | 26 static std::string GetGlobalId(const std::string& extensionId, const std::string& localId);
|
/base/account/os_account/frameworks/osaccount/native/src/ |
D | os_account_info.cpp | 62 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/ |
D | napi_distributed_account.h | 34 int32_t localId = -1; // invalid local id member
|
/base/account/os_account/interfaces/innerkits/domain_account/native/include/ |
D | domain_account_plugin.h | 71 virtual void OnAccountBound(const DomainAccountInfo &info, const int32_t localId,
|
/base/account/os_account/frameworks/ohosaccount/test/moduletests/account_mgr_test/ |
D | account_mgr_inner_sdk_func_test.cpp | 590 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/ |
D | idomain_account_plugin.h | 42 virtual ErrCode OnAccountBound(const DomainAccountInfo &info, const int32_t localId,
|
D | domain_account_plugin_service.h | 41 ErrCode OnAccountBound(const DomainAccountInfo &info, const int32_t localId,
|
/base/account/os_account/interfaces/kits/napi/distributedaccount/src/ |
D | napi_distributed_account.cpp | 86 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/ |
D | inner_domain_account_manager.h | 48 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/ |
D | mock_domain_plugin.h | 37 void OnAccountBound(const DomainAccountInfo &info, const int32_t localId,
|