Two carjackers have been arrested after allegedly threatening a woman and her child at gunpoint in Glendale, court documents say.