/base/powermgr/battery_statistics/test/unittest/src/clienttest/ |
D | stats_service_test.cpp | 87 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 88 statsService->OnStart(); 89 statsService->OnStart(); 90 bool ret = statsService->IsServiceReady(); 101 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 102 statsService->OnAddSystemAbility(DFX_SYS_EVENT_SERVICE_ABILITY_ID, ""); 103 statsService->OnAddSystemAbility(COMMON_EVENT_SERVICE_ID, ""); 104 statsService->OnStart(); 105 statsService->OnStop(); 106 bool ret = statsService->IsServiceReady(); [all …]
|
D | stats_service_death_test.cpp | 74 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 75 statsService->OnStart(); 76 bool ret = statsService->IsServiceReady();
|
/base/powermgr/battery_statistics/test/unittest/src/servicetest/ |
D | stats_service_subscriber_test.cpp | 76 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in SetUp() local 77 statsService->SetOnBattery(true); in SetUp() 82 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in TearDown() local 83 statsService->SetOnBattery(false); in TearDown() 110 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 119 StatsWriteHiSysEvent(statsService, 126 PublishChangedEvent(statsService, CommonEventSupport::COMMON_EVENT_BATTERY_CHANGED); 142 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 152 PublishChangedEvent(statsService, CommonEventSupport::COMMON_EVENT_BATTERY_CHANGED); 153 StatsWriteHiSysEvent(statsService, [all …]
|
D | stats_service_camera_test.cpp | 61 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in SetUp() local 62 statsService->SetOnBattery(true); in SetUp() 67 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in TearDown() local 68 statsService->SetOnBattery(false); in TearDown() 81 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 88 StatsWriteHiSysEvent(statsService, 92 StatsWriteHiSysEvent(statsService, 113 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 121 StatsWriteHiSysEvent(statsService, 125 StatsWriteHiSysEvent(statsService, [all …]
|
D | stats_service_phone_test.cpp | 63 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in SetUp() local 64 statsService->SetOnBattery(true); in SetUp() 69 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in TearDown() local 70 statsService->SetOnBattery(false); in TearDown() 83 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 89 StatsWriteHiSysEvent(statsService, 93 StatsWriteHiSysEvent(statsService, 114 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 122 StatsWriteHiSysEvent(statsService, 126 StatsWriteHiSysEvent(statsService, [all …]
|
D | stats_service_display_test.cpp | 42 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in SetLastBrightness() local 47 StatsWriteHiSysEvent(statsService, in SetLastBrightness() 50 StatsWriteHiSysEvent(statsService, in SetLastBrightness() 54 StatsWriteHiSysEvent(statsService, in SetLastBrightness() 88 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in SetUp() local 89 statsService->SetOnBattery(true); in SetUp() 94 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in TearDown() local 95 statsService->SetOnBattery(false); in TearDown() 108 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 115 StatsWriteHiSysEvent(statsService, [all …]
|
D | stats_service_audio_test.cpp | 61 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in SetUp() local 62 statsService->SetOnBattery(true); in SetUp() 67 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in TearDown() local 68 statsService->SetOnBattery(false); in TearDown() 81 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 89 StatsWriteHiSysEvent(statsService, 93 StatsWriteHiSysEvent(statsService, 114 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 123 StatsWriteHiSysEvent(statsService, 127 StatsWriteHiSysEvent(statsService, [all …]
|
D | stats_service_wifi_test.cpp | 62 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in SetUp() local 63 statsService->SetOnBattery(true); in SetUp() 68 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in TearDown() local 69 statsService->SetOnBattery(false); in TearDown() 82 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 87 StatsWriteHiSysEvent(statsService, 91 StatsWriteHiSysEvent(statsService, 112 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 118 StatsWriteHiSysEvent(statsService, 122 StatsWriteHiSysEvent(statsService, [all …]
|
D | stats_service_location_test.cpp | 61 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in SetUp() local 62 statsService->SetOnBattery(true); in SetUp() 67 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in TearDown() local 68 statsService->SetOnBattery(false); in TearDown() 81 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 89 StatsWriteHiSysEvent(statsService, 93 StatsWriteHiSysEvent(statsService, 114 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 123 StatsWriteHiSysEvent(statsService, 127 StatsWriteHiSysEvent(statsService, [all …]
|
D | stats_service_powermgr_test.cpp | 64 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in SetUp() local 65 statsService->SetOnBattery(true); in SetUp() 70 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in TearDown() local 71 statsService->SetOnBattery(false); in TearDown() 84 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 92 StatsWriteHiSysEvent(statsService, 96 StatsWriteHiSysEvent(statsService, 116 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 125 StatsWriteHiSysEvent(statsService, 129 StatsWriteHiSysEvent(statsService, [all …]
|
D | stats_service_bluetooth_test.cpp | 41 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in WriteBluetoothEvent() local 47 StatsWriteHiSysEvent(statsService, in WriteBluetoothEvent() 51 StatsWriteHiSysEvent(statsService, in WriteBluetoothEvent() 55 StatsWriteHiSysEvent(statsService, in WriteBluetoothEvent() 59 StatsWriteHiSysEvent(statsService, in WriteBluetoothEvent() 63 StatsWriteHiSysEvent(statsService, in WriteBluetoothEvent() 67 StatsWriteHiSysEvent(statsService, in WriteBluetoothEvent() 71 StatsWriteHiSysEvent(statsService, in WriteBluetoothEvent() 75 StatsWriteHiSysEvent(statsService, in WriteBluetoothEvent() 103 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in SetUp() local [all …]
|
D | stats_service_alarm_test.cpp | 61 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in SetUp() local 62 statsService->SetOnBattery(true); in SetUp() 67 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in TearDown() local 68 statsService->SetOnBattery(false); in TearDown() 81 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 89 StatsWriteHiSysEvent(statsService, 111 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 120 StatsWriteHiSysEvent(statsService, 142 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 152 StatsWriteHiSysEvent(statsService, [all …]
|
D | stats_service_dump_test.cpp | 67 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in SetUp() local 68 statsService->SetOnBattery(true); in SetUp() 73 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in TearDown() local 74 statsService->SetOnBattery(false); in TearDown() 87 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 93 StatsWriteHiSysEvent(statsService, 109 StatsWriteHiSysEvent(statsService, 127 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 137 StatsWriteHiSysEvent(statsService, 141 StatsWriteHiSysEvent(statsService, [all …]
|
D | stats_service_stub_test.cpp | 41 …sptr<BatteryStatsService> statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance… variable 42 sptr<BatteryStatsStub> statsStub = static_cast<BatteryStatsStub*>(statsService); 62 …sptr<BatteryStatsService> statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance… variable 63 sptr<BatteryStatsStub> statsStub = static_cast<BatteryStatsStub*>(statsService); 88 …sptr<BatteryStatsService> statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance… variable 89 sptr<BatteryStatsStub> statsStub = static_cast<BatteryStatsStub*>(statsService);
|
D | stats_service_core_test.cpp | 43 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in SetUp() local 44 auto statsCore = statsService->GetBatteryStatsCore(); in SetUp() 50 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in TearDown() local 51 auto statsCore = statsService->GetBatteryStatsCore(); in TearDown() 64 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 65 auto statsCore = statsService->GetBatteryStatsCore(); 92 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable 93 auto statsCore = statsService->GetBatteryStatsCore(); 94 statsService->SetOnBattery(true); 109 statsService->SetOnBattery(false); [all …]
|
/base/powermgr/battery_statistics/services/native/src/ |
D | battery_stats_subscriber.cpp | 37 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in OnReceiveEvent() local 38 if (statsService == nullptr) { in OnReceiveEvent() 43 statsService->GetBatteryStatsCore()->SaveBatteryStatsData(); in OnReceiveEvent() 54 statsService->GetBatteryStatsCore()->Reset(); in OnReceiveEvent()
|
D | battery_stats_listener.cpp | 61 auto statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); in ProcessHiSysEvent() local 62 auto detector = statsService->GetBatteryStatsDetector(); in ProcessHiSysEvent()
|