Fix SessionLifecycleTest

 - CtsAutoFillServiceTestCases
   If Mock IME cannot be installed,
   it works fine for portrait but for the platforms
   that the default orientation
   is landscape, (e.g. automotive.)
   the ID_CANCEL button may not be visible depending
   on the height of the IME.
 - LoginActivity
   Add onCancel method to access cancel button in UiThread

Bug: 241494934
Test: testAutofillNestedActivitiesWhileAutofilledAppIsLifecycled
Change-Id: Ife6f57ae27eca88df2d84b2a2cbf979af1372459
2 files changed