SystemUI (MSIM): Fix Airplane mode toggle issue using Quick Access menu.

onAirplaneModeChanged() in QuickSettingsModel class needs to be called from
MSimNetworkController class (for MSIM) to update Airplane widget in Quick
Access menu. Same code is missing in MSimNetworkController class.
Add notifySignalsChangedCallbacks() at MSimNetworkController class.

Change-Id: I214f679b377f26fb58b6165a52c5e12c860f5111
CRs-Fixed: 543170
Lockscreen: Add chinese string for airplane mode

There is no chinese string resource for lockscreen_airplane_mode_on.

Define the chinese string for airplane mode.

CRs-Fixed: 561393

Change-Id: I59d2fd42f8b3140a934614a4977dc7ade0332c6d
Keyguard: PIN lock input views flash when SIM status ready

When airplane mode is turned off and DSDS mode is on, cat service
will request RIL to update the SIM card status. When the broadcast
of SIM ready status is received, keyguardview will be reset. So the
PIN lock input view will flash and bring bad user experience.

As there is nothing to update by resetting keyguardview while SIM
is ready. So dismiss the ready status of SIM card.

CRs-Fixed: 537172

Change-Id: I510e8f1e2f08cb946fe47f02b015ae5bf89d5025
Contacts: add the local group info and API

- add the group API for app to get/change group info
- add the group constants for app to acess the group
  database.

Change-Id: I205383ea3983675594f8fe414c466e7e55c6433e
Telephony[MSIM]: Change the package name of NumPadKey.

NumPadKey is moved to package "com.android.keyguard".

Change the package name from
"com.android.internal.policy.impl.keyguard.NumPadKey" to
"com.android.keyguard" in layout file.

Change-Id: Id8ec2a5b58b5c0e8bf153e5160091d2a30dedce6
CRs-Fixed: 588162
Remove the incorrect message after 3 wrong PIN attempts

After 3 Fail attempts of SIM PIN entry "Incorrect PUK code"
will not be displayed. Remove logic as it is already present
in AOSP.

Change-Id: Ie83788a420c42e6b9b16fea6d2da155d161defc0
CRs-Fixed: 578936
Fix null pointer exception in PhoneWindowManager

mKeyguardDelegate is null and is causing fatal exception

Change-Id: Iae14b969b7ff9ab0003e615f2f82eaac65a77985
Telephony: Modify code to check PUK code length is always 8.

As per 3GPP TS 31.101 Release 11 section 9.6, the number of digits
for UNBLOCK PIN (PUK) is always 8.

CRs-Fixed: 596207

Change-Id: I55dc9f0a701410d8405026e625a5f2a98a9f712c
Telephony: Add support for tune away and priority sub

Add constants for tune away and priority subscription

Change-Id: I790cfdcd9a1dee946502349084a4d8138d2144ec
CRs-fixed: 464483
(cherry picked from commit ebaedd5e9dc33feda0fb0a0c47e204c4efa41873)
(cherry picked from commit 1c534171e946a46c15bfadb5f0732a6b32cc5ec7)
Telephony(MSIM): Add subscription information for the call log

- Add overload function addCall with one more parameter sub
  to support multi sim in call logs.

Change-Id: I5b8e50d7e0c69624be4131d5e2e738b5353f9a1c
systemui: Kill logspam

Change-Id: I79ed31c754861625f1294aab9ac62b980d743e8b
Statusbar(MSIM): Do not display data icon if data is not connected.

When updating the status bar for the WiFi connected status, even if
the mobile data state is in disconnected state, it shows data icon
based on the data network type.
Add code to check if mobile data connected while updating data icon.

Change-Id: I35e80f5073ba24ebbebc354a2b30c62bf660b809
CRs-Fixed: 584106
NetworkController: Hide signal strength icon when no SIM icon is shown

Change-Id: I5c4b43bba1469e14474d20a3627eafa597459e6e
Telephony: Set the value of min match according to one property

CTA requires to match 11 phone numbers, so use the value of the property
"persist.env.c.phone.matchnum" to set it 11 in case of CTA tests, but by
default it is 7 without change.

Change-Id: I8cd4105c06c71af1ad242858d8de474459d96ee1
Ringtone: Add the default ringtone for multi SIMs

The default ringtone is just set for SIM1 at initilization,
so to support multi SIMs ringtones, add the corresponding
configs in Settings provider also.

CRs-fixed: 538916

Change-Id: I11ed845fbd815fd4acd85baf1772218ef971b5f1
Message priority support for 3gpp2

Add support for message priority in 3gpp2
Add new interface API's sendTextMsgWithOptions and
sendMultipartTextMsgWithOptions

Change-Id: I1bf5752eaf8b1acf19fe330d7f409214ee97d3cf
Add support for IP call prefix

Append the user configured IP prefix ahead of the calling number
in case of calling via IP.

CRs-Fixed: 516042

Change-Id: Idf73f06c7030df4124f737433839efddcd089c23
Update for IP call prefix

Get IPCALL_PREFIX number from database instead of string IP_CALL_PREFIX.

Change-Id: Ic1a214a4cc5dee92081f252b5fd00605f9c3606b
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
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
CRs-Fixed: 539265