“Internal Apple documents from last April shown in court today paint the picture that the company was scrambling to identify and determine ways to compete with devices running Android, as well as keep sales of the iPhone from petering out amid growing competition.”