Resample sensor events for non-direct connections.

The resampler is to guarantee that apps cannot obtain more than 200 Hz
when their sampling rates are being throttled.

Test: atest CtsSensorTestCases CtsSensorRatePermissionTestCases
Bug: 136069189
Change-Id: I2e7d522f71382a517c7e6708136ac55917486fa5
2 files changed