Avoid ov set failures in rapid wfd pause/resume

* Avoid overlay set failures on receiving rapid wfd
pause/resume events.

* Go for videoOnlyComposition when isConfiguring is
set for external/virtual display and secure video
playback is happening instead of falling back to GPU
for composition.

* When external/virtual display is in pause state
and secure playback is happening, go for
videoOnlyComposition instead of full/partial MDP
compostion since the pipes connected to external mixer
will take atleast two vsync cycles to get unset.

* When requesting for an overlay pipe from pipebook,
give preference to the pipe which has already been
allocated to the required LayerMixer in the previous
round.

* Sometimes displayhal receives consecutive wfd-pauses
or wfd-resumes. Add a sanity check to avoid handling
unnecessary wfd pause/resume

Change-Id: Ie0cc835d921f303e1c731c70ae066c375052e5f9
Merge "Avoid ov set failures in rapid wfd pause/resume"
Merge "Merge "Avoid ov set failures in rapid wfd pause/resume""
Merge "Merge "Merge "Avoid ov set failures in rapid wfd pause/resume"""
Merge commit 'AU_LINUX_ANDROID_KK_2.7.1.04.04.00.017.002' into HEAD