Merge "AudioService: fix capture policy restoration" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0dee554595
@@ -380,10 +380,12 @@ public final class PlaybackActivityMonitor
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return all cached capture policies.
|
* Return a copy of all cached capture policies.
|
||||||
*/
|
*/
|
||||||
public HashMap<Integer, Integer> getAllAllowedCapturePolicies() {
|
public HashMap<Integer, Integer> getAllAllowedCapturePolicies() {
|
||||||
return mAllowedCapturePolicies;
|
synchronized (mAllowedCapturePolicies) {
|
||||||
|
return (HashMap<Integer, Integer>) mAllowedCapturePolicies.clone();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateAllowedCapturePolicy(AudioPlaybackConfiguration apc, int capturePolicy) {
|
private void updateAllowedCapturePolicy(AudioPlaybackConfiguration apc, int capturePolicy) {
|
||||||
|
|||||||
Reference in New Issue
Block a user