hwc: Fix unchecked return value

Check the return value of uevent_init function
and return on error.

Change-Id: I9dfca0ed84cbe5f1abf5716c5deed7808aa046ea
hwc: use sourceCropF instead of sourceCrop from hwc_layer_t

- Always use sourceCropF instead of sourceCrop
- This was missed as part of commit 14089e

Change-Id: Ia64050a41a174f3f038c9b88d527d70c2240f2d9
libexternal: Restrict external mdp downscale to 1080p

Enable MDP downscale feature on External display upto 1080p.
If primary is 2560x1600 and hdmi is 1080p, do not perform
MDP downscale for hdmi.

Change-Id: Icf069b2d916a68c81796f4004752407e1badfd1b
gralloc: Set default value for implementation defined formats

For implementation defined formats which go via HWC, set the
default value to RGBA8888

Change-Id: I7f8c46bc47746dcf1c4a03438b8f93d7bab78bb1
Merge "libexternal: Restrict external mdp downscale to 1080p"
Merge "hwc: use sourceCropF instead of sourceCrop from hwc_layer_t"
Merge "gralloc: Set default value for implementation defined formats"
Merge "hwc: Fix unchecked return value"
hwc: handle actionsafe with downscale on ext enabled

during actionsafe calculations, if downscale on ext is enabled, we need
to consider the physical display attributes.

Change-Id: Ia07218b0b8e47b91b0bf575c66478ebaeab2e2a4
CRs-fixed: 569152
hwc: Listen fb0 event for panel status

Listen fb0 status change event for panel status. fb0 will receive
"PANEL_ALIVE=0" when panel is not responding to status call.
Call blank and unblank to reset the panel in next hwc_prepare
call.

Change-Id: I941a501a82d9f3b725660ad09631c1d8602b7325
hwc: Fix for MDP Downscaling limitation

  For HDMI/WFD downscaling scenario, if the downscale factor is
  >=2, MDP cannot do downscaling without BLT mode. Since BLT mode
  is disabled, overlay_set_failure occurs when downscale factor
  is >=2 (Ex: primary resolution 1920 x 1080, External resolution
  640 x 480). To fix this, do MDP downscaling only when downscale
  factor is < 2.

Change-Id: I6361d0290ad75abc1f39662377e590cd288a48a8

Conflicts:
	libexternal/external.cpp
Merge "hwc: handle actionsafe with downscale on ext enabled"
Merge "hwc: Listen fb0 event for panel status"
Merge "hwc: Fix for MDP Downscaling limitation"
Disable Mixed mode for External

Disable Mixed mode for external only in the case
involving alpha scaling due to limitation of VG scaling
MDP4_OP_SCALEY_PIXEL_RPT algo to upscale RGB layer

Change-Id: Ic074c712b657bf0be6ba2262b08e315e33dd76c7
Crs-Fixed: 567571
Merge "Disable Mixed mode for External"
Remove AOSP reference to utils.mk

Remove function calls from AOSP code to utils.mk
& replace them with actual definition.

Change-Id: I2ca64995e54dcc535b5f69fe448e190615b74b94
CRs-fixed: 566287
WFD video playback scenario in downscale mode.

In case of downscale usecase, correct params are
not getting set for external/virtual.
This was due to missing function call
calcExtDisplayPosition in configureLowRes
for RGB layers.

Change-Id: I47fe556d84eef15827e6e5733359654f8970e406
Crs-Fixed: 565655
Merge "Remove AOSP reference to utils.mk"
Initial memory tracker HAL

Squashed commit of the following, from AOSP display:
libmemtrack: Add libmemtrack to HAL directory listing

Change-Id: Ifbe55a339d589ad1bfab07fef684a738976877bd

commit 454565c66a5d068c0722aa3bb1fccc4c383a5808
Author: Colin Cross <ccross@android.com>
Date:   Mon Sep 30 13:09:02 2013 -0700

    fix fd leak in memtrack.msm8960

    Close smaps_fd when exiting function.

    Bug: 11007903
    Change-Id: I4a9fcd1e84aae195d229e5dd11f99ccb9f6f5006

commit 28c93c950cd82667a43dd0dd64043274eb7a1e55
Author: Colin Cross <ccross@android.com>
Date:   Mon Sep 16 15:16:08 2013 -0700

    Fix remainig exynos references

    Also fix a compile warning by replacing enum with int in the getMemory
    function.

    Change-Id: Ic4bbba425486bb7f456e928968afa5f2b04ca7ea

commit b46313b2e4d0e7fd1a475bf26ce396bcd0243921
Author: Colin Cross <ccross@android.com>
Date:   Fri Sep 6 18:03:02 2013 -0700

    Initial msm8x64 memory tracker HAL

    Reads memory info from kgsl to track unaccounted for GL and ION
    memory.  Right now it has to parse every allocation and then
    cross-reference it against /proc/pid/smaps.  It would be faster
    to modify the kgsl driver to keep counters that could just be
    read directly.

    Bug: 10294768
    Change-Id: Icb17558f03ce53bc594fbee097e51fe82e15dc31

Change-Id: I7816cf5f506ac94229646013683bdba674110ede