Adjust kernel data stack TCP parameters to optimize performance

Enhance Android MobileDataStateTracker class to identify technology
EVDO rev B separate from earlier releases.  This permits use of
separate TCP buffer size for higher bandwidth technology.

Change-Id: Ib8dfa315c4485c36c66b2c66950c42ccb81fe9e5
CRs-Fixed: 260740
Fix button backlights that depend on ALS.

On a few devices, lighting the buttons when the screen turns on
depends on the lightsensor, regardless of the user preference.
So go back to enabling the sensor whenever the screen turns on, and
enforce the user preference after running through the light settings
once.

Port from CM9.

Original: http://r.cyanogenmod.com/#/c/12818/

Change-Id: Ibb9155b4f299637d553986c44b9cb548dc855489
Framework: Add the ability to enable/disable use of Profiles (Part 2/2)

This will remove the Profiles item from the Power menu when the user has
selected to disable the use of System Profiles.

TODO: Better handling of returning a default profile when requested

Patchset 1-4: Initial commit
Patchset 5  : Additional error checking to prevent profile changes
Patchset 6  : Remove WIP
Patchset 7  : Workaround for NPE when no profile returned as our
              null checking in profiles is not the best
Patchset 8  : Rebase
Patchset 9  : Remove enabled checking code from getActiveProfile()
Patchset 10 : Create and return an Empty Profile if profiles disabled
              This should fix all the NPE's

Change-Id: I3c29b1bbd8f72c5432a1906a6b412d9412279c9f
Framework : Long press kill fixes

Jellybean introduced changes to systemui's privelege level.
This patch hardcodes a check to avoid killing it.

Patchset 2 : Minor fix
Patchset 3 : Check length of pkgList rather than apps
Patchset 4 : Vibrate on kill

Change-Id: I24af510a62cae9acc29504912fb133825bb67bb6
SamsungRIL: cleanup

Removed unneeded states and forward them to RIL. In ics, this had
the side-effect of allowing STK to work due to the Samsung STK
implementation already in place

cherry-picked from ics

stk functionality for SamsungRIL

* Implemented SMS based SIM application functionality
* PatchSet 3: Added fix so unknown unsolicited response are sent to super class
* PatchSet 4: Removed "import android.content.resources" - not needed any more
* PatchSet 5: processUnsolicited cleanup, using super class standard states where possible
* Patchset 6: Rebased

Change-Id: I9bf844da1480fe442f851fb20d99b530b96cfa4c
SamsungRIL: Update HSDPA checking for jellybean

Jellybean no longer publish network type id to prop, don't check for it

Change-Id: I689aa448853677a8719af963bf3370abaefdaf23
Merge branch 'themes-4.1' into cm10

Change-Id: I61b0357ce457dc5a997b1ad4c8738128e2a82147
Allow theming of framework UI elements.

As the theme engine works by replacing resources while loading the APK,
framework UI couldn't be themed so far. Workaround that by manually
creating a com.android.systemui package context and using that for
showing the UI. This attempt is a bit hacky, but should be safe as
a) systemui should always be present
b) if it isn't, we fall back to no theming

Change-Id: I644e2e8d7d4abf07bae639b606197d691f16adac

Applying theming to more framework items.

All dialogs and notifications should be covered now.

Change-Id: If93f81991361165a00b5b1b03ffc323e3ab42c0b
SimUnlockScreen: Explicitly register themeChange receiver

The unlock activity changed a bit in ICS, so we need to register the
receiver explicitly instead of relying on onResume() to be called in
order to set it up

Change-Id: I9ac9463f249b37466f8daf99d34b85c15b06d43f
SystemUI: Recreate navigation bar when rebuilding the status bar

Ensure that all listeners (such as orientation change...) get properly
linked in the newly generated view, to avoid errors due to non-attached
views after applying a theme

Change-Id: I46992694844944564739ac12a8da43b6348658c9
frameworks/base: Fix screen stretch issue for NuPlayer

- Fixes screen not moving to full screen after suspend resume during RTSP
  streaming in landscape mode.
- If there is an incorrect height and width, it saves the video height and
  width and then does the correction to have proper width and height.

Change-Id: Icb4b9b71f21d138b85f200dc82a1fbe58342866f
GlobalActions: Fix themeing of the ShutdownThread

Apply the correct UI context so the reboot dialog is properly
themed

Change-Id: I115c81538ab9c27223b2090279f877d5b68d6dd3
fmSeparateVolumeControl: move on top of CM changes until merge

Change-Id: I231cca9223311f0fc7406eaec309f3945c1ef8de
Backlight: cleanup for patchset 2

Change-Id: I01569c23baf6526730669b506bfe5efec6e797fe