It's not about un-open sourcing anything. Apache, Oracle _wanted_ Sun to open source the Java testing kit etc. but Sun never did and placed restrictions on usage on mobiles.
So Google is claiming that Oracle is acting hypocritically depending on which side of the aisle it is, but that does not carry any legal weight.
The registrations you talk about in the beginning are to do with copyright claims and have nothing to do with the patent claims.