Add api to toggle flashlight and check if device has flashlight

statusbar service getter borrowed from PhoneWindowManager code

use PackageManager to check if the device has flashlight

use aosp flashcontroller to handle the flash toggle like the flashlight
tile does

aosip edits: only add missing pieces

Change-Id: I4e8fe3351b408aa55573b191baa1bc742962a85c
Signed-off-by: Josh Fox (XlxFoXxlX) <joshfox87@gmail.com>
2 files changed