Home
last modified time | relevance | path

Searched refs:addAllocatedDevice (Results 1 – 25 of 44) sorted by relevance

12

/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DShardMasterResultForwarderTest.java68 main.addAllocatedDevice("device1", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo()
74 shard1.addAllocatedDevice("device1", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo()
80 shard2.addAllocatedDevice("device1", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo()
102 main.addAllocatedDevice("device1", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo_multiDevice()
107 main.addAllocatedDevice("device2", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo_multiDevice()
113 shard1.addAllocatedDevice("device1", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo_multiDevice()
118 shard1.addAllocatedDevice("device2", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo_multiDevice()
124 shard2.addAllocatedDevice("device1", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo_multiDevice()
129 shard2.addAllocatedDevice("device2", Mockito.mock(ITestDevice.class)); in testForwardBuildInfo_multiDevice()
162 main.addAllocatedDevice("device1", Mockito.mock(ITestDevice.class)); in testForward_Sharded()
DInvocationExecutionTest.java104 mContext.addAllocatedDevice("default", EasyMock.createMock(ITestDevice.class)); in testCleanUp()
123 mContext.addAllocatedDevice("default", EasyMock.createMock(ITestDevice.class)); in testCleanUp_disabled()
142 mContext.addAllocatedDevice("default", EasyMock.createMock(ITestDevice.class)); in testCleanUp_tearDownDisabled()
253 mContext.addAllocatedDevice("default", mock(ITestDevice.class)); in testDoSetup()
300 mContext.addAllocatedDevice("default", mock(ITestDevice.class)); in testDoTearDown()
339 mContext.addAllocatedDevice("default", mock(ITestDevice.class)); in testDoTearDown_logger()
376 mContext.addAllocatedDevice("default", mock(ITestDevice.class)); in testDoTearDown_exception()
415 mContext.addAllocatedDevice("device1", mMockDevice); in testFetchBuild_createSharedFolder()
421 mContext.addAllocatedDevice("device2", mMockDevice); in testFetchBuild_createSharedFolder()
DInvocationContextTest.java73 mContext.addAllocatedDevice("test1", device1); in testGetDeviceName()
128 mContext.addAllocatedDevice("test-device", device); in testSerialize()
145 deserialized.addAllocatedDevice("test-device", device); in testSerialize()
DTestInvocationTest.java238 mStubInvocationMetadata.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, in setUp()
1299 context.addAllocatedDevice("device1", device1); in testLogDeviceBatteryLevel_placeholderDevice()
1318 context.addAllocatedDevice("device1", device1); in testLogDeviceBatteryLevel_physicalDevice()
1349 context.addAllocatedDevice("device1", device1); in testLogDeviceBatteryLevel_physicalDevice_multi()
1351 context.addAllocatedDevice("device2", device2); in testLogDeviceBatteryLevel_physicalDevice_multi()
1394 context.addAllocatedDevice("device1", device1); in testLogDeviceBatteryLevel_physicalDevice_stub_multi()
1396 context.addAllocatedDevice("device2", device2); in testLogDeviceBatteryLevel_physicalDevice_stub_multi()
1398 context.addAllocatedDevice("device3", device3); in testLogDeviceBatteryLevel_physicalDevice_stub_multi()
1399 context.addAllocatedDevice("device4", device4); in testLogDeviceBatteryLevel_physicalDevice_stub_multi()
1499 context.addAllocatedDevice("DEFAULT_DEVICE", device1); in testNotSkipPreDeviceSetup()
[all …]
DTestInvocationMultiTest.java139 mContext.addAllocatedDevice("device1", mDevice1); in makeTwoDeviceContext()
140 mContext.addAllocatedDevice("device2", mDevice2); in makeTwoDeviceContext()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DModuleDefinitionTest.java293 mModule.getModuleInvocationContext().addAllocatedDevice(DEFAULT_DEVICE_NAME, mMockDevice); in setUp()
401 mModule.getModuleInvocationContext().addAllocatedDevice(DEFAULT_DEVICE_NAME, mMockDevice); in testRun_aggregateRunFailures()
470 mModule.getModuleInvocationContext().addAllocatedDevice(DEFAULT_DEVICE_NAME, mMockDevice); in testParseTokens()
555 mModule.getModuleInvocationContext().addAllocatedDevice(DEFAULT_DEVICE_NAME, mMockDevice); in testRun_failPreparation()
592 mModule.getModuleInvocationContext().addAllocatedDevice(DEFAULT_DEVICE_NAME, mMockDevice); in testRun_failPreparation_runtime()
626 mModule.getModuleInvocationContext().addAllocatedDevice(DEFAULT_DEVICE_NAME, mMockDevice); in testRun_failPreparation_error()
666 mModule.getModuleInvocationContext().addAllocatedDevice(DEFAULT_DEVICE_NAME, mMockDevice); in testRun_failPreparation_moduleListener()
708 mModule.getModuleInvocationContext().addAllocatedDevice(DEFAULT_DEVICE_NAME, mMockDevice); in testRun_failPreparation_unresponsive()
744 mModule.getModuleInvocationContext().addAllocatedDevice(DEFAULT_DEVICE_NAME, mMockDevice); in testRun_fullPass()
792 mModule.getModuleInvocationContext().addAllocatedDevice(DEFAULT_DEVICE_NAME, mMockDevice); in testRun_partialRun()
[all …]
DModuleDefinitionMultiTest.java121 mModule.getModuleInvocationContext().addAllocatedDevice(DEVICE_NAME_1, mDevice1); in testCreateAndRun()
123 mModule.getModuleInvocationContext().addAllocatedDevice(DEVICE_NAME_2, mDevice2); in testCreateAndRun()
156 mModule.getModuleInvocationContext().addAllocatedDevice(DEVICE_NAME_1, mDevice1); in testPreparer_mismatch()
158 mModule.getModuleInvocationContext().addAllocatedDevice(DEVICE_NAME_2, mDevice2); in testPreparer_mismatch()
DITestSuiteIntegrationTest.java155 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp()
503 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_sharding_firstModuleRunsAll()
543 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_sharding_parallelRun()
590 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_sharding_withIndex()
669 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in helperTestShardIndex()
DITestSuiteMultiTest.java139 mContext.addAllocatedDevice(DEVICE_NAME_1, mMockDevice1); in testMultiDeviceITestSuite()
141 mContext.addAllocatedDevice(DEVICE_NAME_2, mMockDevice2); in testMultiDeviceITestSuite()
DITestSuiteTest.java282 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp()
400 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun()
427 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_whiteListPreparer()
1426 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_withModuleListener()
1484 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_GranularRerunwithModuleListener()
DGranularRetriableTestWrapperTest.java823 mModuleInvocationContext.addAllocatedDevice("default-device1", mMockDevice); in testIntraModuleRun_rebootAtLastIntraModuleRetry()
844 mModuleInvocationContext.addAllocatedDevice("default-device1", mMockDevice); in testIntraModuleRun_rebootMultiDevicesAtLastIntraModuleRetry()
845 mModuleInvocationContext.addAllocatedDevice("default-device2", mMockDevice2); in testIntraModuleRun_rebootMultiDevicesAtLastIntraModuleRetry()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DDeviceMetricDataTest.java47 mContext.addAllocatedDevice("device1", mDevice1); in setUp()
88 mContext.addAllocatedDevice("device2", mock(ITestDevice.class)); in testMultiDeviceAdd()
108 mContext.addAllocatedDevice("device2", device2); in testMultiDeviceAdd_forDevice()
DScheduledDeviceMetricCollectorTest.java76 mContext.addAllocatedDevice(mDevicesWithNames); in testSetupAndPeriodicRunSingleDevice()
105 mContext.addAllocatedDevice(mDevicesWithNames); in testSetupAndPeriodicRunMultipleDevices()
DBugreportzOnFailureCollectorTest.java50 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp()
DAtraceRunMetricCollectorTest.java53 mContext.addAllocatedDevice("default", mMockDevice); in setUp()
DScreenshotOnFailureCollectorTest.java52 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp()
DDeviceMetricDataFuncTest.java52 mContext.addAllocatedDevice("device1", device); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DIInvocationContext.java60 public void addAllocatedDevice(String deviceName, ITestDevice testDevice); in addAllocatedDevice() method
68 public void addAllocatedDevice(Map<String, ITestDevice> deviceWithName); in addAllocatedDevice() method
DInvocationContext.java98 public void addAllocatedDevice(String devicename, ITestDevice testDevice) { in addAllocatedDevice() method in InvocationContext
110 public void addAllocatedDevice(Map<String, ITestDevice> deviceWithName) { in addAllocatedDevice() method in InvocationContext
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DEmailResultReporterTest.java72 context.addAllocatedDevice("fakeDevice", EasyMock.createMock(ITestDevice.class)); in testInvocationEnded_multiBuild()
74 context.addAllocatedDevice("fakeDevice2", EasyMock.createMock(ITestDevice.class)); in testInvocationEnded_multiBuild()
DDeviceUnavailEmailResultReporterTest.java52 context.addAllocatedDevice("fakeDevice", EasyMock.createMock(ITestDevice.class)); in testGenerateEmailSubject()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/sandbox/
DParentSandboxInvocationExecutionTest.java82 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp()
193 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testParentSandbox_NotTestMode()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DStrictShardHelperTest.java236 mContext.addAllocatedDevice("default", EasyMock.createMock(ITestDevice.class)); in testShard()
358 mContext.addAllocatedDevice("default", EasyMock.createMock(ITestDevice.class)); in testSuite_withAllInterfaces()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/module/
DCarModuleControllerTest.java51 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/
DRemoteManagerFuncTest.java294 nullMeta.addAllocatedDevice("device", device); in testConsecutiveExecCommand()
481 nullMeta.addAllocatedDevice("device", device); in testGetLastCommandResult_notAvail()

12