Originally Posted by
FlyerChrisK
Independent of whether YYZ-HKG is codeshared at all, what matters (for mileage credit) is which flight number you have booked. If your flight number is AA on your ticket, AA's earning rules prevail. If it's CX, CX's prevail.
...
I think OP is hoping that it will be an AA flight number, hence the question.
And hence the answer is that on the Canada-HKG and v.v. flights are not AA codeshared flights unless the flight originates from USA.