Hide ANR, crash dialog boxes for automated testing.

Change-Id: Id87ea470164f58929e3cc474035dd05980fea7e8
SystemUI: Fix user profile activity overlapped by status bar panel issue

Should collapse panels after start user profile activity.

Use startActivity() of PhoneStatusBar class instead of
startActivityAsUser() to collapse panels.

CRs-Fixed: 750120

Change-Id: I950349471ac63b7ad57903670cc659f3e5d21705
SystemUI: Fix dds tile doesn't work issue

Since click event of tile is already in a new non-UI thread, it needn't
call a new AsyncTask to handle click event.

Remove unnecessary AsyncTask in click event.

CRs-Fixed: 750214

Change-Id: I86046055fb7792a817d01890a3db4dc6e01effca
Keyguard: Disable "Emergency call" button in OOS state

For CTA LAB new requirement, there should be no "Emergency call" on
lock screen in OOS state.

Do not show emergency button when service state is STATE_OUT_OF_SERVICE
and isEmergencyOnly is false since it can't make emergency call.

Change-Id: Ieb0e130c24469aaae181cfdce9d62739e285362d
CRs-Fixed: 669191
Keyguard: Don't show "emergency call only" in OOS state

UE should not show "emergency call only" as plmn if UE is in OOS.

Replace "emergency call" with "no service" when service state is
STATE_OUT_OF_SERVICE and isEmergencyOnly is false since it can't make
emergency call.

CRs-Fixed: 693739

Change-Id: I88375e80b7301a08453a145d02d9677aa7f14873
SystemUI: Add support for charging animation

As original design, when charged by USB or AC Cable, battery icon in
status bar and quick setting can not increase dynamically.

Support charging animation by updating battery icon while charging.
Add config to control whether show battery charging animation.

CRs-Fixed: 561586
Change-Id: I8092091a3406cf5499768ef46856ed4be4173d2b
SystemUI: Fix system ui crash while continuously click flash light tile issue

In FlashlightController, after set mSession/mSurface null in teardown(),
mSession is reassigned in callback of mSessionListener.onConfigured().
This will lead to no Surface object for mSession.

Don't reassigned mSession when mSurface is already set null.

CRs-Fixed: 750124

Change-Id: I1c4214cc4b58375e82740853c5aff9b68530f816
SystemUI: Refresh signal cluster when voice network type changes

Make sure to refresh signal cluster when voice network type changes.

CRs-Fixed: 716551

Change-Id: Ieacb010ecc40b5b9df8ba2d0ac2c623c59b63232
SystemUI: SystemUI: Fix wifi activity icon size

The sizes of wifi signal icon and wifi activity icon are different.
Wifi signal icon will move left when wifi activity icon shows.

Fix wifi activity icon the same size as wifi signal icon.

CRs-Fixed: 746624

Change-Id: Iaaa28135bfdfa5bbaff1941248ee22d7deff4ab8
UMS: Add the missing notification when USB connected

The default USB functions not fall into any of the conditions,
cause "USB computer connection" missing.

Add the bool resource "always_popup_usb_computer_connection", use
it to control whether "USB computer connection" option appear.

This patch fixes the issue that "No USB menu pops up when connect
the device to PC".

CRs-Fixed: 760672
(cherry-picked from commit c6c4bec1e3c2822c93928c77696d683a04cd8c38)

Change-Id: I3e8a62a290fd0b1867954cea00dced672524ac35
Ringtone: set default ringtone for triple slots

Set default ringtone for triple slots irrespective of how many sim
cards are actually activated. This awkward behavior is to avoid
ringtone missing when multi-sim settings are changed dynamically.

Change-Id: Id5178df89494fef02b13cc989813a9cacd436e9c
CRs-Fixed: 755560
Override updateBlockedUids method

Override updateBlockedUids method in BridgePowermanager

Change-Id: I8533e55a41bf7a1b69a46277798735bf314d2ef3
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: Iff6de6b1b3e066f4a4ab610ae3fe10b22f5b0822
Merge "Ringtone: set default ringtone for triple slots"
Merge "Override updateBlockedUids method"
performance: prevent crash due to missing symbol

Crashes can occur when the symbols for PerfLock
cannot be linked properly before invoking.
Add an extra check prior to calling the function.

Change-Id: I03cbf7aff21573296b0e1221d4269c604e2c30a7
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
Merge "UsbSettings: Add UMS mode support."
Merge "performance: prevent crash due to missing symbol"
Merge "Bluetooth: Enforce BT state check during GATT close/disconnect"