Merge "Check if sensor is accessible on flush" into rvc-dev am: 9aacd0cffd am: f708228c02

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/12091816

Change-Id: Ifcda63d616778e03ac67ffb5daa46c064b1563ad