Hugo Barra resigns as the Global VP of Xiaomi