Pull AttrSourceIter into lib

Allows for re-use. Add const iterator as well.

Bug: 355498020
Flag: EXEMPT mechanical refactoring
Test: atest libaudiopermission_tests
Change-Id: If28e8d2742bcb05a63e2e6fc78051a6beea1f9d9
5 files changed