Home
last modified time | relevance | path

Searched refs:GetActiveTimeMs (Results 1 – 25 of 26) sorted by relevance

12

/ohos5.0/base/powermgr/battery_statistics/test/unittest/src/servicetest/
H A Dstats_service_core_test.cpp107 EXPECT_GT(wifiEntity->GetActiveTimeMs(StatsUtils::STATS_TYPE_WIFI_ON),
149 … BatteryStatsInfo::CONSUMPTION_TYPE_AUDIO)->GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_INVALID));
156 …BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH)->GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_INVALID…
158 … BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH)->GetActiveTimeMs(StatsUtils::STATS_TYPE_INVALID));
167 … BatteryStatsInfo::CONSUMPTION_TYPE_CAMERA)->GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_INVALID));
181 … BatteryStatsInfo::CONSUMPTION_TYPE_GNSS)->GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_INVALID));
201 BatteryStatsInfo::CONSUMPTION_TYPE_PHONE)->GetActiveTimeMs(StatsUtils::STATS_TYPE_INVALID));
206 … BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN)->GetActiveTimeMs(StatsUtils::STATS_TYPE_INVALID));
211 … BatteryStatsInfo::CONSUMPTION_TYPE_SENSOR)->GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_INVALID));
228 BatteryStatsInfo::CONSUMPTION_TYPE_WIFI)->GetActiveTimeMs(StatsUtils::STATS_TYPE_INVALID));
[all …]
/ohos5.0/base/powermgr/battery_statistics/services/native/src/entities/
H A Didle_entity.cpp32 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 Dbluetooth_entity.cpp57 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 leve… 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 Dphone_entity.cpp33 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 Dscreen_entity.cpp32 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 Dwifi_entity.cpp38 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 Dsensor_entity.cpp33 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()
H A Daudio_entity.cpp33 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 Dbattery_stats_entity.cpp56 int64_t BatteryStatsEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t l… 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 Dflashlight_entity.cpp33 int64_t FlashlightEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t lev… in GetActiveTimeMs() function in OHOS::PowerMgr::FlashlightEntity
55 auto flashlightOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_FLASHLIGHT_ON); in Calculate()
H A Dgnss_entity.cpp33 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 Dwakelock_entity.cpp33 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 Dcamera_entity.cpp31 int64_t CameraEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() function in OHOS::PowerMgr::CameraEntity
52 auto cameraOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_CAMERA_ON); in Calculate()
/ohos5.0/base/powermgr/battery_statistics/services/native/src/
H A Dbattery_stats_core.cpp573 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()
658 time = cameraEntity_->GetActiveTimeMs(uid, statsType); in GetTotalTimeMs()
664 time = gnssEntity_->GetActiveTimeMs(uid, statsType); in GetTotalTimeMs()
667 time = sensorEntity_->GetActiveTimeMs(uid, statsType); in GetTotalTimeMs()
670 time = sensorEntity_->GetActiveTimeMs(uid, statsType); in GetTotalTimeMs()
[all …]
/ohos5.0/base/powermgr/battery_statistics/services/native/include/entities/
H A Dbluetooth_entity.h35 …int64_t GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level = StatsUtils::INVALID_VALUE…
36 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
H A Dbattery_stats_entity.h36 …virtual int64_t GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level = StatsUtils::INVAL…
37 virtual int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
H A Didle_entity.h29 …int64_t GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level = StatsUtils::INVALID_VALUE…
H A Daudio_entity.h31 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
H A Dflashlight_entity.h31 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
H A Dgnss_entity.h31 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
H A Dwakelock_entity.h31 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
H A Dcamera_entity.h31 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
H A Dscreen_entity.h30 …int64_t GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level = StatsUtils::INVALID_VALUE…
H A Dphone_entity.h31 …int64_t GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level = StatsUtils::INVALID_VALUE…
H A Dsensor_entity.h31 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,

12