summaryrefslogtreecommitdiffstats
path: root/include/camera/Camera.h
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2013-02-26 01:40:39 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2013-02-26 01:40:39 +0000
commitb39f30b0a4902ea0f28454885785da4b2629fe25 (patch)
treec4042ba7bf201f8d4ac726e876f30cc168f0d032 /include/camera/Camera.h
parentb4ac0ea6c45c04ac3e69d6b2243cfec58e858495 (diff)
parentceb388d6c03c38b96dc41c0ea4804b749aa077c4 (diff)
downloadframeworks_av-b39f30b0a4902ea0f28454885785da4b2629fe25.zip
frameworks_av-b39f30b0a4902ea0f28454885785da4b2629fe25.tar.gz
frameworks_av-b39f30b0a4902ea0f28454885785da4b2629fe25.tar.bz2
am ceb388d6: CameraService and Stagefright: Support AppOps
* commit 'ceb388d6c03c38b96dc41c0ea4804b749aa077c4': CameraService and Stagefright: Support AppOps
Diffstat (limited to 'include/camera/Camera.h')
-rw-r--r--include/camera/Camera.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/camera/Camera.h b/include/camera/Camera.h
index 8b87de6..be2b7f4 100644
--- a/include/camera/Camera.h
+++ b/include/camera/Camera.h
@@ -53,6 +53,7 @@ class ICamera;
class Surface;
class Mutex;
class String8;
+class String16;
// ref-counted object for callbacks
class CameraListener: virtual public RefBase
@@ -67,12 +68,19 @@ public:
class Camera : public BnCameraClient, public IBinder::DeathRecipient
{
public:
+ enum {
+ USE_CALLING_UID = -1
+ };
+
// construct a camera client from an existing remote
static sp<Camera> create(const sp<ICamera>& camera);
static int32_t getNumberOfCameras();
static status_t getCameraInfo(int cameraId,
struct CameraInfo* cameraInfo);
- static sp<Camera> connect(int cameraId);
+ static sp<Camera> connect(int cameraId,
+ const String16& clientPackageName,
+ int clientUid);
+
virtual ~Camera();
void init();