getPowerSaveMode static method

PowerSaveMode getPowerSaveMode(
  1. int command
)

Implementation

static PowerSaveMode getPowerSaveMode(int command) {
  List<PowerSaveMode> var1 = _values;
  int var2 = var1.length;

  for (int var3 = 0; var3 < var2; ++var3) {
    PowerSaveMode mode = var1[var3];
    if (mode.getCommand() == command) {
      return mode;
    }
  }

  return NOCHANGE;
}