Move touch blocking into InputDispatcher
Remove the InputHandle from ActivityRecordInputSink and instead set NO_INPUT_CHANNEL and let InputDispatcher drop the touches. When touches are blocked InputDispatcher logs something like: 03-04 11:36:46.974 16299 16431 W InputDispatcher: Not sending touch gesture to f619bcf ActivityRecordInputSink .FocusTouchActivity because it is not responsive 03-04 11:36:47.155 16299 16431 W InputDispatcher: Not sending touch gesture to f619bcf ActivityRecordInputSink .FocusTouchActivity because it is not responsive Bug: 194480991 Bug: 222292477 Test: Manually tested that blocking still works Test: atest android.server.wm.WindowUntrustedTouchTest Test: atest InputSurfacesTest Change-Id: If7d9503cb573fbd56f6f9e9eb2dee6298ac1f948
Loading
Please register or sign in to comment