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;
}
Aggregations