summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorSvet Ganov <svetoslavganov@google.com>2018-01-16 14:05:18 -0800
committerSvet Ganov <svetoslavganov@google.com>2018-01-18 00:21:33 -0800
commitc1006a335f67788b6874373035cb9215dba781f2 (patch)
tree88252c8d16ae5a70ff11ad490a8cdefafc2badc7 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent8bd1395881446e807924d6f320966d7c26d3d527 (diff)
Don't record audio if UID is idle - framework
To protect user's privacy if a UID is in an idle state we allow recording but report silence (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: I8b0a0889c4aee07f4e1d3c7e4cee0821f2f8cd91
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions