Apple R&D spends almost $3 billion on self-driving and augmented reality