Search in sources :

Example 1 with RadioState

use of com.android.tools.profilers.network.NetworkRadioDataSeries.RadioState in project android by JetBrains.

the class NetworkRadioView method getLegendData.

@NotNull
private static List<LegendRenderData> getLegendData() {
    List<LegendRenderData> legendData = new ArrayList<>();
    for (RadioState state : RadioState.values()) {
        if (state == RadioState.NONE) {
            continue;
        } else if (state == RadioState.LOW) {
            // consider removing this state entirely.
            continue;
        }
        LegendRenderData renderData = new LegendRenderData(LegendRenderData.IconType.LINE, RADIO_STATE_COLOR.get(state), state.toString());
        legendData.add(renderData);
    }
    return legendData;
}
Also used : LegendRenderData(com.android.tools.adtui.LegendRenderData) ArrayList(java.util.ArrayList) RadioState(com.android.tools.profilers.network.NetworkRadioDataSeries.RadioState) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

LegendRenderData (com.android.tools.adtui.LegendRenderData)1 RadioState (com.android.tools.profilers.network.NetworkRadioDataSeries.RadioState)1 ArrayList (java.util.ArrayList)1 NotNull (org.jetbrains.annotations.NotNull)1