Android is a very thick layer/shell around the actual Linux kernel, maybe some or a lot of patches, but still Linux. How much compiled Linux code does it run? Quite a lot. macOS, AFAIK, runs NO Linux (the kernel) source code.
macOS is not based on the Linux kernel, it's based on BSD.
Android uses Linux the kernel. macOS doesn’t use Linux the kernel.