Home
last modified time | relevance | path

Searched refs:GlobalConfiguration (Results 1 – 25 of 61) sorted by relevance

123

/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/
DTradefedSandboxTest.java28 import com.android.tradefed.config.GlobalConfiguration;
87 GlobalConfiguration.createGlobalConfiguration(new String[] {}); in setUp()
109 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in testPrepareEnvironment()
111 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in testPrepareEnvironment()
114 EasyMock.eq(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE), EasyMock.anyObject()); in testPrepareEnvironment()
151 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in testPrepareEnvironment_dumpConfigFail()
153 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in testPrepareEnvironment_dumpConfigFail()
156 EasyMock.eq(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE), EasyMock.anyObject()); in testPrepareEnvironment_dumpConfigFail()
191 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in testPrepareEnvironment_dumpConfigFail_fallback_fail()
193 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in testPrepareEnvironment_dumpConfigFail_fallback_fail()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DDelegatedInvocationExecution.java19 import com.android.tradefed.config.GlobalConfiguration;
183 runUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in createRunUtil()
184 runUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in createRunUtil()
188 GlobalConfiguration.GLOBAL_CONFIG_VARIABLE, mGlobalConfig.getAbsolutePath()); in createRunUtil()
204 GlobalConfiguration.DEVICE_MANAGER_TYPE_NAME, in createGlobalConfig()
205 GlobalConfiguration.KEY_STORE_TYPE_NAME, in createGlobalConfig()
206 GlobalConfiguration.HOST_OPTIONS_TYPE_NAME, in createGlobalConfig()
207 GlobalConfiguration.SANDBOX_FACTORY_TYPE_NAME, in createGlobalConfig()
211 GlobalConfiguration.getInstance().cloneConfigWithFilter(configList); in createGlobalConfig()
DRemoteInvocationExecution.java26 import com.android.tradefed.config.GlobalConfiguration;
226 GlobalConfiguration.SANDBOX_FACTORY_TYPE_NAME, in runTests()
227 GlobalConfiguration.HOST_OPTIONS_TYPE_NAME, in runTests()
232 GlobalConfiguration.getInstance() in runTests()
DTestInvocation.java27 import com.android.tradefed.config.GlobalConfiguration;
983 GlobalConfiguration.getInstance().getCommandScheduler() in setExitCode()
1145 if (GlobalConfiguration.getDeviceManagerInstance() instanceof DeviceManager) { in handleAndLogReleaseState()
1147 ((DeviceManager) GlobalConfiguration.getDeviceManagerInstance()) in handleAndLogReleaseState()
DInvocationExecution.java28 import com.android.tradefed.config.GlobalConfiguration;
216 return GlobalConfiguration.getInstance().getShardingStrategy(); in createShardHelper()
927 return GlobalConfiguration.getDeviceManagerInstance().getAdbVersion();
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DNoisyDryRunTestTest.java27 import com.android.tradefed.config.GlobalConfiguration;
67 GlobalConfiguration.createGlobalConfiguration(new String[] {"empty "}); in setUpClass()
257 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in testLoading_sandboxed()
259 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in testLoading_sandboxed()
261 EasyMock.eq(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE), anyObject()); in testLoading_sandboxed()
318 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in testLoading_sandboxed_failed()
320 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in testLoading_sandboxed_failed()
322 EasyMock.eq(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE), anyObject()); in testLoading_sandboxed_failed()
DTfTestLauncherTest.java22 import com.android.tradefed.config.GlobalConfiguration;
129 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in testRun()
130 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in testRun()
135 mMockRunUtil.setEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE, SUB_GLOBAL_CONFIG); in testRun()
248 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in testRunCoverage()
249 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in testRunCoverage()
254 mMockRunUtil.setEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE, SUB_GLOBAL_CONFIG); in testRunCoverage()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DSandboxConfigurationFactoryTest.java65 GlobalConfiguration.createGlobalConfiguration(new String[] {}); in setUp()
107 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in testCreateConfigurationFromArgs()
109 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in testCreateConfigurationFromArgs()
111 EasyMock.eq(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE), EasyMock.anyObject()); in testCreateConfigurationFromArgs()
129 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in testCreateConfigurationFromArgs_fail()
131 mMockRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in testCreateConfigurationFromArgs_fail()
133 EasyMock.eq(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE), EasyMock.anyObject()); in testCreateConfigurationFromArgs_fail()
DGlobalConfigurationTest.java54 GlobalConfiguration mGlobalConfig;
64 mGlobalConfig = new GlobalConfiguration(EMPTY_CONFIG, "description"); in setUp()
176 GlobalConfiguration spyGlobal = Mockito.spy((GlobalConfiguration) globalConfig); in testCreateGlobalConfiguration_cloneConfigWithFilterByDefault()
220 GlobalConfiguration spyGlobal = Mockito.spy((GlobalConfiguration) globalConfig); in testCreateGlobalConfiguration_cloneConfigWithFilter()
/tools/tradefederation/core/src/com/android/tradefed/command/
DConsole.java25 import com.android.tradefed.config.GlobalConfiguration;
550 GlobalConfiguration.getDeviceManagerInstance(); in addDefaultCommands()
558 GlobalConfiguration.getDeviceManagerInstance(); in addDefaultCommands()
1040 GlobalConfiguration.getInstance().cleanup(); in run()
1152 List<String> nonGlobalArgs = GlobalConfiguration.createGlobalConfiguration(args); in startConsole()
1153 GlobalConfiguration.getInstance().setup(); in startConsole()
1155 console.setCommandScheduler(GlobalConfiguration.getInstance().getCommandScheduler()); in startConsole()
1156 console.setKeyStoreFactory(GlobalConfiguration.getInstance().getKeyStoreFactory()); in startConsole()
1159 GlobalConfiguration.getInstance().getCommandScheduler().setClearcutClient(client); in startConsole()
DCommandRunner.java22 import com.android.tradefed.config.GlobalConfiguration;
61 GlobalConfiguration.createGlobalConfiguration(args); in initGlobalConfig()
62 GlobalConfiguration.getInstance().setup(); in initGlobalConfig()
68 return GlobalConfiguration.getInstance().getCommandScheduler(); in getCommandScheduler()
137 GlobalConfiguration.getInstance().cleanup(); in run()
DCommandScheduler.java38 import com.android.tradefed.config.GlobalConfiguration;
672 List<IHostMonitor> hostMonitors = GlobalConfiguration.getHostMonitorInstances(); in checkStrayThreads()
954 return GlobalConfiguration.getDeviceManagerInstance(); in getDeviceManager()
963 return GlobalConfiguration.getHostMonitorInstances(); in getHostMonitor()
982 IKeyStoreFactory f = GlobalConfiguration.getInstance().getKeyStoreFactory(); in getKeyStoreClient()
1234 return GlobalConfiguration.getInstance().getSandboxFactory().createSandbox(); in createSandbox()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DGoogleApiClientUtilTest.java19 import com.android.tradefed.config.GlobalConfiguration;
74 GlobalConfiguration.getInstance(); in setUpBeforeClass()
76 GlobalConfiguration.createGlobalConfiguration(new String[] {}); in setUpBeforeClass()
87 GlobalConfiguration.getInstance() in setUp()
97 GlobalConfiguration.getInstance() in tearDown()
116 new OptionSetter(GlobalConfiguration.getInstance().getHostOptions()); in testCreateCredential_useHostOptions()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxConfigUtil.java19 import com.android.tradefed.config.GlobalConfiguration;
63 runUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in dumpConfigForVersion()
64 runUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in dumpConfigForVersion()
70 GlobalConfiguration.GLOBAL_CONFIG_VARIABLE, globalConfig.getAbsolutePath()); in dumpConfigForVersion()
132 return GlobalConfiguration.getInstance().cloneConfigWithFilter(exclusionPatterns); in dumpFilteredGlobalConfig()
DTradefedSandboxRunner.java23 import com.android.tradefed.config.GlobalConfiguration;
63 GlobalConfiguration.createGlobalConfiguration(args); in initGlobalConfig()
69 return GlobalConfiguration.getInstance().getCommandScheduler(); in getCommandScheduler()
DTradefedSandbox.java23 import com.android.tradefed.config.GlobalConfiguration;
239 mRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in prepareEnvironment()
240 mRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in prepareEnvironment()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DSubprocessTfLauncher.java21 import com.android.tradefed.config.GlobalConfiguration;
270 mRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE); in preRun()
271 mRunUtil.unsetEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_SERVER_CONFIG_VARIABLE); in preRun()
279 GlobalConfiguration.getInstance().cloneConfigWithFilter(); in preRun()
290 mRunUtil.setEnvVariable(GlobalConfiguration.GLOBAL_CONFIG_VARIABLE, mGlobalConfig); in preRun()
/tools/tradefederation/core/global_configuration/com/android/tradefed/config/
DGlobalConfiguration.java67 public class GlobalConfiguration implements IGlobalConfiguration { class
170 ((GlobalConfiguration) sInstance).mOriginalArgs = arrayArgs; in createGlobalConfiguration()
183 ((GlobalConfiguration) sInstance).mOriginalArgs = arrayArgs; in createGlobalConfiguration()
315 GlobalConfiguration(String name, String description) { in GlobalConfiguration() method in GlobalConfiguration
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/
DRunConfigDeviceRecovery.java22 import com.android.tradefed.config.GlobalConfiguration;
144 return GlobalConfiguration.getInstance().getDeviceManager(); in getDeviceManager()
150 return GlobalConfiguration.getInstance().getCommandScheduler(); in getCommandScheduler()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterHostUtil.java19 import com.android.tradefed.config.GlobalConfiguration;
218 GlobalConfiguration.getInstance() in getClusterOptions()
233 GlobalConfiguration.getInstance() in getClusterClient()
DClusterClient.java18 import com.android.tradefed.config.GlobalConfiguration;
344 GlobalConfiguration.getInstance() in getClusterOptions()
357 mHostOptions = GlobalConfiguration.getInstance().getHostOptions(); in getHostOptions()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandRunnerTest.java26 import com.android.tradefed.config.GlobalConfiguration;
85 GlobalConfiguration.getInstance() in tearDown()
97 GlobalConfiguration.createGlobalConfiguration(args); in initGlobalConfig()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DDeviceFlashPreparer.java21 import com.android.tradefed.config.GlobalConfiguration;
159 return GlobalConfiguration.getDeviceManagerInstance(); in getDeviceManager()
168 return GlobalConfiguration.getInstance().getHostOptions(); in getHostOptions()
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationXmlParser.java115 if (GlobalConfiguration.isBuiltInObjType(objectTypeName) || in startElement()
179 } else if (GlobalConfiguration.isBuiltInObjType(localName)) { in startElement()
292 || GlobalConfiguration.isBuiltInObjType(localName)) { in endElement()
/tools/tradefederation/core/src/com/android/tradefed/build/gcs/
DGCSDownloaderHelper.java21 import com.android.tradefed.config.GlobalConfiguration;
54 return GlobalConfiguration.getInstance().getHostOptions(); in getHostOptions()

123