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
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
CameraTile: Launch default gallery app when long pressing active camera tile

Currently long pressing this does nothing. It makes sense to launch the default
gallery app from here if a user long presses in order to see pictures that
they've taken from the smaller camera preview.

Change-Id: Iad73a291443eb2a12e1399f24eeeec61ec945bf5
Merge branch 'qcril' of git://github.com/CyanogenMod/android_frameworks_base into cm-11.0
SystemUI: prevent NPE on clear recents double press

Pressing Clear all button twice fast or while the list
is clearing but not yet fully cleared causes sysui to crash due to
mRecentTaskDescriptions being null: (http://pastebin.com/2gRFvf8k)

Workaround it by hiding clear all recents button.

Change-Id: I23d10edfd336041739fe80352ee01987e671dbd7
Correct stride for drawing to cached glyph bitmap

fixes the glyph cachebuffer index to account for pixelbuffer
format size.

issue: in launcher home screen create icon group and rename the
group to some text string with emo-icons (smilies). without this
change the drop shadows for emo-icons will look bad.

Change-Id: I525a9219d35f4541363fd64e7fc5fd1053269725
Signed-off-by: Digish Pandya <digishp@codeaurora.org>
Use alpha channel instead of red in drawCachedGlyphBitmap

the correct value to copy in bitmap is alpha component from
the cachebuffer. currently it is offset to red channel if format is
RGBA which is wrong.

this is followup fix for https://android-review.googlesource.com/#/c/93943/

Change-Id: I96b5ba35df5ccaef44caf2542d35d6585ba1df80
Signed-off-by: Digish Pandya <digishp@codeaurora.org>
reduce cookie tracking (3/4): add a way to count cookies

Change-Id: Ibc1c8d3160a89de51531a89c5103b47ba2c2c649
framework: Add compass tile (1/2)

Add a compass tile to quick settings.
Clicking on it enables the sensor and clicking again disables it.

Screenshot: http://goo.gl/2frdpy

Change-Id: Icd9d12929f0491f6958f30de139ef39bb4c2e037
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>
SystemUI: modify AOSP RU translation

Updated a string to say "Cast screen" instead of older "Wireless display"

Change-Id: I10558e36c2ee9f0e53f0de382425a3aceb52cab1
Merge remote-tracking branch 'cyanogen/cm-11.0' into cm-11.0