Prepare vts to use libvintf.

* Move method getHals() and getInstances() to HalGroup.h.
* Add method getHal() in HalGroup.h which identify a hal that
  matches the given name and version.
* Add method containsVersion() in MatrixHal.h and ManifestHal.h
  which checkes whether the hal supports the given version.
* Add methods getInstances() and hasInstance() in MatrixHal.h and
  ManifestHal.h

Bug: 68023937
Test: make libvintf
      run libvintf_test

Change-Id: If6afa789f84af95f9752aee17b6fd9d97236f85c
8 files changed