libhardware: Disable rotation animation on External

- Added two new flags to used to inform HWC about
  rotation and roation animation to HWC
- This is used to disable rotation animation on external

Change-Id: I05a9796781dcda088ae6cd64481cd4e581d5cf9e
CRs-fixed: 453747
(cherry picked from commit 055f43ad31b6aafa2f155a5a273c98324631dd2a)
(cherry picked from commit 2b76f1414dc3ac42a2eb5d45a363e11b27df07e4)
(cherry picked from commit 21082cd480b0f24f94d59e128b77323eb690b257)
Revert "Revert "Initial bringup hardware-libhardware""

This reverts commit 7630f2b45bb6bec92a0c993573bc4b7fe7645323

Change-Id: I34f331b50af38a4f610dda14571037886308cbe8
(cherry picked from commit fcf03ebdec3b3d8a98ecd7c3a38d6fad3d14572f)
(cherry picked from commit d20f452a8b86e731f0c43ac4d7d9c0c82070d89b)
(cherry picked from commit ec8486bed4edbe0ae122f30a0f87d0ec5d60b4fa)
libhardware: Add ifdef around allocSize

 * Non-QC devices with prebuilt grallocs hate this.

Change-Id: I57ce7547e99ec0cf40c4f05f3742348dec4e2d9d