Ringtone: return default ringtone if actual one doesn't exist

Improve getActualRingtoneUriBySubId() and getActualDefaultRingtoneUri()
APIs to return default system ringtone when selected one doesn't exist
in media database any more.

This API enhancement is to ensure we can roll back to default ringtone
even if clip is removed, so 3rd party applications don't need to handle
such scenario.

CRs-Fixed: 671624
Change-Id: I516107e88a53eae8aea30a455f834cfd6baeea01
SystemUI: Fix crash issue when slide brightnesslevel in status bar

Getting panel holder by panel_holder in dual sim mode causes a crash.

Get panel holder by msim_panel_holder in dual sim mode and by panel_holder
in single sim mode. Move brightness mirror to front of behind scrim to
avoid it being covered by behind scrim.

CRs-Fixed: 737868

Change-Id: Id3021f879a416525804de5f786a522f4f23dc6f8
P2P: Change supplicant scan intervel during WFD session

During WFD session supplicant scan intervel is one minute. If
there are some saved profiles, then supplicant will issue a scan
for every one minute, this is causing some ping latency in WFD.
Hence supplicant scan intervel should change to five minutes
to improve ping latency in WFD session only.
Change-Id: If827bab6f186ebeaac90f297935bc8b987eb4d09
CRs-Fixed: 669404
Telephony: Get SIM card capacity count of SMS.

Add one API:
- getSmsCapacityOnIcc: get the capacity of stored SMS on ICC card.

CRs-Fixed: 645022
Change-Id: I8064d694d35c4200074a24ee4159d09ecb2a779c
SystemUI: Fix signal icon overlapped by type icon issue

Mobile type icon layout gravity is center and bottom, it covers
signal icon.

Remove mobile type icon layout gravity to place it to the left
of its container.

CRs-Fixed: 729963

Change-Id: Ieccaa6cc2a8f0b615f13af7164f4e9a1c5edf8c7
Add subscription handling to notify dataconnection

In TelephonyRegistry, to notifyDataConnection method
add subscription based handling to connectedapns list
which keep track of apn type connected.
Without this, when default apn on non-dds sub is notified
as disconnected, data icon on dds sub will be erased.

Change-Id: I7023ac1fcde13bdb5afec684be26fb286a25eb4b
CRs-Fixed: 712007
Property constants declaration for OMH

Added RIL request declaration to query OMH profile
Added event to be broadcasted on OMH profile read complete

Conflicts:
	telephony/java/com/android/internal/telephony/RILConstants.java

Change-Id: Idfeb2f3f1a3aa0403a7ff0ab7c69fc945d9e7083
Conflicts:
telephony/java/com/android/internal/telephony/DctConstants.java
SEEK: Following changes have been made for SEEK

1. Add support for getAtr api.
   Implement getAtr() for SEEK on Android.

2. Add Multi Sim support for SEEK.

   MSim support for the following apis has been added:

   1. iccOpenLogicalChannel
   2. iccCloseLogicalChannel
   3. iccTransmitApduLogicalChannel
   4. iccTransmitApduBasicChannel
   5. iccExchangeSimIO
   6. getAtr

Conflicts:
	telephony/java/com/android/internal/telephony/ITelephony.aidl
	telephony/java/com/android/internal/telephony/RILConstants.java

Change-Id: If03cbd4f3b108b77ba7998a605776c8626290cee
IMS-VT: Fix propagation of device orientation.

Orientation received at VT Service is incorrect.
Fixed propagation of device orientation to VT service.

Change-Id: I9fddd4b671fecd5dc4e415ea8f96cf78865c8458
IMS-VT: Upgrade fix

-Add session modify call timed out constant

Change-Id: I1d4557041dc45173c6a3aa6faa8541490d33325d
SystemUI: Show signal strength icons in keyguard

Show signal strength icons in keyguard for dual sim model.

Change-Id: I836844cd2fbb8753e85a1eeb36305b7fc7608295
CRs-Fixed: 731559
SystemUI: Fix status bar icons overlapped issue

Missing RTL(RightToLeft) support for MSimSignalClusterView and its
layout.

Convert left/right layout properties to start/end properties.
Reload drawables when RTL property is changed.

Change-Id: I7c3deb29ad3bb0e4407772da642689213c3ca156
CRs-Fixed: 740221
SystemUI: Add language support for pin lock message

Add language support for keyguard sim pin lock default message.

Change-Id: I249cefc39fa11eaff5db4f4b618e003ecab623d7
CRs-Fixed: 740070
SystemUI: Fix crash after reboot DUT with wifi on issue

getPhoneId returns invalid id cases array index out of bounds exception
in refresh view.

Make data sub to 0 if phone id is invalid.

CRs-Fixed: 741010

Change-Id: I7604ac729679a0e282b63896dc959e15038a9432
Keyguard: Fix SIM unlock progress dialog doesn't disappear issue

Sometimes the SIM unlock dialog can not be hidden, when the view is
re-inflated due to config change in KeyguardViewManager.

Dismiss the dialog, when KeyguardSimPinView is detached from window.

CRs-Fixed: 713577

Change-Id: I0c7bb79e5afed709c7258def73f5d12b9b702148
Keyguard: Change carrier text to "airplane mode" in APM

The original design did not consider the airplane mode is enabled.

When we receive the airplane mode changed broadcast, change the carrier
text as "airplane mode" in lock screen.

CRs-Fixed: 655336

Change-Id: Ied92ea3273cb0b13ea1b9b5d64f30f99bde22a3c
Bluetooth: Move LE Lowpower proximity to vendor specific

This integrates LE Low Power Proximity changes into PXP monitor
service code and allows changes to frameworks is minimal
CRs-Fixed: 657495

Change-Id: Iaf8a63acdc3b948236560facc70cc63f7012da1e
Notify listeners of video quality changed event

- Propagate the video quality changed message to the UI.

Change-Id: I9e49b72e831108037b8bb3e16744a4762150d19d
Fix issue of data activation on SUB2, when disabled in UI

Issue is due to mobile_data1 entry is not available
in settings database, create entry for mobile_data1
in settings database

Change-Id: I537ecc347bd5b141bfedcbfa190336855a5f6fc1
CRs-Fixed: 735040
IMS: Add support for video quality

- Add Config interface to get/set video quality

Change-Id: I1f0661f81967005c82e249ba6c56115f673791d9