Knee Grabbing

What does it mean when you and guy are laughing and stuff and he randomly grabs your knee and squeezes it?