Home
last modified time | relevance | path

Searched refs:statsType (Results 1 – 25 of 45) sorted by relevance

12

/base/powermgr/battery_statistics/utils/native/src/
Dstats_utils.cpp22 std::string StatsUtils::ConvertTypeForConn(StatsType statsType) in ConvertTypeForConn() argument
25 switch (statsType) { in ConvertTypeForConn()
57 std::string StatsUtils::ConvertTypeForCpu(StatsType statsType) in ConvertTypeForCpu() argument
60 switch (statsType) { in ConvertTypeForCpu()
86 std::string StatsUtils::ConvertTypeForCommon(StatsType statsType) in ConvertTypeForCommon() argument
89 switch (statsType) { in ConvertTypeForCommon()
127 std::string StatsUtils::ConvertTypeForDebug(StatsType statsType) in ConvertTypeForDebug() argument
130 switch (statsType) { in ConvertTypeForDebug()
150 std::string StatsUtils::ConvertStatsType(StatsType statsType) in ConvertStatsType() argument
153 switch (statsType) { in ConvertStatsType()
[all …]
/base/powermgr/battery_statistics/services/native/src/
Dbattery_stats_core.cpp208 void BatteryStatsCore::UpdateStats(StatsUtils::StatsType statsType, int64_t time, int64_t data, int… in UpdateStats() argument
213 StatsUtils::ConvertStatsType(statsType).c_str(), uid, time, data); in UpdateStats()
218 switch (statsType) { in UpdateStats()
220 UpdateCounter(wifiEntity_, statsType, data, uid); in UpdateStats()
223 UpdateCounter(alarmEntity_, statsType, data, uid); in UpdateStats()
230 void BatteryStatsCore::UpdateConnectivityStats(StatsUtils::StatsType statsType, StatsUtils::StatsSt… in UpdateConnectivityStats() argument
233 switch (statsType) { in UpdateConnectivityStats()
236 UpdateTimer(bluetoothEntity_, statsType, state); in UpdateConnectivityStats()
239 UpdateTimer(wifiEntity_, statsType, state); in UpdateConnectivityStats()
243 UpdateTimer(bluetoothEntity_, statsType, state, uid); in UpdateConnectivityStats()
[all …]
/base/powermgr/battery_statistics/services/native/include/
Dbattery_stats_core.h45 …int64_t GetTotalTimeMs(StatsUtils::StatsType statsType, int16_t level = StatsUtils::INVALID_VALUE);
46 int64_t GetTotalTimeMs(int32_t uid, StatsUtils::StatsType statsType,
48 …int64_t GetTotalDataCount(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INVALID_VALUE…
49 …int64_t GetTotalConsumptionCount(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INVALI…
50 void UpdateStats(StatsUtils::StatsType statsType, StatsUtils::StatsState state,
53 void UpdateStats(StatsUtils::StatsType statsType, int64_t time, int64_t data,
84 void UpdateTimer(std::shared_ptr<BatteryStatsEntity> entity, StatsUtils::StatsType statsType,
86 void UpdateTimer(std::shared_ptr<BatteryStatsEntity> entity, StatsUtils::StatsType statsType,
91 void UpdateCounter(std::shared_ptr<BatteryStatsEntity> entity, StatsUtils::StatsType statsType,
93 …void UpdateScreenStats(StatsUtils::StatsType statsType, StatsUtils::StatsState state, int16_t leve…
[all …]
/base/powermgr/battery_statistics/services/native/include/entities/
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,
39 …virtual int64_t GetTrafficByte(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INVALID_…
40 …virtual int64_t GetConsumptionCount(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INV…
41 …virtual double GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INVALID…
42 …virtual std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(StatsUtils::StatsType statsType,
44 …shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsType statsType,
47 StatsUtils::StatsType statsType, int16_t level = StatsUtils::INVALID_VALUE);
48 … virtual std::shared_ptr<StatsHelper::Counter> GetOrCreateCounter(StatsUtils::StatsType statsType,
Dwifi_entity.h30 …int64_t GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level = StatsUtils::INVALID_VALUE…
31 …int64_t GetConsumptionCount(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INVALID_VAL…
33 …double GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INVALID_VALUE) …
34 std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(StatsUtils::StatsType statsType,
36 std::shared_ptr<StatsHelper::Counter> GetOrCreateCounter(StatsUtils::StatsType statsType,
Dphone_entity.h31 …int64_t GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level = StatsUtils::INVALID_VALUE…
33 …double GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INVALID_VALUE) …
34 std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(StatsUtils::StatsType statsType,
39 int64_t GetTotalTimeMs(StatsUtils::StatsType statsType);
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,
39 …double GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INVALID_VALUE) …
42 std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(StatsUtils::StatsType statsType,
44 …shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsType statsType,
Dalarm_entity.h30 …int64_t GetConsumptionCount(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INVALID_VAL…
32 …double GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INVALID_VALUE) …
33 std::shared_ptr<StatsHelper::Counter> GetOrCreateCounter(StatsUtils::StatsType statsType,
Dgnss_entity.h31 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
34 …double GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INVALID_VALUE) …
35 …shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsType statsType,
Daudio_entity.h31 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
34 …double GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INVALID_VALUE) …
35 …shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsType statsType,
Dwakelock_entity.h31 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
34 …double GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INVALID_VALUE) …
35 …shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsType statsType,
Dflashlight_entity.h31 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
34 …double GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INVALID_VALUE) …
35 …shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsType statsType,
Dcamera_entity.h31 int64_t GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType,
34 …double GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INVALID_VALUE) …
36 StatsUtils::StatsType statsType, int16_t level = StatsUtils::INVALID_VALUE) override;
/base/powermgr/battery_statistics/services/native/src/entities/
Dbattery_stats_entity.cpp34 int64_t BatteryStatsEntity::GetTrafficByte(StatsUtils::StatsType statsType, int32_t uid) in GetTrafficByte() argument
40 int64_t BatteryStatsEntity::GetConsumptionCount(StatsUtils::StatsType statsType, int32_t uid) in GetConsumptionCount() argument
56 int64_t BatteryStatsEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t l… in GetActiveTimeMs() argument
62 int64_t BatteryStatsEntity::GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument
96 double BatteryStatsEntity::GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid) in GetStatsPowerMah() argument
102 …ptr<StatsHelper::ActiveTimer> BatteryStatsEntity::GetOrCreateTimer(StatsUtils::StatsType statsType, in GetOrCreateTimer() argument
110 StatsUtils::StatsType statsType, int16_t level) in GetOrCreateTimer() argument
117 StatsUtils::StatsType statsType, int16_t level) in GetOrCreateTimer() argument
123 …d_ptr<StatsHelper::Counter> BatteryStatsEntity::GetOrCreateCounter(StatsUtils::StatsType statsType, in GetOrCreateCounter() argument
Dwifi_entity.cpp55 int64_t WifiEntity::GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument
58 switch (statsType) { in GetActiveTimeMs()
79 double WifiEntity::GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid) in GetStatsPowerMah() argument
84 int64_t WifiEntity::GetConsumptionCount(StatsUtils::StatsType statsType, int32_t uid) in GetConsumptionCount() argument
87 switch (statsType) { in GetConsumptionCount()
103 …tsHelper::ActiveTimer> WifiEntity::GetOrCreateTimer(StatsUtils::StatsType statsType, int16_t level) in GetOrCreateTimer() argument
106 switch (statsType) { in GetOrCreateTimer()
125 …<StatsHelper::Counter> WifiEntity::GetOrCreateCounter(StatsUtils::StatsType statsType, int32_t uid) in GetOrCreateCounter() argument
128 switch (statsType) { in GetOrCreateCounter()
Duid_entity.cpp159 double UidEntity::GetPowerForConnectivity(StatsUtils::StatsType statsType, int32_t uid) in GetPowerForConnectivity() argument
165 if (statsType == StatsUtils::STATS_TYPE_BLUETOOTH_BR_SCAN) { in GetPowerForConnectivity()
167 } else if (statsType == StatsUtils::STATS_TYPE_BLUETOOTH_BLE_SCAN) { in GetPowerForConnectivity()
173 double UidEntity::GetPowerForCommon(StatsUtils::StatsType statsType, int32_t uid) in GetPowerForCommon() argument
186 if (statsType == StatsUtils::STATS_TYPE_CAMERA_ON) { in GetPowerForCommon()
188 } else if (statsType == StatsUtils::STATS_TYPE_FLASHLIGHT_ON) { in GetPowerForCommon()
190 } else if (statsType == StatsUtils::STATS_TYPE_GNSS_ON) { in GetPowerForCommon()
192 } else if (statsType == StatsUtils::STATS_TYPE_SENSOR_GRAVITY_ON) { in GetPowerForCommon()
194 } else if (statsType == StatsUtils::STATS_TYPE_SENSOR_PROXIMITY_ON) { in GetPowerForCommon()
196 } else if (statsType == StatsUtils::STATS_TYPE_AUDIO_ON) { in GetPowerForCommon()
[all …]
Dflashlight_entity.cpp34 int64_t FlashlightEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t lev… in GetActiveTimeMs() argument
37 switch (statsType) { in GetActiveTimeMs()
88 double FlashlightEntity::GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid) in GetStatsPowerMah() argument
91 if (statsType == StatsUtils::STATS_TYPE_FLASHLIGHT_ON) { in GetStatsPowerMah()
106 StatsUtils::StatsType statsType, int16_t level) in GetOrCreateTimer() argument
109 switch (statsType) { in GetOrCreateTimer()
Dwakelock_entity.cpp34 int64_t WakelockEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument
37 switch (statsType) { in GetActiveTimeMs()
88 double WakelockEntity::GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid) in GetStatsPowerMah() argument
91 if (statsType == StatsUtils::STATS_TYPE_WAKELOCK_HOLD) { in GetStatsPowerMah()
105 …Helper::ActiveTimer> WakelockEntity::GetOrCreateTimer(int32_t uid, StatsUtils::StatsType statsType, in GetOrCreateTimer() argument
109 switch (statsType) { in GetOrCreateTimer()
Dgnss_entity.cpp34 int64_t GnssEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument
37 switch (statsType) { in GetActiveTimeMs()
87 double GnssEntity::GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid) in GetStatsPowerMah() argument
90 if (statsType == StatsUtils::STATS_TYPE_GNSS_ON) { in GetStatsPowerMah()
104 …tatsHelper::ActiveTimer> GnssEntity::GetOrCreateTimer(int32_t uid, StatsUtils::StatsType statsType, in GetOrCreateTimer() argument
108 switch (statsType) { in GetOrCreateTimer()
Daudio_entity.cpp34 int64_t AudioEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument
37 switch (statsType) { in GetActiveTimeMs()
87 double AudioEntity::GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid) in GetStatsPowerMah() argument
90 if (statsType == StatsUtils::STATS_TYPE_AUDIO_ON) { in GetStatsPowerMah()
104 …atsHelper::ActiveTimer> AudioEntity::GetOrCreateTimer(int32_t uid, StatsUtils::StatsType statsType, in GetOrCreateTimer() argument
108 switch (statsType) { in GetOrCreateTimer()
Dalarm_entity.cpp34 int64_t AlarmEntity::GetConsumptionCount(StatsUtils::StatsType statsType, int32_t uid) in GetConsumptionCount() argument
37 switch (statsType) { in GetConsumptionCount()
86 double AlarmEntity::GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid) in GetStatsPowerMah() argument
89 if (statsType == StatsUtils::STATS_TYPE_ALARM) { in GetStatsPowerMah()
103 …StatsHelper::Counter> AlarmEntity::GetOrCreateCounter(StatsUtils::StatsType statsType, int32_t uid) in GetOrCreateCounter() argument
106 switch (statsType) { in GetOrCreateCounter()
Didle_entity.cpp33 int64_t IdleEntity::GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument
36 switch (statsType) { in GetActiveTimeMs()
90 double IdleEntity::GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid) in GetStatsPowerMah() argument
93 if (statsType == StatsUtils::STATS_TYPE_PHONE_IDLE) { in GetStatsPowerMah()
96 } else if (statsType == StatsUtils::STATS_TYPE_CPU_SUSPEND) { in GetStatsPowerMah()
/base/powermgr/battery_statistics/services/native/test/unittest/src/mock/
Dstats_mock_parcel_test.cpp51 StatsUtils::StatsType statsType = StatsUtils::STATS_TYPE_PHONE_ACTIVE; variable
52 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetTotalTimeSecond(statsType));
53 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetTotalDataBytes(statsType));
78 StatsUtils::StatsType statsType = StatsUtils::STATS_TYPE_PHONE_ACTIVE; variable
79 …EXPECT_EQ(StatsUtils::DEFAULT_VALUE, sptrStatsProxy->GetTotalTimeSecond(statsType, StatsUtils::INV…
80 …EXPECT_EQ(StatsUtils::DEFAULT_VALUE, sptrStatsProxy->GetTotalDataBytes(statsType, StatsUtils::INVA…
106 StatsUtils::StatsType statsType = StatsUtils::STATS_TYPE_PHONE_ACTIVE; variable
107 …EXPECT_EQ(StatsUtils::DEFAULT_VALUE, sptrStatsProxy->GetTotalTimeSecond(statsType, StatsUtils::INV…
108 …EXPECT_EQ(StatsUtils::DEFAULT_VALUE, sptrStatsProxy->GetTotalDataBytes(statsType, StatsUtils::INVA…
Dstats_mock_peer_test.cpp46 StatsUtils::StatsType statsType = StatsUtils::STATS_TYPE_PHONE_ACTIVE; variable
47 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetTotalTimeSecond(statsType));
48 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, statsClient.GetTotalDataBytes(statsType));
/base/powermgr/battery_statistics/utils/native/include/
Dstats_utils.h117 static std::string ConvertStatsType(StatsType statsType);
119 static std::string ConvertTypeForConn(StatsType statsType);
120 static std::string ConvertTypeForCpu(StatsType statsType);
121 static std::string ConvertTypeForCommon(StatsType statsType);
122 static std::string ConvertTypeForDebug(StatsType statsType);

12