How consumer-electronics makers are faring