summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Anh Pham <anhph@google.com> 2021-02-10 14:10:53 +0100
committer Anh Pham <anhph@google.com> 2021-02-15 10:46:15 +0100
commitaf91a91c5cce1263895ee804e961975ad7aab3a2 (patch)
tree4bd2fccba8511ec8fb7a9ea8c0abbca0d03455a2 /vulkan/libvulkan/api.cpp
parent5b2a141aa6849f841196d4a7d89253a0d4849f07 (diff)
Throttle sensor sampling rates at 200Hz.
Only sensors of the following types are throttled: accelerometer, gyroscope and magnetometer. Both direct and non-direct connections are throttled, as follows: - If the microphone toggle is on: all apps are throttled at 200Hz, regardless of their targetSDK. - If the microphone toggle is off: + If apps target SDK <= R, no throttling. + If apps target SDK >= S and has the HIGH_SAMPLING_RATE_SENSORS permission, no throttling. + If apps target SDK >= S and does not have the HIGH_SAMPLING_RATE_SENSORS permission: + Sampling rates are throttled at 200 Hz. + If run in debug mode, a SecurityException is thrown. Test: atest CtsSensorTestCases CtsSensorRatePermissionTestCases Bug: 136069189 Change-Id: Idd3ba874eee34859b3f090af59def0a939688c07
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions