[DO NOT MERGE] Replace UiSelector usages with BySelector

BySelector will look for UI elements in any window/hierarchy, whereas
UiSelector is limited to the layout hierarchy. The latter can be
problematic in Privacy Indicator tests if the chip or privacy panel
are implemented as views attached to the WindowManager's parent window
because the test needs to look for elements in both that window and
the test app's view hierarchy at the same time.

Bug: 235020326
Test: atest CameraMicIndicatorPermissionTest
Change-Id: Ic0d52f8a34ad1bbb0a4c3606553e139a21c7c020
1 file changed