My understanding is they just swiped the APIs and the battle is whether that was protectable or not. There might also be some debate over whether Sun acted to defend it or licensed it too permissibly. I havent paid close attention. I loathe Android and so many things Google but we cannot pretend Oracle necessarily is in the right here. I dont get too much in the details due to apathy. Who can forget the SCO vs Linux mess which really was about source code claims?
Yeah the fair use analysis is really contingent on what the code does.