Exemple #1
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()
Exemple #2
0
 def test_Multi_display_rotation_default_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:4')
         adb32.refresh_ui()
         launch_settings_am()
         multi_display.is_clone_mode()
         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()
Exemple #3
0
 def test_HWComposer_suspend_resume(self):
     '''
     Not using power button to suspend DUT since adb will disconnect.
     Replace with shell stop and start command to turn off / on display.
     '''
     adb32.refresh_ui()