Skip to content
Commit 597f0b5e authored by Eric Laurent's avatar Eric Laurent
Browse files

Add explicit private audio recording request

Add the possibility for apps to indicate that their
capture use case is private and that a privileged Assistant
should not be able to capture concurrently.
This allows to override the default behavior tied to the audio
source (e.g VOICE_COMMUNICATION is private by default but
UNPROCESSED is not).

- Add setPrivacySensitive() API to AudioRecord.Builder and
isPrivacySensitive() to AudioRecord
- Add setPrivacySensitive() and isPrivacySensitive() APIs to MediaRecorder.

Bug: 137850106
Test: CTS AudioRecordTest and MediaRecorderTest, manual audio smoke tests

Change-Id: I982b17cf08a9e5e0cf0501117bcaa6930b291f94
parent 34fc421d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment