Home
last modified time | relevance | path

Searched refs:testObj (Results 1 – 4 of 4) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/testtype/junit4/
DDeviceParameterizedRunner.java76 protected Statement methodInvoker(FrameworkMethod method, Object testObj) { in methodInvoker() argument
77 if (testObj instanceof IDeviceTest) { in methodInvoker()
81 ((IDeviceTest) testObj).setDevice(mDevice); in methodInvoker()
83 if (testObj instanceof IBuildReceiver) { in methodInvoker()
87 ((IBuildReceiver) testObj).setBuild(mBuildInfo); in methodInvoker()
90 if (testObj instanceof IAbiReceiver) { in methodInvoker()
91 ((IAbiReceiver) testObj).setAbi(mAbi); in methodInvoker()
93 if (testObj instanceof IMultiDeviceTest) { in methodInvoker()
94 ((IMultiDeviceTest) testObj).setDeviceInfos(mDeviceInfos); in methodInvoker()
96 if (testObj instanceof IInvocationContextReceiver) { in methodInvoker()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DHostTest.java454 private void setTestObjectInformation(Object testObj) { in setTestObjectInformation() argument
455 if (testObj instanceof IBuildReceiver) { in setTestObjectInformation()
459 ((IBuildReceiver)testObj).setBuild(mBuildInfo); in setTestObjectInformation()
461 if (testObj instanceof IDeviceTest) { in setTestObjectInformation()
465 ((IDeviceTest)testObj).setDevice(mDevice); in setTestObjectInformation()
468 if (testObj instanceof IAbiReceiver) { in setTestObjectInformation()
469 ((IAbiReceiver)testObj).setAbi(mAbi); in setTestObjectInformation()
471 if (testObj instanceof IMultiDeviceTest) { in setTestObjectInformation()
472 ((IMultiDeviceTest) testObj).setDeviceInfos(mDeviceInfos); in setTestObjectInformation()
474 if (testObj instanceof IInvocationContextReceiver) { in setTestObjectInformation()
[all …]
DDeviceJUnit4ClassRunner.java84 Object testObj = super.createTest(); in createTest() local
85 if (testObj instanceof IDeviceTest) { in createTest()
89 ((IDeviceTest) testObj).setDevice(mDevice); in createTest()
91 if (testObj instanceof IBuildReceiver) { in createTest()
95 ((IBuildReceiver) testObj).setBuild(mBuildInfo); in createTest()
98 if (testObj instanceof IAbiReceiver) { in createTest()
99 ((IAbiReceiver) testObj).setAbi(mAbi); in createTest()
101 if (testObj instanceof IMultiDeviceTest) { in createTest()
102 ((IMultiDeviceTest) testObj).setDeviceInfos(mDeviceInfos); in createTest()
104 if (testObj instanceof IInvocationContextReceiver) { in createTest()
[all …]
DDeviceSuite.java151 private void injectValues(Object testObj) { in injectValues() argument
152 if (testObj instanceof IDeviceTest) { in injectValues()
156 ((IDeviceTest) testObj).setDevice(mDevice); in injectValues()
158 if (testObj instanceof IBuildReceiver) { in injectValues()
162 ((IBuildReceiver) testObj).setBuild(mBuildInfo); in injectValues()
165 if (testObj instanceof IAbiReceiver) { in injectValues()
166 ((IAbiReceiver) testObj).setAbi(mAbi); in injectValues()