Code-switching: the use of more than one language or dialect to communicate in the same conversation.
Mr. Ma receives visiting customers and explains his company to them in Mandarin, and immediately holds up the Shaanxi dialect to talk to the two Shaanxi customers when they are present does not belong to code-switching.