The changes to DownsamplerSamplerEmulatorTest in https://github.com/bumptech/glide/pull/5357 broke the test, with errors loading the SDK level 34 class, android.graphics.Gainmap:
"Caused by: java.lang.ClassNotFoundException: Didn't find class "android.graphics.Gainmap" on path"
Apparently, the test runner does a class resolution of all method signatures, even if they have a @RequiresApi annoation. This will fail on emulators that have SDK levels that don't include the class. Also, even import statements seem to fail.
I basically inlined the method, which is version-guarded, and removed the explicit import.
The changes to DownsamplerSamplerEmulatorTest in https://github.com/bumptech/glide/pull/5357 broke the test, with errors loading the SDK level 34 class, android.graphics.Gainmap:
"Caused by: java.lang.ClassNotFoundException: Didn't find class "android.graphics.Gainmap" on path"
Apparently, the test runner does a class resolution of all method signatures, even if they have a @RequiresApi annoation. This will fail on emulators that have SDK levels that don't include the class. Also, even import statements seem to fail.
I basically inlined the method, which is version-guarded, and removed the explicit import.