Home
last modified time | relevance | path

Searched refs:optionSetter (Results 1 – 15 of 15) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DDeviceStorageFillerTest.java45 OptionSetter optionSetter = new OptionSetter(mDeviceStorageFiller); in testSetUpWriteFile() local
46 optionSetter.setOptionValue("free-bytes", "24"); in testSetUpWriteFile()
47 optionSetter.setOptionValue("partition", "/p"); in testSetUpWriteFile()
48 optionSetter.setOptionValue("file-name", "f"); in testSetUpWriteFile()
62 OptionSetter optionSetter = new OptionSetter(mDeviceStorageFiller); in testSetUpSkip() local
63 optionSetter.setOptionValue("free-bytes", "2000"); in testSetUpSkip()
64 optionSetter.setOptionValue("partition", "/p"); in testSetUpSkip()
65 optionSetter.setOptionValue("file-name", "f"); in testSetUpSkip()
75 OptionSetter optionSetter = new OptionSetter(mDeviceStorageFiller); in testTearDown() local
76 optionSetter.setOptionValue("free-bytes", "24"); in testTearDown()
[all …]
DRunHostCommandTargetPreparerTest.java74 final OptionSetter optionSetter = new OptionSetter(mPreparer); in testSetUp() local
75 optionSetter.setOptionValue("host-setup-command", command); in testSetUp()
76 optionSetter.setOptionValue("host-cmd-timeout", "10"); in testSetUp()
96 final OptionSetter optionSetter = new OptionSetter(mPreparer); in testSetUp_withWorkDir() local
97 optionSetter.setOptionValue("work-dir", workDir); in testSetUp_withWorkDir()
98 optionSetter.setOptionValue("host-setup-command", command); in testSetUp_withWorkDir()
99 optionSetter.setOptionValue("host-cmd-timeout", "10"); in testSetUp_withWorkDir()
119 final OptionSetter optionSetter = new OptionSetter(mPreparer); in testTearDown() local
120 optionSetter.setOptionValue("host-teardown-command", command); in testTearDown()
121 optionSetter.setOptionValue("host-cmd-timeout", "10"); in testTearDown()
[all …]
DDeviceStringPusherTest.java47 OptionSetter optionSetter = new OptionSetter(mDeviceStringPusher); in testFail() local
48 optionSetter.setOptionValue("file-path", "file"); in testFail()
49 optionSetter.setOptionValue("file-content", "hi"); in testFail()
60 OptionSetter optionSetter = new OptionSetter(mDeviceStringPusher); in testDoesntExist() local
61 optionSetter.setOptionValue("file-path", "file"); in testDoesntExist()
62 optionSetter.setOptionValue("file-content", "hi"); in testDoesntExist()
75 OptionSetter optionSetter = new OptionSetter(mDeviceStringPusher); in testAlreadyExists() local
77 optionSetter.setOptionValue("file-path", "file"); in testAlreadyExists()
78 optionSetter.setOptionValue("file-content", "hi"); in testAlreadyExists()
DRestartSystemServerTargetPreparerTest.java81 OptionSetter optionSetter = new OptionSetter(mRestartSystemServerTargetPreparer); in testTearDown_restart() local
82 optionSetter.setOptionValue("restart-setup", "false"); in testTearDown_restart()
83 optionSetter.setOptionValue("restart-teardown", "true"); in testTearDown_restart()
103 OptionSetter optionSetter = new OptionSetter(mRestartSystemServerTargetPreparer); in testNone() local
104 optionSetter.setOptionValue("restart-setup", "false"); in testNone()
105 optionSetter.setOptionValue("restart-teardown", "false"); in testNone()
DAppSetupFuncTest.java67 OptionSetter optionSetter = new OptionSetter(appSetup); in testSetupTeardown() local
68 optionSetter.setOptionValue("reboot", "false"); in testSetupTeardown()
DTimeSetterTargetPreparerTest.java55 OptionSetter optionSetter = new OptionSetter(mTimeSetterTargetPreparer); in testSaveTime() local
56 optionSetter.setOptionValue("time", "555"); in testSaveTime()
/tools/tradefederation/core/tests/src/com/android/tradefed/host/
DLocalHostResourceManagerTest.java53 OptionSetter optionSetter = new OptionSetter(mHostResourceManager); in testSetupHostResource() local
54 optionSetter.setOptionValue( in testSetupHostResource()
64 OptionSetter optionSetter = new OptionSetter(mHostResourceManager); in testSetupHostResource_fileDoesNotExist() local
65 optionSetter.setOptionValue( in testSetupHostResource_fileDoesNotExist()
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfiguration.java565 private void internalInjectOptionValue(OptionSetter optionSetter, String optionName, in internalInjectOptionValue() argument
567 if (optionSetter == null) { in internalInjectOptionValue()
572 List<FieldDef> affectedFields = optionSetter.setOptionValue( in internalInjectOptionValue()
612 private void internalInjectOptionValue(OptionSetter optionSetter, String optionName, in internalInjectOptionValue() argument
615 if (optionSetter == null) { in internalInjectOptionValue()
620 if (!optionSetter.isMapOption(optionName)) { in internalInjectOptionValue()
621 internalInjectOptionValue(optionSetter, optionName, null, optionValue, null); in internalInjectOptionValue()
632 internalInjectOptionValue(optionSetter, optionName, in internalInjectOptionValue()
668 OptionSetter optionSetter = createOptionSetter(); in injectOptionValues() local
670 internalInjectOptionValue(optionSetter, optionDef.name, optionDef.key, optionDef.value, in injectOptionValues()
DGlobalConfiguration.java504 OptionSetter optionSetter = new OptionSetter(getAllConfigurationObjects()); in injectOptionValue() local
505 optionSetter.setOptionValue(optionName, optionKey, optionValue); in injectOptionValue()
/tools/tradefederation/core/src/com/android/tradefed/command/
DVerify.java62 ArgsOptionParser optionSetter = new ArgsOptionParser(verify); in main() local
63 optionSetter.parse(mainArgs); in main()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DJsonHttpTestResultReporterTest.java79 OptionSetter optionSetter = new OptionSetter(mReporter); in testSkipFailedRuns_set() local
80 optionSetter.setOptionValue(SKIP_FAILED_RUNS_OPTION, String.valueOf(true)); in testSkipFailedRuns_set()
DMetricsXMLResultReporterTest.java47 OptionSetter optionSetter = new OptionSetter(mResultReporter); in setUp() local
48 optionSetter.setOptionValue("metrics-folder", "/tmp"); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DGoogleApiClientUtilTest.java115 OptionSetter optionSetter = in testCreateCredential_useHostOptions() local
117 optionSetter.setOptionValue( in testCreateCredential_useHostOptions()
/tools/tradefederation/contrib/tests/src/com/android/regression/tests/
DMetricsXmlParserTest.java66 OptionSetter optionSetter = new OptionSetter(mResultReporter); in setUp() local
67 optionSetter.setOptionValue("metrics-folder", "/tmp"); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DAtraceCollectorTest.java370 OptionSetter optionSetter = new OptionSetter(atrace); in testMultipleDeviceBehavior() local
371 optionSetter.setOptionValue("categories", M_CATEGORIES); in testMultipleDeviceBehavior()