code: public void setWakeUpFlag(boolean wakeup) {
      int wakeUpSensorMask = reflector(_Sensor_.class).getWakeUpSensorFlag();
  
      if (wakeup) {
        setMask(wakeUpSensorMask);
      } else {
        clearMask(wakeUpSensorMask);
      }
    }
docs: Controls the return value of {@link Sensor#isWakeUpSensor()}.