As long as you fly LAX-HKG on CX you will be eligible for the bonus. But it is AA that must credit the miles on your paid fare ie D class, to your mileage account. CX does not award you the miles. AA does.
So if the miles don't post, you'd have to send in docs to AAdvantage to manually process the flights.