def testUiViewServerDump_windowIntM1(self):
     try:
         device = MockDevice(version=15, startviewserver=True)
         vc = ViewClient(device, device.serialno, adb=TRUE, autodump=False)
         vc.dump(window=-1)
         vc.findViewByIdOrRaise('id/home')
     finally:
         device.shutdownMockViewServer()
 def testFindViewsContainingPoint_filterApi15(self):
     try:
         device = MockDevice(version=15, startviewserver=True)
         vc = ViewClient(device, device.serialno, adb=TRUE)
         list = vc.findViewsContainingPoint((200, 200), filter=View.isClickable)
         self.assertNotEquals(None, list)
         self.assertNotEquals(0, len(list))
     finally:
         device.shutdownMockViewServer()
 def testUiViewServerDump_windowIntStr(self):
     device = None
     try:
         device = MockDevice(version=15, startviewserver=True)
         vc = ViewClient(device, device.serialno, adb=TRUE, autodump=False)
         vc.dump(window='0xb52f7c88')
         vc.findViewByIdOrRaise('id/status_bar')
     finally:
         if device:
             device.shutdownMockViewServer()
 def testUiViewServerDump_windowIntStr(self):
     device = None
     try:
         device = MockDevice(version=15, startviewserver=True)
         vc = ViewClient(device, device.serialno, adb=TRUE, autodump=False)
         vc.dump(window='0xb52f7c88')
         vc.findViewByIdOrRaise('id/status_bar')
     finally:
         if device:
             device.shutdownMockViewServer()