Apple is taking on chipmaker Qualcomm in US and Chinese courts