Home
last modified time | relevance | path

Searched refs:IsOnBattery (Results 1 – 4 of 4) sorted by relevance

/base/powermgr/battery_statistics/test/unittest/src/clienttest/
Dstats_util_test.cpp202 EXPECT_FALSE(StatsHelper::IsOnBattery());
206 EXPECT_TRUE(StatsHelper::IsOnBattery());
231 EXPECT_FALSE(StatsHelper::IsOnBattery());
235 EXPECT_TRUE(StatsHelper::IsOnBattery());
255 EXPECT_FALSE(StatsHelper::IsOnBattery());
260 EXPECT_FALSE(StatsHelper::IsOnBattery());
265 EXPECT_TRUE(StatsHelper::IsOnBattery());
270 EXPECT_TRUE(StatsHelper::IsOnBattery());
289 EXPECT_FALSE(StatsHelper::IsOnBattery());
296 EXPECT_TRUE(StatsHelper::IsOnBattery());
/base/powermgr/battery_statistics/utils/native/src/
Dstats_helper.cpp86 bool StatsHelper::IsOnBattery() in IsOnBattery() function in OHOS::PowerMgr::StatsHelper
100 if (IsOnBattery()) { in GetOnBatteryBootTimeMs()
113 if (IsOnBattery()) { in GetOnBatteryUpTimeMs()
/base/powermgr/battery_statistics/utils/native/include/
Dstats_helper.h96 if (IsOnBattery()) { in AddCount()
122 static bool IsOnBattery();
/base/powermgr/battery_statistics/services/native/src/
Dcpu_time_reader.cpp194 if (StatsHelper::IsOnBattery()) { in ReadUidCpuActiveTimeImpl()
325 if (StatsHelper::IsOnBattery()) { in ReadUidCpuClusterTime()
469 if (!StatsHelper::IsOnBattery()) { in ReadUidCpuFreqTime()
547 if (StatsHelper::IsOnBattery()) { in ReadUidCpuTime()