Home
last modified time | relevance | path

Searched refs:getContext (Results 1 – 25 of 52) sorted by relevance

123

/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DPushFilePreparerTest.java85 mTestInfo.getContext().addDeviceBuildInfo("device", new BuildInfo()); in testLocalNoExist()
105 mTestInfo.getContext().addDeviceBuildInfo("device", new BuildInfo()); in testRemoteNoExist()
133 mTestInfo.getContext().addDeviceBuildInfo("device", info); in testPushFile_RemoteIsDir()
164 mTestInfo.getContext().addDeviceBuildInfo("device", info); in testPushFile_duplicateKey()
192 mTestInfo.getContext().addDeviceBuildInfo("device", info); in testPushDir_RemoteIsDir()
214 mTestInfo.getContext().addDeviceBuildInfo("device", info); in testPushDir_RemoteIsFile()
251 mTestInfo.getContext().addDeviceBuildInfo("device", info); in testRemotePush_override()
285 mTestInfo.getContext().addDeviceBuildInfo("device", info); in testPushFileAndPush_override()
307 mTestInfo.getContext().addDeviceBuildInfo("device", new BuildInfo()); in testWarnOnFailure()
420 mTestInfo.getContext().addDeviceBuildInfo("device", info); in testPush_abiDirectory_noBitness()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DInvocationExecution.java120 for (int i = 0; i < testInfo.getContext().getDeviceConfigNames().size(); i++) { in fetchBuild()
121 currentDeviceName = testInfo.getContext().getDeviceConfigNames().get(i); in fetchBuild()
124 testInfo.getContext().addDeviceBuildInfo(currentDeviceName, buildReplicat); in fetchBuild()
128 ITestDevice device = testInfo.getContext().getDevice(currentDeviceName); in fetchBuild()
135 .setInvocationContext(testInfo.getContext()); in fetchBuild()
146 testInfo.getContext().addDeviceBuildInfo(currentDeviceName, info); in fetchBuild()
155 testInfo.getContext().addDeviceBuildInfo(currentDeviceName, notFoundStub); in fetchBuild()
171 testInfo.getContext().addDeviceBuildInfo(currentDeviceName, errorBuild); in fetchBuild()
178 testInfo.getContext().addDeviceBuildInfo(currentDeviceName, errorBuild); in fetchBuild()
182 setBinariesVersion(testInfo.getContext()); in fetchBuild()
[all …]
DTestInvocation.java223 IInvocationContext context = testInfo.getContext(); in performInvocation()
438 logDeviceBatteryLevel(testInfo.getContext(), "initial -> setup"); in prepareAndRun()
441 logDeviceBatteryLevel(testInfo.getContext(), "setup -> test"); in prepareAndRun()
445 logDeviceBatteryLevel(testInfo.getContext(), "after test"); in prepareAndRun()
645 startInvocation(config, testInfo.getContext(), listener); in invokeFetchBuild()
648 for (ITestDevice device : testInfo.getContext().getDevices()) { in invokeFetchBuild()
DRemoteInvocationExecution.java120 testInfo.getContext().addDeviceBuildInfo(deviceName, info); in fetchBuild()
263 info.getContext(), in runTests()
290 super.runDevicePostInvocationTearDown(testInfo.getContext(), config, exception); in doTeardown()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/multi/
DHelloWorldMultiTargetPreparer.java34 Map<ITestDevice, IBuildInfo> deviceBuildInfo = testInfo.getContext().getDeviceBuildMap(); in setUp()
36 ITestDevice device = testInfo.getContext().getDevices().get(0); in setUp()
48 CLog.i("The device names configured are: %s", testInfo.getContext().getDeviceConfigNames()); in setUp()
53 Map<ITestDevice, IBuildInfo> deviceBuildInfo = testInfo.getContext().getDeviceBuildMap(); in tearDown()
DIMultiTargetPreparer.java62 setUp(testInformation.getContext()); in setUp()
91 tearDown(testInformation.getContext(), e); in tearDown()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/
DResultsPlayer.java72 for (ITestDevice device : testInfo.getContext().getDevices()) { in run()
92 for (String deviceName : testInfo.getContext().getDeviceConfigNames()) { in run()
94 deviceName, testInfo.getContext().getDevice(deviceName)); in run()
96 deviceName, testInfo.getContext().getBuildInfo(deviceName)); in run()
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/
DWifiUtil.java175 … WifiManager wifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); in onStart()
180 WifiConnector connector = new WifiConnector(getContext()); in onStart()
281 WifiMonitorService.enable(getContext(), interval, urlToCheck); in onStart()
286 final Context context = getContext(); in onStart()
/tools/tradefederation/core/src/com/android/tradefed/invoker/sandbox/
DSandboxedInvocationExecution.java59 for (String deviceName : testInfo.getContext().getDeviceConfigNames()) { in fetchBuild()
64 ((IInvocationContextReceiver) provider).setInvocationContext(testInfo.getContext()); in fetchBuild()
69 for (IBuildInfo info : testInfo.getContext().getBuildInfos()) { in fetchBuild()
DParentSandboxInvocationExecution.java61 if (!testInfo.getContext().getBuildInfos().isEmpty()) { in fetchBuild()
65 testInfo.getContext().getBuildInfos()); in fetchBuild()
123 for (IBuildInfo build : info.getContext().getBuildInfos()) { in runTests()
/tools/test/graphicsbenchmark/performance_tests/deviceside/src/com/android/game/qualification/device/
DGameQualificationTest.java89 InstrumentationRegistry.getContext().getPackageManager() in startApp()
134 InstrumentationRegistry.getContext().startActivity(intent); in startApp()
170 InstrumentationRegistry.getContext().registerReceiver(br, intentFilter); in registerReceiver()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/binary/
DExecutableHostTestTest.java98 mTestInfo.getContext().addDeviceBuildInfo("device", new BuildInfo()); in testRunHostExecutable_doesNotExists()
228 mTestInfo.getContext().addDeviceBuildInfo("device", info); in testRunHostExecutable_search()
260 mTestInfo.getContext().addDeviceBuildInfo("device", info); in testRunHostExecutable_notFound()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/
DSuiteApkInstallerTest.java156 mTestInfo.getContext().addDeviceBuildInfo("device", deviceBuildInfo); in testGetLocalPathForFileName_testsDir()
195 mTestInfo.getContext().addDeviceBuildInfo("device", deviceBuildInfo); in testGetLocalPathForFileName_remoteZip()
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DTestsPoolPoller.java181 listenerWithCollectors = collector.init(info.getContext(), listenerWithCollectors); in run()
195 ((IInvocationContextReceiver) test).setInvocationContext(info.getContext()); in run()
DShardHelper.java107 IInvocationContext context = testInfo.getContext(); in shardConfig()
296 ((IInvocationContextReceiver) test).setInvocationContext(testInfo.getContext()); in shardTest()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4Test.java103 return mTestInfo.getContext(); in getInvocationContext()
107 return mTestInfo.getContext().getDevices(); in getListDevices()
DDeviceParameterizedRunner.java78 .setInvocationContext(mTestInformation.getContext()); in methodInvoker()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DITestSuite.java934 setInvocationContext(testInfo.getContext()); in split()
995 ((IInvocationContextReceiver) test).setInvocationContext(testInfo.getContext()); in injectInfo()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DHostTest.java485 ((IInvocationContextReceiver) testObj).setInvocationContext(mTestInfo.getContext()); in setTestObjectInformation()
921 .getContext() in getClasses()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DTestMappingSuiteRunnerTest.java506 .getContext() in testLoadTests_shard()
552 .getContext() in testLoadTests_shardNoTest()
/tools/tradefederation/contrib/src/com/android/tradefed/
DHelloWorldMultiDevices.java40 IInvocationContext context = testInfo.getContext(); in run()
/tools/test/graphicsbenchmark/functional_tests/java/src/com/android/game/qualification/tests/
DSurfaceFlingerTest.java42 TestUtils.assumeGameCoreCertified(InstrumentationRegistry.getContext().getPackageManager()); in setUp()
DChoreoTest.java48 TestUtils.assumeGameCoreCertified(InstrumentationRegistry.getContext().getPackageManager()); in setUp()
/tools/tradefederation/contrib/src/com/android/monkey/
DMonkeyPairedBase.java66 cwUtils.setUpMultiDevice(testInfo.getContext().getDeviceBuildMap(), mDeviceList); in run()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxInvocationRunner.java56 Exception res = sandbox.prepareEnvironment(info.getContext(), config, listener); in prepareAndRun()

123