Apple and Samsung will meet in federal court today in San Jose, California for the final trial in their seven-year legal battle over the design and function of the iPhone. As much as $500 million is at stake, in a case that also could help rewrite a century of US patent law.