Gaining a level
Happiness 0-99
+5
Happiness 100-199
+3
Happiness 200-MAX
+2
Using an item
Happiness 0-99
+5
Happiness 100-199
+3
Happiness 200-MAX
+2
Challenging a gym leader
Happiness 0-99
+3
Happiness 100-199
+2
Happiness 200-MAX
+1
Deposing in the PC
Happiness 0-99
-3
Happiness 100-199
-3
Happiness 200-MAX
-5
Fainting
Happiness 0-99
-1
Happiness 100-199
-1
Happiness 200-MAX
-1
Source
Hope This Helped :D