SystemUI: Add task manager

Add a button in status bar expanded header to switch to task manager,
which supports to watch current running tasks and usage of memory, also
supports to close one or all of running tasks.

Conflicts:
        packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Change-Id: Ica51961bfac78580eac085c18eb42f91a84efc95
AppOps: add Chinese support for AppOps popup dialog

Add Chinese support for AppOps popup dialog.

Conflicts:
        core/res/res/values-zh-rCN/strings.xml

Change-Id: I2ac3664640d1adba2e1b14016856f36d50eb2ed3
audio: Add support for compress voip

- Add support for compress voip where voip
  driver is used instead of audio playback
  or record path.

Conflicts:
        core/jni/android_media_AudioRecord.cpp

Change-Id: I3c9e53004c1d22435e2060b4c3563a3c219b8720
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

Conflicts:
core/java/android/content/Intent.java
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Change-Id: I446ab768200f9b9f59759e52071bcaca7d6f836c
framework: update WFD session orientation based on UIBC rotation

User Input Back Channel (UIBC) support in Wifi Display stack
allows the sink to send control/commands/preferences to the source
e.g. touch, keyboard/mouse entry, or orientation/rotation.

PhoneWindowManager needs to listen for UIBC rotation
intents and update the preferred rotation when WFD is active.

Note: HDMI rotation lock overrides WiFi Display UIBC rotation.

Change-Id: I1869b21c3c03b5b36c5381933b50dfbfeca88db6
Conflicts:
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Prevent SD-card from Un-mounting if cancelled during erase

If User cancels during the formatting stage
of "Erase SD Card", make sure you do not
Un-Mount the Volume

CRs-Fixed: 616156

Conflicts:
        core/java/com/android/internal/os/storage/ExternalStorageFormatter.java

Change-Id: I8d7e1cf64917ee3628a1a682e2f3fb32443f3a2e
MSIM: Interface changes to set phoneaccount

Interface changes to set the phone account handle
in emergency call scenario.

Conflicts:
        telecomm/java/android/telecom/Connection.java
        telecomm/java/com/android/internal/telecom/IConnectionServiceAdapter.aidl

Change-Id: I7b5ff58b5667e3c04f58bb586e1a4590d2fcfe7f
CRs-Fixed: 722205
IMS: Add participant support

Add Phone Capabilities ADD_PARTICIPANT and
Telephony Property ADD_PARTICIPANT_KEY.

CRs-Fixed: 720697

Conflicts:
telecomm/java/android/telecom/PhoneCapabilities.java
Change-Id: I779592de4a3d7d06ece32eb608e0652d20e5e7b5
IMS: Allow placeCall with complete uri.

Add extra "org.codeaurora.extra.SKIP_SCHEMA_PARSING".
Application need to set the intent extra to dial with
complete uri.

Change-Id: Ia2b9ca3480951ce759992fe0dfd6c9792a58a34a
CRs-Fixed: 680318
Voice Privacy Icon Support for CDMA

With this Fix Voice Privacy will be part of call capability
information. IncallUI will update the VP information
whenever TelephonyConnection is notified of VoicePrivacy change

(cherry picked from Ia0966f3546e83b8160c363688ce23368e35435ca)
CRs-Fixed: 599389

Change-Id: Ibc952170f316f6351b1a2884a2b71921c888a913
Telephony: Signal Strength and annunciator

Signal strength bar are displayed after SIM is removed
Update the signal strength bar and display no sim
annunciator on SIM_STATE_CHANGE ABSENT intent

CRs-fixed: 721267

Change-Id: Ibfbe35f0a9969ac64bbb99e8ee022b550fa2005c
Tethering: IPV6 tethering support

- Added two APIs addUpstreamV6Interface and removeUpstreamV6Interface,
  required to pass the interfaces to use to the Router Advertisement
  Proxy.
- Added a dun entry to the networkAttributes value in
  res/values/config.xml. This is to allow tethering to work with the
  dunRequired property.
- Added dun to allowable tether upstream type.
- Enabled debug flags for debug logging inside framework components.
- Regardless of MOBILE_TYPE_DUN APN being available, if dun_required
  flag is not set, fall back to HIPRI as a preferred APN for the
  embedded data call.
- Debug logging was enabled by default which was causing security
  vulnerabilities. This patch disables debug logging.
- Added a NULL check for Network info in CMD_UPSTREAM_CHANGED
- Changed the exception type thrown from IllegalStateException to
  RemoteException whenever the IPv6 tethering rules fail to apply. The
  IllegalStateException is not caught by the caller causing the JVM
  to crash. By throwing RemoteException, the caller will catch and
  print and error message instead of crashing.

Conflicts:
        services/core/java/com/android/server/NetworkManagementService.java

CRs-fixed: 665103
Change-Id: Idb0971449473554bcd749d478563db7ba351d55d
Broadcast upstream interface change event for IPV6

On change in tethering upstream interface for IPV6 address, broadcast
an intent with the information viz iface name, ip address type and
update type(i.e. add or delete). This changelist is update to
Change-Id: Ia80738bcf09692209674a47b6c6c1c082a201b16 for IPV6
tethering support.

Change-Id: I2e3da6e6b881ef1eb0f673c8d293f10c250ccd93
CRs-Fixed: 721222
Telephony: No Sim annunciator

Display no sim annunciator symbol on status bar
when sim is removed.

CRs-Fixed: 707886

Conflicts:
packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkControllerImpl.java
Change-Id: I21c7e4c71330207dc4691aef4ff0093832f11ea9
use different drawable variables

Change-Id: I87f7caab9e3cf2e6ddb9e5f9eba45ae2a86f4edb
StatusBar: Add support to show data and wifi activities.

-- Show data activity icons.
-- Show wifi activity icons.

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkControllerImpl.java

Change-Id: Iee5038b007e91deeb2d3cb838ce3908818aefc91
Data+MMS changes: Implementation for Legacy Api

- Add overloaded fucntion
  startUsingNetworkFeatureForSubscription
  stopUsingNetworkFeatureForSubscription
  This change is to allow the legacy MMS app
  to work for Data+MMS feature request.
  The purpose of this feature is to enable
  simultaneous PS ATTACH and PDP ACTIVE
- Fix duplicate requests. Add a check to
  prevent duplicate networkRequests being
  send to networkFactories

Conflicts:
services/core/java/com/android/server/ConnectivityService.java
Change-Id: I50bd6eea889a105a12d8b8d2beef6646675836fe
IMS MWI Feature - AIDL Changes

Adding new API to update waiting
voice message count, for UI
propagation.

Change-Id: Ib9b2a0ec7215813329f56d970ca3911ebe665846
CRs-Fixed: 628222
CallLog: Support duration type for CDMA call log

Display the type(Active time/Call out time) in call log
of CDMA call.

Change-Id: Icdc459b0e6aff2ae7f9d44395b6886232de16efe
Keyguard: Add config to always enable emergency call button

As the original design, emergency call button will be hidden on slide
lock screen. Add config_showEmergencyButton to control emergency call
button on slide lock screen.

CRs-Fixed: 640998
Change-Id: Ica29e1ec9043272e9d507307fb8744e8eef57b2e