hiv is transmitted through...
unprotected vaginal/anal intercourse
sharing iv drug works
mother to child
hiv is not transmitted from environmental surfaces or inanimate objects.
from what you have described...there was absolutely NO RISK
Well I am not sure that your friend would approve of you doing that. Does your friend have HIV?
You had no risk for HIV.