China had given notice that its warships could potentially fire live weapons during an exercise in the Tasman Sea, Australian Prime Minister Anthony Albanese said.