AT&T narrows loss, bumps up revenue on smartphone sales