OSDN Git Service

camera_metadata: Add support to generate Keys for generic types
authorIgor Murashkin <iam@google.com>
Tue, 27 May 2014 17:51:25 +0000 (10:51 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Wed, 28 May 2014 08:49:08 +0000 (01:49 -0700)
commit35a108fbfe7d174682187fa6a87f0590837924d0
tree9c9238bb9773fc469f00bc901e4e6cfa780b50ec
parent739effc073e1b0a0a4e22a5a6c162dc67f170e77
camera_metadata: Add support to generate Keys for generic types

Also adds the following keys:
* android.control.maxRegionsAe
* android.control.maxRegionsAwb
* android.control.maxRegionsAf
* android.request.maxNumOutputRaw
* android.request.maxNumOutputProc
* android.request.maxNumOutputProcStalling

Changes the following keys' type generations:
* android.control.aeTargetFpsRange (Range<Integer>)
* android.control.aeAvailableTargetFpsRanges (Range<Integer>[])
* android.control.aeCompensationRange (Range<Integer>)
* android.lens.focusRange (Range<Float>)

When trying to generate code for a generic type such as a
"Range<Float>", the generated static key initializers will now use
a TypeReference<T> instead of a T.class.

Non-generic types will proceed to use the older T.class variant.

Bug: 14628001
Change-Id: I141847dffc4b0d89cea37c19a54d6d5faf24a9bb
camera/docs/CameraMetadataKeys.mako
camera/docs/docs.html
camera/docs/metadata_helpers.py
camera/docs/metadata_properties.xml
camera/docs/metadata_template.mako
camera/include/system/camera_metadata_tags.h