Add support for BeiDou and Glonass

Add masks for BeiDou and Glonass
to delete aiding data
CRs-fixed: 582614

Change-Id: I2d59f862b5c47204f053787038b3f180adc89eba
[1/2] Base: more addition for tinted system bar

Overhaul how tinted color is works
allow changing color Any parts of window shade e.g notification or settings panel, include handlebar
fix variouse state problem while using tinted option
make color calculate more better
fix tinted color still enabled if layout request different systemui flags > 2 times
fix whitespace
cleanup tinted code and fix battery percent color
battery only change background if charging

also while im here
add Tinted tile
drawable courtesy by Alex Cruz (thanks to him)
fix QS reload after changing configurations
fix QS tinted color reset

Change-Id: I9e4ca93d9dec29c5351e09fce64bf6bf124aa1cc
Base: improve pressed state QS and Notifications

also fix handle bar size while tinted

Change-Id: I4f52c6073862281195b5c965192684d8f579d834
base: audiofx: harden against offload effects

Hack for now to allow using DSPManager for offload effects

-offload effect equalizer has only 5 bands but DSPManager has hardcoded 6
-offload effect bassboost doesnt support center freq

Change-Id: I9ad661221654415b2be3ed18f8cf31453d6df637
Change permission guard on bindBackupAgent()

Bug: 15829193
Change-Id: I6c1c39923b7b1a9f528f97da10913cb7f2d7e8f9
(cherry picked from commit ec75ce78661f3df0b9e6207c20eaf80f35bdc82c)
Fix issue #16794553: Duplicate ArrayMap entries in Bundle...

...can lead to launching of un-exported activities

We now validate the array map after unparcelling to make sure there
are no duplicate keys.

And to make up for the performance overhead this introduces, I switched
the parcelling/unparcelling code to write keys as explicit string
objects rather than generic values.  There was no reason to use generic
values since the write method itself only accepts an array map with
String keys.

Change-Id: I57bda9eb79ceaaa9c1b94ad49d9e462b52102149
Do not persist and restore the media button event receiver

Do not persist the media button event receiver.
Do not restore the media button event receiver on behalf of the
  application that registered. Prevents reported vulnerability.

Bug 15428797

Change-Id: I7ca3e7fccb165c55b23f471c00e0ed77436f7dc1
Merge "Add support for BeiDou and Glonass" into android-4.4
Merge remote-tracking branch 'omni/android-4.4' into omni-4.4