Home
last modified time | relevance | path

Searched refs:statsClient (Results 1 – 15 of 15) sorted by relevance

/base/powermgr/battery_statistics/test/unittest/src/clienttest/mock/
Dstats_client_test_mock_peer.cpp35 auto& statsClient = BatteryStatsClient::GetInstance(); variable
36 statsClient.Reset();
37 statsClient.SetOnBattery(true);
38 auto infoList = statsClient.GetBatteryStats();
41 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetAppStatsMah(uid));
42 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetAppStatsPercent(uid));
44 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetPartStatsMah(consumptionType));
45 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetPartStatsPercent(consumptionType));
47 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetTotalTimeSecond(statsType));
48 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetTotalDataBytes(statsType));
[all …]
Dstats_client_test_mock_parcel.cpp40 auto& statsClient = BatteryStatsClient::GetInstance(); variable
41 statsClient.Reset();
42 statsClient.SetOnBattery(true);
43 auto infoList = statsClient.GetBatteryStats();
46 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetAppStatsMah(uid));
47 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetAppStatsPercent(uid));
49 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetPartStatsMah(consumptionType));
50 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetPartStatsPercent(consumptionType));
52 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetTotalTimeSecond(statsType));
53 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetTotalDataBytes(statsType));
[all …]
/base/powermgr/battery_statistics/test/unittest/src/clienttest/
Dstats_alarm_test.cpp41 auto& statsClient = BatteryStatsClient::GetInstance(); in SetUp() local
42 statsClient.SetOnBattery(true); in SetUp()
47 auto& statsClient = BatteryStatsClient::GetInstance(); in TearDown() local
48 statsClient.SetOnBattery(false); in TearDown()
60 auto& statsClient = BatteryStatsClient::GetInstance(); variable
61 statsClient.Reset();
73 double powerMahBefore = statsClient.GetAppStatsMah(uid);
74 statsClient.Reset();
75 double powerMahAfter = statsClient.GetAppStatsMah(uid);
89 auto& statsClient = BatteryStatsClient::GetInstance(); variable
[all …]
Dstats_wifi_test.cpp45 auto& statsClient = BatteryStatsClient::GetInstance(); in SetUp() local
46 statsClient.SetOnBattery(true); in SetUp()
51 auto& statsClient = BatteryStatsClient::GetInstance(); in TearDown() local
52 statsClient.SetOnBattery(false); in TearDown()
64 auto& statsClient = BatteryStatsClient::GetInstance(); variable
65 statsClient.Reset();
75 double powerMahBefore = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI);
76 statsClient.Reset();
77 double powerMahAfter = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI);
91 auto& statsClient = BatteryStatsClient::GetInstance(); variable
[all …]
Dstats_camera_test.cpp42 auto& statsClient = BatteryStatsClient::GetInstance(); in SetUp() local
43 statsClient.SetOnBattery(true); in SetUp()
48 auto& statsClient = BatteryStatsClient::GetInstance(); in TearDown() local
49 statsClient.SetOnBattery(false); in TearDown()
60 auto& statsClient = BatteryStatsClient::GetInstance(); variable
61 statsClient.Reset();
73 double powerMahBefore = statsClient.GetAppStatsMah(uid);
74 statsClient.Reset();
75 double powerMahAfter = statsClient.GetAppStatsMah(uid);
88 auto& statsClient = BatteryStatsClient::GetInstance(); variable
[all …]
Dstats_location_test.cpp43 auto& statsClient = BatteryStatsClient::GetInstance(); in SetUp() local
44 statsClient.SetOnBattery(true); in SetUp()
49 auto& statsClient = BatteryStatsClient::GetInstance(); in TearDown() local
50 statsClient.SetOnBattery(false); in TearDown()
62 auto& statsClient = BatteryStatsClient::GetInstance(); variable
63 statsClient.Reset();
76 double powerMahBefore = statsClient.GetAppStatsMah(uid);
77 statsClient.Reset();
78 double powerMahAfter = statsClient.GetAppStatsMah(uid);
92 auto& statsClient = BatteryStatsClient::GetInstance(); variable
[all …]
Dstats_phone_test.cpp44 auto& statsClient = BatteryStatsClient::GetInstance(); in SetUp() local
45 statsClient.SetOnBattery(true); in SetUp()
50 auto& statsClient = BatteryStatsClient::GetInstance(); in TearDown() local
51 statsClient.SetOnBattery(false); in TearDown()
63 auto& statsClient = BatteryStatsClient::GetInstance(); variable
64 statsClient.Reset();
75 double powerMahBefore = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE);
76 statsClient.Reset();
77 double powerMahAfter = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE);
91 auto& statsClient = BatteryStatsClient::GetInstance(); variable
[all …]
Dstats_dump_test.cpp47 auto& statsClient = BatteryStatsClient::GetInstance(); in SetUp() local
48 statsClient.SetOnBattery(true); in SetUp()
53 auto& statsClient = BatteryStatsClient::GetInstance(); in TearDown() local
54 statsClient.SetOnBattery(false); in TearDown()
65 auto& statsClient = BatteryStatsClient::GetInstance(); variable
66 statsClient.Reset();
80 std::string actualDebugInfo = statsClient.Dump(dumpArgs);
94 auto& statsClient = BatteryStatsClient::GetInstance(); variable
95 statsClient.Reset();
120 std::string actualDebugInfo = statsClient.Dump(dumpArgs);
[all …]
Dstats_bluetooth_test.cpp75 auto& statsClient = BatteryStatsClient::GetInstance(); in SetUp() local
76 statsClient.SetOnBattery(true); in SetUp()
81 auto& statsClient = BatteryStatsClient::GetInstance(); in TearDown() local
82 statsClient.SetOnBattery(false); in TearDown()
94 auto& statsClient = BatteryStatsClient::GetInstance(); variable
95 statsClient.Reset();
107 … double powerMahBefore = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH);
108 statsClient.Reset();
109 … double powerMahAfter = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH);
123 auto& statsClient = BatteryStatsClient::GetInstance(); variable
[all …]
Dstats_audio_test.cpp41 auto& statsClient = BatteryStatsClient::GetInstance(); in SetUp() local
42 statsClient.SetOnBattery(true); in SetUp()
47 auto& statsClient = BatteryStatsClient::GetInstance(); in TearDown() local
48 statsClient.SetOnBattery(false); in TearDown()
59 auto& statsClient = BatteryStatsClient::GetInstance(); variable
60 statsClient.Reset();
73 double powerMahBefore = statsClient.GetAppStatsMah(uid);
74 statsClient.Reset();
75 double powerMahAfter = statsClient.GetAppStatsMah(uid);
88 auto& statsClient = BatteryStatsClient::GetInstance(); variable
[all …]
Dstats_display_test.cpp46 auto& statsClient = BatteryStatsClient::GetInstance(); in SetLastBrightness() local
48 statsClient.Reset(); in SetLastBrightness()
66 auto& statsClient = BatteryStatsClient::GetInstance(); in SetUp() local
67 statsClient.SetOnBattery(true); in SetUp()
72 auto& statsClient = BatteryStatsClient::GetInstance(); in TearDown() local
73 statsClient.SetOnBattery(false); in TearDown()
84 auto& statsClient = BatteryStatsClient::GetInstance(); variable
85 statsClient.Reset();
99 double powerMahBefore = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN);
100 statsClient.Reset();
[all …]
Dstats_powermgr_test.cpp45 auto& statsClient = BatteryStatsClient::GetInstance(); in SetUp() local
46 statsClient.SetOnBattery(true); in SetUp()
51 auto& statsClient = BatteryStatsClient::GetInstance(); in TearDown() local
52 statsClient.SetOnBattery(false); in TearDown()
63 auto& statsClient = BatteryStatsClient::GetInstance(); variable
64 statsClient.Reset();
78 long actualTime = statsClient.GetTotalTimeSecond(StatsUtils::STATS_TYPE_SENSOR_GRAVITY_ON, uid);
91 auto& statsClient = BatteryStatsClient::GetInstance(); variable
92 statsClient.Reset();
107 double actualPower = statsClient.GetAppStatsMah(uid);
[all …]
Dstats_service_death_test.cpp44 auto& statsClient = BatteryStatsClient::GetInstance(); variable
45 EXPECT_EQ(statsClient.Connect(), ERR_OK);
52 EXPECT_NE(statsClient.proxy_, nullptr);
/base/powermgr/battery_statistics/test/systemtest/src/
Dbatterystats_sys_test.cpp80 auto& statsClient = BatteryStatsClient::GetInstance(); in SetUp() local
81 statsClient.SetOnBattery(true); in SetUp()
86 auto& statsClient = BatteryStatsClient::GetInstance(); in TearDown() local
87 statsClient.SetOnBattery(false); in TearDown()
98 auto& statsClient = BatteryStatsClient::GetInstance(); variable
99 statsClient.Reset();
118 double actualPowerMah = statsClient.GetAppStatsMah(uid);
121 long actualTimeSec = statsClient.GetTotalTimeSecond(StatsUtils::STATS_TYPE_WAKELOCK_HOLD, uid);
133 std::string actualDebugInfo = statsClient.Dump(dumpArgs);
155 auto& statsClient = BatteryStatsClient::GetInstance(); variable
[all …]
/base/powermgr/thermal_manager/test/unittest/src/
Dthermal_action_report_test.cpp300 auto& statsClient = BatteryStatsClient::GetInstance(); variable
301 statsClient.Reset();
312 std::string actualDumpInfo = statsClient.Dump(g_dumpArgs);
342 auto& statsClient = BatteryStatsClient::GetInstance(); variable
343 statsClient.Reset();
354 std::string actualDumpInfo = statsClient.Dump(g_dumpArgs);
384 auto& statsClient = BatteryStatsClient::GetInstance(); variable
385 statsClient.Reset();
396 std::string actualDumpInfo = statsClient.Dump(g_dumpArgs);
426 auto& statsClient = BatteryStatsClient::GetInstance(); variable
[all …]