[automerger] Optimise the hit test algorithm am: 3b6f84b7 am: 5b224ccf skipped: eb86ac42 am: a60d0b2e Change-Id: I23ca86e3bf3df6684d88f1be575f2be1599ac9eb