input: fix recents opening when waking the device with the home button without lockscreen

Port from ics
http://review.cyanogenmod.com/#/c/18584/

Change-Id: I354ace2a3b37bd336d2806b941f779538bc96c74
Add option for switching between UMS and MTP/PTP mode. (1/2)

This adds support for switching between UMS and MTP/PTP.
Framework part (this part) will only enable UMS if the config setting is set.
Standard is to enable UMS if the primary volume supports UMS.

Change-Id: If19ac297a0a581232cc8c1a829f6e30aa864a08f
Add simple caching to XML compilation

XML compilation stage will perform many (expensive) resource ID
lookups - for the same entries. Adding this simple cache can
dramatically improve performance of this stage (often a bottleneck)

Change-Id: Ib1ab82ba9bf901bc2a3f9027b47d680861d6c315
Signed-off-by: Jorrit Jongma <jorrit@jongma.org>
SystemUI: add screenshot to navbar

Add screnshot button and longpress option to navbar

Patch Set 2: Fix opacity of screenshot icons

Change-Id: I2dfea1769cbb0c6e0e263f9f7f21b21c261fde39
Fix automatic brightness

Broken in Iddcbee98f6588bba428c4059e786d946d7ce2298

- Brightness is now handled in handleLightSensorValue instead of
  onSensorChanged, but the previous patch copied the old handling
  code into onSensorChanged in addition to calling handleLightSensorValue.
  This patch integrates the brightness filter change from
  onSensorChanged into handleLightSensorValue.
- onSensorChanged called mHandler.removeCallbacks(mAutoBrightnessTask)
  every time a value is received from the sensor ensuring that the
  task never get ran! (We schedule it 2 seconds into the future
  but receives a value from the sensor every second.)
  This patch removes the call.

(Note: similar to http://review.cyanogenmod.com/11341)

Change-Id: Id3e4f0f02f91f27c7c12cb2e274e0c13213d4774
input: Dock keyboard support for ASUS TF series
* Adds KEYCODE_VOLUME_MUTE support
* Adds external input decoder libraries
* Minor input fix for HW keyboard detection
Original code by CyanogenMod, rebased by termleech and me
Add support for and show dock battery levels

Add support for docks which have batteries and add their icons and charge to the status bar.

Original code by CyanogenMod, rebased by termleech and me.

Change-Id: If682e3ee8417b20d26ae471c17a932d02a41aca7
Merge "Add option for switching between UMS and MTP/PTP mode. (1/2)" into jb
Merge "input: fix recents opening when waking the device with the home button without lockscreen" into jb
Added config file for Tegra3 devices

Conflicts:

	core/res/res/values/config.xml

Change-Id: Icd82b1f6c3eda48b04d16bd7e30fad06f544d82e
Merge "Fix automatic brightness" into jb
Add application shortcuts to toggle torch & Navbar

Patch-set 2: Added czech translation

Patch-set 3: Fixed NAVIGATION_BAR_BUTTONS_SHOW -> NAVIGATION_BAR_SHOW_NOW

Port of
https://github.com/AOKP/frameworks_base_disabled/commit/2c2876dfe780a38106bed905993923516d4eb2d1
Drawables are in repo already.

Change-Id: I5cdca8c956145abcba67590b4b410753266a0f9c
Signed-off-by: Petr Reznicek <kecinzer@gmail.com>
am: Allow more hidden apps on devices with lots of RAM

 * If more than 1.5GB is present, allow up to 40 hidden apps.
 * Number is somewhat arbitrary, but was found to work well on D2.
 * Also look at the sys.mem.max_hidden_apps value if given.

Change-Id: I2d3cf6e0dad1bc0b482cc37bf9c61ed2f2b4be51
Tablet Love: Navring, Kill all, more..

This is phase 1 one tablet love.
Kill all button added to recents
fixes for nav ring accidental presses (rasied phone too)
New layout for Navring on tabs and grouper while in TabletUI
(xmls still need cleaning up just need sleep first. Fuck XMLs.)

Change-Id: I3e7b006821c2a1e6c1358ef056bdaf59b0cd32c5
Signed-off-by: Stevespear426 <stephen.k.spear@gmail.com>
Merge "Tablet Love: Navring, Kill all, more.." into jb
Merge "Added config file for Tegra3 devices" into jb
NavRing: fix layouts

Change-Id: I42f1fbae1af2e406cddc790c858523e887e591b7
Signed-off-by: Gergely Szell <sethyx@gmail.com>
Merge "Add application shortcuts to toggle torch & Navbar" into jb
ril: avoid sending null aid string in getIMSI

A change to how getIMSI works in JB causes null aid strings
to be sent.  The result for RILs older than v7 is a corrupt
ril response in SIMRecords::fetchSimRecords.  This corruption
ends up setting mImsi to null (in SIMRecords) and that causes
havoc w/ 3g/4g data connections.

This patch avoids sending null aid strings and has fixed
data connection issues on several Motorola devices.

This new patch is implemented as an opt-in old ril feature

Change-Id: I6682ea10c8b216e2adc5abffbcc50f3cb6c9d7b8
Adds the ability to force dual panel at any dpi (2/3)

This allows tablet mode with single panel and also
allows regular phoneUI with dual panel .
This will only affect apps with dependencies to
framework-res.apk , in other words gapps email.apk etc are not affected.
**Im curious to see how it behaves in tablet device the default
shoudl stick.

Change-Id: If11ff31e09e3b4f63de58be5d4024a91e54d639c