[android]: Make Robolectric tests work with SDK 33 (#42965)

Make Robolectric tests work with SDK 33. The Robolectric doesn't support create presentation window now, so this CL also adds a custom presentation shadow to hook showing state to make related tests work.

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
https://dart.googlesource.com/external/github.com/flutter/engine/+/7ff6a65b7183b6a45dd53da6f68fc6840d2fa4bf
1 file changed
tree: 63ae6dc4d7a93939129694151301d0816ed1471f
  1. commits.json