In the whole word (unless the word is very long and there is something like second stress).
Well... This is a problem of articulation, not of some formal rules. I'd say that in fact all unstressed vowels in Russian are pronounced as schwa, unless speaker exaggerates articulation. In normal speech Russians used to hear А and И, but foreigners (as this forum shows) can hear something rather unexpected instead.