From c5f4358c48d6e50b2affb3ad6c2c0f59546f5b04 Mon Sep 17 00:00:00 2001 From: Kyle Repinski Date: Wed, 7 Jan 2015 08:39:28 -0600 Subject: camera: Update camera HAL. OmapZoom p-jb-release branch with 'CameraHal: Camera Capabilities query update' reverted, as well as a bunch of stuff ifdef'd out. Needs a lot of work still. At this point it's a regression, but it has to be done. --- camera/inc/SensorListener.h | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'camera/inc/SensorListener.h') diff --git a/camera/inc/SensorListener.h b/camera/inc/SensorListener.h index 913eb95..44037b7 100644 --- a/camera/inc/SensorListener.h +++ b/camera/inc/SensorListener.h @@ -30,7 +30,10 @@ #include #include -namespace android { +#include "Common.h" + +namespace Ti { +namespace Camera { /** * SensorListner class - Registers with sensor manager to get sensor events @@ -38,11 +41,11 @@ namespace android { typedef void (*orientation_callback_t) (uint32_t orientation, uint32_t tilt, void* cookie); -class SensorLooperThread : public Thread { +class SensorLooperThread : public android::Thread { public: - SensorLooperThread(Looper* looper) + SensorLooperThread(android::Looper* looper) : Thread(false) { - mLooper = sp(looper); + mLooper = android::sp(looper); } ~SensorLooperThread() { mLooper.clear(); @@ -58,11 +61,11 @@ class SensorLooperThread : public Thread { mLooper->wake(); } private: - sp mLooper; + android::sp mLooper; }; -class SensorListener : public RefBase +class SensorListener : public android::RefBase { /* public - types */ public: @@ -85,17 +88,18 @@ public: void handleOrientation(uint32_t orientation, uint32_t tilt); /* public - member variables */ public: - sp mSensorEventQueue; + android::sp mSensorEventQueue; /* private - member variables */ private: int sensorsEnabled; orientation_callback_t mOrientationCb; void *mCbCookie; - sp mLooper; - sp mSensorLooperThread; - Mutex mLock; + android::sp mLooper; + android::sp mSensorLooperThread; + android::Mutex mLock; }; -} +} // namespace Camera +} // namespace Ti #endif -- cgit v1.1