Home
last modified time | relevance | path

Searched refs:mConfiguration (Results 1 – 25 of 40) sorted by relevance

12

/tools/tradefederation/core/javatests/com/android/tradefed/config/filter/
DOptionFetcherTest.java51 private IConfiguration mConfiguration; field in OptionFetcherTest
57 mConfiguration = new Configuration("name", "description"); in setUp()
58 mConfiguration.getCommandOptions() in setUp()
61 mConfiguration.getCommandOptions(), mConfiguration.getRetryDecision()); in setUp()
87 mOptionFetcher.fetchParentOptions(mConfiguration); in testOptionFetch()
89 assertTrue(mConfiguration.getCommandOptions().filterPreviousPassedTests()); in testOptionFetch()
91 ((BaseRetryDecision) mConfiguration.getRetryDecision()).getIsolationGrade()); in testOptionFetch()
92 Truth.assertThat(mConfiguration.getCommandOptions().getAutoLogCollectors()) in testOptionFetch()
104 mOptionFetcher.fetchParentOptions(mConfiguration); in testOptionFetch_single()
107 ((BaseRetryDecision) mConfiguration.getRetryDecision()).getIsolationGrade()); in testOptionFetch_single()
[all …]
DCommandOptionsGetterTest.java39 private IConfiguration mConfiguration; field in CommandOptionsGetterTest
44 mConfiguration = new Configuration("name", "description"); in setUp()
46 mGetter.setConfiguration(mConfiguration); in setUp()
51 OptionSetter setter = new OptionSetter(mConfiguration.getCommandOptions()); in getCommandOptionsValue()
61 OptionSetter setter = new OptionSetter(mConfiguration.getCommandOptions()); in getCommandOptionsValue_updated()
72 OptionSetter setter = new OptionSetter(mConfiguration.getCommandOptions()); in getCommandOptionsValue_multiValue()
96 OptionSetter setter = new OptionSetter(mConfiguration.getCommandOptions()); in getCommandOptionsValue_set()
DGlobalFilterGetterTest.java44 private IConfiguration mConfiguration; field in GlobalFilterGetterTest
50 mConfiguration = new Configuration("name", "description"); in setUp()
67 mConfiguration.setConfigurationObject(Configuration.GLOBAL_FILTERS_TYPE_NAME, glob); in testGetFilter()
68 mGlobalFilterGetter.setConfiguration(mConfiguration); in testGetFilter()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DClangCodeCoverageCollector.java74 private IConfiguration mConfiguration; field in ClangCodeCoverageCollector
88 verifyNotNull(mConfiguration); in extraInit()
89 setCoverageOptions(mConfiguration.getCoverageOptions()); in extraInit()
92 && mConfiguration.getCoverageOptions().shouldResetCoverageBeforeTest()) { in extraInit()
104 mConfiguration = configuration; in setConfiguration()
110 && mConfiguration.getCoverageOptions().shouldResetCoverageBeforeTest()) { in rebootEnded()
132 if (mConfiguration.getCoverageOptions().isCoverageFlushEnabled()) { in onTestRunEnd()
165 for (String devicePath : mConfiguration.getCoverageOptions().getDeviceCoveragePaths()) { in logCoverageMeasurement()
187 mConfiguration.getCoverageOptions().getProfrawFilter())); in logCoverageMeasurement()
216 for (String devicePath : mConfiguration.getCoverageOptions().getDeviceCoveragePaths()) { in logCoverageMeasurement()
[all …]
DJavaCodeCoverageCollector.java76 private IConfiguration mConfiguration; field in JavaCodeCoverageCollector
85 verifyNotNull(mConfiguration); in extraInit()
86 setCoverageOptions(mConfiguration.getCoverageOptions()); in extraInit()
89 && mConfiguration.getCoverageOptions().shouldResetCoverageBeforeTest()) { in extraInit()
100 mConfiguration = configuration; in setConfiguration()
107 device, mConfiguration.getCoverageOptions().getCoverageProcesses()); in getCoverageFlusher()
143 if (mConfiguration.getCoverageOptions().isCoverageFlushEnabled()) { in onTestRunEnd()
286 return mConfiguration != null in isJavaCoverageEnabled()
287 && mConfiguration.getCoverageOptions().isCoverageEnabled() in isJavaCoverageEnabled()
288 && mConfiguration in isJavaCoverageEnabled()
[all …]
DGcovCodeCoverageCollector.java71 private IConfiguration mConfiguration; field in GcovCodeCoverageCollector
99 mConfiguration = config; in setConfiguration()
103 return mConfiguration != null in isGcovCoverageEnabled()
104 && mConfiguration.getCoverageOptions().isCoverageEnabled() in isGcovCoverageEnabled()
105 && mConfiguration.getCoverageOptions().getCoverageToolchains().contains(GCOV); in isGcovCoverageEnabled()
110 mFlusher = new NativeCodeCoverageFlusher(device, mConfiguration.getCoverageOptions()); in getCoverageFlusher()
149 if (mConfiguration.getCoverageOptions().isCoverageFlushEnabled()) { in logCoverageMeasurements()
DGcovKernelCodeCoverageCollector.java60 private IConfiguration mConfiguration; field in GcovKernelCodeCoverageCollector
70 mConfiguration = config; in setConfiguration()
74 return mConfiguration != null in isGcovKernelCoverageEnabled()
75 && mConfiguration.getCoverageOptions().isCoverageEnabled() in isGcovKernelCoverageEnabled()
76 && mConfiguration in isGcovKernelCoverageEnabled()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/params/
DRunOnSdkSandboxHandlerTest.java40 private IConfiguration mConfiguration; field in RunOnSdkSandboxHandlerTest
45 mConfiguration = new Configuration("test", "test"); in setUp()
50 mHandler.addParameterSpecificConfig(mConfiguration); in testAddParameterSpecificConfig()
53 mConfiguration.getTargetPreparers().get(0) in testAddParameterSpecificConfig()
65 mConfiguration.setTest(test); in testApplySetup()
66 mConfiguration.setTargetPreparer(installer); in testApplySetup()
67 mHandler.applySetup(mConfiguration); in testApplySetup()
/tools/tradefederation/core/javatests/com/android/tradefed/observatory/
DTestDiscoveryInvokerTest.java60 private IConfiguration mConfiguration; field in TestDiscoveryInvokerTest
71 mConfiguration = Mockito.mock(IConfiguration.class); in setUp()
73 when(mConfiguration.getCommandOptions()).thenReturn(mCommandOptions); in setUp()
74 when(mConfiguration.getSkipManager()).thenReturn(new SkipManager()); in setUp()
93 new TestDiscoveryInvoker(mConfiguration, mRootDir) { in testSuccessTestDependencyDiscovery()
124 when(mConfiguration.getCommandLine()).thenReturn(commandLine); in testSuccessTestDependencyDiscovery()
183 new TestDiscoveryInvoker(mConfiguration, mRootDir) { in testFailTestDependencyDiscovery()
203 when(mConfiguration.getCommandLine()).thenReturn(commandLine); in testFailTestDependencyDiscovery()
220 new TestDiscoveryInvoker(mConfiguration, DEFAULT_TEST_CONFIG_NAME, mRootDir) { in testTestDependencyDiscovery_NoConfigNameInArgs()
251 when(mConfiguration.getCommandLine()).thenReturn(commandLine); in testTestDependencyDiscovery_NoConfigNameInArgs()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/
DRemoteInvocationExecutionTest.java61 private IConfiguration mConfiguration; field in RemoteInvocationExecutionTest
68 mConfiguration = new Configuration("name", "description"); in setUp()
84 mConfiguration.setBuildProvider(originalProvider); in testFetchBuild()
89 boolean fetched = mRemoteInvocation.fetchBuild(testInfo, mConfiguration, null, null); in testFetchBuild()
102 mConfiguration.setDeviceConfig(deviceConfig); in testCreateRemoteConfig()
107 mContext, mConfiguration, mMockListener, "path/"); in testCreateRemoteConfig()
141 mContext, mConfiguration, mMockListener, "path/"); in testCreateRemoteConfigForInvocationWorkUnitId()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/
DRetryRescheduler.java99 private IConfiguration mConfiguration; field in RetryRescheduler
114 Object loader = mConfiguration.getConfigurationObject(PREVIOUS_LOADER_NAME); in run()
143 .setShardCount(mConfiguration.getCommandOptions().getShardCount()); in run()
146 .setShardIndex(mConfiguration.getCommandOptions().getShardIndex()); in run()
147 IDeviceSelection requirements = mConfiguration.getDeviceRequirements(); in run()
154 ILeveledLogOutput retryLogger = mConfiguration.getLogOutput(); in run()
161 handleExtraResultReporter(originalConfig, mConfiguration); in run()
188 mConfiguration = configuration; in setConfiguration()
390 && (mConfiguration.getTestInvocationListeners().get(0) in handleExtraResultReporter()
DResultsPlayer.java60 private IConfiguration mConfiguration; field in ResultsPlayer
92 LogLevel originalLevel = mConfiguration.getLogOutput().getLogLevel(); in run()
93 mConfiguration.getLogOutput().setLogLevel(LogLevel.WARN); in run()
132 mConfiguration.getLogOutput().setLogLevel(originalLevel); in run()
170 mConfiguration = configuration; in setConfiguration()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/app/
DNoApkTestSkipper.java39 private IConfiguration mConfiguration; field in NoApkTestSkipper
47 for (IDeviceConfiguration deviceConfig : mConfiguration.getDeviceConfig()) { in setUp()
53 mConfiguration.setTests(new ArrayList<>()); in setUp()
59 mConfiguration = configuration; in setConfiguration()
/tools/tradefederation/core/javatests/com/android/tradefed/result/skipped/
DSkipManagerTest.java39 private IConfiguration mConfiguration; field in SkipManagerTest
47 mConfiguration = new Configuration("test", "name"); in setup()
60 mManager.setup(mConfiguration, mContext); in testEmptySetup()
71 mManager.setup(mConfiguration, mContext); in testSetupAndFilters()
/tools/tradefederation/core/test_observatory/com/android/tradefed/observatory/
DTestDiscoveryInvoker.java69 private final IConfiguration mConfiguration; field in TestDiscoveryInvoker
158 mConfiguration = config; in TestDiscoveryInvoker()
248 mConfiguration.getSkipManager().reportDiscoveryWithNoTests(); in discoverTestDependencies()
263 mConfiguration in discoverTestDependencies()
298 mConfiguration.getCommandLine()))); in discoverTestMappingDependencies()
379 mConfiguration.getSkipManager().reportDiscoveryWithNoTests(); in discoverTestMappingDependencies()
388 mConfiguration in discoverTestMappingDependencies()
415 mConfiguration.getCommandLine()))); in buildJavaCmdForTestMappingDiscovery()
451 mConfiguration.getCommandLine()))); in buildJavaCmdForXtsDiscovery()
/tools/tradefederation/core/src/com/android/tradefed/result/suite/
DFormattedGeneratorReporter.java34 private IConfiguration mConfiguration; field in FormattedGeneratorReporter
38 mConfiguration = configuration; in setConfiguration()
42 return mConfiguration; in getConfiguration()
54 for (IRemoteTest test : mConfiguration.getTests()) { in invocationEnded()
/tools/tradefederation/core/javatests/com/android/tradefed/device/internal/
DDeviceResetFeatureTest.java52 private IConfiguration mConfiguration; field in DeviceResetFeatureTest
61 mConfiguration = new Configuration("name", "description"); in setUp()
62 mConfiguration.setTargetPreparer(mMockPreparer); in setUp()
64 mFeature.setConfiguration(mConfiguration); in setUp()
DDeviceSnapshotFeatureTest.java44 private IConfiguration mConfiguration; field in DeviceSnapshotFeatureTest
52 mConfiguration = new Configuration("name", "description"); in setUp()
54 mFeature.setConfiguration(mConfiguration); in setUp()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DTearDownPassThroughPreparer.java37 private IConfiguration mConfiguration; field in TearDownPassThroughPreparer
47 mConfiguration = configuration; in setConfiguration()
60 Object configObject = mConfiguration.getConfigurationObject(preparer); in tearDown()
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DClusterCommandLauncherTest.java69 private IConfiguration mConfiguration; field in ClusterCommandLauncherTest
96 mConfiguration = new Configuration("name", "description"); in setUp()
97 mConfiguration.getCommandOptions().setInvocationTimeout(10000L); in setUp()
100 mLauncher.setConfiguration(mConfiguration); in setUp()
182 mConfiguration = new Configuration("name", "description"); in testRun_withTFDeviceCount()
183 mConfiguration.getCommandOptions().setInvocationTimeout(10000L); in testRun_withTFDeviceCount()
184 mConfiguration.getCommandOptions().setShardCount(1); in testRun_withTFDeviceCount()
187 mLauncher.setConfiguration(mConfiguration); in testRun_withTFDeviceCount()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DInstrumentationTest.java374 private IConfiguration mConfiguration = null; field in InstrumentationTest
380 mConfiguration = config; in setConfiguration()
385 return mConfiguration; in getConfiguration()
973 if (mConfiguration != null && mConfiguration.getCoverageOptions().isCoverageEnabled()) { in doTestRun()
981 if (mConfiguration != null in doTestRun()
982 && mConfiguration.getCommandOptions().reportTestCaseCount()) { in doTestRun()
1007 .setConfiguration(mConfiguration); in doTestRun()
1083 if (mConfiguration != null in runWithRerun()
1084 && !mConfiguration.getCoverageOptions().isCoverageEnabled()) { in runWithRerun()
1086 IRetryDecision decision = mConfiguration.getRetryDecision(); in runWithRerun()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/rust/
DRustBinaryTest.java57 private IConfiguration mConfiguration = null; field in RustBinaryTest
64 mConfiguration = configuration; in setConfiguration()
232 if (mConfiguration != null in runTest()
233 && mConfiguration.getCoverageOptions().getCoverageToolchains().contains(GCOV)) { in runTest()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommandLauncher.java128 private IConfiguration mConfiguration; field in ClusterCommandLauncher
138 mConfiguration = configuration; in setConfiguration()
207 mConfiguration.getCommandOptions().getInvocationTimeout(), in run()
219 mConfiguration.getCommandOptions().getInvocationTimeout()); in run()
375 final Integer shardCount = mConfiguration.getCommandOptions().getShardCount(); in buildJavaCommandArgs()
376 final Integer shardIndex = mConfiguration.getCommandOptions().getShardIndex(); in buildJavaCommandArgs()
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/testtype/
DGameQualificationHostsideController.java76 private IConfiguration mConfiguration = null; field in GameQualificationHostsideController
186 mConfiguration = configuration; in setConfiguration()
215 if (mConfiguration == null) { in run()
221 : mConfiguration.getTestInvocationListeners()) { in run()
/tools/tradefederation/core/src/com/android/tradefed/build/
DDependenciesResolver.java69 private IConfiguration mConfiguration; field in DependenciesResolver
81 if (isFlasherEnabled(mConfiguration.getTargetPreparers())) { in getBuild()
135 mConfiguration = configuration; in setConfiguration()

12