QS: Enable ProfileTile (1/2)

Enables the ProfileTile to control the Profile currently in use.

This was partially implemented but had various parts missing, due to QuickSettings being overhauled I was unable to cherry-pick the original CM addition of the ProfileTile as it was originally authored under the old QuickSettings implementation.

Compiled and tested with no issues, changes profile correctly.

Change-Id: Ib06524a29ef49f48af88b937595b926af6f3f99f
Fix Photosphere/Camera FCs

Photosphere is setting a few parameters "blindly"
while the API says it should check the device capabilities first.

On TF101 (and probably other devices) the camera HAL doesn't handle
FLASH_MODE & SCENE_MODE and so it sends the required RuntimeException
for these, which makes Photosphere FC the Camera app.

=> Fix: check device capabilities & ignore these 2 parameters if the device doesn't support them.

Fix based on following Team EOS patch: https://review.teameos.org/#/c/1598/

Change-Id: Idd80299802e9213a3c40414ace3d516d39f47783
QwertyKeyListener: Add support for www and .com key

Add support for www and .com key on devices with physical keyboards.
This code is identical to what was present in ICS.

Change-Id: I55e6c248959e0a0657bbd8e3840470ae7adbd8ed
PowerMenu : Improve keyguard filtered actions

Replaces the check for visibility of lockscreen with the state
of the keyguard instead. This avoids the situation where actions
returning false from showDuringKeyguard, are still shown if user enters
emergency call screen.

Change-Id: Idb5df14813d9479bd4178dbb9eb3b91cbecda5de
Externalize symbol picker options to resources

Having the symbol picker options in resources allows a change to be made for
a specific device, and even for a specific locale (change in overlay).

Ported from jellybean (was Change-Id: If39eafc7d0766d28ef6bee0ff61bf234a6654f38)

http://review.cyanogenmod.org/#/c/20626

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

Change-Id: I72ff6fab6b9c14f9761904fdcc6918784d790d4d
PowerMenu : Improve keyguard filtered actions

Replaces the check for visibility of lockscreen with the state
of the keyguard instead. This avoids the situation where actions
returning false from showDuringKeyguard, are still shown if user enters
emergency call screen.

Change-Id: Idb5df14813d9479bd4178dbb9eb3b91cbecda5de
derp: Fix build errors due to cherry-pick of PowerMenu Improve keyguard actions

The PowerMenu: Improve keyguard filtered actions caused two specific errors, there were corrected but I removed this untentionally when I removed another commit by the CM team that cleaned up QuickSettings.

Errors in GlobalActions, the cherry-pick caused the removal of the reboot menu and only presented a reboot confirmation in place of the standard selection for Reboot, Recovery or Download modes.

Build errors produced in SearchPanelView due to functions being removed during the cherry-pick and conflict resolution.

Change-Id: I7c85f9a88bb121c5f92f7750fb97dd6655a4b7a4