In which situation does the demand and supply curve both shift?
No, this case is not true. 

A factor which both shifts supply and demand curves at the same time is an increase or decrease in population.

This both adds consumers (increase in demand) to the economy and increases the workforce (increase in labor force, thus producing more and increasing quantity supplied).