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
fix:swipe up from bottom will fc if didn't install Google Search(Google Now)
Ability to hide Volume State toggles in Power Menu (Frameworks Part)

Patch Set 2: Formatting Stuff

Change-Id: I7a1de9411c20c4a201ff91790be9e61581b89aee

Conflicts:
	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/GlobalActions.java
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
FM Radio: Add support for FM Radio in Android

Creating interface and framework for using FM Radio
RX and TX from different vendors.

Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
Change-Id: I1a71aed01bfffdddfabf1cdfbfa3707cb1ed016b

Conflicts:
	core/java/android/app/ContextImpl.java

Conflicts:

	core/java/android/app/ContextImpl.java

Signed-off-by: ChampionSwimmer <android@championswimmer.tk>

Conflicts:
	core/java/android/app/ContextImpl.java
FM Radio: do not try to change thread priority

The FM Radio services try to change the current thread when
instantiated, for unknown reason. This actually ends up changing the
priority of SystemServer's main thread. Probably a bad idea. This is
the cause of the various glitch fallout after the FM Radio merges.

Change-Id: I292aff3380c717ff1bc7d45f6303c0d330ef642d
FM Radio: avoid deadlock when disabling RDS

When RDS is being configured, the session mutex is hold. However,
when it is being disabled, RDS callbacks might still fire, and these
also try to hold the mutex, leading to a deadlock.

Temporary unlock the mutex while the vendor library is called to
work around.

Change-Id: Ic9751c7185fd8de4a7510225f54d23a22f042321
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
Port Volume Key Lock from GB

Change-Id: I694216d380b13c0cb9b786ed41e4d9a854dc3586
Wifi: Get the list of supported channels

Get the list of supported channels/frequencies from wpa_supplicant and provide
them thru WifiManager.getSupportedChannels();

One channel is represented thru the class WifiChannel which includes channel
number, frequency in MHz and a flag if IBSS mode is allowed on this channel.

Like isIbssSupported() we can only expect a result after WIFI_STATE_ENABLED has
been reached.

Change-Id: I9fc34642b9a0047f6871b180a3a7a69d47b7e2ff
Frameworks: TRDS new qualifier push up qualifier number (1/2)

Hey guys,

after this feature is working really well and a lot roms kanged
it we got a hint to change one thing which is indeed a good
idea to have less problems on AOSP updates and tools like
Apktool can provide us better without doing major changes every
AOSP update.

We pushed the number up to 69.....should be enough for
next years.

Please note for the one who are using our gapps at the moment
this will break actuall gapps till we published the new one
which will be end this week as usual.

After that we will begin to publish the apktool after we had
now enough tests....and who knows maybe the "official" Apktool
will provide us all now. So all in all a good time to change
the qualifier now before it is getting more and more
popular (we saw that first themes are providing us)

cheers

Lars

Change-Id: Ie1aeab38420cb825f6f7c1d0a5220a8bb55fc4c3
Fix: AUTO_TIME and AUTO_TIME_ZONE moved to Global google :p

Change-Id: I6a76e6fed0210d7dee21b17c94294b6cea9c28cc
Frameworks: airplane_mode_on moved to global google and CM :p

Change-Id: Ie7bcabe62190c2fe5ec520ccc1d6d04dad94c228
Bug #14 disable pie on lockscreen

Change-Id: I4647aade6292cf49e5372e52d2ecff3bfe4b51f6

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Only disable pie on lockscreen if lockscreen is secure

allows users to acess notifications and quick tiles from the lockscreen
and still be secure. following aosp behavior

Change-Id: I8addbc958ec4e3211f9916b3428d3e3486b1c5a3
LockscreenTargets : Dismiss on target select

Only dismiss prior to activity launch for lockscreen shortcuts,
camera and appwidget picker remain untouched.

Change-Id: I2770c628ce0708570aa6ea0eac9e3cd1d82287fb
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>
disable camera sounds (2/3)

Change-Id: Iaa37bc6790fe32664f8b52178c14fe926ca7d4ce
Signed-off-by: sethyx <sethyx@gmail.com>
Remove unnecessary updateSurfaceScreenOn call.

This change stops updateSurfaceScreenOn() from being called one time
right after another. It's called at the end of stayAwake(boolean awake),
which is called right before updateSurfaceScreenOn() in release().
update display metrics when switching to expanded desktop.. MUCH faster.

next phase is to change the logic for how the navbar is redrawn to make the statusbar
go to the bottom of the screen.

Change-Id: Ic2369e5227d67e9f84596660d96d1bfa9f92024f

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java