OSA Works for yafray?

Hi , i want to know if the OSA button works for yafray or its only for the internal engine?

No, it works for Yafray as well, although it offers you to do it manually when you disable Auto AA (found in the yafray Tab). Otherwise it uses Blender’s OSA settings.