Automatic translation import

Change-Id: I67fcd547d50e914ca1e0dcd2ebf63e14de60a583
Automatic translation import

Change-Id: I5abb079cdeef0e11d1fb71997a579b1006cb2f2a
Automatic translation import

Change-Id: I01a9f43c35381d5c42fbd6e4555e4b7a0005aff0
Automatic translation import

Change-Id: I86233be6abb40fb521f0e5c4f7953bbeedf778f2
Automatic translation import

Change-Id: I86e7cb0299a29910cbd9db235806472a9eebd125
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>
Merge remote-tracking branch 'cm/cm-11.0' into kk4.4

Conflicts:
	src/net/cactii/flash2/MainActivity.java