/base/powermgr/battery_statistics/test/systemtest/src/ |
D | batterystats_sys_test.cpp | 332 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); variable 333 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 335 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 360 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); variable 361 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 363 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 390 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); variable 391 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 393 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 408 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_IDLE); variable [all …]
|
/base/powermgr/battery_statistics/test/unittest/src/clienttest/ |
D | stats_phone_test.cpp | 106 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); variable 107 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 109 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 164 double actualPower = StatsUtils::DEFAULT_VALUE; variable 168 actualPower = (*it).GetPower(); 171 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 173 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 206 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); variable 207 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 209 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; [all …]
|
D | stats_location_test.cpp | 108 double actualPower = statsClient.GetAppStatsMah(uid); variable 109 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 111 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 174 double actualPower = statsClient.GetAppStatsMah(uid); variable 175 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 177 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 204 double actualPower = statsClient.GetAppStatsMah(uid); variable 206 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 207 EXPECT_EQ(expectedPower, actualPower); 242 double actualPower = statsClient.GetAppStatsMah(uid); variable [all …]
|
D | stats_wifi_test.cpp | 104 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); variable 105 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 107 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 160 double actualPower = StatsUtils::DEFAULT_VALUE; variable 164 actualPower = (*it).GetPower(); 167 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 169 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 201 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); variable 202 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 204 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; [all …]
|
D | stats_display_test.cpp | 131 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); variable 133 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 134 EXPECT_EQ(expectedPower, actualPower); 165 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); variable 166 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 168 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 228 double actualPower = StatsUtils::DEFAULT_VALUE; variable 232 actualPower = (*it).GetPower(); 235 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 237 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; [all …]
|
D | stats_camera_test.cpp | 103 double actualPower = statsClient.GetAppStatsMah(uid); variable 104 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 106 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 196 double actualPower = statsClient.GetAppStatsMah(uid); variable 197 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 199 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 296 double actualPower = statsClient.GetAppStatsMah(uid); variable 297 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 299 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 365 double actualPower = statsClient.GetAppStatsMah(uid); variable [all …]
|
D | stats_bluetooth_test.cpp | 139 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); variable 140 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 142 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 199 double actualPower = StatsUtils::DEFAULT_VALUE; variable 203 actualPower = (*it).GetPower(); 206 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 208 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 242 double actualPower = statsClient.GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); variable 243 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 245 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; [all …]
|
D | stats_audio_test.cpp | 104 double actualPower = statsClient.GetAppStatsMah(uid); variable 105 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 107 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 176 double actualPower = statsClient.GetAppStatsMah(uid); variable 177 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 179 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 214 double actualPower = statsClient.GetAppStatsMah(uid); variable 215 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 217 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 244 double actualPower = statsClient.GetAppStatsMah(uid); variable [all …]
|
D | stats_alarm_test.cpp | 104 double actualPower = statsClient.GetAppStatsMah(uid); variable 105 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 107 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 161 double actualPower = statsClient.GetAppStatsMah(uid); variable 163 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 164 EXPECT_EQ(expectedPower, actualPower);
|
D | stats_powermgr_test.cpp | 107 double actualPower = statsClient.GetAppStatsMah(uid); variable 108 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 110 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 164 double actualPower = statsClient.GetAppStatsMah(uid); variable 165 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 167 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 209 …double actualPower = statsClient.GetTotalTimeSecond(StatsUtils::STATS_TYPE_SENSOR_PROXIMITY_ON, ui… variable 211 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 212 EXPECT_EQ(expectedPower, actualPower); 238 double actualPower = statsClient.GetAppStatsMah(uid); variable [all …]
|
/base/powermgr/battery_statistics/test/unittest/src/servicetest/ |
D | stats_service_phone_test.cpp | 131 …double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE… variable 132 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 134 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 195 double actualPower = StatsUtils::DEFAULT_VALUE; variable 199 actualPower = (*it).GetPower(); 202 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 204 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 242 …double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE… variable 243 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 245 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; [all …]
|
D | stats_service_location_test.cpp | 132 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable 133 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 135 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 206 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable 207 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 209 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 239 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable 241 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 242 EXPECT_EQ(expectedPower, actualPower); 282 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable [all …]
|
D | stats_service_alarm_test.cpp | 126 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable 127 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 129 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 186 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable 188 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 189 EXPECT_EQ(expectedPower, actualPower); 221 double actualPower = alarmEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_ALARM, uid); variable 222 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 224 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 259 double actualPower = uidEntity->GetEntityPowerMah(uid); variable [all …]
|
D | stats_service_wifi_test.cpp | 127 …double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); variable 128 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 130 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 189 double actualPower = StatsUtils::DEFAULT_VALUE; variable 193 actualPower = (*it).GetPower(); 196 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 198 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 235 …double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); variable 236 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 238 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; [all …]
|
D | stats_service_display_test.cpp | 163 …double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREE… variable 165 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 166 EXPECT_EQ(expectedPower, actualPower); 202 …double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_SCREE… variable 203 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 205 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 275 double actualPower = StatsUtils::DEFAULT_VALUE; variable 279 actualPower = (*it).GetPower(); 282 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 284 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; [all …]
|
D | stats_service_powermgr_test.cpp | 134 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable 135 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 137 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 199 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable 200 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 202 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 250 …double actualPower = g_statsServiceProxy->GetTotalTimeSecond(StatsUtils::STATS_TYPE_SENSOR_PROXIMI… variable 252 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 253 EXPECT_EQ(expectedPower, actualPower); 283 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable [all …]
|
D | stats_service_audio_test.cpp | 132 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable 133 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 135 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 216 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable 217 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 219 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 260 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable 261 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 263 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 294 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable [all …]
|
D | stats_service_camera_test.cpp | 130 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable 131 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 133 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 239 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable 240 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 242 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 357 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable 358 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 360 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 438 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable [all …]
|
D | stats_service_subscriber_test.cpp | 170 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable 172 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 173 EXPECT_EQ(expectedPower, actualPower); 263 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable 264 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 266 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 300 double actualPower = g_statsServiceProxy->GetAppStatsMah(uid); variable 301 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 303 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 339 double actualPower = StatsUtils::DEFAULT_VALUE; variable [all …]
|
D | stats_service_bluetooth_test.cpp | 173 …double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUET… variable 174 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 176 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 239 double actualPower = StatsUtils::DEFAULT_VALUE; variable 243 actualPower = (*it).GetPower(); 246 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 248 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; 287 …double actualPower = g_statsServiceProxy->GetPartStatsMah(BatteryStatsInfo::CONSUMPTION_TYPE_BLUET… variable 288 double devPrecent = abs(expectedPower - actualPower) / expectedPower; 290 GTEST_LOG_(INFO) << __func__ << ": actual consumption = " << actualPower << " mAh"; [all …]
|