Add public forEachHidlInstanceOfInterface/Version

- Add private forEachInstanceOfVersion/Interface that takes
  an additional HalFormat arg
- Add public forEachHidlInstanceOfVersion/Interface that
  only loops over HIDL instances
- Hide existing forEachInstanceOfVersion/Interface because
  they do not specify HalFormat. These two functions are deprecated
  and will be removed in follow up CL.

Test: libvintf_test
Test: vintf_object_test
Bug: 140832836

Change-Id: Ie4b361f1207f721747cec864511c22ab0be6fe50
4 files changed