Searched refs:device2 (Results 1 – 8 of 8) sorted by relevance
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | TestFailureListenerTest.java | 97 ITestDevice device2 = EasyMock.createMock(ITestDevice.class); in testFailed_multiDevice() local 98 mListDevice.add(device2); in testFailed_multiDevice() 105 EasyMock.expect(device2.getSerialNumber()).andStubReturn("SERIAL2"); in testFailed_multiDevice() 106 EasyMock.expect(device2.getProperty(EasyMock.eq("ro.build.type"))).andReturn("debug"); in testFailed_multiDevice() 107 device2.reboot(); in testFailed_multiDevice() 109 EasyMock.replay(mMockListener, mMockDevice, device2); in testFailed_multiDevice() 113 EasyMock.verify(mMockListener, mMockDevice, device2); in testFailed_multiDevice()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
D | TestInvocationTest.java | 1458 ITestDevice device2 = EasyMock.createMock(ITestDevice.class); in testLogDeviceBatteryLevel_physicalDevice_multi() local 1459 EasyMock.expect(device2.getIDevice()).andReturn(EasyMock.createMock(IDevice.class)); in testLogDeviceBatteryLevel_physicalDevice_multi() 1460 EasyMock.expect(device2.getSerialNumber()).andReturn("serial2"); in testLogDeviceBatteryLevel_physicalDevice_multi() 1461 EasyMock.expect(device2.getBattery()).andReturn(55); in testLogDeviceBatteryLevel_physicalDevice_multi() 1465 context.addAllocatedDevice("device2", device2); in testLogDeviceBatteryLevel_physicalDevice_multi() 1467 EasyMock.replay(device1, device2); in testLogDeviceBatteryLevel_physicalDevice_multi() 1469 EasyMock.verify(device1, device2); in testLogDeviceBatteryLevel_physicalDevice_multi() 1497 ITestDevice device2 = EasyMock.createMock(ITestDevice.class); in testLogDeviceBatteryLevel_physicalDevice_stub_multi() local 1498 EasyMock.expect(device2.getIDevice()).andReturn(EasyMock.createMock(IDevice.class)); in testLogDeviceBatteryLevel_physicalDevice_stub_multi() 1499 EasyMock.expect(device2.getSerialNumber()).andReturn("serial2"); in testLogDeviceBatteryLevel_physicalDevice_stub_multi() [all …]
|
D | InvocationContextTest.java | 70 ITestDevice device2 = EasyMock.createMock(ITestDevice.class); in testGetDeviceName() local 75 assertNull(mContext.getDeviceName(device2)); in testGetDeviceName()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | DeviceManagerTest.java | 1038 ITestDevice device2 = manager.allocateDevice(mDeviceSelections); in testFreeDevice_unavailable() local 1039 assertNull(device2); in testFreeDevice_unavailable() 1099 ITestDevice device2 = manager.allocateDevice(mDeviceSelections); in testFreeDevice_recovery() local 1100 assertNull(device2); in testFreeDevice_recovery() 1164 ITestDevice device2 = manager.allocateDevice(mDeviceSelections); in testFreeDevice_unknown() local 1165 assertNull(device2); in testFreeDevice_unknown() 1229 ITestDevice device2 = manager.allocateDevice(mDeviceSelections); in testFreeDevice_unknown_subName() local 1230 assertNull(device2); in testFreeDevice_unknown_subName()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationFactoryTest.java | 1329 IDeviceConfiguration device2 = config.getDeviceConfigByName("device2"); in testCreateConfiguration_injectDeviceBooleanOption() local 1330 StubTargetPreparer deviceSetup2 = (StubTargetPreparer) device2.getTargetPreparers().get(0); in testCreateConfiguration_injectDeviceBooleanOption() 1344 IDeviceConfiguration device2 = config.getDeviceConfigByName("device2"); in testCreateConfiguration_includeInDevice() local 1345 assertTrue(device2.getBuildProvider() instanceof LocalDeviceBuildProvider); in testCreateConfiguration_includeInDevice() 1346 LocalDeviceBuildProvider provider = (LocalDeviceBuildProvider) device2.getBuildProvider(); in testCreateConfiguration_includeInDevice() 1726 IDeviceConfiguration device2 = config.getDeviceConfigByName("device2"); in testCreateConfiguration_singleDeviceConfig_withFake() local 1727 assertFalse(device2.getDeviceRequirements().tcpDeviceRequested()); in testCreateConfiguration_singleDeviceConfig_withFake() 1728 assertTrue(device2.getDeviceRequirements().nullDeviceRequested()); in testCreateConfiguration_singleDeviceConfig_withFake()
|
/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/tests/ |
D | acts_records_test.py | 182 device2 = ControllerInfoRecord('TestClass', 'MockDevice', 'device2') 183 tr2.add_controller_info_record(device2) 186 self.assertTrue(tr2.controller_info, [device1, device2])
|
/tools/test/connectivity/acts/framework/acts/test_utils/car/ |
D | car_media_utils.py | 147 def check_metadata(log, device1, device2): argument 162 metadata2 = device2.droid.bluetoothMediaGetCurrentMediaMetaData()
|