FW : Fix  Tablet Layout (Clock & Notification)

When Center clock was chosen as an RC option, the clock would
dissapear from the StatusBar and Notification curtain in tablet
mode.  Also StatusBar notification icons were not aligned with
clock & signal icons.

This fixes both of those issues.

Change-Id: I8ce79314c42b322f4e13c102815131c400c562c2
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
Fix resource leak: When call MediaMetadataRetriever.setDataSource or getFrameAtTime should ensure call release in finally to avoid resource leak
                   Patch set 2: Remove unnecessary white spaces

Change-Id: I49a7f2fb99dc8b9560e7c17421125356e45a87ac
Add keymapping for select BT headsets

Per CYAN-522, select BT headsets (e.g. Jabra Street, Jabra BT3030, etc)
send key 159 for fast-forward button, instead of the expected key 208.

Need's testing with affected BT devices.

Change-Id: I06ba689f77dd1058fb82b1de9f72b4df59150cf9
Prevent Sym key from showing the IME picker

By default InputMethodManager will popup an IME picker when pressing
the Sym key.

This can be disabled by setting config_symKeyShowsImePicker to false in the
overlay (so the Sym key will show the symbol windows selector for ex.)

Ported from jellybean (was Change-Id: Id61e2d1d66babbb5bd15d7dcf280c1cb76bced46)
http://review.cyanogenmod.org/25787

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

Change-Id: I5ee2542c081dca14d2e22724cc2616519716dd45
Allow theming of lockscreen

Change-Id: I10799482e0b393746b4c9818f94862109fac6006
Ability to hide Volume State toggles in Power Menu (Frameworks Part)

Patch Set 2: Formatting Stuff

Change-Id: I7a1de9411c20c4a201ff91790be9e61581b89aee
FW: add spacers to Traditional Toggles.

Scrollable toggles merge also included adding backgrounds to
traditional toggles.  on rows that didn't have 6 Toggles,
those backgrounds would be stretched.  This adds
spacers on the ends of the last row to force the toggles/
backgrounds to keep the proper size/shape.
samples:

http://twitpic.com/cecf8t
http://t.co/32t0A6Qc6T

PS2:  Include background drawables on spacers. Looks a little more
uniform.  Samples:

http://t.co/ryaHhizEgF
http://t.co/fw5QZAsocQ

Change-Id: Id086383ec72e682b8f005e9a17b6ecb6bd0e018b
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
SysUI : Fix opacity of LastApp Icon

Thanks to Nitroz for making alpha corrected versions of the
last app icon.

Change-Id: I2e8a9ae36e32f03aa36d3218c74d76b88123e64e
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
SysUI:  Prevent Kill-Task from killing SystemUI.

If recents screen was active when Kill-Task button pressed, SysUI
was getting killed (causing wallpaper reset).  This
prevents SystemUI from being killed.

Change-Id: I3b669b29e5c244246ac02ad1ce6b4e39f7270aaa
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
FlingTracker can divide by zero and hang StatusBar in an infinite loop

if 2 events have the same timestamp then FlingTracker in PanelView will divide
by zero causing NaNs. the bug is usually triggered by rapid StatusBar up/down
dragging activity and updateCarrierLabelVisibility can then loop indefinitely
looking at NaNs. the user visible symptom is that StatusBar refuses to pull
down and is burning cpu time.

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

Change-Id: I0791c6bea953bf03346185fc6aaf44aaea79aace
Wifi: Enable Ad-Hoc (IBSS) network configuration

This adds two public but hidden variables to WifiConfiguration: isIBSS and
frequency. These are used for configuring IBSS mode.

WifiConfigStore is exended to get and set these variables to wpa_supplicant
(via WifiNative).

Change-Id: Iab02c3d738c05c2de036350ea77b78789213e357
wifi: Allow Settings to retrieve country code

This makes getCountryCode behave like getFrequencyBand

This allows Settings to get/set country code like
it can for frequency band.

Change-Id: Id9f00d3a678642c6c142fd1511af820d729507a7
Wi-Fi: Ping the driver for wifi-only devices

Wifi-only devices are not capable to find APs with hidden SSID unless a DRIVER COUNTRY command
will send to wifi driver. This change has:

- Send DRIVER COUNTRY command to ping the driver (to correct the seek of hiddens SSIDs)
- Save mCountryCode as uppercase because the wifi_countrycode_values array is in uppercase.
  Otherwise the preference will not be found.

Patchset 7: Rebase
            Do not set mCountryCode if country is null

Change-Id: Ie0f838aef07eaf683b713f7f0e46ff3c751523ab
Wi-Fi: Pass default country code to driver

This patch reverts partially the change http://review.cyanogenmod.org/#/c/28918/8, and
passing the default country code ("GB") to the driver instead of null.

Change-Id: I7d7115155a0a52261931ffaddaf35f316d095800
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Wifi: Add IBSS supported method

Add method isIbssSupported() to WifiManager and related classes to query wether
the driver supports IBSS mode. The query is answered by wpa_supplicants new
command "get_capability modes".

It will only return a correct result after WIFI_STATE_ENABLED has been
reached.

Change-Id: I93aa2fdff94cd897c91ec3beb7e58940d1de7b72
[HTML5] Implementation of WebSockets (framework).

Added binding to android port for Html5 WebSockets.
Added external API for enabling\disabling from browser.
SSL Web Sockets are not implemented in the current version.

Change-Id: I8b7a42780410cb9f043e1f16570ea50db68e00ea
IME : Fix sym key regression

http://review.cyanogenmod.org/#/c/25787/2 caused the "dismiss" arrow
for ime's to execute back action as well. Reproducible via :

Open sms app->Open message thread->Tap message field->Tap downward arrow on navbar

Expected behaviour : Keyboard should be dismissed
Actual behaviour : Keyboard is dismissed and user is taken to previous screen.

Change-Id: I6ab65b00464fb6e00849d7fd6c8bd438b23ee76b
GPS has bee properly fixed now
Revert "Workaround until gps can be fixed, force gps to stay in standalone mode when"

This reverts commit e5f47a5edcdd80647532df1ac8eac002bfa1d535.
Frameworks: Fix brigthnessslider PW

overlay config_screenBrightnessDim is on jb4.2 completly
controlled over the Powermanager....no need any more for it
+ fixes weird jumping issues on some devices which added
 config_screenBrightnessDim value

cheers

Change-Id: Ia67115611489fca837070b27e8a85509e519cfda