libhardware: Add allocSize hook function.

Add allocSize hook function to support the custom buffer sizes

Change-Id: If2c69a43f4415fa1d2269db2e62b2f6606d0477d