Torch: Allow torch to be toggled off without knowledge of state

Change-Id: I1e7fe91d82f08eb6976bacc3d0eb3a4444af6f4b
Signed-off-by: Roman Birg <roman@cyngn.com>
Torch: signal to framework TorchService not to kill us

Change-Id: I1f7f3d1cde7596919da2132748f02cae25cdf5e8
Signed-off-by: Roman Birg <roman@cyngn.com>
Make torch shutdown by camera usage work properly.

Previously, there were two issues when torch was shut down due to
another camera app being used:
- The service is stopped asynchronously. Work around that by
  shortcutting the torch disable path
- Even after torch shutdown, the periodic refresh may try to enable it
  again. Avoid that by not using the periodic refresh for devices which
  use the camera interface, it's not needed there anyway.

Change-Id: I613c11330875c23c04b7d7339529fb8f1774adcf
Automatic translation import

Change-Id: I6aa3ee7aea0412f8698d539a95776bc6b933ce41
Torch: fix torch toggle delay on boot

Change-Id: I7895afed69b7538343c92f1c0a6b8d7d57679e95
Signed-off-by: Roman Birg <roman@cyngn.com>
Automatic translation import

Change-Id: I6d05a80fa09393b836a6a8a41278e8d5a57d33fa
Merge branch 'cm-11.0' into stable/cm-11.0
Automatic translation import

Change-Id: Ia89cd86171e4436ec8c9c1cb9598b7571a14280b
Automatic translation import

Change-Id: I2dad6f5803c635a80961e0583c67aa98c57a19bb
Automatic translation import

Change-Id: I5e39ba1f1f67a3ddcaa99b4338ab6ceb53d82c6b
Torch: Update license string

A lot of people have contributed to the Torch app
and it has gone through several UI changes, but we
can't list everybody here (that's why we have git history)

Modify the license string to something more generic.

Change-Id: Id974fee917d55254992a5f15c893ae64651e84d3
Torch: Tweak license string a bit more

Change-Id: Ifba7321df3ae4234cbe8d4bca8d18b35aef124ec
Torch: notify TorchService of torch state when using sysfs config

Change-Id: I36fb2dda996c32286151c7bf9faf6eab1743ac74
Signed-off-by: Roman Birg <roman@cyngn.com>
Torch: notify TorchService of torch state when using sysfs config

Change-Id: I36fb2dda996c32286151c7bf9faf6eab1743ac74
Signed-off-by: Roman Birg <roman@cyngn.com>
Revert "Torch: notify TorchService of torch state when using sysfs config"

 * Shouldn't have gone into this branch yet. Unbreak build until dependency is ready.

This reverts commit a56f80b410cb958e5774c06ce8a17f3adcd234ec.

Change-Id: I6c085ef9637756d29b3a3aa8401e02bcaadb7776
Torch: notify TorchService of torch state when using sysfs config

Change-Id: I5ca4f2b813f5fa752a218ba11564fd5558915ab5
Remove unused STROBE option

Change-Id: I6f5142408445e8615b0d91a2513a3349b011df9f
Automatic translation import

Change-Id: I983dc23eebf049156d4fd5dff16700df8be588f1
Torch: Add support for landscape mode

* Remove portrait limitation
* Make ActionBar transparent

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

JIRA: CYAN-4358

Change-Id: Icb7fb2fb4191d1296d91dd7592e74f5f58dbc6f6
Torch: Hide bright widget if it's not supported

Change-Id: Ic257991c1e9ecc10beaa225c0b9ed8a0466b77fa