Map visibilty based on appId and uid

This change migrates the backing data stores of the visibility maps in
AppsFilter to rely on uids and appIds. This automatically accounts for
shared user visibility.

Bug: 136675067
Test: adb shell device_config put package_manager_service package_query_filtering_enabled true && atest AppEnumerationTests AppsFilterTest
Change-Id: Iab022977de6af0e97c9023b79ecd823aaa6b7865
4 files changed