Extract some common functionality and add a new test for the newly-added method in HAL v1.1. Bug: 135951924 Test: atest VtsHalContexthubV1_0TargetTest \ VtsHalContexthubV1_1TargetTest Change-Id: I1cd335d4972bc3242245b2379a7cfa42d1c683a6