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)
committerThe Android Automerger <android-build@google.com>
Fri, 26 Sep 2014 18:20:47 +0000 (11:20 -0700)
commit85ea794c06e4ee8f9eaa03cb54ace3fd30cc5b34
tree481ae48277ce0ea41780a75ca5283b42b928f660
parenta21b654eaed87e87eab4cf2596a420675ab4c6e1
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