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: Id4d26526a858bd302dec5fc6e699e8b01afc2709

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Add link control support

Add support for link control while sending
multiple messages.

Change-Id: I1e9009d2ba24512d03186a11a34dfddf484c2b8e
CRs-Fixed: 608922
Set empty string to the property if value is null

Issue is if the received value is null, then while
preparing complete property value for MSIM the null
value is converting to "null" string. Fix the issue
by adding null check to the received value.

Change-Id: Ib7a8ea5ce5b1341df6155ec34c25a016eb4ec667
CRs-Fixed: 622695
Add string resource for UICC storage

This will add one more string resource for the devices
which has UICC support in settings->storage option.

Change-Id: I19a5813749f51aec841769aa8d21792716d033a7
Telephony(MSIM): Avoid NullPointerException

Wifi group and Mobile group variable can be null
during SystemUI startup or onDetachWindow.

Change-Id: Ia97fef9d7ed730b78e8cd9579d6e1d002cc9082f
CRs-Fixed: 643031
Validity Period support for MO SMS in 3gpp

Add Telephony framework support for Validity Period in 3gpp
for MO SMS

Change-Id: Iee7358ca1971441f0567e428b587562294fe29bb
CRs-Fixed: 627981
Add support for default data subscription setting.

Default data subscription setting holds the default preference for data
subscription. It will be updated when user changes data preference,
sub deactivated or card removal.

Current set preferred data subscription API does not update the default
data subscription preference. This change is to handle temporary DDS switch
by apps like MMS.

New APIs to update and retrieve the default data subscription are added.

Change-Id: I495266cff2a5319c57279d9decb77d6a87bbfae8
CRs-Fixed: 642210
Fix layout recreation check

Change I7d6b088a9235362e03cb6694392df71bbf5a323a added a relayout
for programmatic text direction changes, but this is breaking some
fixed layouts. Make sure layout params exist before trying to
act on them

Change-Id: Ibfe3daa71490d109c9a4bdc4c90cbf9517e53260
MtpDatabase JNI: Fixed a memory-leak in getObjectPropertyValue().

The jstring "stringValue" was not never freed.
In the case where "str" was NULL the whole cleanup part (see "goto out")
was even skipped.
This patch makes getObjectPropertyValue() behave like
getObjectPropertyList().

Change-Id: I5a7ec3611036f5253a054b00064999bcd1d1c29e
appops: do not prune apps that are not present

Do not prune apps that are not currently present in the device (like sdcards ones). During
booting sdcards are not available but must not be purge from appops, because they are still
present in the android app database.
JIRA: CYAN-2811
Issue: https://jira.cyanogenmod.org/browse/CYAN-2811

Change-Id: I6680cbdf0022812b45d966dffee754399e92accb
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
reduce cookie tracking (3/4): add a way to count cookies

Change-Id: Ibc1c8d3160a89de51531a89c5103b47ba2c2c649
Merge remote-tracking branch 'legacy/kitkat' into kitkat