code: def longTouch(self, duration=2000):
          '''
          Long touches this C{View}
  
          @param duration: duration in ms
          '''
  
          (x, y) = self.getCenter()
          if self.uiAutomatorHelper:
              self.uiAutomatorHelper.swipe(startX=x, startY=y, endX=x, endY=y, steps=200)
          else:
              # FIXME: get orientation
              self.device.longTouch(x, y, duration, orientation=-1f longTouch(self, duration=2000):
          '''
          Long touches this C{View}
  
          @param duration: duration in ms
          '''
  
          (x, y) = self.getCenter()
          if self.uiAutomatorHelper:
              self.uiAutomatorHelper.swipe(startX=x, startY=y, endX=x, endY=y, steps=200)
          else:
              # FIXME: get orientation
              self.device.longTouch(x, y, duration, orientation=-1)
docs: Long touches this C{View}
  
          @param duration: duration in ms