summaryrefslogtreecommitdiffstats
path: root/services/camera
diff options
context:
space:
mode:
authorRuben Brunk <rubenbrunk@google.com>2014-05-02 22:23:44 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-02 22:23:44 +0000
commit6c516d800d97b7f25a22574998cb055c9d7f7b16 (patch)
treea6b9e79950b0db6af168216b1e71aa63eb095eb3 /services/camera
parent0a9aa4f5539482061dfe4dfa6128ef3696557818 (diff)
parent4764324d2704f1b08bb7407014bf203924ff2363 (diff)
downloadframeworks_av-6c516d800d97b7f25a22574998cb055c9d7f7b16.zip
frameworks_av-6c516d800d97b7f25a22574998cb055c9d7f7b16.tar.gz
frameworks_av-6c516d800d97b7f25a22574998cb055c9d7f7b16.tar.bz2
Merge "camera3: Update CameraMetadata vendor tag handling."
Diffstat (limited to 'services/camera')
-rw-r--r--services/camera/libcameraservice/CameraService.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/services/camera/libcameraservice/CameraService.cpp b/services/camera/libcameraservice/CameraService.cpp
index 02bca1f..9001b3a 100644
--- a/services/camera/libcameraservice/CameraService.cpp
+++ b/services/camera/libcameraservice/CameraService.cpp
@@ -1257,7 +1257,20 @@ status_t CameraService::dump(int fd, const Vector<String16>& args) {
result.appendFormat("Camera module author: %s\n",
mModule->common.author);
result.appendFormat("Number of camera devices: %d\n\n", mNumberOfCameras);
+
+ sp<VendorTagDescriptor> desc = VendorTagDescriptor::getGlobalVendorTagDescriptor();
+ if (desc == NULL) {
+ result.appendFormat("Vendor tags left unimplemented.\n");
+ } else {
+ result.appendFormat("Vendor tag definitions:\n");
+ }
+
write(fd, result.string(), result.size());
+
+ if (desc != NULL) {
+ desc->dump(fd, /*verbosity*/2, /*indentation*/4);
+ }
+
for (int i = 0; i < mNumberOfCameras; i++) {
result = String8::format("Camera %d static information:\n", i);
camera_info info;
@@ -1282,7 +1295,7 @@ status_t CameraService::dump(int fd, const Vector<String16>& args) {
result.appendFormat(" Device static metadata:\n");
write(fd, result.string(), result.size());
dump_indented_camera_metadata(info.static_camera_characteristics,
- fd, 2, 4);
+ fd, /*verbosity*/2, /*indentation*/4);
} else {
write(fd, result.string(), result.size());
}