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