summaryrefslogtreecommitdiff
path: root/tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java
diff options
context:
space:
mode:
authorjiabin <jiabin@google.com>2019-12-23 13:09:58 -0800
committerNadav Bar <nadavbar@google.com>2020-03-03 07:38:38 +0000
commit55e8fd2352e16f63f5ef5ab9d243712599e09091 (patch)
tree3eef302ae09e556db13f38828e578ea1200c8fc2 /tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java
parentd9d21afdd499033e7bebfa84f204d0254a039095 (diff)
Set/get allowed capture policy via AudioService.
Do not call AudioSystem.setAllowedCapturePolicy directly in AudioManager. Instead, send the request to AudioService and calling the function in AudioService. In that case, AudioService can cached the request so that it benefits returning correct playback configuration. When querying capture policy, AudioManager will query AudioService first to see if there is cached capture policy. If there is exception, return cached capture policy in AudioManager. Test: dumpsys audio, query active audio playback configuration Test: atest AudioManagerTest, AudioAttributesTest Test: atest AudioPlaybackCaptureTest, AudioPlaybackConfigurationTest Bug: 145115448 Change-Id: I170571d8a67839bc5a53991d6c89127b99b5c794 Merged-In: I170571d8a67839bc5a53991d6c89127b99b5c794 (cherry picked from commit b33f36971dd80e600be6a7ffc0c0df65849da016)
Diffstat (limited to 'tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java')
0 files changed, 0 insertions, 0 deletions