base: wake screen for torch gesture and start torch app

requires https://gerrit.omnirom.org/9004

Change-Id: I194f00c7f7d9c9e881761971e7b2b535172e6164
base: add support for timelapse qualities for 4k sizes

Fix check in MediaRecorder to include all timelapse profiles

Change-Id: I32b00c5d05da0b1e440e9b0f50d0981e6afaf648
Merge "base: add support for timelapse qualities for 4k sizes" into android-4.4
Merge "base: wake screen for torch gesture and start torch app" into android-4.4
base: add roaming for Lycamobile USA

LycaMobile USA (MCC-311 MNC-96) can roam on T-Mobile USA (MCC-310 MNC-26)

http://jira.omnirom.org/browse/OMNI-1086

Change-Id: Ie9201cb7bb9efc4e455f1009a7c9a84336f3a8ad
Fix layout of MultiWaveView and GlowPadView.

If the calculated size of the rings is much smaller than the measured
size (which is happening e.g. on mdpi 600x1024 tablets), the glow pad
appeared shifted to the right.
This happened due to the insets being calculated as difference of
available and needed size, and later on being added to the available
size. Example numbers (Nexus 4 with density forced to 160):
- computed size in onMeasure: 768x505
- scaled size in onMeasure: 505x505
- thus, insets are calculated as 131/0
- in onLayout, placementWidth (364) and max target width (108) are much
  smaller than width (768)
- thus, center is calculated as 131 + (768 / 2) = 515, thus shifted to
  the right

Fix that by not using width in the calculation, as the inset size
already takes it into consideration.

JIRA:CYAN-829
Change-Id: Ifc2a93214f812f554a8fed3243eed66aec9f00c9
SystemUI: Rework SearchPanelView calculations

Make isScreenLarge calculations match how the system calculates where to put the navigation
bar. This fixes certain cases where the quick launch buttons on the glowpad of the
navigation bar is improperly oriented.

Change-Id: I5703578b4d49a6eeab100bb23167abd5cf9a326d
Merge "SystemUI: Rework SearchPanelView calculations" into android-4.4
SystemUI: NavbarEditor: Fix saveKeys logic

In landscape, the keys are saved backwards in the for-loop, but it would crash out due from
an IndexOutOfBounds error since it's subtracting i from the array length while i = 0.

Change-Id: I405c5d962d8c575cfee57b09a7e55a8a6efc2d24
SystemUI: Fix SearchPanelView miscalculation

The SystemUI declares the navbar to be movable to the side in landscape when the short
side's DP calculation equals to less than 600. This means that the nav bar will be at the
bottom/the screen is considered "large" if it's greater OR EQUAL to 600, not just greater.

Fixes OMNI-1129 and OMNI-1130.

Change-Id: I90322e40ebf0c4bb94146e28eb2d9b8f8a4444f8
Base: Fix crash of SystemUI

Change-Id: Ie18faac4dce45eb2fe9ca07d628bed7cd0eafaab
MountService:  Support for alternative LVM storage list configuration

To facilitate allowing a different storage_list to be used when LVM partition alteration
is detected on a device, add a new storage_list_lvm.xml - This will be chosen when the
property ro.lvm_storage is set to 1 or true

The init scripts will set this property when an alternate storage configuration is
detected.  If the property is not set, the system will simply use the standard
storage list configuration

Change-Id: I4c3b636afad8b3343df83d97c7febaafd5d22f25
Merge "SystemUI: Fix SearchPanelView miscalculation" into android-4.4
SystemUI: SearchPanelView: Optimize calculations

Only calculate if the screen is large once on initialization rather than every
time updateSettings() is called.

Change-Id: Ib54b6ef0ad6a987e75d6d98b5b269fc6e8f5104c
[1/2] Base: add support Tinted System bar

thanks to ChameleonOs and Thinking Bridge for the base code
also thanks to @MuhammadAG for Actionbar implementation (Xposed-Tinted-Status-Bar)

this allow statusbar an navigationbar background to follow color from Top and Bottom of application

see https://plus.google.com/107971916147063794392/posts/Eaqn5UAvKDt

as bonus, we can call blurbackground from here too :)

PS.6 :
   performance increase
   fix stability
   fix tinted statusbar cant turn off
   fix activity loading

PS.7 :
   improve performance
   smooth color change
   add more option xD

PS.8 :
   more stability
   improve color animation

PS.9 :
   fix FC some apps

PS.10 :
   stay away from broadcast
   make new API for communication with statusbar
   make color extractor more faster
   fix some bugs if disabled

PS.11 :
   remove gradient option this not working always
   fix where color not change if parent view has actionbar

PS.12 :
   fix white space xD

Change-Id: I40f533dd404a02e10a85fed78123c60ffd51f387
Revert "Revert "Camera: Adds support for meta data callbacks""

This reverts commit b71b0060052b3d2b33902dc69c6bd23aa88111a6.

Now it works :)

Change-Id: I6bd0b75d07026f601c4e9b71b3e62a8ca75c37b9
base: fix init handling of tinted system bar

force same behaviour like after changing setting

PS. 2 :
   fix initial background color

PS. 3 :
   make sure initial gradient is 0

Change-Id: I87eddcaa5223c1af15fa8c089f22ed9cb4774f7b
Base: fix logic tinted system bar

1. fix action bar make statusbar icon changes with same color action bar text
       if current action bar background is null
2. move log into each bartransition so we can track what is changes
3. make process not changing system bar color
      if current screen color is same with before (less draw)
4. always reset system bar color when launching new apps
5. fix color changes using 3rd party app keyboard

Change-Id: If53178e24caae7dff30636eda440d0e618702e3e
media: Configure audio encode parameters only for valid audio codec.

Added extra check for audio codec in profile
(Cherrypicked from commit eed39d0053dee6649424867418e511b918b3c634)

(cherry picked from commit 81dfde16ffb3fc8f6b110a3df2921a3d3361db10)
(cherry picked from commit 8069457a313853247f2017237e29bcf3b3eb2323)
(cherry picked from commit db4bf86a6b50ce84b5a678476ee08c12f0fe272b)

Change-Id: Ice218fb6357e49d6bdba98224a990357a47e8d7a
base: Reduce total number of background apps for low memory devices

Due to memory constraints, we anyway cannot fit the default number
of BG apps. So instead of killing background apps to
free up memory when launching, start with an already
reduced background set of apps.

Another side-effect is that launch latencies also improve.
This change is for low memory devices. (512MB RAM or less)

Change-Id: I9de0cb1734c0a386fc47cde71723e5c16825f5a3