Workaround for coverage of java.util.OptionalDouble APIs

Avoid d8's backporting of Java methods that occurs in some
branches where tests are built at API level < T, specifically:

* OptionalDouble.ifPresentForElse(DoubleConsumer, Runnable)
* OptionalDouble.isEmpty()
* OptionalDouble.orElseThrow()
* OptionalDouble.stream()

Bug: 191859202
Bug: 203822442
Bug: 203822444
Test: atest CtsLibcoreOjTestCases:test.java.util.Optional.OptionalDouble
Test: check backports no longer present in CtsLibcoreOjTestCases.apk
Change-Id: Ia72eb0557112e4bb1aecbc8ca12fc583df3a4d33
1 file changed