OSDN Git Service

Camera1 shim: If there's no flash, the keys need to be null.
authorEino-Ville Talvala <etalvala@google.com>
Thu, 25 Sep 2014 21:48:28 +0000 (14:48 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Thu, 25 Sep 2014 22:05:55 +0000 (15:05 -0700)
commitb5bd1df2d6c78f8db5e7f6b416353ca8a93b7119
tree3f836f2e6d08b59a3a52fa06fb8a3e0832dae80e
parente0711f2651121754a10c784e3b149024d17fa4d5
Camera1 shim: If there's no flash, the keys need to be null.

Previously, we set FLASH_MODE_OFF for FLASH_MODE when a flash unit
isn't available.  However, per the API documentation, the key has to
be null instead.

- Make sure that the flash mode and supported flash mode keys are null
  if there's no flash unit on start
- Don't set flash mode in later setParameters calls if there is no
  flash unit
- Map NULL value for flash mode key to FLASH_MODE_OFF for internal
  consistency.

Bug: 17660716
Change-Id: I3033682f0b882b8c2004114e2afef31662caebda
services/camera/libcameraservice/api1/client2/Parameters.cpp