Duterte attacks US, praises China in Indonesia