I think you grossly overestimate how much latency another variable to the decision logic would add. Keep in mind that this is computed onboard, not by bluetooth to the phone or anything. So it can be done by a dedicated chip checking 100 times a second if accelerator value ~= 0G and a proximity sensor detects nothing.