Improve test compatibility with automotive

Improved the compatibility of the
testAppInfo_RemovePermissionsAndFreeUpSpaceToggleExists test case by
attempting to retrieve the correct package name and searching through
multiple scrollable containers when applicable.

Bug: 191700947
Test: atest
android.os.cts.AppHibernationIntegrationTest#testAppInfo_RemovePermissionsAndFreeUpSpaceToggleExists
(on sdk_gphone_x86 and gcar_emu_x86)

Change-Id: I2544835f74ecedd8e09020591f2f3898281db55e
1 file changed