mediapc: Add precondition checks for few tests

Tests in PerformanceClassTest and VideoCodecRequirementsTest were
being run even when the device didn't meet minimum precondtions
for it to be a performance class candidate (eg: media performance
class tests are only applicable to handheld devices)

Also added an assertTrue() to ensure performance points are listed
for all h/w codecs.

Bug: 232726341
Test: atest CtsMediaPerformanceClassTestCases:PerformanceClassTest \
CtsMediaPerformanceClassTestCases:VideoCodecRequirementsTest

Change-Id: Idc28f06acda484cbcf004d5c1a3e04634c2f97a3
(cherry picked from commit 5e1801acf3dc9db881bff29ed5df178851629765)
Merged-In: Idc28f06acda484cbcf004d5c1a3e04634c2f97a3
2 files changed