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
base: Fix the problems for runtime overlay.

 - There is no need to make the string blocking when adding the asset path,
   as it will be made by the resources.
 - After adding the overlay path, it also needs to update the string blocks.
 - Scan all the sub folders for framework overlay res.

Change-Id: Iaad019111ae364c319e58dce57dbf4647b38d4c3
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
LocationServiceManager: Handle MODE_ASK in location service.

AppOps CheckOp can return MODE_ASK.
Fix location manager service to handle this new mode.

Change-Id: I085f01e992f60456ad24921bf4ce508ece54e8a6
AppOps: add permission check when enabing nfc

Add appops permission check for enable function.

Change-Id: Ie98be3e7b3cd9e72b0ad12cc1634d9cd1869a66c
Block application install from unknown sources through adb

adb install command  doesn't check source of an application.

This change enforces that adb install command only works if user has
download/install from unknown sources selected in settings app.

Change-Id: Id0d328d1dad36089802d6bec2f5d2f940e045c25
Statusbar: Add customized icons for signal cluster view

Add customized icons to adapt carrier specified
status bar style.

Change-Id: Ie769ef1f157cd0dd1bd2e4cf3e60cef7018bc55c
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
Hidding Public Variable

Hidding Public Variable .

Change-Id: I3507ea73118e97c3514135b14dafb92a30a2ba9d
StatusBar: Add icons for Chinese carriers

1. Add icons for CMCC DSDS staus bar.
2. Add 4G signal strength icons.
3. Add 4G data arrows icons.
4. Change 1x to 2G signal strength icons.

Change-Id: I2409a8f5cd2b598cccf4a2f385b6a681b0b8e2a2
SystemUI: Add global reboot option

Add global reboot option when long press power key and confirmation dialog
when user chooses to reboot device.

Change-Id: I23286cb655a4fead8dfc450f08f27d9588e47686
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
WindowManager: Toast message is not visible in some scenarios

Issue: Toast does not get displayed if it is displayed from an
Activity which runs in a process different from the process of the
package to which the activity belongs.

Fix: While adding a window a check is done to ensure that the uid
of the activity matches the uid of the package to which the activity
belongs. This change will bypass the above check for Toast message.

CRs-Fixed: 720701

Change-Id: I29c5d30a8f11c2d132066c77bd038abc444cedb4
usb: Show notification in 'charging only' mode.

Show correct notification in 'charging only' mode.

Change-Id: I93a04efe52e8280da95438ceb02b4054610a4d6e
USB: Don't add adb function when usb disconnected

When USB is disconnected, "adb" functions will be added even in
"charging" mode. This breaks "charging" mode's design.

Change-Id: I7ab62194a0acb97620e33da4839e0f6c87f60917
ShutdownThread: Add hook to call into oem shutdown function

We now invoke a oem specific function as part of the device shutdown.

Change-Id: I71643064130c606562ad21f61db937b508d43f41
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