Ensure secure codec resolutions are retrieved

While testing mixed (secure and unsecure) codec reclaim,
if the resolutions are not set by the test case, then the Activity reads
the resolution only once for the unsecure codec and uses the same for the
secure codec, which may not be a supported resolution by the secure
codec.
This change makes sure that, the resolutions are retrieved for the
corresponding codec both (unsecure and secure) the cases.

Bug: 305061233
Test: atest cts/tests/media/misc/src/android/media/misc/cts/ResourceManagerTest.java
(cherry picked from https://android-review.googlesource.com/q/commit:79db5ee80a11ef2003432a804e249148a04e2f55)
Merged-In: I0147d4b5331c0644767d8e9c3737bb691147c3b5
Change-Id: I0147d4b5331c0644767d8e9c3737bb691147c3b5
1 file changed