The results helped allay concerns about a slowdown in demand for smartphones.