frameworks/base/: Fix black wallpaper issue when home pressed.

In the specified usecase, there is a completely new set of
windows that appear on the screen during rotation. And the
existing code in the framework ignores the drawstate of the
hidden windows.

Wait till the drawState is ready for the hidden windows also.

CRs-Fixed: 521758

Change-Id: Ibd96502059c84210ad84ecb03aac5eca28f3c9fe
Factor out preference-in-storage check to overridable method.

Change-Id: I2fff3192802f8a180330fda66388eda394334a5a
Fix certain setting writes being incorrectly skipped.

If a value that previously had a very long value (over the 500 char
threshold) is now set to null, isRedundantSetValue would incorrectly
return true even though the value was changed.

Change-Id: Ia5304743024ec01024be98aa51ed260d38caf93c
server: add enhanced routing support

Add support for policy and metric based routing APIs to
NetworkManagementService. This functionality is used for WQE, IMS, and
Android QoS features.

Change-Id: I5e50185c9ac1cf72c9366815c2ecf590842edfca
fb: start music player if headset is connected

and adjust volume stream as well. We do not make this configurable
it is always a good and common feature

Change-Id: I912e680c2c8407ea62062482ea147ca0b156423b
gps: Add support for Qualcomm GPS hardware

 * This ABI is changed, but we aren't using the new features in MR1.
 * Add a little translation for the changed fields and methods.

PS2: Removed Samsung ifdef

Change-Id: Ieecc2235b42f64fc69d4651855f4e9edfe7d738d
Delete media tests

Media files take up a lot of spce. Deleting them cuts the size of frameworks
almost in half.

Change-Id: I3fd1019df8b41404909b7b4df8ad709526ceff36
Signed-off-by: Evan Anderson <evan1124@gmail.com>
T-Mobile required login tethering fix
data: Remove videos

Signed-off-by: Andre Saddler <dresadd09691@gmail.com>
Add framework definition to include Torch

Change-Id: I21de929089b06e5022f90c1fab6228a543102a19
ExternalStorageProvider: Add support for root and external storage

Google decided to only show the emulated (fuse) internal storage in
ExternalStorageProvider. This provider is used to display storages
in DocumentsUI, the Kitkat file picker, that can be used by apps.

It would be a shame if you can't pick the pictures that are on your
external SDcard :)

Change-Id: I96a8d75ccc911f6f0e7f091c20aaefd510dc3327