LOS ANGELES — A high-ranking AEG executive testified Tuesday that he had known for years that Michael Jackson was taking painkillers but wasn’t aware he was abusing them until the pop singer abruptly canceled his Dangerous world tour in the early 1990s to enter rehab.