am 6bfd8d2a: am ba8eb1ef: Use SystemClock.elapsedRealtime() instead of sensor timestamp

Merge commit '6bfd8d2a31037716f2e0964625807fc7b8e90e92' into eclair-mr2-plus-aosp

* commit '6bfd8d2a31037716f2e0964625807fc7b8e90e92':
  Use SystemClock.elapsedRealtime() instead of sensor timestamp
This commit is contained in:
Mike Lockwood
2009-11-09 16:24:15 -08:00
committed by Android Git Automerger

View File

@@ -2416,7 +2416,7 @@ class PowerManagerService extends IPowerManager.Stub
SensorEventListener mProximityListener = new SensorEventListener() {
public void onSensorChanged(SensorEvent event) {
long milliseconds = event.timestamp / 1000000;
long milliseconds = SystemClock.elapsedRealtime();
synchronized (mLocks) {
float distance = event.values[0];
long timeSinceLastEvent = milliseconds - mLastProximityEventTime;
@@ -2453,7 +2453,7 @@ class PowerManagerService extends IPowerManager.Stub
}
int value = (int)event.values[0];
long milliseconds = event.timestamp / 1000000;
long milliseconds = SystemClock.elapsedRealtime();
if (mDebugLightSensor) {
Log.d(TAG, "onSensorChanged: light value: " + value);
}