Searched refs:getCpuUsageLevel (Results 1 – 4 of 4) sorted by relevance
78 assertThat(event.getCpuUsageLevel()) in testSetEventCpuUsageLevel_setsCorrectUsageLevelForHighUsage()89 assertThat(event.getCpuUsageLevel()) in testSetEventCpuUsageLevel_setsCorrectUsageLevelForMedUsage()100 assertThat(event.getCpuUsageLevel()) in testSetEventCpuUsageLevel_setsCorrectUsageLevelForLowUsage()153 assertThat(event.getCpuUsageLevel()).isEqualTo(SystemMonitorEvent.USAGE_LEVEL_LOW); in testSetCallback_whenMemUsageLow_shouldInvokeCallback()
33 assertThat(event.getCpuUsageLevel()) in testCpuUsageLevelGetterSetter_correctlyGetSetCpuUsageLevel()
53 public @UsageLevel int getCpuUsageLevel() { in getCpuUsageLevel() method in SystemMonitorEvent
680 if (event.getCpuUsageLevel() == SystemMonitorEvent.USAGE_LEVEL_HI in onSystemMonitorEvent()683 } else if (event.getCpuUsageLevel() == SystemMonitorEvent.USAGE_LEVEL_MED in onSystemMonitorEvent()