Both.
An UK based company hired around 6 ppl with 3.8+ GPA. didn't much cared about the practical knowledge.
But most other companies hired people with strong portfolio, coding competitions winners, people with strong github, stackoverflow profiles, gsoc participants through several rounds of...