Use RenderEffect instead of RenderScript on API 31+
It should display the same but will remove a deprecation warning and will also improve the performances.
The only non applicable call is in the TV BackgroundManager
because it doesn't expose its view.