hwc: Support IMapper/IAllocator 3.0 in hwc_buffer_allocator

This change checks for IMapper and IAllocator v3.0 and falls back
if they are unavailable.

Test: android.media.cts.HeifWriterTest
Bug: 145272994
CRs-Fixed: 2451975
Change-Id: I3122c262af99c9b5506f147a47ddbec580c99913
(cherry picked from commit 22d87536375678a91cc371b2edaf71540d7cde4e)
3 files changed