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()
def test_GPU_CompositionFallback_MoreLayers(self): """ test_GPU_CompositionFallback_MoreLayers """ print "[RunTest]: %s" % self.__str__() common.launch_settings_am() output = self.compositionImpl.dumpsys_surface_flinger() assert output == '', "dumpsys_surface failed" time.sleep(1) # self.compositionImpl.enable_disable_other_input_methods("on") # time.sleep(1) # self.d.press.home() # time.sleep(1) # self.compositionImpl.touch_goolge_search_bar() self.compositionImpl.open_reset_window() output = self.compositionImpl.dumpsys_surface_flinger() assert output.find( "DimLayer"), "dumpsys SurfaceFlinger | grep 'GLES |' failed"
def test_Multi_display_display0_doesnot_rotation_display1_rotation_180( self): try: multi_display.is_multi_displayed() file_sys.switch_hwc_display('ROTATION', 'true') file_sys.switch_hwc_display('PHYSICAL_DISPLAY_ROTATION', '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()
def tearDown(self): print "[tearDown]:%s" % self.__class__.__name__ self.d.press.home() common.launch_settings_am() # self.compositionImpl.enable_disable_other_input_methods("off") super(GPUCompositionFallbackMoreLayers, self).tearDown()