hwc2: Parameter validation and bounds checks

  - Introduce use of GetDozeSupport

Change-Id: Ic7edcd14b0c390fbd58f6be05b983a40b75c90eb
CRs-Fixed: 2114346
5 files changed