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
libmemtrack: Add correct target information

- Add correct target information to make file
- Remove incorrect target names in the src files
- replace sprintf(banned api) with snprintf

Change-Id: I846ff3d5dcc5acc843c2c83506deafadd30b4942
Merge "Initial msm8x64 memory tracker HAL"
Merge "libmemtrack: Add correct target information"
libgralloc: correct assigment of HAL_PIXEL_FORMAT_RGBA_8888

- assign correct gralloc format when format is
  HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED and usage is
  GRALLOC_USAGE_HW_COMPOSER.

Change-Id: I741504d54694ac061ecd6c870cb8f815cc61ab24
CRs-Fixed: 583142
Merge "libgralloc: correct assigment of HAL_PIXEL_FORMAT_RGBA_8888"
hwc: Do not use fb handle in hwc_prepare

Do not use fb handle in prepare. Use displayFrame for dimensions,
align them and hardcode format

Change-Id: I5c494a74a807d3a52a1c88257494b58c583700f5

Conflicts:
	libhwcomposer/hwc.cpp
	libhwcomposer/hwc_fbupdate.cpp
	libhwcomposer/hwc_fbupdate.h
Merge "hwc: Do not use fb handle in hwc_prepare"
Merge commit 'AU_LINUX_ANDROID_KK_2.7_RB1.04.04.01.007.021' into cm-11.0

Conflicts:
	Android.mk
	libmemtrack/kgsl.c
	libmemtrack/memtrack_msm.c
	libmemtrack/memtrack_msm.h

Change-Id: I92d54f0b30f561b3f6fa617125b973912419e1e5