Yes, but if the final built product does not contain those elements then at least the final product can continue to ship because it is not infringing.
The tests can then be removed and any damage claims will likely be settled and/or workarounds will be created.
If the code is in the core of android and ends up in the product as shipped by the various handset manufacturers then it's a completely different story.