Reduce unnecessary window container traversal

There are usually 30+ ABOVE_TASKS DisplayArea, so check the
type to skip the containers that won't contain activity or task.

Remove the condition of BELOW_TASKS because TaskDisplayArea is
almost at the bottom and usually at least there is an activity
which is above BELOW_TASKS.

Bug: 159103089
Test: CtsWindowManagerDeviceWindow
Change-Id: I71490a738810e256d6059b7453da36b391f8f856
1 file changed