Searched refs:device2 (Results 1 – 7 of 7) sorted by relevance
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | TestFailureListenerTest.java | 159 ITestDevice device2 = EasyMock.createMock(ITestDevice.class); in testFailed_multiDevice() local 160 mListDevice.add(device2); in testFailed_multiDevice() 167 EasyMock.expect(device2.getSerialNumber()).andStubReturn("SERIAL2"); in testFailed_multiDevice() 168 EasyMock.expect(device2.getProperty(EasyMock.eq("ro.build.type"))).andReturn("debug"); in testFailed_multiDevice() 169 device2.reboot(); in testFailed_multiDevice() 171 EasyMock.replay(mMockListener, mMockDevice, device2); in testFailed_multiDevice() 175 EasyMock.verify(mMockListener, mMockDevice, device2); in testFailed_multiDevice()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | DeviceMetricDataTest.java | 107 ITestDevice device2 = mock(ITestDevice.class); in testMultiDeviceAdd_forDevice() local 108 mContext.addAllocatedDevice("device2", device2); in testMultiDeviceAdd_forDevice() 110 device2, in testMultiDeviceAdd_forDevice()
|
/tools/test/connectivity/acts/framework/acts/test_utils/car/ |
D | car_media_utils.py | 144 def check_metadata(log, device1, device2): argument 159 metadata2 = device2.droid.bluetoothMediaGetCurrentMediaMetaData()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
D | InvocationContextTest.java | 53 ITestDevice device2 = EasyMock.createMock(ITestDevice.class); in testGetDeviceName() local 58 assertNull(mContext.getDeviceName(device2)); in testGetDeviceName()
|
D | TestInvocationTest.java | 1395 ITestDevice device2 = EasyMock.createMock(ITestDevice.class); in testLogDeviceBatteryLevel_physicalDevice_multi() local 1396 EasyMock.expect(device2.getIDevice()).andReturn(idevice); in testLogDeviceBatteryLevel_physicalDevice_multi() 1397 EasyMock.expect(device2.getSerialNumber()).andReturn("serial2"); in testLogDeviceBatteryLevel_physicalDevice_multi() 1400 context.addAllocatedDevice("device2", device2); in testLogDeviceBatteryLevel_physicalDevice_multi() 1402 EasyMock.replay(device1, device2); in testLogDeviceBatteryLevel_physicalDevice_multi() 1404 EasyMock.verify(device1, device2); in testLogDeviceBatteryLevel_physicalDevice_multi() 1433 ITestDevice device2 = EasyMock.createMock(ITestDevice.class); in testLogDeviceBatteryLevel_physicalDevice_stub_multi() local 1434 EasyMock.expect(device2.getIDevice()).andReturn(idevice); in testLogDeviceBatteryLevel_physicalDevice_stub_multi() 1435 EasyMock.expect(device2.getSerialNumber()).andReturn("serial2"); in testLogDeviceBatteryLevel_physicalDevice_stub_multi() 1442 context.addAllocatedDevice("device2", device2); in testLogDeviceBatteryLevel_physicalDevice_stub_multi() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | DeviceManagerTest.java | 970 ITestDevice device2 = manager.allocateDevice(); in testFreeDevice_unavailable() local 971 assertNull(device2); in testFreeDevice_unavailable() 1034 ITestDevice device2 = manager.allocateDevice(); in testFreeDevice_unknown() local 1035 assertNull(device2); in testFreeDevice_unknown() 1098 ITestDevice device2 = manager.allocateDevice(); in testFreeDevice_unknown_subName() local 1099 assertNull(device2); in testFreeDevice_unknown_subName()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationFactoryTest.java | 1269 IDeviceConfiguration device2 = config.getDeviceConfigByName("device2"); in testCreateConfiguration_injectDeviceBooleanOption() local 1270 StubTargetPreparer deviceSetup2 = (StubTargetPreparer) device2.getTargetPreparers().get(0); in testCreateConfiguration_injectDeviceBooleanOption() 1284 IDeviceConfiguration device2 = config.getDeviceConfigByName("device2"); in testCreateConfiguration_includeInDevice() local 1285 assertTrue(device2.getBuildProvider() instanceof LocalDeviceBuildProvider); in testCreateConfiguration_includeInDevice() 1286 LocalDeviceBuildProvider provider = (LocalDeviceBuildProvider) device2.getBuildProvider(); in testCreateConfiguration_includeInDevice()
|