OSDN Git Service

camera2: Split CameraMetadata.Key into 3 key classes
authorIgor Murashkin <iam@google.com>
Tue, 20 May 2014 00:00:36 +0000 (17:00 -0700)
committerIgor Murashkin <iam@google.com>
Fri, 23 May 2014 18:51:50 +0000 (11:51 -0700)
- Also removes special-cased Face key generation for CTS

Bug: 15091017
Change-Id: Ic56c54c0d184e209e20de374dc8a6d79527c209f

camera/docs/CameraCharacteristicsTest.mako
camera/docs/CaptureResultTest.mako

index a983e67..9aad020 100644 (file)
@@ -28,7 +28,7 @@ package android.hardware.camera2.cts;
 import android.content.Context;
 import android.hardware.camera2.CameraCharacteristics;
 import android.hardware.camera2.CameraManager;
-import android.hardware.camera2.CameraMetadata.Key;
+import android.hardware.camera2.CameraCharacteristics.Key;
 import android.test.AndroidTestCase;
 import android.util.Log;
 
index 4b325bd..6fb4905 100644 (file)
@@ -20,8 +20,8 @@
      * modify the comment blocks at the start or end.
      *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~*/
 
-    private static List<CameraMetadata.Key<?>> getAllCaptureResultKeys() {
-        ArrayList<CameraMetadata.Key<?>> resultKeys = new ArrayList<CameraMetadata.Key<?>>();
+    private static List<CaptureResult.Key<?>> getAllCaptureResultKeys() {
+        ArrayList<CaptureResult.Key<?>> resultKeys = new ArrayList<CaptureResult.Key<?>>();
 % for sec in find_all_sections(metadata):
   % for entry in find_unique_entries(sec):
     % if entry.kind == 'dynamic' and entry.visibility == "public":
   % endfor
 % endfor
 
-        // Add STATISTICS_FACES key separately here because it is not
-        // defined in metadata xml file.
-        resultKeys.add(CaptureResult.STATISTICS_FACES);
-
         return resultKeys;
     }