/base/powermgr/battery_statistics/test/unittest/src/clienttest/mock/ |
D | stats_client_test_mock_peer.cpp | 35 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 …]
|
D | stats_client_test_mock_parcel.cpp | 40 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/ |
D | stats_alarm_test.cpp | 41 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 …]
|
D | stats_wifi_test.cpp | 45 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 …]
|
D | stats_camera_test.cpp | 42 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 …]
|
D | stats_location_test.cpp | 43 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 …]
|
D | stats_phone_test.cpp | 44 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 …]
|
D | stats_dump_test.cpp | 47 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 …]
|
D | stats_bluetooth_test.cpp | 75 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 …]
|
D | stats_audio_test.cpp | 41 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 …]
|
D | stats_display_test.cpp | 46 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 …]
|
D | stats_powermgr_test.cpp | 45 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 …]
|
D | stats_service_death_test.cpp | 44 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/ |
D | batterystats_sys_test.cpp | 80 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/ |
D | thermal_action_report_test.cpp | 300 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 …]
|