Home
last modified time | relevance | path

Searched refs:isDeviceOwner (Results 1 - 18 of 18) sorted by relevance

/base/account/os_account/test/fuzztest/osaccount/setglobalosaccountconstraints_fuzzer/
H A Dsetglobalosaccountconstraints_fuzzer.cpp43 bool isDeviceOwner = ((fuzzData.GetData<int32_t>() % CONSTANTS_NUMBER_THREE) == 0); in SetGlobalOsAccountConstraintsFuzzTest() local
45 CONSTANTS_VECTOR, enable, ENFORCER_ID, isDeviceOwner); in SetGlobalOsAccountConstraintsFuzzTest()
/base/account/os_account/test/fuzztest/osaccount/setspecificosaccountconstraints_fuzzer/
H A Dsetspecificosaccountconstraints_fuzzer.cpp44 bool isDeviceOwner = ((fuzzData.GetData<int32_t>() % CONSTANTS_NUMBER_THREE) == 0); in SetSpecificOsAccountConstraintsFuzzTest() local
46 CONSTANTS_VECTOR, enable, TARGET_ID, ENFORCER_ID, isDeviceOwner); in SetSpecificOsAccountConstraintsFuzzTest()
/base/account/os_account/test/fuzztest/osaccount_stub/setspecificosaccountconstraintsstub_fuzzer/
H A Dsetspecificosaccountconstraintsstub_fuzzer.cpp58 bool isDeviceOwner = ((fuzzData.GetData<size_t>() % CONSTANTS_NUMBER_THREE) == 0); in SetSpecificOsAccountConstraintsStubFuzzTest() local
63 if (!datas.WriteBool(isDeviceOwner)) { in SetSpecificOsAccountConstraintsStubFuzzTest()
/base/account/os_account/test/fuzztest/osaccount_stub/setglobalosaccountconstraintsstub_fuzzer/
H A Dsetglobalosaccountconstraintsstub_fuzzer.cpp55 bool isDeviceOwner = ((fuzzData.GetData<size_t>() % CONSTANTS_NUMBER_THREE) == 0); in SetGlobalOsAccountConstraintsStubFuzzTest() local
60 if (!datas.WriteBool(isDeviceOwner)) { in SetGlobalOsAccountConstraintsStubFuzzTest()
/base/account/os_account/interfaces/innerkits/osaccount/native/include/
H A Dos_account_manager.h521 * @param isDeviceOwner - Indicates whether the enforcer is device owner.
525 const bool isEnabled, const int32_t enforcerId = 0, const bool isDeviceOwner = false);
533 * @param isDeviceOwner - Indicates whether the enforcer is device owner.
537 const bool enable, const int32_t targetId, const int32_t enforcerId, const bool isDeviceOwner);
/base/account/os_account/frameworks/osaccount/core/include/
H A Dos_account.h87 const bool enable, const int32_t enforcerId, const bool isDeviceOwner);
89 const bool enable, const int32_t targetId, const int32_t enforcerId, const bool isDeviceOwner);
H A Dios_account.h98 const bool enable, const int32_t enforcerId, const bool isDeviceOwner) = 0;
100 const bool enable, const int32_t targetId, const int32_t enforcerId, const bool isDeviceOwner) = 0;
H A Dos_account_proxy.h92 const bool enable, const int32_t enforcerId, const bool isDeviceOwner) override;
94 const bool enable, const int32_t targetId, const int32_t enforcerId, const bool isDeviceOwner) override;
/base/account/os_account/services/accountmgr/include/osaccount/
H A Diinner_os_account.h92 const bool enable, const int32_t enforcerId, const bool isDeviceOwner) = 0;
94 const bool enable, const int32_t targetId, const int32_t enforcerId, const bool isDeviceOwner) = 0;
H A Diinner_os_account_manager.h99 const bool enable, const int32_t enforcerId, const bool isDeviceOwner) override;
101 const bool enable, const int32_t targetId, const int32_t enforcerId, const bool isDeviceOwner) override;
152 ErrCode DealWithDeviceOwnerId(const bool isDeviceOwner, const int32_t localId);
H A Dos_account_manager_service.h117 const bool enable, const int32_t enforcerId, const bool isDeviceOwner) override;
119 const bool enable, const int32_t targetId, const int32_t enforcerId, const bool isDeviceOwner) override;
/base/account/os_account/frameworks/osaccount/native/src/
H A Dos_account_manager.cpp313 const bool enable, const int32_t enforcerId, const bool isDeviceOwner) in SetGlobalOsAccountConstraints()
316 SetGlobalOsAccountConstraints(constraints, enable, enforcerId, isDeviceOwner); in SetGlobalOsAccountConstraints()
320 const bool enable, const int32_t targetId, const int32_t enforcerId, const bool isDeviceOwner) in SetSpecificOsAccountConstraints()
323 SetSpecificOsAccountConstraints(constraints, enable, targetId, enforcerId, isDeviceOwner); in SetSpecificOsAccountConstraints()
312 SetGlobalOsAccountConstraints(const std::vector<std::string> &constraints, const bool enable, const int32_t enforcerId, const bool isDeviceOwner) SetGlobalOsAccountConstraints() argument
319 SetSpecificOsAccountConstraints(const std::vector<std::string> &constraints, const bool enable, const int32_t targetId, const int32_t enforcerId, const bool isDeviceOwner) SetSpecificOsAccountConstraints() argument
/base/account/os_account/frameworks/osaccount/core/src/
H A Dos_account.cpp838 const bool enable, const int32_t enforcerId, const bool isDeviceOwner) in SetGlobalOsAccountConstraints()
845 return proxy->SetGlobalOsAccountConstraints(constraints, enable, enforcerId, isDeviceOwner); in SetGlobalOsAccountConstraints()
849 const bool enable, const int32_t targetId, const int32_t enforcerId, const bool isDeviceOwner) in SetSpecificOsAccountConstraints()
856 return proxy->SetSpecificOsAccountConstraints(constraints, enable, targetId, enforcerId, isDeviceOwner); in SetSpecificOsAccountConstraints()
837 SetGlobalOsAccountConstraints(const std::vector<std::string> &constraints, const bool enable, const int32_t enforcerId, const bool isDeviceOwner) SetGlobalOsAccountConstraints() argument
848 SetSpecificOsAccountConstraints(const std::vector<std::string> &constraints, const bool enable, const int32_t targetId, const int32_t enforcerId, const bool isDeviceOwner) SetSpecificOsAccountConstraints() argument
H A Dos_account_proxy.cpp1307 const bool enable, const int32_t enforcerId, const bool isDeviceOwner) in SetGlobalOsAccountConstraints()
1331 if (!data.WriteBool(isDeviceOwner)) { in SetGlobalOsAccountConstraints()
1332 ACCOUNT_LOGE("failed to write bool for isDeviceOwner"); in SetGlobalOsAccountConstraints()
1349 const bool enable, const int32_t targetId, const int32_t enforcerId, const bool isDeviceOwner) in SetSpecificOsAccountConstraints()
1378 if (!data.WriteBool(isDeviceOwner)) { in SetSpecificOsAccountConstraints()
1379 ACCOUNT_LOGE("failed to write bool for isDeviceOwner"); in SetSpecificOsAccountConstraints()
1306 SetGlobalOsAccountConstraints(const std::vector<std::string> &constraints, const bool enable, const int32_t enforcerId, const bool isDeviceOwner) SetGlobalOsAccountConstraints() argument
1348 SetSpecificOsAccountConstraints(const std::vector<std::string> &constraints, const bool enable, const int32_t targetId, const int32_t enforcerId, const bool isDeviceOwner) SetSpecificOsAccountConstraints() argument
/base/account/os_account/services/accountmgr/src/osaccount/
H A Dos_account_manager_service.cpp982 const bool enable, const int32_t enforcerId, const bool isDeviceOwner) in SetGlobalOsAccountConstraints()
990 return innerManager_.SetGlobalOsAccountConstraints(constraints, enable, enforcerId, isDeviceOwner); in SetGlobalOsAccountConstraints()
994 const bool enable, const int32_t targetId, const int32_t enforcerId, const bool isDeviceOwner) in SetSpecificOsAccountConstraints()
1008 return innerManager_.SetSpecificOsAccountConstraints(constraints, enable, targetId, enforcerId, isDeviceOwner); in SetSpecificOsAccountConstraints()
981 SetGlobalOsAccountConstraints(const std::vector<std::string> &constraints, const bool enable, const int32_t enforcerId, const bool isDeviceOwner) SetGlobalOsAccountConstraints() argument
993 SetSpecificOsAccountConstraints(const std::vector<std::string> &constraints, const bool enable, const int32_t targetId, const int32_t enforcerId, const bool isDeviceOwner) SetSpecificOsAccountConstraints() argument
H A Dinner_os_account_manager.cpp1233 const bool enable, const int32_t enforcerId, const bool isDeviceOwner) in RetryToGetAccount()
1255 errCode = DealWithDeviceOwnerId(isDeviceOwner, enforcerId); in RetryToGetAccount()
1264 const bool enable, const int32_t targetId, const int32_t enforcerId, const bool isDeviceOwner) in RetryToGetAccount()
1294 errCode = DealWithDeviceOwnerId(isDeviceOwner, enforcerId); in RetryToGetAccount()
1318 ErrCode IInnerOsAccountManager::DealWithDeviceOwnerId(const bool isDeviceOwner, const int32_t localId) in RetryToGetAccount() argument
1321 if (isDeviceOwner && localId != deviceOwnerId_) { in RetryToGetAccount()
1326 if (isDeviceOwner == false && localId == deviceOwnerId_) { in RetryToGetAccount()
1232 SetGlobalOsAccountConstraints(const std::vector<std::string> &constraints, const bool enable, const int32_t enforcerId, const bool isDeviceOwner) RetryToGetAccount() argument
1263 SetSpecificOsAccountConstraints(const std::vector<std::string> &constraints, const bool enable, const int32_t targetId, const int32_t enforcerId, const bool isDeviceOwner) RetryToGetAccount() argument
H A Dos_account_stub.cpp1553 bool isDeviceOwner = data.ReadBool(); in ProcSetGlobalOsAccountConstraints() local
1554 ErrCode result = SetGlobalOsAccountConstraints(constraints, enable, enforcerId, isDeviceOwner); in ProcSetGlobalOsAccountConstraints()
1666 bool isDeviceOwner = data.ReadBool(); in ProcSetSpecificOsAccountConstraints() local
1667 ErrCode result = SetSpecificOsAccountConstraints(constraints, enable, targetId, enforcerId, isDeviceOwner); in ProcSetSpecificOsAccountConstraints()
/base/account/os_account/services/accountmgr/test/unittest/os_account/
H A Dos_account_inner_account_mgr_mock.cpp1641 bool isDeviceOwner = 0; in HWTEST_F() local
1647 ErrCode ret = innerMgrService_->SetGlobalOsAccountConstraints(constraints, enable, enforcerId, isDeviceOwner); in HWTEST_F()
1650 ret = innerMgrService_->SetSpecificOsAccountConstraints(constraints, enable, targetId, enforcerId, isDeviceOwner); in HWTEST_F()
1666 ret = innerMgrService_->SetGlobalOsAccountConstraints(constraints, enable, enforcerId, isDeviceOwner); in HWTEST_F()
1673 isDeviceOwner = 0; in HWTEST_F()
1675 ret = innerMgrService_->SetSpecificOsAccountConstraints(constraints, enable, targetId, enforcerId, isDeviceOwner); in HWTEST_F()

Completed in 28 milliseconds