Home
last modified time | relevance | path

Searched refs:SystemMonitorEvent (Results 1 – 5 of 5) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/systemmonitor/
DSystemMonitorTest.java60 @Captor ArgumentCaptor<SystemMonitorEvent> mEventCaptor;
74 SystemMonitorEvent event = new SystemMonitorEvent(); in testSetEventCpuUsageLevel_setsCorrectUsageLevelForHighUsage()
79 .isEqualTo(SystemMonitorEvent.USAGE_LEVEL_HI); in testSetEventCpuUsageLevel_setsCorrectUsageLevelForHighUsage()
85 SystemMonitorEvent event = new SystemMonitorEvent(); in testSetEventCpuUsageLevel_setsCorrectUsageLevelForMedUsage()
90 .isEqualTo(SystemMonitorEvent.USAGE_LEVEL_MED); in testSetEventCpuUsageLevel_setsCorrectUsageLevelForMedUsage()
96 SystemMonitorEvent event = new SystemMonitorEvent(); in testSetEventCpuUsageLevel_setsCorrectUsageLevelForLowUsage()
101 .isEqualTo(SystemMonitorEvent.USAGE_LEVEL_LOW); in testSetEventCpuUsageLevel_setsCorrectUsageLevelForLowUsage()
107 SystemMonitorEvent event = new SystemMonitorEvent(); in testSetEventMemUsageLevel_setsCorrectUsageLevelForHighUsage()
112 .isEqualTo(SystemMonitorEvent.USAGE_LEVEL_HI); in testSetEventMemUsageLevel_setsCorrectUsageLevelForHighUsage()
118 SystemMonitorEvent event = new SystemMonitorEvent(); in testSetEventMemUsageLevel_setsCorrectUsageLevelForMedUsage()
[all …]
DSystemMonitorEventUnitTest.java30 SystemMonitorEvent event = new SystemMonitorEvent(); in testCpuUsageLevelGetterSetter_correctlyGetSetCpuUsageLevel()
31 event.setCpuUsageLevel(SystemMonitorEvent.USAGE_LEVEL_HI); in testCpuUsageLevelGetterSetter_correctlyGetSetCpuUsageLevel()
34 .isEqualTo(SystemMonitorEvent.USAGE_LEVEL_HI); in testCpuUsageLevelGetterSetter_correctlyGetSetCpuUsageLevel()
39 SystemMonitorEvent event = new SystemMonitorEvent(); in testMemUsageLevelGetterSetter_correctlyGetSetMemUsageLevel()
40 event.setMemoryUsageLevel(SystemMonitorEvent.USAGE_LEVEL_MED); in testMemUsageLevelGetterSetter_correctlyGetSetMemUsageLevel()
43 .isEqualTo(SystemMonitorEvent.USAGE_LEVEL_MED); in testMemUsageLevelGetterSetter_correctlyGetSetMemUsageLevel()
/packages/services/Car/service/src/com/android/car/telemetry/systemmonitor/
DSystemMonitor.java67 void onSystemMonitorEvent(@NonNull SystemMonitorEvent event); in onSystemMonitorEvent()
165 void setEventCpuUsageLevel(@NonNull SystemMonitorEvent event, double cpuLoadPerCore) { in setEventCpuUsageLevel()
167 event.setCpuUsageLevel(SystemMonitorEvent.USAGE_LEVEL_HI); in setEventCpuUsageLevel()
170 event.setCpuUsageLevel(SystemMonitorEvent.USAGE_LEVEL_MED); in setEventCpuUsageLevel()
172 event.setCpuUsageLevel(SystemMonitorEvent.USAGE_LEVEL_LOW); in setEventCpuUsageLevel()
183 void setEventMemUsageLevel(@NonNull SystemMonitorEvent event, double memLoadRatio) { in setEventMemUsageLevel()
185 event.setMemoryUsageLevel(SystemMonitorEvent.USAGE_LEVEL_HI); in setEventMemUsageLevel()
188 event.setMemoryUsageLevel(SystemMonitorEvent.USAGE_LEVEL_MED); in setEventMemUsageLevel()
190 event.setMemoryUsageLevel(SystemMonitorEvent.USAGE_LEVEL_LOW); in setEventMemUsageLevel()
207 SystemMonitorEvent event = new SystemMonitorEvent(); in getSystemLoadRepeated()
DSystemMonitorEvent.java27 public class SystemMonitorEvent { class
/packages/services/Car/service/src/com/android/car/telemetry/
DCarTelemetryService.java70 import com.android.car.telemetry.systemmonitor.SystemMonitorEvent;
679 private void onSystemMonitorEvent(@NonNull SystemMonitorEvent event) { in onSystemMonitorEvent()
680 if (event.getCpuUsageLevel() == SystemMonitorEvent.USAGE_LEVEL_HI in onSystemMonitorEvent()
681 || event.getMemoryUsageLevel() == SystemMonitorEvent.USAGE_LEVEL_HI) { in onSystemMonitorEvent()
683 } else if (event.getCpuUsageLevel() == SystemMonitorEvent.USAGE_LEVEL_MED in onSystemMonitorEvent()
684 || event.getMemoryUsageLevel() == SystemMonitorEvent.USAGE_LEVEL_MED) { in onSystemMonitorEvent()