fix fd leak in memtrack.msm8960

Close smaps_fd when exiting function.

Bug: 11007903
Change-Id: I4a9fcd1e84aae195d229e5dd11f99ccb9f6f5006
libhwcomposer: Log and dump app layers of screen frames

Log a frame-by-frame succession of HWComposer layers' data and write
their buffers, if any, into raw or png files based on system property
values.

Change-Id: Icceccf5fff5ab4d78dbc6c28c11210b8837ddfd9

Conflicts:
	libhwcomposer/Android.mk
	libhwcomposer/hwc.cpp
	libhwcomposer/hwc_utils.cpp
	libhwcomposer/hwc_utils.h
Merge "Merge "hwc: Crop source rect for the optimized destination""
Merge "Merge "Merge "hwc: Crop source rect for the optimized destination"""
hwc: Enable rotator during resolution change.

- MDP VG pipe framesize register is not double bufferred.
  It introduces corrupted frame during resolution change especially when
  rotator is not used. Enable rotator to handle the transition case.

Change-Id: I48147ed812bec17fea2990260f600aa84d9f1144
Merge "hwc: Enable rotator during resolution change."
Merge "Merge "hwc: Enable rotator during resolution change.""
Merge "libhwcomposer: Log and dump app layers of screen frames"
Merge "Merge "Merge "hwc: Enable rotator during resolution change."""
Merge "Merge "libhwcomposer: Log and dump app layers of screen frames""
Merge "Merge "Merge "libhwcomposer: Log and dump app layers of screen frames"""
Merge "Merge "libhwcomposer: Log and dump app layers of screen frames""
Merge "Merge "Merge "libhwcomposer: Log and dump app layers of screen frames"""
Merge "Merge "libhwcomposer: Log and dump app layers of screen frames""
Merge "Merge "Merge "libhwcomposer: Log and dump app layers of screen frames"""
Merge "Merge "libhwcomposer: Log and dump app layers of screen frames""
Merge "fix fd leak in memtrack.msm8960"
Merge "Merge "Merge "libhwcomposer: Log and dump app layers of screen frames"""
Merge "Merge "fix fd leak in memtrack.msm8960""
Merge "Merge "Merge "fix fd leak in memtrack.msm8960"""