Tesla makes their Chinese EVs in China and sources most of its supplies there. Almost all other foreign car companies in China are 51-49 join ventures (with 51 being the Chinese partner's controlling share) so they are also eligible for those subsidies.