[sf] input snapshot fixes

- update inputflinger if the visibility changes
- use passed in uid/pid for input info
- fix touchOcclusionMode propagation to layers

Test: atest InputSurfacesTest
Bug: 238781169

Change-Id: If037270c8b54176dfcb32efef424d2289ead1704
2 files changed