/base/powermgr/battery_statistics/services/native/src/entities/ |
H A D | idle_entity.cpp | 32 int64_t IdleEntity::GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level)
in GetActiveTimeMs() function in OHOS::PowerMgr::IdleEntity 67 auto bootOnBatteryTimeMs = GetActiveTimeMs(StatsUtils::STATS_TYPE_CPU_SUSPEND);
in CalculateCpuSuspendPower() 79 auto upOnBatteryTimeMs = GetActiveTimeMs(StatsUtils::STATS_TYPE_PHONE_IDLE);
in CalculateCpuIdlePower() 118 int64_t upTime = GetActiveTimeMs(StatsUtils::STATS_TYPE_PHONE_IDLE);
in DumpInfo() 119 int64_t bootTime = GetActiveTimeMs(StatsUtils::STATS_TYPE_CPU_SUSPEND);
in DumpInfo()
|
H A D | screen_entity.cpp | 32 int64_t ScreenEntity::GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level)
in GetActiveTimeMs() function in OHOS::PowerMgr::ScreenEntity 82 auto screenOnTimeMs = GetActiveTimeMs(StatsUtils::STATS_TYPE_SCREEN_ON);
in Calculate() 91 auto timeMs = GetActiveTimeMs(StatsUtils::STATS_TYPE_SCREEN_BRIGHTNESS, iter.first);
in Calculate() 175 int64_t onTime = GetActiveTimeMs(StatsUtils::STATS_TYPE_SCREEN_ON);
in DumpInfo()
|
H A D | phone_entity.cpp | 33 int64_t PhoneEntity::GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level)
in GetActiveTimeMs() function in OHOS::PowerMgr::PhoneEntity 105 auto phoneOnLevelTimeMs = GetActiveTimeMs(StatsUtils::STATS_TYPE_PHONE_ACTIVE, i);
in Calculate() 115 auto phoneDataLevelTimeMs = GetActiveTimeMs(StatsUtils::STATS_TYPE_PHONE_DATA, i);
in Calculate() 207 phoneOnTime += GetActiveTimeMs(StatsUtils::STATS_TYPE_PHONE_ACTIVE, i);
in DumpInfo() 208 phoneDataTime += GetActiveTimeMs(StatsUtils::STATS_TYPE_PHONE_DATA, i);
in DumpInfo()
|
H A D | wifi_entity.cpp | 38 auto wifiOnTimeMs = GetActiveTimeMs(StatsUtils::STATS_TYPE_WIFI_ON);
in Calculate() 55 int64_t WifiEntity::GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level)
in GetActiveTimeMs() function in OHOS::PowerMgr::WifiEntity 141 int64_t time = GetActiveTimeMs(StatsUtils::STATS_TYPE_WIFI_ON);
in DumpInfo()
|
H A D | bluetooth_entity.cpp | 57 auto bluetoothBrOnTimeMs = GetActiveTimeMs(StatsUtils::STATS_TYPE_BLUETOOTH_BR_ON);
in CalculateBtPower() 64 auto bluetoothBleOnTimeMs = GetActiveTimeMs(StatsUtils::STATS_TYPE_BLUETOOTH_BLE_ON);
in CalculateBtPower() 98 auto bluetoothBrScanTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_BLUETOOTH_BR_SCAN);
in CalculateBtPowerForApp() 105 auto bluetoothBleScanTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_BLUETOOTH_BLE_SCAN);
in CalculateBtPowerForApp() 173 int64_t BluetoothEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level)
in GetActiveTimeMs() function in OHOS::PowerMgr::BluetoothEntity 205 int64_t BluetoothEntity::GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level)
in GetActiveTimeMs() function in OHOS::PowerMgr::BluetoothEntity 447 int64_t brOntime = GetActiveTimeMs(StatsUtils::STATS_TYPE_BLUETOOTH_BR_ON);
in DumpInfo() 448 int64_t bleOntime = GetActiveTimeMs(StatsUtils::STATS_TYPE_BLUETOOTH_BR_ON);
in DumpInfo()
|
H A D | flashlight_entity.cpp | 33 int64_t FlashlightEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level)
in GetActiveTimeMs() function in OHOS::PowerMgr::FlashlightEntity 55 auto flashlightOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_FLASHLIGHT_ON);
in Calculate()
|
H A D | gnss_entity.cpp | 33 int64_t GnssEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level)
in GetActiveTimeMs() function in OHOS::PowerMgr::GnssEntity 54 auto gnssOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_GNSS_ON);
in Calculate()
|
H A D | battery_stats_entity.cpp | 56 int64_t BatteryStatsEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level)
in GetActiveTimeMs() function in OHOS::PowerMgr::BatteryStatsEntity 62 int64_t BatteryStatsEntity::GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level)
in GetActiveTimeMs() function in OHOS::PowerMgr::BatteryStatsEntity
|
H A D | audio_entity.cpp | 33 int64_t AudioEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level)
in GetActiveTimeMs() function in OHOS::PowerMgr::AudioEntity 58 auto audioOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_AUDIO_ON);
in Calculate()
|
H A D | wakelock_entity.cpp | 33 int64_t WakelockEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level)
in GetActiveTimeMs() function in OHOS::PowerMgr::WakelockEntity 55 auto wakelockOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_WAKELOCK_HOLD);
in Calculate()
|
H A D | sensor_entity.cpp | 33 int64_t SensorEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level)
in GetActiveTimeMs() function in OHOS::PowerMgr::SensorEntity 70 auto gravityOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_SENSOR_GRAVITY_ON);
in CalculateGravity() 90 auto proximityOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_SENSOR_PROXIMITY_ON);
in CalculateProximity()
|
/base/powermgr/battery_statistics/test/unittest/src/servicetest/ |
H A D | stats_service_core_test.cpp | 111 EXPECT_GT(wifiEntity->GetActiveTimeMs(StatsUtils::STATS_TYPE_WIFI_ON), in HWTEST_F() 157 BatteryStatsInfo::CONSUMPTION_TYPE_AUDIO)->GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_INVALID)); in HWTEST_F() 164 BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH)->GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_INVALID)); in HWTEST_F() 166 BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH)->GetActiveTimeMs(StatsUtils::STATS_TYPE_INVALID)); in HWTEST_F() 175 BatteryStatsInfo::CONSUMPTION_TYPE_CAMERA)->GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_INVALID)); in HWTEST_F() 182 BatteryStatsInfo::CONSUMPTION_TYPE_FLASHLIGHT)->GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_INVALID)); in HWTEST_F() 189 BatteryStatsInfo::CONSUMPTION_TYPE_GNSS)->GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_INVALID)); in HWTEST_F() 211 BatteryStatsInfo::CONSUMPTION_TYPE_PHONE)->GetActiveTimeMs(StatsUtils::STATS_TYPE_INVALID)); in HWTEST_F() 216 BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN)->GetActiveTimeMs(StatsUtils::STATS_TYPE_INVALID)); in HWTEST_F() 221 BatteryStatsInfo::CONSUMPTION_TYPE_SENSOR)->GetActiveTimeMs(ui in HWTEST_F() [all...] |
/base/powermgr/battery_statistics/services/native/include/entities/ |
H A D | bluetooth_entity.h | 35 int64_t GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level = StatsUtils::INVALID_VALUE) override;
36 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
|
H A D | battery_stats_entity.h | 36 virtual int64_t GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level = StatsUtils::INVALID_VALUE);
37 virtual int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
|
H A D | idle_entity.h | 29 int64_t GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level = StatsUtils::INVALID_VALUE) override;
|
H A D | flashlight_entity.h | 31 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
|
H A D | audio_entity.h | 31 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
|
H A D | gnss_entity.h | 31 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
|
H A D | wakelock_entity.h | 31 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
|
H A D | phone_entity.h | 31 int64_t GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level = StatsUtils::INVALID_VALUE) override;
|
H A D | camera_entity.h | 31 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
|
H A D | sensor_entity.h | 31 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
|
H A D | wifi_entity.h | 30 int64_t GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level = StatsUtils::INVALID_VALUE) override;
|
H A D | screen_entity.h | 30 int64_t GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level = StatsUtils::INVALID_VALUE) override;
|
/base/powermgr/battery_statistics/services/native/src/ |
H A D | battery_stats_core.cpp | 573 time = screenEntity_->GetActiveTimeMs(statsType, level); in GetTotalTimeMs() 576 time = screenEntity_->GetActiveTimeMs(statsType); in GetTotalTimeMs() 580 time = bluetoothEntity_->GetActiveTimeMs(statsType); in GetTotalTimeMs() 583 time = wifiEntity_->GetActiveTimeMs(statsType); in GetTotalTimeMs() 587 time = phoneEntity_->GetActiveTimeMs(statsType, level); in GetTotalTimeMs() 591 time = idleEntity_->GetActiveTimeMs(statsType); in GetTotalTimeMs() 655 time = bluetoothEntity_->GetActiveTimeMs(uid, statsType); in GetTotalTimeMs() 658 time = cameraEntity_->GetActiveTimeMs(uid, statsType); in GetTotalTimeMs() 661 time = flashlightEntity_->GetActiveTimeMs(uid, statsType); in GetTotalTimeMs() 664 time = gnssEntity_->GetActiveTimeMs(ui in GetTotalTimeMs() [all...] |