diff options
Diffstat (limited to 'include/camera/ICameraServiceListener.h')
-rw-r--r-- | include/camera/ICameraServiceListener.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/camera/ICameraServiceListener.h b/include/camera/ICameraServiceListener.h index 9e8b912..709ff31 100644 --- a/include/camera/ICameraServiceListener.h +++ b/include/camera/ICameraServiceListener.h @@ -71,18 +71,20 @@ public: * * Initial status will be transmitted with onTorchStatusChanged immediately * after this listener is added to the service listener list. + * + * The enums should be set to values matching + * include/hardware/camera_common.h */ enum TorchStatus { - // The camera's torch mode has become available to use via - // setTorchMode(). - TORCH_STATUS_AVAILABLE = TORCH_MODE_STATUS_AVAILABLE, // The camera's torch mode has become not available to use via // setTorchMode(). - TORCH_STATUS_NOT_AVAILABLE = TORCH_MODE_STATUS_RESOURCE_BUSY, - // The camera's torch mode has been turned off by setTorchMode(). - TORCH_STATUS_OFF = TORCH_MODE_STATUS_OFF, - // The camera's torch mode has been turned on by setTorchMode(). - TORCH_STATUS_ON = 0x80000000, + TORCH_STATUS_NOT_AVAILABLE = TORCH_MODE_STATUS_NOT_AVAILABLE, + // The camera's torch mode is off and available to be turned on via + // setTorchMode(). + TORCH_STATUS_AVAILABLE_OFF = TORCH_MODE_STATUS_AVAILABLE_OFF, + // The camera's torch mode is on and available to be turned off via + // setTorchMode(). + TORCH_STATUS_AVAILABLE_ON = TORCH_MODE_STATUS_AVAILABLE_ON, // Use to initialize variables only TORCH_STATUS_UNKNOWN = 0xFFFFFFFF, |