Just like Microsoft there are parts of the company who are hostile to open source, and there parts of the company whose success is attributable to open source.
Apple cooperates within WebKit well with WebKitGtk. They supported LLVM when it is in their interest.
Chrome is used as proprietary web-engine to vendor lock-in the web. While often used by others, I’m not aware of a broad cooperation. Android is a shadow of Linux, merely using the Linux-Kernel, not GNU. Plus a lot of closed-source code (PlayServices, App Signatures, Google Cloud, Google Apps).
Googles open-source projects seem often exclusive Google only projects? Google works together with others! But especially Chrome and AOSP are…causing worries.
There's a reason most of these projects picked AOSP over iOS, or even Chromium over WebKit. Google just engages with the community better than Apple. It's silly to pretend like they're on the same level.