In few words, no to everything you asked.
In more words, codeshares just cause upgrades to be more difficult if not impossible. You will not be able to use AA miles to upgrade on a CX operated flight, no way, no how. You might, theoretically, be able to use Asia Miles to upgrade according to MPC published rules, but in many cases this will also be impossible due to the ticket being on AA stock.