Fix tests that request screen orientation change

1) Fix ORIENTATION_PORTRAIT usage in test to
SCREEN_ORIENTATION_PORTRAIT
2) Wait for idle after changing the orientation

Bug: 216774921
Test: atest
com.android.providers.media.photopicker.espresso.PreviewSingleSelectTest
--iterations 10
Test: atest
com.android.providers.media.photopicker.espresso.PreviewMultiSelectLongPressTest
--iterations 10

Change-Id: I6867201afb77cd9a8281a58f6157a09c7fc9917c
3 files changed