Home
last modified time | relevance | path

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

/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DHostTest.java467 private void setTestObjectInformation(Object testObj) { in setTestObjectInformation() argument
468 if (testObj instanceof IBuildReceiver) { in setTestObjectInformation()
472 ((IBuildReceiver)testObj).setBuild(mBuildInfo); in setTestObjectInformation()
474 if (testObj instanceof IDeviceTest) { in setTestObjectInformation()
478 ((IDeviceTest)testObj).setDevice(mDevice); in setTestObjectInformation()
481 if (testObj instanceof IAbiReceiver) { in setTestObjectInformation()
482 ((IAbiReceiver)testObj).setAbi(mAbi); in setTestObjectInformation()
484 if (testObj instanceof IInvocationContextReceiver) { in setTestObjectInformation()
485 ((IInvocationContextReceiver) testObj).setInvocationContext(mTestInfo.getContext()); in setTestObjectInformation()
487 if (testObj instanceof ITestInformationReceiver) { in setTestObjectInformation()
[all …]
DDeviceJUnit4ClassRunner.java80 Object testObj = super.createTest(); in createTest() local
81 if (testObj instanceof IDeviceTest) { in createTest()
82 ((IDeviceTest) testObj).setDevice(mTestInformation.getDevice()); in createTest()
84 if (testObj instanceof IBuildReceiver) { in createTest()
85 ((IBuildReceiver) testObj).setBuild(mTestInformation.getBuildInfo()); in createTest()
88 if (testObj instanceof IAbiReceiver) { in createTest()
89 ((IAbiReceiver) testObj).setAbi(mAbi); in createTest()
91 if (testObj instanceof IInvocationContextReceiver) { in createTest()
92 ((IInvocationContextReceiver) testObj) in createTest()
95 if (testObj instanceof ITestInformationReceiver) { in createTest()
[all …]
DDeviceSuite.java139 private void injectValues(Object testObj) { in injectValues() argument
140 if (testObj instanceof IDeviceTest) { in injectValues()
141 ((IDeviceTest) testObj).setDevice(mTestInfo.getDevice()); in injectValues()
143 if (testObj instanceof IBuildReceiver) { in injectValues()
144 ((IBuildReceiver) testObj).setBuild(mTestInfo.getBuildInfo()); in injectValues()
146 if (testObj instanceof ITestInformationReceiver) { in injectValues()
147 ((ITestInformationReceiver) testObj).setTestInformation(mTestInfo); in injectValues()
150 if (testObj instanceof IAbiReceiver) { in injectValues()
151 ((IAbiReceiver) testObj).setAbi(mAbi); in injectValues()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DDeviceParameterizedRunner.java65 protected Statement methodInvoker(FrameworkMethod method, Object testObj) { in methodInvoker() argument
66 if (testObj instanceof IDeviceTest) { in methodInvoker()
67 ((IDeviceTest) testObj).setDevice(mTestInformation.getDevice()); in methodInvoker()
69 if (testObj instanceof IBuildReceiver) { in methodInvoker()
70 ((IBuildReceiver) testObj).setBuild(mTestInformation.getBuildInfo()); in methodInvoker()
73 if (testObj instanceof IAbiReceiver) { in methodInvoker()
74 ((IAbiReceiver) testObj).setAbi(mAbi); in methodInvoker()
76 if (testObj instanceof IInvocationContextReceiver) { in methodInvoker()
77 ((IInvocationContextReceiver) testObj) in methodInvoker()
80 if (testObj instanceof ITestInformationReceiver) { in methodInvoker()
[all …]