summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorSvet Ganov <svetoslavganov@google.com>2017-11-22 18:49:32 -0800
committerSvet Ganov <svetoslavganov@google.com>2017-11-22 20:59:14 -0800
commit14ab967eddc1cb2790765564152c250ecf05bcb6 (patch)
tree33f3258e5ba266a04c835ae82c7fdf113f1ee9ef /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parenta98bd9989e88896c2caf945bf52c9164587bffc3 (diff)
Don't record audio if UID is idle - core framework
If a UID is in an idle state we don't allow recording to protect user's privacy. If the UID is in an idle state we allow recording but report empty data (all zeros in the byte array) and once the process goes in an active state we report the real mic data. This avoids the race between the app being notified aboout its lifecycle and the audio system being notified about the state of a UID. Test: Added - AudioRecordTest#testRecordNoDataForIdleUids Passing - cts-tradefed run cts-dev -m CtsMediaTestCases -t android.media.cts.AudioRecordTest bug:63938985 Change-Id: I15264c5c4b47813ca60280bce30b22b8b1f87eab
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions