I walk from AA, and I take AirTrain from AS. The overall distance is probably very similar, but AS is a very short walk to AirTrain, whereas with AA, by the time you get to AirTrain it's maybe 5 minutes more to walk to BART.
Total time for either should be under 15 minutes unless you get unlucky catching AirTrain from T2.