Merge changes from topic "codec_availability_hal_api" into main

* changes:
  MediaCodec: define available and required resources test api
  media: add available/required resources test api