/base/powermgr/battery_statistics/test/systemtest/src/ |
H A D | batterystats_sys_test.cpp | 355 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH);
in HWTEST_F() local 356 double devPrecent = abs(expectedPower - actualPower) / expectedPower;
in HWTEST_F() 358 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh";
in HWTEST_F() local 386 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI);
in HWTEST_F() local 387 double devPrecent = abs(expectedPower - actualPower) / expectedPower;
in HWTEST_F() 389 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh";
in HWTEST_F() local 419 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE);
in HWTEST_F() local 420 double devPrecent = abs(expectedPower - actualPower) / expectedPower;
in HWTEST_F() 422 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh";
in HWTEST_F() local 440 double actualPower in HWTEST_F() local 441 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 460 double actualPower = statsClient.GetAppStatsMah(uerId); HWTEST_F() local 461 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 491 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 494 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 524 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 527 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 557 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 560 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 589 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 592 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 622 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 625 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 654 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 657 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 673 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 703 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 706 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 724 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 755 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 814 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 817 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 837 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 854 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_IDLE); HWTEST_F() local 855 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 862 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 902 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 905 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
/base/powermgr/battery_statistics/test/unittest/src/servicetest/ |
H A D | stats_service_display_test.cpp | 167 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); in HWTEST_F() local 169 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 170 EXPECT_EQ(expectedPower, actualPower); in HWTEST_F() 208 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); in HWTEST_F() local 209 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 211 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 285 double actualPower = StatsUtils::DEFAULT_VALUE; in HWTEST_F() local 289 actualPower = (*it).GetPower(); in HWTEST_F() 292 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 294 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mA in HWTEST_F() local 331 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); HWTEST_F() local 334 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 379 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); HWTEST_F() local 382 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 408 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); HWTEST_F() local 410 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 452 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); HWTEST_F() local 455 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 499 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); HWTEST_F() local 502 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 547 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); HWTEST_F() local 550 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 577 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); HWTEST_F() local 579 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
H A D | stats_service_phone_test.cpp | 135 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); in HWTEST_F() local 136 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 138 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 203 double actualPower = StatsUtils::DEFAULT_VALUE; in HWTEST_F() local 207 actualPower = (*it).GetPower(); in HWTEST_F() 210 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 212 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 252 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); in HWTEST_F() local 253 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 255 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mA in HWTEST_F() local 297 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 300 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 330 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 332 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 374 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 377 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 442 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 445 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 509 double actualPower = StatsUtils::DEFAULT_VALUE; HWTEST_F() local 518 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 558 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 561 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 591 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 593 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 637 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 640 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 693 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 696 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 748 double actualPower = StatsUtils::DEFAULT_VALUE; HWTEST_F() local 757 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 797 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 799 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 836 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 839 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 871 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 874 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 895 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 990 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 992 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
H A D | stats_service_location_test.cpp | 136 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); in HWTEST_F() local 137 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 139 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 214 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); in HWTEST_F() local 215 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 217 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 249 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); in HWTEST_F() local 251 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 252 EXPECT_EQ(expectedPower, actualPower); in HWTEST_F() 294 double actualPower in HWTEST_F() local 297 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 374 double actualPower = g_statsServiceProxy->GetAppStatsMah(uidOne); HWTEST_F() local 377 GTEST_LOG_(INFO) << __func__ << ": actual first uid consumption = " << actualPower << " mAh"; HWTEST_F() local 384 GTEST_LOG_(INFO) << __func__ << ": actual second uid consumption = " << actualPower << " mAh"; HWTEST_F() local 417 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 419 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 457 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 460 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 497 double actualPower = gnssEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_GNSS_ON, uid); HWTEST_F() local 500 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 529 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 531 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
H A D | stats_service_alarm_test.cpp | 130 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); in HWTEST_F() local 131 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 133 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 194 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); in HWTEST_F() local 196 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 197 EXPECT_EQ(expectedPower, actualPower); in HWTEST_F() 231 double actualPower = alarmEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_ALARM, uid); in HWTEST_F() local 232 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 234 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 271 double actualPower in HWTEST_F() local 274 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 301 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 303 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
H A D | stats_service_wifi_test.cpp | 131 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); in HWTEST_F() local 132 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 134 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 197 double actualPower = StatsUtils::DEFAULT_VALUE; in HWTEST_F() local 201 actualPower = (*it).GetPower(); in HWTEST_F() 204 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 206 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 245 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); in HWTEST_F() local 246 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 248 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mA in HWTEST_F() local 278 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); HWTEST_F() local 280 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 321 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); HWTEST_F() local 324 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 412 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); HWTEST_F() local 415 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 470 double actualPower = StatsUtils::DEFAULT_VALUE; HWTEST_F() local 479 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 545 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); HWTEST_F() local 548 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 585 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); HWTEST_F() local 587 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 623 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); HWTEST_F() local 626 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 661 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); HWTEST_F() local 664 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 736 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); HWTEST_F() local 738 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
H A D | stats_service_powermgr_test.cpp | 141 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); in HWTEST_F() local 142 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 144 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 210 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); in HWTEST_F() local 211 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 213 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 263 double actualPower = g_statsServiceProxy->GetTotalTimeSecond(StatsUtils::STATS_TYPE_SENSOR_PROXIMITY_ON, uid); in HWTEST_F() local 265 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 266 EXPECT_EQ(expectedPower, actualPower); in HWTEST_F() 298 double actualPower in HWTEST_F() local 301 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 367 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 370 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 435 double actualPower = sensorEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_SENSOR_GRAVITY_ON, uid) + HWTEST_F() local 439 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 483 double actualPower = wakelockEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_WAKELOCK_HOLD, uid); HWTEST_F() local 486 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 522 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 524 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
H A D | stats_service_audio_test.cpp | 136 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); in HWTEST_F() local 137 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 139 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 224 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); in HWTEST_F() local 225 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 227 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 270 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); in HWTEST_F() local 271 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 273 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 306 double actualPower in HWTEST_F() local 309 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 365 double actualPower = audioEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_AUDIO_ON, uid); HWTEST_F() local 368 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 397 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 399 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
H A D | stats_service_bluetooth_test.cpp | 177 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); in HWTEST_F() local 178 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 180 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 247 double actualPower = StatsUtils::DEFAULT_VALUE; in HWTEST_F() local 251 actualPower = (*it).GetPower(); in HWTEST_F() 254 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 256 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 297 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); in HWTEST_F() local 298 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 300 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mA in HWTEST_F() local 343 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 346 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 378 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 380 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 423 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 426 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 528 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 531 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 598 double actualPower = StatsUtils::DEFAULT_VALUE; HWTEST_F() local 607 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 648 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 651 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 694 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 697 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 729 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 731 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 774 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 777 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 879 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 882 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 957 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 960 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 1002 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 1005 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 1037 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 1039 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 1082 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 1085 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 1236 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 1239 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 1310 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 1313 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 1506 double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 1509 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
H A D | stats_service_camera_test.cpp | 134 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); in HWTEST_F() local 135 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 137 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 249 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); in HWTEST_F() local 250 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 252 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 373 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); in HWTEST_F() local 374 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 376 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 458 double actualPower in HWTEST_F() local 461 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 503 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid1); HWTEST_F() local 506 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 532 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 533 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 571 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 574 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 642 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 645 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 711 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 714 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 763 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 766 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 820 double actualPower = cameraEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_CAMERA_ON, uid); HWTEST_F() local 823 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 863 double actualPower = flashlightEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_FLASHLIGHT_ON, uid); HWTEST_F() local 866 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 901 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); HWTEST_F() local 903 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
H A D | stats_service_subscriber_test.cpp | 177 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); in HWTEST_F() local 179 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 180 EXPECT_EQ(expectedPower, actualPower); in HWTEST_F() 274 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); in HWTEST_F() local 275 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 277 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 313 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); in HWTEST_F() local 314 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 316 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 354 double actualPower in HWTEST_F() local 363 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
/base/powermgr/battery_statistics/test/unittest/src/clienttest/ |
H A D | stats_location_test.cpp | 112 double actualPower = statsClient.GetAppStatsMah(uid); in HWTEST_F() local 113 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 115 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 182 double actualPower = statsClient.GetAppStatsMah(uid); in HWTEST_F() local 183 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 185 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 214 double actualPower = statsClient.GetAppStatsMah(uid); in HWTEST_F() local 216 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 217 EXPECT_EQ(expectedPower, actualPower); in HWTEST_F() 254 double actualPower in HWTEST_F() local 257 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 326 double actualPower = statsClient.GetAppStatsMah(uidOne); HWTEST_F() local 329 GTEST_LOG_(INFO) << __func__ << ": actual first uid consumption = " << actualPower << " mAh"; HWTEST_F() local 336 GTEST_LOG_(INFO) << __func__ << ": actual second uid consumption = " << actualPower << " mAh"; HWTEST_F() local 366 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 368 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 403 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 406 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
H A D | stats_phone_test.cpp | 110 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); in HWTEST_F() local 111 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 113 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 172 double actualPower = StatsUtils::DEFAULT_VALUE; in HWTEST_F() local 176 actualPower = (*it).GetPower(); in HWTEST_F() 179 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 181 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 216 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); in HWTEST_F() local 217 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 219 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mA in HWTEST_F() local 256 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 259 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 286 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 288 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 325 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 328 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 387 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 390 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 448 double actualPower = StatsUtils::DEFAULT_VALUE; HWTEST_F() local 457 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 492 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 495 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 522 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 524 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 561 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 564 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 610 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 613 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 659 double actualPower = StatsUtils::DEFAULT_VALUE; HWTEST_F() local 668 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 704 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 706 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 740 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 743 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 772 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); HWTEST_F() local 775 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 794 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
H A D | stats_display_test.cpp | 135 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); in HWTEST_F() local 137 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 138 EXPECT_EQ(expectedPower, actualPower); in HWTEST_F() 171 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); in HWTEST_F() local 172 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 174 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 238 double actualPower = StatsUtils::DEFAULT_VALUE; in HWTEST_F() local 242 actualPower = (*it).GetPower(); in HWTEST_F() 245 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 247 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mA in HWTEST_F() local 280 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); HWTEST_F() local 283 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 322 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); HWTEST_F() local 325 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 348 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); HWTEST_F() local 350 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 388 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); HWTEST_F() local 391 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 430 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); HWTEST_F() local 433 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 474 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); HWTEST_F() local 477 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
H A D | stats_wifi_test.cpp | 108 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); in HWTEST_F() local 109 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 111 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 168 double actualPower = StatsUtils::DEFAULT_VALUE; in HWTEST_F() local 172 actualPower = (*it).GetPower(); in HWTEST_F() 175 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 177 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 211 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); in HWTEST_F() local 212 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 214 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mA in HWTEST_F() local 241 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); HWTEST_F() local 243 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 279 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); HWTEST_F() local 282 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 367 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); HWTEST_F() local 370 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 425 double actualPower = StatsUtils::DEFAULT_VALUE; HWTEST_F() local 434 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 498 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); HWTEST_F() local 501 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 537 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); HWTEST_F() local 539 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 572 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); HWTEST_F() local 575 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 613 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); HWTEST_F() local 616 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
H A D | stats_audio_test.cpp | 108 double actualPower = statsClient.GetAppStatsMah(uid); in HWTEST_F() local 109 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 111 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 184 double actualPower = statsClient.GetAppStatsMah(uid); in HWTEST_F() local 185 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 187 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 224 double actualPower = statsClient.GetAppStatsMah(uid); in HWTEST_F() local 225 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 227 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 256 double actualPower in HWTEST_F() local 259 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
H A D | stats_camera_test.cpp | 107 double actualPower = statsClient.GetAppStatsMah(uid); in HWTEST_F() local 108 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 110 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 206 double actualPower = statsClient.GetAppStatsMah(uid); in HWTEST_F() local 207 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 209 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 312 double actualPower = statsClient.GetAppStatsMah(uid); in HWTEST_F() local 313 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 315 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 385 double actualPower in HWTEST_F() local 388 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 424 double actualPower = statsClient.GetAppStatsMah(uid1); HWTEST_F() local 427 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 449 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 450 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 483 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 486 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 546 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 549 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 607 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 610 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 653 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 656 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
H A D | stats_powermgr_test.cpp | 114 double actualPower = statsClient.GetAppStatsMah(uid); in HWTEST_F() local 115 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 117 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 175 double actualPower = statsClient.GetAppStatsMah(uid); in HWTEST_F() local 176 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 178 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 222 double actualPower = statsClient.GetTotalTimeSecond(StatsUtils::STATS_TYPE_SENSOR_PROXIMITY_ON, uid); in HWTEST_F() local 224 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 225 EXPECT_EQ(expectedPower, actualPower); in HWTEST_F() 253 double actualPower in HWTEST_F() local 256 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 314 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 317 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 465 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_RADIO); HWTEST_F() local [all...] |
H A D | stats_bluetooth_test.cpp | 143 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); in HWTEST_F() local 144 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 146 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 207 double actualPower = StatsUtils::DEFAULT_VALUE; in HWTEST_F() local 211 actualPower = (*it).GetPower(); in HWTEST_F() 214 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 216 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 252 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); in HWTEST_F() local 253 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 255 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mA in HWTEST_F() local 293 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 296 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 325 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 327 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 365 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 368 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 461 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 464 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 525 double actualPower = StatsUtils::DEFAULT_VALUE; HWTEST_F() local 534 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 570 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 573 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 611 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 614 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 643 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 645 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 683 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 686 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 779 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 782 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 849 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 852 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 889 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 892 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 921 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 923 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 961 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 964 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 1101 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 1104 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 1167 double actualPower = statsClient.GetAppStatsMah(uid); HWTEST_F() local 1170 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local 1350 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); HWTEST_F() local 1353 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; HWTEST_F() local [all...] |
H A D | stats_alarm_test.cpp | 108 double actualPower = statsClient.GetAppStatsMah(uid); in HWTEST_F() local 109 double devPrecent = abs(expectedPower - actualPower) / expectedPower; in HWTEST_F() 111 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 169 double actualPower = statsClient.GetAppStatsMah(uid); in HWTEST_F() local 171 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; in HWTEST_F() local 172 EXPECT_EQ(expectedPower, actualPower); in HWTEST_F()
|