Risks for HIV are:
1) having unprotected vaginal or anal sex, OR
2) sharing intravenous drug equipment with another intravenous drug user.
If you don't do either of those things, you will never be at risk for HIV. A penis rubbing a vagina is no risk, no matter what.