Are Android Studio and VirtualBox safe?

I want to use a virtual machine on my computer. I want to try GrapheneOS and QubesOS using a virtual machine. I’m thinking of using Android Studio (because I can use Pixel smartphone) and VirtualBox (because I can use PC OS). The question here is are these two tools safe? Both are open source, but are they completely open source? In addition, Google and Oracle are operating profit companies. If these aren’t safe, please tell me an alternative! !

Those are products that are used by millions of people, so it really depends on your definition of “safe” i guess. They are indeed managed by for-profit companies, but they are also not their flagship product. I’d say if your only purpose for using them is testing out software, you should be fine.