Searched refs:MockDeviceManager (Results 1 – 5 of 5) sorted by relevance
32 import com.android.tradefed.device.MockDeviceManager;294 doReturn(new MockDeviceManager(1)).when(mockScheduler).getDeviceManager(); in testRun_noDevice()
36 import com.android.tradefed.device.MockDeviceManager;77 private MockDeviceManager mMockDeviceManager;111 mMockDeviceManager = new MockDeviceManager(1); in setUp()
57 import com.android.tradefed.device.MockDeviceManager;114 private MockDeviceManager mFakeDeviceManager;206 mFakeDeviceManager = new MockDeviceManager(0); in setUp()414 ((MockDeviceManager) manager).addDevice(mockDevice);415 allocated.put("device", ((MockDeviceManager) manager).allocateDevice());1566 ((MockDeviceManager) manager).addDevice(mockDevice); in testExecCommand_versioning()1567 allocated.put("device", ((MockDeviceManager) manager).allocateDevice()); in testExecCommand_versioning()
41 public class MockDeviceManager implements IDeviceManager { class55 public MockDeviceManager(int numDevices) { in MockDeviceManager() method in MockDeviceManager
48 import com.android.tradefed.device.MockDeviceManager;928 private IDeviceManager manager = new MockDeviceManager(1);1000 assertEquals(0, ((MockDeviceManager) m).getQueueOfAvailableDeviceSize());1009 assertEquals(1, ((MockDeviceManager) m).getQueueOfAvailableDeviceSize());1042 assertEquals(0, ((MockDeviceManager) m).getQueueOfAvailableDeviceSize());1048 assertEquals(1, ((MockDeviceManager) m).getQueueOfAvailableDeviceSize());