summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorKevin Rocard <krocard@google.com>2019-02-21 14:32:46 -0800
committerKevin Rocard <krocard@google.com>2019-02-27 03:15:50 -0800
commitf91d50b6200eb080c1b2cd63d13ae2c926e6d572 (patch)
tree3fd494313dca9242165fe13de1488b50b6f4014b /rs/java/android/renderscript/ProgramStore.java
parent2f9dd0aa805ef1163111b243cc001223681290ca (diff)
Introduce playback capture application manifest flag
Allow apps to opt-out of their playback beeing recorded with an application wide out-out. Previously an application had to opt-out on each of its audio tracks. Application targeting an SDK < Q are considered opt-out by default. Application targeting an SDK >= Q are considered opt-in by default. Test: adb shell audiorecorder --target /data/file1.raw & adb shell am start -a android.intent.action.VIEW -d file:///system/media/audio/ringtones/Lollipop.ogg -t audio/ogg adb dumpsys media.audio_policy # check playback is *not* recorded # change packages/apps/Music manifest to allowPlaybackCapture=true adb install out/target/product/walleye/system/product/app/Music/Music.apk adb shell am start -a android.intent.action.VIEW -d file:///system/media/audio/ringtones/Lollipop.ogg -t audio/ogg adb dumpsys media.audio_policy # check playback is recorded kill %1 adb pull /data/file1.raw && sox -r 48000 -e signed -b 16 -c 2 file1.raw file.wav&& audacity file.wav # check that the audio file contains first silence then the ringtone after the manifest flag was added Bug: 111453086 Change-Id: Ie617b15f481a7f148b6e9fc9d64e61acaa5ce71d Signed-off-by: Kevin Rocard <krocard@google.com>
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions