/foundation/resourceschedule/device_standby/interfaces/innerkits/test/unittest/ |
H A D | mock_standby_client_unit_test.cpp | 55 std::vector<AllowInfo> allowInfoList; in HWTEST_F() local 57 EXPECT_NE(StandbyServiceClient::GetInstance().GetAllowList(AllowType::NETWORK, allowInfoList, 0), ERR_OK); in HWTEST_F() 58 EXPECT_NE(StandbyServiceClient::GetInstance().GetAllowList(0, allowInfoList, 0), ERR_OK); in HWTEST_F() 89 std::vector<AllowInfo> allowInfoList; in HWTEST_F() local 90 EXPECT_NE(proxy->GetAllowList(0, allowInfoList, 0), ERR_OK); in HWTEST_F() 104 EXPECT_NE(proxy->GetAllowList(0, allowInfoList, 0), ERR_OK); in HWTEST_F()
|
H A D | standby_client_unit_test.cpp | 93 std::vector<AllowInfo> allowInfoList; in HWTEST_F() local 95 EXPECT_EQ(StandbyServiceClient::GetInstance().GetAllowList(AllowType::NETWORK, allowInfoList, 0), ERR_OK); in HWTEST_F() 96 EXPECT_NE(StandbyServiceClient::GetInstance().GetAllowList(0, allowInfoList, 0), ERR_OK); in HWTEST_F() 97 EXPECT_EQ(StandbyServiceClient::GetInstance().GetAllowList((1 << 6), allowInfoList, 0), ERR_OK); in HWTEST_F() 98 allowInfoList.emplace_back(AllowInfo {}); in HWTEST_F() 99 StandbyServiceClient::GetInstance().GetAllowList((1 << 6), allowInfoList, 0); in HWTEST_F()
|
/foundation/resourceschedule/device_standby/services/core/include/ |
H A D | standby_service_impl.h | 105 ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, 133 void GetAllowListInner(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, 147 void GetTemporaryAllowList(uint32_t allowTypeIndex, std::vector<AllowInfo>& allowInfoList, 149 void GetPersistAllowList(uint32_t allowTypeIndex, std::vector<AllowInfo>& allowInfoList, bool isAllow, bool isApp);
|
H A D | standby_service.h | 53 ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList,
|
/foundation/resourceschedule/device_standby/frameworks/src/ |
H A D | standby_service_stub.cpp | 222 std::vector<AllowInfo> allowInfoList {}; in HandleGetAllowList() 223 ErrCode result = GetAllowList(allowType, allowInfoList, reasonCode); in HandleGetAllowList() 228 if (!reply.WriteUint32(allowInfoList.size())) { in HandleGetAllowList() 232 for (auto& info : allowInfoList) { in HandleGetAllowList()
|
/foundation/resourceschedule/device_standby/services/test/unittest/ |
H A D | standby_service_unit_test.cpp | 199 std::vector<AllowInfo> allowInfoList; in HWTEST_F() local 200 EXPECT_NE(StandbyService::GetInstance()->GetAllowList(AllowType::NETWORK, allowInfoList, 0), ERR_OK); in HWTEST_F() 210 EXPECT_EQ(StandbyService::GetInstance()->GetAllowList(AllowType::NETWORK, allowInfoList, 0), ERR_OK); in HWTEST_F() 234 std::vector<AllowInfo> allowInfoList; in HWTEST_F() local 235 StandbyServiceImpl::GetInstance()->GetAllowList(AllowType::NETWORK, allowInfoList, 0); in HWTEST_F() 519 std::vector<AllowInfo> allowInfoList; in HWTEST_F() local 520 StandbyServiceImpl::GetInstance()->GetAllowList(MAX_ALLOW_TYPE_NUMBER, allowInfoList, in HWTEST_F() 522 StandbyServiceImpl::GetInstance()->GetAllowList(MAX_ALLOW_TYPE_NUMBER, allowInfoList, in HWTEST_F() 526 StandbyServiceImpl::GetInstance()->GetAllowListInner(MAX_ALLOW_TYPE_NUMBER, allowInfoList, in HWTEST_F() 528 StandbyServiceImpl::GetInstance()->GetAllowListInner(MAX_ALLOW_TYPE_NUMBER, allowInfoList, in HWTEST_F() 818 std::vector<AllowInfo> allowInfoList; HWMTEST_F() local [all...] |
/foundation/resourceschedule/device_standby/services/core/src/ |
H A D | standby_service_impl.cpp | 761 ErrCode StandbyServiceImpl::GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, in GetAllowList() argument 778 GetAllowListInner(allowType, allowInfoList, reasonCode); in GetAllowList() 782 void StandbyServiceImpl::GetAllowListInner(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, in GetAllowListInner() argument 793 GetTemporaryAllowList(allowTypeIndex, allowInfoList, reasonCode); in GetAllowListInner() 795 GetPersistAllowList(allowTypeIndex, allowInfoList, true, isApp); in GetAllowListInner() 800 allowInfoList, uint32_t reasonCode) in GetTemporaryAllowList() 816 allowInfoList.emplace_back((1 << allowTypeIndex), allowRecordPtr->name_, in GetTemporaryAllowList() 821 void StandbyServiceImpl::GetPersistAllowList(uint32_t allowTypeIndex, std::vector<AllowInfo>& allowInfoList, in GetPersistAllowList() argument 834 allowInfoList.emplace_back((1 << allowTypeIndex), allowName, -1); in GetPersistAllowList() 857 std::vector<AllowInfo> allowInfoList; in GetEligiableRestrictSet() local 799 GetTemporaryAllowList(uint32_t allowTypeIndex, std::vector<AllowInfo>& allowInfoList, uint32_t reasonCode) GetTemporaryAllowList() argument 1379 std::vector<AllowInfo> allowInfoList; DumpModifyAllowList() local [all...] |
H A D | standby_service.cpp | 221 ErrCode StandbyService::GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, in GetAllowList() argument 228 return StandbyServiceImpl::GetInstance()->GetAllowList(allowType, allowInfoList, reasonCode); in GetAllowList()
|
/foundation/resourceschedule/device_standby/plugins/strategy/src/ |
H A D | base_network_strategy.cpp | 274 std::vector<AllowInfo> allowInfoList {}; in GetExemptionConfig() 275 StandbyServiceImpl::GetInstance()->GetAllowListInner(AllowType::NETWORK, allowInfoList, in GetExemptionConfig() 278 for (const auto& info : allowInfoList) { in GetExemptionConfig() 303 std::vector<AllowInfo> allowInfoList {}; in GetExemptionConfigForApp() 304 StandbyServiceImpl::GetInstance()->GetAllowListInner(AllowType::NETWORK, allowInfoList, in GetExemptionConfigForApp() 307 for (const auto& info : allowInfoList) { in GetExemptionConfigForApp()
|
H A D | running_lock_strategy.cpp | 319 std::vector<AllowInfo> allowInfoList {}; in GetExemptionConfig() 320 StandbyServiceImpl::GetInstance()->GetAllowListInner(AllowType::RUNNING_LOCK, allowInfoList, in GetExemptionConfig() 323 for (const auto& info : allowInfoList) { in GetExemptionConfig() 514 std::vector<AllowInfo> allowInfoList {}; in GetExemptionConfigForApp() 515 StandbyServiceImpl::GetInstance()->GetAllowListInner(AllowType::NETWORK, allowInfoList, in GetExemptionConfigForApp() 518 for (const auto& info : allowInfoList) { in GetExemptionConfigForApp()
|
/foundation/resourceschedule/device_standby/interfaces/innerkits/include/ |
H A D | standby_service_client.h | 82 * @param allowInfoList result represents allowed types and apps. 86 ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList,
|
H A D | standby_service_proxy.h | 68 * @param allowInfoList result represents allowed types and apps. 72 ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, 106 * @param allowInfoList result represents allowed types and apps.
|
/foundation/resourceschedule/device_standby/frameworks/include/ |
H A D | istandby_service.h | 82 * @param allowInfoList result represents allowed types and apps. 86 virtual ErrCode GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList,
|
/foundation/resourceschedule/device_standby/interfaces/innerkits/src/ |
H A D | standby_service_proxy.cpp | 171 ErrCode StandbyServiceProxy::GetAllowList(uint32_t allowType, std::vector<AllowInfo>& allowInfoList, in GetAllowList() argument 207 allowInfoList.emplace_back(*info); in GetAllowList()
|