Renders Not Using Values in 'Sampling' Section of Scene Tab (2.80, Cycles)
You have likely enabled Square Samples which results in Cycles using the squared number of samples. Therefore the number viewport render samples are: 
$$32^2=1024$$

For the final render the number of samples are:
$$128^2=16384$$