Bluetooth: Modify Avrcp 1.5 implementation to adapt to latest AOSP changes

Modify Avrcp 1.5 implementation to adapt to latest AOSP changes.

CRs-Fixed: 719567
Change-Id: I0958fb12f573054f1da16df0ac46f3bec7374222
Changes for supporting UICC feature

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

Change-Id: Ib4939e45efa87b398294f200dd45cf8bbe3a7a34
Ims: Send user selected TTY mode to lower layers.

Irrespective of whether TTY device is connected or not
send TTY mode setting to modem whenever user changes it
from settings.

Change-Id: I45d2a65840cfb4736cfdcf851357850bb6330693
CRs-Fixed: 698661
ExtMediaPlayer: Increase parcel pool size to 30

Increase MAX_NUM_PARCELS to 30. This is to handle
parcel override issue when textsamples are sent at
a fast pace from mediaplayer.
Usecase: With CEA CC streams, dashplayer sendTextPacket
embedded in each video sample as soon as decoded.
No realtime offset delay sync logic for text samples
as with A/V samples. When samples drained in batch,
can have more than 5 textsamples sent in flurry

Change-Id: I4c4c63b9c9c296dbb387c4da9e70c040b75f92b6
IMS: Unsol TTY notification support

Code changes to support UNSOL_TTY_NOTIFICATION handling.

Change-Id: I8936b041be1de86faf32455841529d90e1cf6044
CRs-Fixed: 723155
Fix for maintaining proper simState across subscriptions

Change the condition to update the subscription
information based on slot Id once the subInfoRecords are loaded.
Update the subscription information and the sim state based on
the previously stored subscription information rather than
invalid subscription.

Change-Id: Ia31784781d6e7f6a82665c40cd10cb557fe6b018
CRs-Fixed: 721525
Bluetooth: Fix for hash map table entry for Advertisement

Addition of callback to the hash map is been decided based on the
success of multi advertiser callback i.e advertiser callback will be added
iff the advertisment is succesfull.

Conflicts:
	core/java/android/bluetooth/le/BluetoothLeAdvertiser.java

Change-Id: I90e810fdee944c1a82729bdf7fcd9ed26f5eb094
CRs-fixed: 721903
Telephony: STK CC feature implementation

Add strings and constants required for stk cc feature

Change-Id: Id5ec987cdc8dc2d9eebdf01fe546eb96ec0c69f9

Conflicts:
core/res/res/values/strings.xml
Change-Id: Id5ec987cdc8dc2d9eebdf01fe546eb96ec0c69f9
MSIM: voice/sms subscription related API changes.

 - Add APIs to get/set the default sms subscription
 - Add APIs to get/set Voice/SMS prompt mode status

Conflicts:
telephony/java/android/telephony/SubscriptionManager.java
Change-Id: I7f06a1f45d59c617e07c1b142a11828f7cda944b
Add Manual Provisioning Support

* Add status variable in SubInfoRecord.
* Add new APIs in SubscriptionManager to activate/deactivate sub.
* Add new APIs to get and set subStatus.

Conflicts:
	telephony/java/android/telephony/SubInfoRecord.java
	telephony/java/android/telephony/SubscriptionManager.java

Change-Id: I8098c46ced297cda748946caab86a5010cc0a255
Telephony: Implementation of DATA+MMS

- New base id for DdsScheduler async channel events

Change-Id: Ib5c4cae7b8471a8d0d2230354eb7cf2ea315ee67
Telephony: Screen status support for USAT phase 2

This fix has change to support Idle screen status information.
broadcast CAT_IDLE_SCREEN_ACTION Intent when ICC has requested
to be notified of Idle screen status.

Add RECEIVER_FOREGROUND flag for idle screen broadcast intent.
Normal priority broadcast intents get queued up in application broadcast
queue, if BOOT_COMPLETE is not yet received by the application.
Adding FLAG_RECEIVER_FOREGROUND to the intent allows it to be delivered
to the application without waiting for BOOT_COMPLETE.
This is necessary to prevent some GCF tests from timing out due to
delayed delivery of CAT_IDLE_SCREEN_ACTION to Stk application.

CRs-Fixed: 432647 454835 635236

Change-Id: Ie42e5249940032fd1fb71b903586ac873174f3c6
Conflicts:
services/core/java/com/android/server/am/ActivityManagerService.java
Mms: Add interface to support sending sms with origination port

Can't use DM test server query DUT's register info with origination
port.
Add 'sendDataWithOrigPort' interface for sending data with IMEI through
origination port.

Change-Id: I270acf1da9f7a68e19433d7eb3953d53097070ee
QuickBoot: add execption restore mechanism

There may be some exceptions like battery unplugged When device
is put into QuickBoot mode. Then device will be in airplane
mode after next boot. We don't want such kind of things happen.
So start restore task to check if need restore before main
screen shows.

Change-Id: Ie92f688d135098972624b21dc69a771fcc39b49f
Conflicts:
services/core/java/com/android/server/wm/WindowManagerService.java
IMS: Addition of Extras to ImsCallProfile

Adding EXTRA strings to ImsCallProfile to
support the follwing Call Extra information:
- Parent Call ID
- Child Number
- Codec
- Display Text
- Additional Call Info
The strings will be used to pack corresponding
information in the mCallExtras Bundle

Change-Id: Ie7a40f5d818eb17ebafdac8c0616e6acf532e27a
Telephony: Define a new property for RUIM based APN operator numeric

PROPERTY_APN_RUIM_OPERATOR_NUMERIC holds the value of mccmnc from CDMA
RUIM/CSIM card and is set by RuimRecords. Applications can use this
to lookup APNs based on RUIM/CSIM mccmnc.

Change-Id: I9e1336ef90d9f002fd226961ffce327ea1422b4a
CRs-Fixed: 626590
OBEX: Handling GET operation properly

This change handles GET operation properly whenever
Input stream is getting aborted in between.

CRs-fixed: 668890
Change-Id: Idcb4ea04abb57353af5ab1fef050b3a36579892e
IMS: Conference URI support.

Add Telephony Property PROPERTY_DBG_IMS_VOLTE_ENABLE,
extras EXTRAS_IS_CONFERENCE_URI, EXTRA_DIAL_CONFERENCE_URI
which will require by Telecomm, TeleService, Telephony
Framework, IMS framework etc.

CRs-Fixed: 713839
Change-Id: I2040bd040a46f7f416b3689cf87b351530f8e293
IMS: CallForward Unconditional Timer

1) Added new API for callforward
   unconditional timer in aidl file.
2) Added new flag members in ImsCallForwardInfo,
   which has been defined in proto file.

Change-Id: Ie4b79dd2cd47b8042ff588b0f3ddfd7e72a7aab0
CRs-Fixed: 689110
Add screenshot for LogSystem.

The LogSystem can use VolumeUp+Power key to capture the screenshot
to get more useful information for developer to analyse.

Change-Id: Iabca0b59aac832b1698f06c89a8782c76fbc598a