Searched refs:device1 (Results 1 – 4 of 4) sorted by relevance
52 ITestDevice device1 = EasyMock.createMock(ITestDevice.class); in testGetDeviceName() local55 assertNull(mContext.getDeviceName(device1)); in testGetDeviceName()56 mContext.addAllocatedDevice("test1", device1); in testGetDeviceName()57 assertEquals("test1", mContext.getDeviceName(device1)); in testGetDeviceName()
179 IDeviceConfiguration device1 = in setUp() local181 device1.addSpecificConfig(mMockRecovery); in setUp()182 device1.addSpecificConfig(mMockPreparer); in setUp()183 device1.addSpecificConfig(mMockBuildProvider); in setUp()184 deviceConfigs.add(device1); in setUp()1345 ITestDevice device1 = EasyMock.createMock(ITestDevice.class); in testLogDeviceBatteryLevel_placeholderDevice() local1346 EasyMock.expect(device1.getIDevice()).andReturn(new StubDevice("serial1")); in testLogDeviceBatteryLevel_placeholderDevice()1347 context.addAllocatedDevice("device1", device1); in testLogDeviceBatteryLevel_placeholderDevice()1348 EasyMock.replay(device1); in testLogDeviceBatteryLevel_placeholderDevice()1350 EasyMock.verify(device1); in testLogDeviceBatteryLevel_placeholderDevice()[all …]
144 def check_metadata(log, device1, device2): argument155 metadata1 = device1.droid.bluetoothMediaGetCurrentMediaMetaData()
1262 IDeviceConfiguration device1 = config.getDeviceConfigByName("device1"); in testCreateConfiguration_injectDeviceBooleanOption() local1263 StubTargetPreparer deviceSetup1 = (StubTargetPreparer) device1.getTargetPreparers().get(0); in testCreateConfiguration_injectDeviceBooleanOption()1281 IDeviceConfiguration device1 = config.getDeviceConfigByName("device1"); in testCreateConfiguration_includeInDevice() local1282 assertTrue(device1.getTargetPreparers().get(0) instanceof StubTargetPreparer); in testCreateConfiguration_includeInDevice()1600 IDeviceConfiguration device1 = config.getDeviceConfigByName("device1"); in testCreateConfiguration_multiDevice_fake() local1602 assertEquals(2, device1.getTargetPreparers().size()); in testCreateConfiguration_multiDevice_fake()1603 StubTargetPreparer deviceSetup1 = (StubTargetPreparer) device1.getTargetPreparers().get(0); in testCreateConfiguration_multiDevice_fake()1610 StubTargetPreparer deviceSetup2 = (StubTargetPreparer) device1.getTargetPreparers().get(1); in testCreateConfiguration_multiDevice_fake()