libhwc2.1: add error handling for display hints

Add error handling in case the failure occurs while sending
the hints or checking the support. Also re-connect to PowerHAL
service if it belongs to binder transaction failure.

Bug: 189389118
Test: 1. Kill the PowerHAL service and it can re-connect
         successfully
      2. Force the binder failure and it can retry without
         blocking hwc thread
      3. Force the non-binder failure and it can retry again
         in next loop
Change-Id: I1cc29cdb37c95ffedde8aee71e684e856b1fae4e
3 files changed