Merge "MediaCodec: add onMetricsFlushed callback API" into main