BootAnimation: Play boot/shutdown animation and music

Add support to show customized boot and shut down animation, as
well as music.

Change-Id: I69c87640175a96a18833a763a34afd362bbfb487
Conflicts:
cmds/bootanimation/Android.mk
cmds/bootanimation/BootAnimation.cpp
Revert "Freeing frame map"

This reverts commit 0c1eeb3c8ab53954218d3b8f4be08ff21be3e985.
Change-Id: I535330edb636f9457beed0849147168eaa6ae2ec
Conflicts:
cmds/bootanimation/BootAnimation.cpp
Bootanimation: Fix the low memory device oom when run boot animation

Low memory device is easily to be oom when run boot animation. Here
we do optimize the boot animation GL Texture only one frame needed.
That is free timely and re-init it again. When in boot animation,
the fps=15, so it is ok to do the delete and re-init.

CRs-Fixed: 572325
Change-Id: I1e81c3d0f3600ac895f9bd7bd00a284f3d4b7d4c
Telephony: Add 7bit Ascii support for long messages

Add config item for 7bit Ascii encoding and decoding
support for long messages

Change-Id: I54080a5c63fd2dc470f38edeffbe58729c22adf9
Conflicts:
core/res/res/values/config.xml
Add support for DSDA.

1. Interface changes to inform local call hold and setActiveSubscription
telephony service from telecomm service.
2. Interface in Telecomm manager to query active subscription and switch
to other subscription.
3. Add support in PhoneAccount to maintain LCH & active subscription
information.
4. Interface changes to inform sub switch between inCallUI and Telecomm
service.

Conflicts:
telecomm/java/android/telecom/Call.java
telecomm/java/android/telecom/ParcelableCall.java
telecomm/java/android/telecom/Phone.java
telecomm/java/android/telecom/TelecomManager.java
telecomm/java/com/android/internal/telecom/IConnectionService.aidl
Change-Id: I942122eab45a19ea30abc92c90228d9115c1df78
Conflicts:
telecomm/java/com/android/internal/telecom/ITelecomService.aidl
MSIM(DSDA): Keep the tone ids consistent with Audio module

Keep tone ids of TONE_LOCAL_CW, TONE_SUPERVISORY_CH & TONE_HOLD_RECALL
consistant with audio module to avoid mismatch of tone id values
between telephony & audio.

Change-Id: I9911c0e5c71b16120bf49d172c6fa69581202247
CRs-Fixed: 720550
IMS: Deflect call feature

Code changes to support IMS Deflect call feature.

CRs-Fixed: 713856

Conflicts:
telecomm/java/android/telecomm/ConnectionService.java
telecomm/java/android/telecom/InCallAdapter.java
Change-Id: I74b7fd34cad8d49f660fb05bd33becf6ae1de5d2
Compilation fixes on new AoSP

Change-Id: If551c856c1717e2708971568604ae9d7396706ba
Add config for the expire age of partial segment messages.

Set the value to 30 days based on default value in code,
then it could be customized via res overlay mechanism.

Change-Id: Ia219aa59dd009d831abb03b5921763ade38f0c50

Change-Id: I46fda3389a34b99b6e8e5bdb07a16a28ba49ca23
Introduce a new config item: config_lte_capable

config_lte_capable is set to true when the device is
LTE capable.

CRs-Fixed: 628506

Conflicts:
core/res/res/values/config.xml
core/res/res/values/symbols.xml
Change-Id: I0032ff41a37509eb0acf25f1ee08de6cbd01511e
Add config to send SMS on 1x

When UE is attached to eHRPD network, IMS is registered and
there is an active 1xRTT voice call, the config determines
whether to send SMS over 1x. Default value is true

CRs-Fixed: 565247

Conflicts:
core/res/res/values/symbols.xml
Change-Id: Ie4e00eb57ef439e9383c616cd1b60108bcfd505f
UsbSettings: Add UMS mode support.

Add Usb Mass storage mode support for Android device;
Fix SD card can not be mounted to device when usb cable
is plugged in or unplugged fast and frequently.

Change-Id: I3e2df57be0d24909d4ec3cbe6590a576976a324c
core: jni: fix memory leak in SoundTrigger JNI

jExtras object created in android_hardware_SoundTrigger
JNISoundTriggerCallback::onRecognitionEvent()
is not deleted causing a memory which depletes JNI
JNI local storage during back-to-back SoundTrigger
detections.
Delete jExtra after storing in return object.

Change-Id: Ib7048917b7538a27d4519504b30252879acc5447
CRs-fixed: 733969
SystemUI: Update the service state of NetworkController

MSimNetworkController doesn't update NetworkController.mServiceState when
service state changes, so mServiceState always point to the old object.

Update mServiceState to make sure NetworkController check emergency call
only state correctly.

CRs-Fixed: 708875

Change-Id: Iacfdb20831459e1afc50c9b957543fcd5d62e04c
Store Network Mode selected in subId Table.

Modify code to store network selected by user in
subId table.

Change-Id: I3175de81ddde64e496192909ef9e5dd079646bc9
Statusbar: Show wifi status when wifi enabled

Now, Wifi status is only shown on StatusBar when connected to AP.
To satisfy the security requirement, we need show wifi status when
AppOps enabled.

Change-Id: Iae803025e17fd7fb90931f39e8f9841b659ed8ee
StatusBar: Add customized data activity icons

Add customized icons for China Mobile.

Change-Id: I9b4e2ef2d619a877291d45137d3d15a6362d96ea
CRs-Fixed: 731551
base: App crash when select suggestion's length more than specified.

App crashed by catch IndexOutOfBoundsException which raised
by check span range when select suggested string.The root
cause is that the editor will truncate the suggested string
which length is more than it specified, but it also set span
use the suggestion's original length.

Update the suggestion's real length after editor replace the
original string to suggested.

Change-Id: I2d765701934a9e68be172cb87a104590f3cdeceb
CRs-Fixed: 532211
Telecomm: Use proper bit for Voice privacy

in new code, DISCONNECT_FROM_CONFERENCE is introduced newly and is using
same bit as voice privacy and hence disconnect option not showing up
for conference. Hence use a different bit for voice privacy

CRs-Fixed: 738068
Change-Id: I80b7ae7b24ac096dc5bf5abd044bcd8020d06c1d
Media process is crashing with NullPointer exception

Sometime, while creating thumnails list of media files in
compose MMS->attach file,  filepath may be null due to
synchronization issue.
Adding NULL check to avoid NUllPointer exception.

Change-Id: Id6cf5612a959b3ae15b44bc60dbbcbe40c624f09
CRs-Fixed: 636494