What was your exposure?
There is no risk of hiv transmission for the incidents you describe.
HIV can be transmitted via unprotected vaginal or/and anal penetration, sharing IV works in drugs and from mother to child
The virus becomes inactive when it exposes to the environment. As far as sexual practices are concerned, unprotected anal or vaginal penetration is the risk factor.
Transmission requires penetration. No need to worry.