Start MountService before performBootDexOpt

This change is to start Mountservice before starting
performBootDexOpt, as in one case, in performBootDexOpt
when system upgrade happens, StorageManager will be started to
get the low threshold of DataDir. But, at this point, as
Mountservice is still not up, StorageManager will end up
having a null object of Mountservice.

Change-Id: I6dec474266faa5de67449c1bbe6ef30791e5ecaa
IMS: start and stop dtmf tones

Support of start and stop dtmf tones in Imsphone

Change-Id: I986f6b8e9aa1a5729d280eb8a5c60e129c3796cd
CRs-Fixed: 751797
IMS Call Extras Feature

Call extras for MT calls are propagated
from IMS Service layer till the UI layer
using the 'setExtras' methods.

Change-Id: Ie7a40f5d818eb17ebafdac8c0616e6acf532e27a
CRs-Fixed: 724860
WiFi : Fix to DHCP to static IP configuration problem

WiFiStateMachine shall update the IP address configuration to
the kernel through NetworkManagementService.This notification
from the kernel is again sent to the connectivity service
through the NetLinkStateTracker and WiFiStateMachine.
Thus ,if the interface is down during this IP address
reconfiguration (for the case of DHCP to Static IP configuration),
Connectivity service shall be notified with old IP address ,NULL(0)
IP address(signifying interface down) and the latest IP address.
This notification was done by updating the IP address using a local
variable , and hence the second notification on the interface down
is over ridden by the last notification , resulting in missed
interface down notification to the connectivity service.This
resulted in failed data connection when IP address is changed from
DHCP to IP on the fly.
Hence ,this gerrit enhances the design and also pass the updated
IP address to the connectivity service.

Change-Id: I50cd0502c5f8259b1325ed68de870b592d96ae22
CRs-Fixed: 750277
Bluetooth: Change userhandle to current from ALL

Change to a user handle to indicate the current
user of the device instead of ALL to avoid the
force close error in bluetooth.

Change-Id: I72e5feba6616a48ef8590b6965ec1d94f27b7dca
CRs-fixed: 742926
Allow device to enter download mode on framework watchdog

This allows to get better insight of the device state at the
time of framework watchdog

Change-Id: Id62ab5c156793a91161770cd4ed388b3783a1960
Disable config item to support SIM refresh for dual mode card

Set "config_sim_refresh_for_dual_mode_card" to false;
Resetting this config as majority of the targets don't
need it to be set.

Change-Id: I955fead91e4939172a478fba2b79ae11fecda82b
CRs-Fixed: 665741
IMS-VT: Add call modifiable capability

PhoneCapababilities call type modifiable constant added

Change-Id: I548b3644e61ec1807f8f79f0dec6e12ab8de6eac
CRs-Fixed: 746297
frameworks/base:InCallUI is not coming in but ring is coming in DSDA

Issue: Latch the DUT in W+G DSDA mode.Receive a MT call on DUT
       on sub2 and connect the call. Receive a MT call on DUT on
       sub1 but reject the call. Disconnect the call in sub 2.
       Make a MT call to DUT on SUB2.

Fix: The previous activity in finishing state is not added to
     waitingVisibleactivity list, when it is already true and next
     activity is not visible. Adding it to waitingVisibleActivity
     list enqueue the activity to be destroyed when IdleTimeout
     is scheduled.

Change-Id: I9941f61e4bd8c1df73b0328fc2b4231a068e8a70
IMS Call End Reason Info Code Additions

Adding IMS reason info codes for MO end
use cases:
1. Call rejected/ended due to low battery.
2. Call rejected due to blacklisted call
   ID.

Change-Id: I4e527a643f4a7ebf1ba26e90e4099a66cb5c0e43
CRs-Fixed: 552732
UsbSettings: Adjust UMS mode code logic.

Not to update UMS status in every iteration of client listener.

Change-Id: I5fbc0145c798c468f2ae943b251700f1a71e00d8
Merge "Start MountService before performBootDexOpt"
Merge "IMS-VT: Add call modifiable capability"
Merge "Disable config item to support SIM refresh for dual mode card"
Merge "Bluetooth: Change userhandle to current from ALL"
Merge "Allow device to enter download mode on framework watchdog"
Merge "IMS Call Extras Feature"
Merge "IMS: start and stop dtmf tones"
Bluetooth: Enforce BT state check during GATT close/disconnect

Enforce BT state check when BLE Apps call into GATT to handle scenarios in which
delayed call from BLE App to disconnect/close comes after the BT is OFF

CRs-Fixed: 759852
Change-Id: Iaf7004cdd4fe52e64c48838f6ed918e1d25f5a1e
Revert "camera2-legacy: Workaround max jpeg/preview size AR mismatch"

- This reverts commit a0496d34ffc5153bf933cacbd4be71a4a1bd4041,
  because it breaks CTS test cases:
  'android.hardware.camera2.cts.RecordingTest#testBasicRecording'
  and 'android.app.cts.SystemFeaturesTest#testCameraFeatures'.
- Above change causes all video sizes that doesn't match
  the largest still image aspect ratio to be threated as
  non-supported (not looking reasonable).

CRs-Fixed: 747378
Change-Id: Ib38b39e6ba575b4644cdaeb94391068845337044