Revert "Fix uninitialized mScreenOn boolean in Clock"

This reverts commit 03bd8f098972d4395abb2ee03b1e10fc8f933a20.

Change-Id: Ib52e5412613abaf146c15ab6b9543e744900afcf
Merge "Revert "Fix uninitialized mScreenOn boolean in Clock"" into pac-4.4
Revert "SystemUI: disable statusbar time refresh when screen off"

This reverts commit 17e345d6a1fd47fef355ebdd55e6215781fa180d.

Change-Id: I2a18da40a77a9d59b116226910c64ff304f051a5
Merge "Revert "SystemUI: disable statusbar time refresh when screen off"" into pac-4.4
Try to fix white link text

Change-Id: I44a2fe5e26ed2594787ece825d2f03c4811762a6
SystemUI: disable statusbar time refresh when screen off

When screen is off, don't refresh the status bar to save power.
When screen is on, refresh immediately for user experience.

Change-Id: Ie250e20bab57c096a16886680a53263c635bf6f4
Fix uninitialized mScreenOn boolean in Clock

Fixes fail introduced from

https://github.com/TeamEOS/frameworks_base/commit/40c6915e43be05ef176023b20303827769c11dbf

Change-Id: I9daf426c588451a0a642951fba7c2d04e65acb3a
Add key layout file for Microsoft Corp. Xbox 360 Wireless Adapter

Change-Id: Ieed2d277e3197767c37d63cff0cedb855ee4fb74
Signed-off-by: John Grub <g@greyltc.com>
/platform/frameworks/base: Fix SystemUI crash on Recent App

Issue: SystemUI crash is observed when Context MenuItem is
       selected on the recent apps activity [Long pressing
       two recent apps at same time or Long press, lock and
       unlock the screen]

Fix: Changed the code to make sure that only one context
     menu is active at a time and also dismissed the
     context menu on pause of the RecentsActivity

CRs-Fixed: 539509

Change-Id: Ia50bed7bfad6fde7beeaec37fa6402177eee1d40
Align all rotation values according to panel orientation

Align all rotation values according to the panel orientation
specified by the user in system.prop.

Change-Id: I2a2d6f42db8bd2e3c46a3a3180954c6221ab891f
Magnification: Fix screen freeze after activity resumes from rotation

mMagnifedViewport.onRotationChangedLocked() will call setShown(),
and then cancel a anime. As the anime should be only canceled in
a looper, if it is executed in the onRotationChangedLocked() of
DisplayMagnifier, a crash will be caused. Therefore when the
magnification is enabled, the activity will crash after rotation.

Move mMagnifedViewport.onRotationChangedLocked() from main thread
into the handler. When MESSAGE_NOTIFY_ROTATION_CHANGED is received,
execute it. As handler is created with a looper, the crash will be
fixed.

CRs-Fixed: 541799

Change-Id: I2a78f24f73d5a9b8693e557d18e2fb01fcaec8fa
UsbSettings: Add UMS mode support

Android only supports MTP and PTP mode in UsbSettings screen, this change
is to add USB mass storage mode.

Change-Id: If7e49ae022c187063d30316b6a017d6089d97713
Display: Initialize mRotation to panel orientation.

    - Fixes the homescreen layout to be prepared based on the panel
      orientation.
    - Disables the rotation animation from 0 to panel orientation after
      bootup.

Change-Id: Ie77e53ade087df05e102c45bf9d12bdaf09583f7
lowmemorykiller: Overwrite LMK parameters for low-tier devices

LMK parameters calculated by default algorithm were not optimal for
low-tier devices. Values mentioned here were well tested and
evaluated w.r.t memory and performance for such setups.

Change-Id: I40ed92d204aae6e758028ea1e9bd4ec7226dbe2b
frameworks: extended tile rendering to avoid unresolves

extended tile rendering to avoid unnecessary resolves and
unresolves caused by apps.

Change-Id: Ie255a680b0fea0726fa2e5b0594be2bd924bc4ee
frameworks: support for disabling extended tile rendering

extended tile rendering to be disabled or enabled using property

Change-Id: I62ca839702569155a8ca3572e933d46ec4381866
    Show notification when charging.

    If user selects "Charging" option from
    USB computer conection, show the notification
    "Connected in charging mode", which will also
    prevent the pending intent from getting removed.
    CRs-Fixed: 641540

Change-Id: I93a04efe52e8280da95438ceb02b4054610a4d6e
SystemServer: Move sensor init to a new thread.

Move Sensor init to a separate thread so that it doesn't block the
critical booting path.

Initializing Sensors in separate thread has been seen to improve boot
time on customer devices with low-tier / ult chipsets(less cpu cores)

Change-Id: I5c46a5805c04ffe551019b4683523e3bf70274a2
Add looper to the thread to fix system_server crash

Toast message internally creates handler and we can't create
handler inside thread that has not called Looper.prepare().
Thus, we added looper to the thread to avoid system_server
carsh.

Change-Id: I09b9c4923c109f0b2707f8346e091efbd24b5089
CRs-Fixed: 669467
Add reboot reason to detect device shutdown

This change will detect silent device shutdown

Change-Id: Ia3c13e372b02dd4d3ec4a99d1c1f7c4787977ac3