I think youre confusing two things: Java code and Dalvik.
Dalvik is a complete byte-code interpreter, which as I understand it has nothing in common with any code from Sunacle; its not even compatible with the Sunacle Java VM. It was introduced for reasons to do with performance and power consumption, not because of an licensing issues with Sunacle Java. Google could choose to use Sunacle Java in future, but Dalvik will still be there, and the Sunacle Java VM will not.