Sounds like you have the info to check and fix. Just wanted to add a little history.
Throttle position sensors used to commonly fail at a certain point, usually at less than a 1/4 throttle. What would happen is that the car would normally be driven at normal speeds and your foot would wiggle just a bit over the bumps. Since the sensor was similar to a fuel sending unit, the spot where all this took place would get rubbed down. They were fairly easy to check, you would just open the throttle slowly while watching the return voltage. It would raise normally, then drop out, then raise again. It would act like an ignition dropout or a fuel starve at that point. Fine above and below.
The AIS causes the idle speed waver. The early ones were pretty slow and tended high to avoid stalling. Newer ones are much better, but if you have a vacum leak or other issues causing the idle speed to be outside normal range, it has to work harder and learn to keep the idle normal. The factory tends to keep the throttle plates open during shifts, to match engine speed and to keep from closing and opening the throttle and dumping that enrichment fuel (emissions and MPG).