I've definitely seen it used both ways, comparing Japan to other countries as well as India/Africa.
I wouldn't necessarily call it a "racist dog whistle" myself, though - there is a very real pattern that's being pointed out but the reason I made the GP comment is that from my experience I would assume that Chinese culture is about as trustworthy as the West.