From 8148cb41fedd336a6a851facb83ff43464c85fa7 Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Sat, 24 Dec 2016 11:48:17 +0800 Subject: [PATCH] land: Clean out doze package Change-Id: Ib1b8cea2b4a4cbe7b526ed8568a0f34bc3470b8c --- doze/src/org/cyanogenmod/doze/CMSensor.java | 2 -- doze/src/org/cyanogenmod/doze/TiltSensor.java | 6 ------ 2 files changed, 8 deletions(-) diff --git a/doze/src/org/cyanogenmod/doze/CMSensor.java b/doze/src/org/cyanogenmod/doze/CMSensor.java index 7ff66c9..371cda2 100644 --- a/doze/src/org/cyanogenmod/doze/CMSensor.java +++ b/doze/src/org/cyanogenmod/doze/CMSensor.java @@ -30,8 +30,6 @@ public abstract class CMSensor { private static final String TAG = CMSensor.class.getSimpleName(); private static final String DOZE_INTENT = "com.android.systemui.doze.pulse"; - - private static final int SENSOR_WAKELOCK_DURATION = 200; private static final int BATCH_LATENCY_IN_MS = 100; private Context mContext; diff --git a/doze/src/org/cyanogenmod/doze/TiltSensor.java b/doze/src/org/cyanogenmod/doze/TiltSensor.java index 1c0f6cc..485c647 100644 --- a/doze/src/org/cyanogenmod/doze/TiltSensor.java +++ b/doze/src/org/cyanogenmod/doze/TiltSensor.java @@ -31,12 +31,6 @@ public class TiltSensor extends CMSensor { super(context, Sensor.TYPE_TILT_DETECTOR); } - @Override - void enable() { - super.enable(); - mEntryTimestamp = SystemClock.elapsedRealtime(); - } - @Override void onSensorEvent(SensorEvent event) { super.onSensorEvent(event);