summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/CameraService.h
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2016-01-14 22:35:00 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-01-14 22:35:00 +0000
commitfb5043a703f596b7393c1e24ca4b321b0f697293 (patch)
treee73accf4133146bc489c380a720173e55c6e7fbe /services/camera/libcameraservice/CameraService.h
parent6dd6c546513aa18dc1d7fba0f72d670edce34f77 (diff)
parent795243686fe2e1c352732b47bcdb6ea9e9e7e39e (diff)
downloadframeworks_av-fb5043a703f596b7393c1e24ca4b321b0f697293.zip
frameworks_av-fb5043a703f596b7393c1e24ca4b321b0f697293.tar.gz
frameworks_av-fb5043a703f596b7393c1e24ca4b321b0f697293.tar.bz2
Camera: Disallow dumping clients directly am: c400396525
am: 795243686f * commit '795243686fe2e1c352732b47bcdb6ea9e9e7e39e': Camera: Disallow dumping clients directly
Diffstat (limited to 'services/camera/libcameraservice/CameraService.h')
-rw-r--r--services/camera/libcameraservice/CameraService.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/services/camera/libcameraservice/CameraService.h b/services/camera/libcameraservice/CameraService.h
index 4b0eeb7..d2c1bd3 100644
--- a/services/camera/libcameraservice/CameraService.h
+++ b/services/camera/libcameraservice/CameraService.h
@@ -87,6 +87,9 @@ public:
// Default number of messages to store in eviction log
static const size_t DEFAULT_EVENT_LOG_LENGTH = 100;
+ // Event log ID
+ static const int SN_EVENT_LOG_ID = 0x534e4554;
+
// Implementation of BinderService<T>
static char const* getServiceName() { return "media.camera"; }
@@ -201,7 +204,10 @@ public:
return mRemoteBinder;
}
- virtual status_t dump(int fd, const Vector<String16>& args) = 0;
+ // Disallows dumping over binder interface
+ virtual status_t dump(int fd, const Vector<String16>& args);
+ // Internal dump method to be called by CameraService
+ virtual status_t dumpClient(int fd, const Vector<String16>& args) = 0;
// Return the package name for this client
virtual String16 getPackageName() const;