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
MSIM(Telephony):Add changes to SMS APIs as per new SmsManager design

Change SMS Msim APIs as per new SmsManager design

Change-Id: I14ad7685e23b14203a76dfe3cc5a95a337f7d0e3
SystemUI: Enhancement for 4G icons

Add 4G LTE icons with sim IDs.

Change-Id: I1608b18cf6cc1652138162cc51f9c088841892d2
Ringtone: Add support for selection of phone ringtone for SIM-2.

-Issue: "The process android.process.media has stopped" pop up is
 displayed when ringtone for SIM-2 is selected.
-Rootcause: There is no type and URI defined for SIM-2 ringtone
 in the RingtoneManager. This is leading to SQl exception when
 executing a selection query.
-Fix: Add URIs for the SIM-2 and SIM-3 ringtones. Define
 interfaces to return them to app side based on subscription ID.

CRs-Fixed: 612945
Change-Id: If68c2d008dd86d2b55d3fb7f5667bbadc238d0b3
IMS-VT: Upgrade/Downgrade change

-Add isVideo API to VideoProfile.VideoState

Change-Id: I0b0b5cc9f59102767dc6947528838b38f18ee38e
frameworks/base: add app launch timeline instrumentation

Displayed Activity is often being used to measure application
launch times. However Displayed Activity only accounts for a
subset of the app launch. This additional instrumentation will
allow for more accurate measurements of applications launch
times.

ActivityManager: Update timeline debug statements
Update the timeline debug messages so that
'ActivityManager' is not used as the tag in log
messages as it interferes with some CTS tests.
CRs-fixed: 628703

This commit combines the changes from KK gerrit 668250 & 543988

Change-Id: I0af42520dc30d89a910e60aebdddf0c4fdd32b3e
Bluetooth: Avoid the crash in LEScanClients following BT process restart

Due to sudden crash and restart of BT process, BTLEClient object to call
is not valid and throws the NullPointerException.

Change-Id: Ie3b98149e83afc5b84b042ce61978eb1599dce49
CRs-Fixed: 729372