SAN FRANCISCO (Reuters) - Apple Inc and Samsung Electronics have agreed to attend a mediation session to be held on or before February 19, as they prepare to clash in court in March over smartphone patents.