Automatic translation import

Change-Id: Iebc62752a2ed6527ebd5a05e2d7700841d722515
Automatic translation import

Change-Id: I3222be22805c53aa9884310e7bf4075362e25818
Torch: apply wakelocks to sysfs nodes

Assuming the kernel is setup to disable LED flashlight on suspend, let's
make sure we don't hit suspend when the LED is active. This extends
the wakelock to affect sysfs toggles in addition to the existing
wakelock on the camera interface.

Change-Id: I8997e70396eeb3cc16a5f39ca4c5e59b4aafefdb
Torch: Torch UI Refresh

* Redesign based on:
https://github.com/jackmu95/android_packages_apps_FlashLight

* Remove strobe

* Tuck High brightness away into overflow menu

Change-Id: Id7ee193f2efd118d9ada2bcc6ad39a24d109f714
Signed-off-by: Roman Birg <roman@cyngn.com>
Merge "Torch: Torch UI Refresh" into cm-11.0
torch: Don't show the about dialog on first launch

 * It's annoying and useless.

Change-Id: I13a91ab237c792e442c48572f933fe44743635cb
Torch: set default hasHighBrightness flag to false

Most devices don't support this, better to be
opt-in.

Change-Id: I4efabeb56672e631e72f738b117a18474276db1e
Signed-off-by: Roman Birg <roman@cyngn.com>
Torch: fix xhdpi notification icon

This one is white and matches the other density
buckets.

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

Change-Id: I2c4d64a04a655b4dbbfa9cdaf2427fdc6a2a6a94
Make sure mFullScreenScale is non-zero before animating.

If the led flash is already on when opening up the application
the background would be all black instead of blue since the value
of mFullScreenScale is at the default value of 0.

Change-Id: Id9dd00d93728c9043ee9a897ab143560c0908f60
torch: toggle on/off once

Change-Id: I16c2923912fbc459b6761a9a0d80f5bbea3aaf39
Merge "Make sure mFullScreenScale is non-zero before animating." into cm-11.0
Merge "torch: toggle on/off once" into cm-11.0
Torch: only include src files from src dir

Currently if any other folders are present with java
files(especially generated ones), the build system picks them up.

Change-Id: I15d9c66844ab7a0c300f51a02b878d1dda4316fe
Signed-off-by: Roman Birg <roman@cyngn.com>
Merge branch "cm-11.0" into kylin