Attitude Estimatation

I have a question
Both the AP_AHRS and AP_NavEKF can supply the attitude and velocity estimation. Which one does the ardupilot use?
Anybody know about it?