Searched refs:getMemoryUsageLevel (Results 1 – 4 of 4) sorted by relevance
111 assertThat(event.getMemoryUsageLevel()) in testSetEventMemUsageLevel_setsCorrectUsageLevelForHighUsage()122 assertThat(event.getMemoryUsageLevel()) in testSetEventMemUsageLevel_setsCorrectUsageLevelForMedUsage()133 assertThat(event.getMemoryUsageLevel()) in testSetEventMemUsageLevel_setsCorrectUsageLevelForLowUsage()155 assertThat(event.getMemoryUsageLevel()).isEqualTo(SystemMonitorEvent.USAGE_LEVEL_LOW); in testSetCallback_whenMemUsageLow_shouldInvokeCallback()174 assertThat(event.getMemoryUsageLevel()).isEqualTo(SystemMonitorEvent.USAGE_LEVEL_HI); in testSetCallback_whenMemUsageHigh_shouldInvokeCallback()
42 assertThat(event.getMemoryUsageLevel()) in testMemUsageLevelGetterSetter_correctlyGetSetMemUsageLevel()
57 public @UsageLevel int getMemoryUsageLevel() { in getMemoryUsageLevel() method in SystemMonitorEvent
681 || event.getMemoryUsageLevel() == SystemMonitorEvent.USAGE_LEVEL_HI) { in onSystemMonitorEvent()684 || event.getMemoryUsageLevel() == SystemMonitorEvent.USAGE_LEVEL_MED) { in onSystemMonitorEvent()