Home
last modified time | relevance | path

Searched refs:GetPartStatsPercent (Results 1 – 25 of 29) sorted by relevance

12

/base/powermgr/battery_statistics/test/fuzztest/batterystats_fuzzer/
Dbatterystats_fuzzer.cpp80 static void GetPartStatsPercent(const uint8_t* data, size_t size) in GetPartStatsPercent() function
83 g_batterystatsClient.GetPartStatsPercent(static_cast<BatteryStatsInfo::ConsumptionType>(type)); in GetPartStatsPercent()
132 &GetPartStatsPercent,
/base/powermgr/battery_statistics/frameworks/napi/src/
Dbattery_stats_module.cpp75 static napi_value GetPartStatsPercent(napi_env env, napi_callback_info info) in GetPartStatsPercent() function
78 return stats.GetPartStatsPercent(info, MAX_ARGC, ARGV_IND_0); in GetPartStatsPercent()
143 DECLARE_NAPI_FUNCTION("getHardwareUnitPowerPercent", GetPartStatsPercent), in BatteryStatsInit()
Dbattery_stats.cpp125 napi_value BatteryStats::GetPartStatsPercent(napi_callback_info& info, uint32_t maxArgc, uint32_t i… in GetPartStatsPercent() function in OHOS::PowerMgr::BatteryStats
129 double partStatsPercent = BatteryStatsClient::GetInstance().GetPartStatsPercent(naviveType); in GetPartStatsPercent()
/base/powermgr/battery_statistics/test/unittest/src/clienttest/mock/
Dstats_client_test_mock_parcel.cpp50 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetPartStatsPercent(consumptionType));
77 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, sptrStatsProxy->GetPartStatsPercent(consumptionType));
105 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, sptrStatsProxy->GetPartStatsPercent(consumptionType));
Dstats_client_test_mock_peer.cpp45 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetPartStatsPercent(consumptionType));
Dstats_client_test_mock_object.cpp46 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, sptrStatsProxy->GetPartStatsPercent(consumptionType));
/base/powermgr/battery_statistics/test/unittest/include/servicetest/utils/
Dstats_service_test_proxy.h38 double GetPartStatsPercent(const BatteryStatsInfo::ConsumptionType& type);
/base/powermgr/battery_statistics/frameworks/napi/include/
Dbattery_stats.h38 napi_value GetPartStatsPercent(napi_callback_info& info, uint32_t maxArgc, uint32_t index);
/base/powermgr/battery_statistics/interfaces/inner_api/include/
Dibattery_stats.h34 virtual double GetPartStatsPercent(const BatteryStatsInfo::ConsumptionType& type) = 0;
Dbattery_stats_client.h43 double GetPartStatsPercent(const BatteryStatsInfo::ConsumptionType& type);
/base/powermgr/battery_statistics/frameworks/native/src/
Dbattery_stats_client.cpp130 double BatteryStatsClient::GetPartStatsPercent(const BatteryStatsInfo::ConsumptionType& type) in GetPartStatsPercent() function in OHOS::PowerMgr::BatteryStatsClient
138 partStatsPercent = proxy_->GetPartStatsPercent(type); in GetPartStatsPercent()
/base/powermgr/battery_statistics/services/zidl/include/
Dbattery_stats_proxy.h45 virtual double GetPartStatsPercent(const BatteryStatsInfo::ConsumptionType& type) override;
/base/powermgr/battery_statistics/test/unittest/src/servicetest/mock/
Dstats_service_test_mock_parcel.cpp66 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, g_statsServiceProxy->GetPartStatsPercent(consumptionType));
/base/powermgr/battery_statistics/services/native/include/
Dbattery_stats_service.h48 double GetPartStatsPercent(const BatteryStatsInfo::ConsumptionType& type) override;
Dbattery_stats_core.h44 double GetPartStatsPercent(const BatteryStatsInfo::ConsumptionType& type);
/base/powermgr/battery_statistics/services/native/src/
Dbattery_stats_service.cpp250 double BatteryStatsService::GetPartStatsPercent(const BatteryStatsInfo::ConsumptionType& type) in GetPartStatsPercent() function in OHOS::PowerMgr::BatteryStatsService
258 return core_->GetPartStatsPercent(type); in GetPartStatsPercent()
/base/powermgr/battery_statistics/test/unittest/src/clienttest/
Dstats_wifi_test.cpp133 double actualPercent = statsClient.GetPartStatsPercent(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI);
375 double actualPercent = statsClient.GetPartStatsPercent(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI);
610 double actualPercent = statsClient.GetPartStatsPercent(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI);
Dstats_phone_test.cpp136 … double actualPercent = statsClient.GetPartStatsPercent(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE);
396 … double actualPercent = statsClient.GetPartStatsPercent(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE);
Dstats_powermgr_test.cpp439 … double actualPercent = statsClient.GetPartStatsPercent(BatteryStatsInfo::CONSUMPTION_TYPE_RADIO);
Dstats_display_test.cpp196 … double actualPercent = statsClient.GetPartStatsPercent(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN);
/base/powermgr/battery_statistics/test/unittest/src/servicetest/
Dstats_service_wifi_test.cpp159 …double actualPercent = g_statsServiceProxy->GetPartStatsPercent(BatteryStatsInfo::CONSUMPTION_TYPE…
420 …double actualPercent = g_statsServiceProxy->GetPartStatsPercent(BatteryStatsInfo::CONSUMPTION_TYPE…
659 …double actualPercent = g_statsServiceProxy->GetPartStatsPercent(BatteryStatsInfo::CONSUMPTION_TYPE…
Dstats_service_phone_test.cpp164 …double actualPercent = g_statsServiceProxy->GetPartStatsPercent(BatteryStatsInfo::CONSUMPTION_TYPE…
454 …double actualPercent = g_statsServiceProxy->GetPartStatsPercent(BatteryStatsInfo::CONSUMPTION_TYPE…
/base/powermgr/battery_statistics/services/zidl/src/
Dbattery_stats_stub.cpp204 double ret = GetPartStatsPercent(type); in GetPartStatsPercentStub()
Dbattery_stats_proxy.cpp244 double BatteryStatsProxy::GetPartStatsPercent(const BatteryStatsInfo::ConsumptionType& type) in GetPartStatsPercent() function in OHOS::PowerMgr::BatteryStatsProxy
/base/powermgr/battery_statistics/test/unittest/src/servicetest/utils/
Dstats_service_test_proxy.cpp229 double StatsServiceTestProxy::GetPartStatsPercent(const BatteryStatsInfo::ConsumptionType& type) in GetPartStatsPercent() function in OHOS::PowerMgr::StatsServiceTestProxy

12