summaryrefslogtreecommitdiffstats
path: root/camera/SensorListener.cpp
diff options
context:
space:
mode:
authorKyle Repinski <repinski23@gmail.com>2015-01-07 17:12:43 -0600
committerZiyan <jaraidaniel@gmail.com>2015-04-11 20:24:52 +0200
commit0ebe625decc5a52c5534bedc5ed31da332f42f80 (patch)
treefcc961a8fb7015cc1f606b9d9c7c062931e457cc /camera/SensorListener.cpp
parentc9ee5c0371fb6ca892f80f1725100ad03c8a2a2c (diff)
downloaddevice_samsung_tuna-0ebe625decc5a52c5534bedc5ed31da332f42f80.zip
device_samsung_tuna-0ebe625decc5a52c5534bedc5ed31da332f42f80.tar.gz
device_samsung_tuna-0ebe625decc5a52c5534bedc5ed31da332f42f80.tar.bz2
camera: Fix more tuna issues, spruce up debugging.
- Move very verbose logs under new CAMERAHAL_SUPERVERBOSE and co. - Add back 'default focal length', as tuna just reports '.' when trying to auto-fetch it. - Hardcode camera facing values in insertFacing (sensor ID 305 is rear, the other (306) is front). - ifdef out more things that will cause tuna to... lose its gills. - 'Fix' preview resolutions not being inserted. - Enable a few built-in workarounds that were under the 'CAMERAHAL_TUNA' define. At this point, a few intelligent camera apps can handle the camera 'OK'. AF is very spotty. Signed-off-by: Kyle Repinski <repinski23@gmail.com>
Diffstat (limited to 'camera/SensorListener.cpp')
-rw-r--r--camera/SensorListener.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/camera/SensorListener.cpp b/camera/SensorListener.cpp
index 45a278b..c86e867 100644
--- a/camera/SensorListener.cpp
+++ b/camera/SensorListener.cpp
@@ -51,11 +51,11 @@ static int sensor_events_listener(int fd, int events, void* data)
float radius = 0;
int tilt = 0, orient = 0;
- CAMHAL_LOGVA("ACCELEROMETER EVENT");
- CAMHAL_LOGVB(" azimuth = %f pitch = %f roll = %f",
- sen_events[i].vector.azimuth,
- sen_events[i].vector.pitch,
- sen_events[i].vector.roll);
+ CAMHAL_LOGSVA("ACCELEROMETER EVENT");
+ CAMHAL_LOGSVB(" azimuth = %f pitch = %f roll = %f",
+ sen_events[i].vector.azimuth,
+ sen_events[i].vector.pitch,
+ sen_events[i].vector.roll);
// see http://en.wikipedia.org/wiki/Spherical_coordinate_system#Cartesian_coordinates
// about conversion from cartesian to spherical for orientation calculations
radius = (float) sqrt(x * x + y * y + z * z);
@@ -76,9 +76,9 @@ static int sensor_events_listener(int fd, int events, void* data)
orient = 0;
}
listener->handleOrientation(orient, tilt);
- CAMHAL_LOGVB(" tilt = %d orientation = %d", tilt, orient);
+ CAMHAL_LOGSVB(" tilt = %d orientation = %d", tilt, orient);
} else if (sen_events[i].type == android::Sensor::TYPE_GYROSCOPE) {
- CAMHAL_LOGVA("GYROSCOPE EVENT");
+ CAMHAL_LOGSVA("GYROSCOPE EVENT");
}
}
}