content: package amirz.dngprocessor.device;
  
  import android.util.SparseArray;
  
  import amirz.dngprocessor.params.SensorParams;
  import amirz.dngprocessor.parser.TIFF;
  import amirz.dngprocessor.parser.TIFFTag;
  
  public class OnePlus3 extends OnePlus {
      @Override
      public boolean isModel(String model) {
          return model.startsWith("ONEPLUS A3");
      }
  
      @Override
      public void sensorCorrection(SparseArray<TIFFTag> tags, SensorParams sensor) {
          super.sensorCorrection(tags, sensor);
      }
  
      @Override
      void saturationCorrection(float[] saturationMap) {
          super.saturationCorrection(saturationMap);
          saturationMap[0] *= 1.1f;
          saturationMap[2] *= 1.1f;
          saturationMap[7] *= 1.1f;
      }
  
      private boolean lowLight(SparseArray<TIFFTag> tags) {
          return exposureAtLeast(tags, 0.05f);
      }
  
      private boolean noLight(SparseArray<TIFFTag> tags) {
          return exposureAtLeast(tags, 0.1f);
      }
  
      private boolean exposureAtLeast(SparseArray<TIFFTag> tags, float min) {
          TIFFTag exposure = tags.get(TIFF.TAG_ExposureTime);
          return exposure != null && exposure.getRational().floatValue() >= min;
      }
  }
  