示例#1
0
 def test_Multiple_Display_UI_and_Rear_Seat_Entertainment_RSE_dispaly(self):
     try:
         multi_display.is_multi_displayed()
         get_photo_implement()
         dbsetting.set_force_resizable_activities(enabled=True)
         multi_display.run_activities_multidisplay(
             multi_display.EXTERNAL_DISPLAY_ID,
             "com.google.android.apps.photos", ".home.HomeActivity")
         multi_display.is_show_different_picture()
         dbsetting.set_force_resizable_activities(enabled=False)
     except:
         raise Exception("Activity not started on external display.")
     finally:
         g_common_obj.adb_cmd_capture_msg(
             "am force-stop com.google.android.apps.photos")
示例#2
0
 def test_Multi_display_rotation_90_display1_doesnot_rotation(self):
     try:
         multi_display.is_multi_displayed()
         file_sys.switch_hwc_display('ROTATION', 'true')
         file_sys.switch_hwc_display('PHYSICAL_DISPLAY_ROTATION', '0:1')
         adb32.refresh_ui()
         launch_settings_am()
         multi_display.is_show_different_picture()
         file_sys.init_hwc_display()
         self.do_initiation = multi_display.is_clone_mode()
         raise Exception(
             'Need BKM for checking multi display orientation status.')
     except:
         raise Exception(
             'Test failed, some problems occurred on above steps.')
     finally:
         if not self.do_initiation:
             file_sys.init_hwc_display()
示例#3
0
 def test_Two_Displays_Extended_Desktop_HDMI1_HDMI2(self):
     try:
         multi_display.is_multi_displayed()
         file_sys.switch_hwc_display('MOSAIC', 'true')
         file_sys.switch_hwc_display('MOSAIC_DISPLAY', '0+1+2')
         adb32.refresh_ui()
         launch_settings_am()
         multi_display.is_show_different_picture()
         file_sys.init_hwc_display()
         self.do_initiation = multi_display.is_clone_mode()
         raise Exception(
             'Need BKM for checking multi display orientation status.')
     except:
         raise Exception(
             'Test failed, some problems occurred on above steps.')
     finally:
         if not self.do_initiation:
             file_sys.init_hwc_display()