SystemUI: transparency control overhaul

Allow more customization. TransparencyManager's responsibility
is to apply the values it is being fed from Settings.System set by
ROMControl.

Tablets do not use transparency currently, but it shouldn't throw
any errors.

Change-Id: I11c1578938e337285d99e9fa1fbbd537a4ee43ec
Signed-off-by: Roman Birg <romanbirg@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java
Make "SD Card removed" notification dismissible if the removed SD Card is not the primary storage

Change-Id: I1e3aa0964e7b5652a61d4dd9ed6dde313efd3fd1
Signed-off-by: kecinzer <kecinzer@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
ActivityTrigger:  New class to invoke when activity starts/resumes

Change-Id: Ib57aa4d3767e27b5bba658b27e084fc3ef042c36

Conflicts:
	services/java/com/android/server/am/ActivityStack.java
Increase themeability of Clock, Signal, Wifi in statusbar

Now fixed negative numbers

Patch-set 2: Forgot cleanup log.

Patch-set 5: Compatibility with alt. signal layout

Change-Id: I6458998c37e7d9c07d389d851647bb98a15797f9
Signed-off-by: kecinzer <kecinzer@gmail.com>
FW: Updated czech translation

Please merget before build :)

Change-Id: I0914b27656f8bdf26cbbe2a890d0e123d22d6faa
Signed-off-by: kecinzer <kecinzer@gmail.com>
Frameworks:  Allow Custom Icon Tinting Option (1/2)

See ROMControl portion for comments.
Adding Zaph as a Reviewer.

Up to you now, team <3

Change-Id: I7b7085534ab2572807dc092cdb4b00e84ae97a02
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.

Change-Id: Ib1aa943eb4f1eb0f6ca4a239d487e10526ac33eb
FW: Hiding NavBar

PS8:
New Structure for Hiding NavBar

ps9 : Fix a few derps.
ps10 : more derps/Try/catch/ etc.
ps11 : Hiding NavBar now Marginall works.
       There are a lot of things that can break this right now.
       it doesn't recover well from toggling itself on/off and
       if you 'hide/show' the NavBar, it doesn't take to that kindly
       either.  One thing the seems have an effect is to change the
       height of the NavBar.  there is something that gets reset in
       PhoneWindowManager by doing the height change that helps.

ps 12 :  Reworked some of the logic.  Added visual hints to indicate where
the swipes should occur.  Also completed landscape (phone) orientation shift
for swipe.  Made several changes in the window layout formulas in
PhoneWindowManager so that NavBar is treated like a real overlay when
in AutoHide Mode.  Otherwise, certain windows and elements were
resizing when the NavBar was shown/hidden.

ps 13:  Add images (button/drag) from NitrozK

ps14:  Start implementation of longpress on handle to launch
       NavRing.  Fix press navbar resets hide timer.

ps 15: add timeout to settings observer
       make searchlight visile on lockscreen even if navbar hide enabled.
Mike and I think there no point in wasting a swipe on the lockscreen lets
just show it all the time since its our version of lockscreen targets. Only
thing thats weird is after unlock the navbar should auto time out and its not.
It wait until you touch outside then acts as it should.

ps 16: Fix hdpi image
ps 17: switched to 9patch's from nitroz
       added options for stretching draghandle/swipe area width (on tested on
              grouper might need tweaking of values)
       added option to make draghandle.invisible (right now if invisible wont
              register clicks, needs fix)

ps 18: moved constants to demins for overlays

ps 19:  Redo some of the weight calcs.  This basically works if you
	keep weight at 100.  not working otherwise
ps 20: Abandoned Weights, now setting Width of handle based on pixel
	calc.  Fixed 'Invisible' setting on Handle.

ps 21: Add quick tile ( needs images), fix crash when phones rotate,
       swap a division for a multiplication. Come on now Mike. ;-)

ps 22: change screenheight to screen width for landscape... still need something for tabs.
ps 23: added logic for phabs and tabs landscape width, set default width to 5
ps 24: add padding to the SlidingChallengeLayout if we hide the navbar
PS 25:  Fixed NavBar staying visible after unlock.
	Fixed IME Offset in Landscape Mode.
ps 26: This *should* fix QS Tile toggle & provide an Opacity control for
	the drag handle.
ps 27: try to reset screen size on Autohide change.
ps 28: Change QS icon to match 'Hide NavBar' icon

Change-Id: Ic4ad3d9dec139ebeee2ee1e81d97ec603116f5f9

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
FW: Updated czech translation (AGAIN)

Another quick translation

Change-Id: Iffe8337faf9d6dfe6916487487b1230089821a8e
Signed-off-by: kecinzer <kecinzer@gmail.com>
Bring Back CarHome *Removed in AOSP*

This brings back the ability to go to a CarHome rather than Launcher
Google Removed This Ability Here:
Change: I8234ebf066798071517b4a586b06708b6ec0bc71
http://bit.ly/WuZ2dW

PS2:Remove Whitespace.  Thanks Google.

ps 3:  tracked the actual change to here:
https://github.com/android/platform_frameworks_base/commit/7c135205f2f4c192299ad0215276e9e481bccaa5
Fixed placement of IUiModeManager Logic.

Change-Id: I85f63792d57db39bfcfd02592d85a65154fa7010

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
DefaultContainerService: implement additional methods

For usage in Settings->Storage

Change-Id: I2d45198cc6ea3b84af1547873380eae2c04c0b93
keyguard: fix layout for 320dp devices

800x480px dpi devices have less screen space than the xhdpi devices
Google designed the layout for and the layout needs adjustment.

- Reduce the lockscreen security container size such that the clock
  widget has enough space to display its content.
- In the SIM PIN/PUK view, Google put an empty widget on top, but
  we don't have space for that, increase its size such that the
  widget practically disappears.

This should not have any effect on devices with larger screens.

Change-Id: I9e811cfd312abae24a9cad189d19e73848f6c4c1

Conflicts:
	core/res/res/values/dimens.xml
Squashed commit of audio changes from CodeAurora

MediaFile: Add DIVX and MPEG2TS file format

Change-Id: I9f8cfbe8138c6d3d0d824bff2542b91d72a06b82

audio: Define ANC headset and proxy device

Change-Id: I681d73433d874ec66ec0b1f1f39869008d7d7d0d
(cherry picked from commit 1e6c410eadfc510a9f116bb3da142214fe761225)

audio: add support for QCOM WiFi display

- Define QCOM WFD intents
- Register and handle WFD intends in AudioSystem

Change-Id: I1e5a73d4aa5595bed44d24652647c12b7ef4ae1f

audio: add support for QCOM audio formats

- Add support for EVRC, QCELP, and WMA formats

Change-Id: If3676b88fa287b484ef8616c0a6b67177b61a720

PhoneWindowManager: Changes for WFD.

- WFD now sends WIFI_DISPLAY_VIDEO intent to set UI orientation.
- PhoneWindowManager to listen for WFD intents.
- Display on WFD should be same as seen on the HDMI, so set the
  orientation to HDMI orientation

Change-Id: I638adaa906e2151b1c6ae496343714fe828f5dbd

audio: add support for QCOM vocoders

- Add support for EVRC,QCELP and other
  QCOM vocoders

Change-Id: I9b2a18fe7d01a9198eb470e94e7176b7a6da2c7c

Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>
Change-Id: I9b2a18fe7d01a9198eb470e94e7176b7a6da2c7c

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Add CPU boosting hooks

 * Boost CPU to max during scrolling
 * Boost CPU to max on activity start/resume
 * Inspired by a patch from CodeAuora.

Change-Id: I72f2c2851b01fbceabddead03a4c3a7a0526ca61
added back navbar enablement tweak