Avoid blocking untrusted touches for touch_flag_obscured

Prevent the feature from blocking the touch since we want to verify that
the proper flag is correctly assigned to the motion event.

The test still has value since for some window types (eg. SAW) we might
allow touches via go/untrusted-touches but we still want the
FLAG_WINDOW_IS_OBSCURED mechanism to work.

So, we just configure the surface as TouchOcclusionMode::ALLOW, which
makes go/untrusted-touches bypass it.

Bug: 158002302
Test: atest InputSurfacesTest#touch_flag_obscured
Change-Id: I9fb2846752b8674eec50b777c203a13cdc836144
diff --git a/libs/gui/tests/EndToEndNativeInputTest.cpp b/libs/gui/tests/EndToEndNativeInputTest.cpp
index c75c46c..3965ea0 100644
--- a/libs/gui/tests/EndToEndNativeInputTest.cpp
+++ b/libs/gui/tests/EndToEndNativeInputTest.cpp
@@ -638,6 +638,9 @@
     std::unique_ptr<InputSurface> nonTouchableSurface = makeSurface(100, 100);
     nonTouchableSurface->mInputInfo.flags = InputWindowInfo::Flag::NOT_TOUCHABLE;
     nonTouchableSurface->mInputInfo.ownerUid = 22222;
+    // Overriding occlusion mode otherwise the touch would be discarded at InputDispatcher by
+    // the default obscured/untrusted touch filter introduced in S.
+    nonTouchableSurface->mInputInfo.touchOcclusionMode = TouchOcclusionMode::ALLOW;
     nonTouchableSurface->showAt(100, 100);
 
     injectTap(190, 199);