Add MATCH_ANY_USER flag when get valid package uid

Now getPackageUid would check if the package is installed on the
given userId. Since we treat calls from a profile as if made by
its parent, using MATCH_ANY_USER to query the uid of the given
package name.

Bug: 186180067
Test: atest -p core/java/android/view/accessibility
Test: atest -p services/accessibility
Change-Id: I0c452d880f30b6bc0167757dc04fb8d2c69a6d15
2 files changed