package K.K.K.ʬ;

import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;

/* renamed from: K.K.K.ʬ.ඓ  reason: contains not printable characters */
public class C2368 implements SensorEventListener {

    /* renamed from: ʬ  reason: contains not printable characters */
    public float f8175;

    /* renamed from: ῲ  reason: contains not printable characters */
    public Sensor f8176 = this.f8177.getDefaultSensor(1);

    /* renamed from: K  reason: contains not printable characters */
    public SensorManager f8177;

    /* renamed from: 㸾  reason: contains not printable characters */
    public float f8178;

    public C2368(Context context) {
        this.f8177 = (SensorManager) context.getSystemService("sensor");
        Sensor sensor = this.f8176;
        if (sensor != null) {
            this.f8177.registerListener(this, sensor, 3);
            System.currentTimeMillis();
        }
    }

    public void onAccuracyChanged(Sensor sensor, int i) {
    }

    public void onSensorChanged(SensorEvent sensorEvent) {
        this.f8175 = sensorEvent.values[1];
        float f = this.f8175;
        if (f > this.f8178) {
            this.f8178 = f;
        }
    }
}
