| commit | cf84e596c53d5f85b64665a66ed2ec212ecff618 | [log] [tgz] |
|---|---|---|
| author | Mikhail Naganov <mnaganov@google.com> | Thu Dec 07 11:25:11 2017 -0800 |
| committer | Mikhail Naganov <mnaganov@google.com> | Thu Dec 07 16:43:38 2017 -0800 |
| tree | 37382644a3e514337cdbb1882ee6a272680758fd | |
| parent | 7e22e94d0654d7ab4c31aee7f7120542e358a5ab [diff] |
audiopolicy: Refactor and fix loops in AudioPolicyManager
-- Use range for loops where possible.
-- Replace some loops over DeviceVector with a call to already
existing search function.
-- Fix unsigned integer overflow in a loop that decrements
the loop counter.
Change-Id: I2ab544b8176310c15c16c04b72c2800d8526e5a5
Test: compiles