i know in the google map application for android, it does. However i am not sure if it does for driving direction using https://developers.google.com/maps/documentation/directions/
No, the google directions API won't factor traffic into its calculations. As far as I know, the traffic information comes from somewhere else and the google maps application gets both direction information and traffic information and handles factoring them together.