SAN FRANCISCO (Reuters) - Apple Inc and Google Inc's Motorola Mobility unit have agreed to settle all patent litigation between them over smartphones, ending one of the highest-profile lawsuits in technology.