Home
last modified time | relevance | path

Searched refs:mOptionSetter (Results 1 – 20 of 20) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/
DPerfettoGenericPostProcessorTest.java62 private OptionSetter mOptionSetter; field in PerfettoGenericPostProcessorTest
81 mOptionSetter = new OptionSetter(mProcessor); in setUp()
91 mOptionSetter.setOptionValue(PREFIX_OPTION, PREFIX_OPTION_VALUE); in testNoMetricsByDefault()
92 mOptionSetter.setOptionValue(INDEX_OPTION, "perfetto.protos.AndroidStartupMetric.startup"); in testNoMetricsByDefault()
113 mOptionSetter.setOptionValue(PREFIX_OPTION, PREFIX_OPTION_VALUE); in testMetricsFilterWithRegEx()
114 mOptionSetter.setOptionValue(INDEX_OPTION, "perfetto.protos.AndroidStartupMetric.startup"); in testMetricsFilterWithRegEx()
115 mOptionSetter.setOptionValue(REGEX_OPTION_VALUE, "android_startup-startup-1.*"); in testMetricsFilterWithRegEx()
140 mOptionSetter.setOptionValue(PREFIX_OPTION, PREFIX_OPTION_VALUE); in testMetricsFilterWithRegExAndReplacePrefix()
141 mOptionSetter.setOptionValue(INDEX_OPTION, "perfetto.protos.AndroidStartupMetric.startup"); in testMetricsFilterWithRegExAndReplacePrefix()
142 mOptionSetter.setOptionValue(REGEX_OPTION_VALUE, "android_startup-startup-1.*"); in testMetricsFilterWithRegExAndReplacePrefix()
[all …]
DStatsdGenericPostProcessorTest.java59 private OptionSetter mOptionSetter; field in StatsdGenericPostProcessorTest
86 mOptionSetter = new OptionSetter(mProcessor); in setUp()
105 mOptionSetter.setOptionValue(PREFIX_OPTION, REPORT_PREFIX_APP_START); in testParsingTestMetrics()
125 mOptionSetter.setOptionValue(PREFIX_OPTION, REPORT_PREFIX_APP_START); in testParsingRunMetrics()
151 mOptionSetter.setOptionValue(PREFIX_OPTION, REPORT_PREFIX_APP_START); in testMultipleReports()
152 mOptionSetter.setOptionValue(PREFIX_OPTION, REPORT_PREFIX_APP_CRASH); in testMultipleReports()
193 mOptionSetter.setOptionValue(PREFIX_OPTION, REPORT_PREFIX_APP_START); in testExtraReportsIgnored()
232 mOptionSetter.setOptionValue(PREFIX_OPTION, REPORT_PREFIX_APP_START); in testInvalidReportIgnored()
233 mOptionSetter.setOptionValue(PREFIX_OPTION, REPORT_PREFIX_BAD); in testInvalidReportIgnored()
292 mOptionSetter.setOptionValue(PREFIX_OPTION, reportPrefix); in testParsingLogic()
[all …]
DStatsdEventMetricPostProcessorTest.java61 private OptionSetter mOptionSetter; field in StatsdEventMetricPostProcessorTest
81 mOptionSetter = new OptionSetter(mProcessor); in setUp()
90 mOptionSetter.setOptionValue("statsd-report-data-prefix", REPORT_PREFIX); in setUp()
100 mOptionSetter.setOptionValue( in testFormattingSingleAtom()
102 mOptionSetter.setOptionValue( in testFormattingSingleAtom()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DAtraceCollectorTest.java52 private OptionSetter mOptionSetter; field in AtraceCollectorTest
72 mOptionSetter = new OptionSetter(mAtrace); in setUp()
73 mOptionSetter.setOptionValue("categories", M_CATEGORIES); in setUp()
138 mOptionSetter.setOptionValue("compress-dump", "false"); in testStartsAtraceOnSetupNoCompression()
189 mOptionSetter.setOptionValue("categories", freqCategory); in testStartsAtraceOnSetupMultipleCategoriesOption()
190 mOptionSetter.setOptionValue("categories", schedCategory); in testStartsAtraceOnSetupMultipleCategoriesOption()
268 mOptionSetter.setOptionValue("preserve-ondevice-log", "true"); in testPreserveFileOnDeviceOption()
332 mOptionSetter.setOptionValue("compress-dump", "false"); in testUploadsLogWithoutCompression()
408 mOptionSetter.setOptionValue("post-process-binary", mDummyBinary.getAbsolutePath()); in testExecutesPostProcessPar()
409 mOptionSetter.setOptionValue("post-process-input-file-key", "TRACEF"); in testExecutesPostProcessPar()
[all …]
DTraceCmdCollectorTest.java43 private OptionSetter mOptionSetter; field in TraceCmdCollectorTest
59 mOptionSetter = new OptionSetter(mTraceCmd); in setUp()
60 mOptionSetter.setOptionValue("categories", mCategories); in setUp()
102 mOptionSetter.setOptionValue("trace-cmd-binary", mTraceCmdPath); in testStartsAtraceAndTraceCmdOptions()
103 mOptionSetter.setOptionValue("trace-cmd-recording-args", mTraceCmdOptions); in testStartsAtraceAndTraceCmdOptions()
134 mOptionSetter.setOptionValue("trace-cmd-binary", mTraceCmdPath); in testStartsAtraceAndTraceCmdFails()
164 mOptionSetter.setOptionValue("trace-cmd-binary", "trc"); in testStopsTraceCmdDuringTearDown()
188 mOptionSetter.setOptionValue("trace-cmd-binary", "trace-cmd"); in testUploadslogWithRawKernelBuffer()
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterCommandLauncherTest.java68 private OptionSetter mOptionSetter; field in ClusterCommandLauncherTest
97 mOptionSetter = new OptionSetter(mLauncher); in setUp()
98 mOptionSetter.setOptionValue("cluster:root-dir", mRootDir.getAbsolutePath()); in setUp()
99 mOptionSetter.setOptionValue("cluster:env-var", "TF_WORK_DIR", mRootDir.getAbsolutePath()); in setUp()
122 mOptionSetter.setOptionValue("cluster:jvm-option", "-Xmx1g"); in testRun()
123 mOptionSetter.setOptionValue("cluster:env-var", "TF_PATH", tfPathValue); in testRun()
124 mOptionSetter.setOptionValue("cluster:java-property", "FOO", "${TF_WORK_DIR}/foo"); in testRun()
125 mOptionSetter.setOptionValue("cluster:original-command-line", "original-command-line"); in testRun()
126 mOptionSetter.setOptionValue("cluster:command-line", "command-line"); in testRun()
173 mOptionSetter.setOptionValue("cluster:env-var", "TF_PATH", mTfPath.getAbsolutePath()); in testRun_withSetupScripts()
[all …]
DClusterCommandLauncherFuncTest.java61 private OptionSetter mOptionSetter; field in ClusterCommandLauncherFuncTest
74 mOptionSetter = new OptionSetter(mLauncher); in setUp()
75 mOptionSetter.setOptionValue("cluster:root-dir", mRootDir.getAbsolutePath()); in setUp()
76 mOptionSetter.setOptionValue("cluster:env-var", "TF_WORK_DIR", mRootDir.getAbsolutePath()); in setUp()
90 mOptionSetter.setOptionValue("cluster:env-var", "TF_PATH", mRootDir.getAbsolutePath()); in testRun_withLegacyTradefed()
91 mOptionSetter.setOptionValue("cluster:use-subprocess-reporting", "true"); in testRun_withLegacyTradefed()
92 mOptionSetter.setOptionValue("cluster:command-line", LEGACY_TRADEFED_COMMAND); in testRun_withLegacyTradefed()
DClusterLogSaverTest.java65 private OptionSetter mOptionSetter; field in ClusterLogSaverTest
75 mOptionSetter = new OptionSetter(mClusterLogSaver); in setUp()
76 mOptionSetter.setOptionValue("cluster:root-dir", mWorkDir.getAbsolutePath()); in setUp()
77 mOptionSetter.setOptionValue("cluster:request-id", REQUEST_ID); in setUp()
78 mOptionSetter.setOptionValue("cluster:command-id", COMMAND_ID); in setUp()
227 mOptionSetter.setOptionValue("cluster:output-file-upload-url", outputFileUploadUrl); in testInvocationEnded()
228 mOptionSetter.setOptionValue("cluster:output-file-pattern", ".*\\.html"); in testInvocationEnded()
229 mOptionSetter.setOptionValue("cluster:context-file-pattern", ".*\\.ctx"); in testInvocationEnded()
230 mOptionSetter.setOptionValue("cluster:retry-command-line", retryCommandLine); in testInvocationEnded()
268 mOptionSetter.setOptionValue("cluster:context-file-pattern", ".*\\.ctx"); in testInvocationEnded_uploadError()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/
DUserCheckerTest.java63 OptionSetter mOptionSetter = new OptionSetter(checker); in testSwitchIsSuccess() local
64 mOptionSetter.setOptionValue("user-type", "system"); in testSwitchIsSuccess()
91 OptionSetter mOptionSetter = new OptionSetter(checker); in testCreateIsSuccess() local
92 mOptionSetter.setOptionValue("user-type", "secondary"); in testCreateIsSuccess()
120 OptionSetter mOptionSetter = new OptionSetter(checker); in testCreateCleanup() local
121 mOptionSetter.setOptionValue("user-type", "secondary"); in testCreateCleanup()
122 mOptionSetter.setOptionValue("user-cleanup", "true"); in testCreateCleanup()
152 OptionSetter mOptionSetter = new OptionSetter(checker); in testCreateCleanup_cleanupFail() local
153 mOptionSetter.setOptionValue("user-type", "secondary"); in testCreateCleanup_cleanupFail()
154 mOptionSetter.setOptionValue("user-cleanup", "true"); in testCreateCleanup_cleanupFail()
[all …]
DDeviceStorageStatusCheckerTest.java36 private OptionSetter mOptionSetter; field in DeviceStorageStatusCheckerTest
42 mOptionSetter = new OptionSetter(mChecker); in setup()
43 mOptionSetter.setOptionValue("partition", "/data"); in setup()
44 mOptionSetter.setOptionValue("partition", "/data2"); in setup()
74 mOptionSetter.setOptionValue("minimal-storage-bytes", "104857600"); // 100MB in testNotEnoughDeviceStorageWithGivenStorageParameter()
87 mOptionSetter.setOptionValue("minimal-storage-bytes", "104857600"); // 100MB in testEnoughDeviceStorageWithGivenStorageParameter()
DDeviceSettingCheckerTest.java39 private OptionSetter mOptionSetter; field in DeviceSettingCheckerTest
45 mOptionSetter = new OptionSetter(mChecker); in setup()
103 mOptionSetter.setOptionValue("ignore-global-setting", "wifi_on"); in testIgnoredSettings()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DRunHostScriptTargetPreparerTest.java68 private OptionSetter mOptionSetter; field in RunHostScriptTargetPreparerTest
87 mOptionSetter = new OptionSetter(mPreparer); in setUp()
111 mOptionSetter.setOptionValue("script-file", mScriptFile.getAbsolutePath()); in testSetUp()
112 mOptionSetter.setOptionValue("script-timeout", "10"); in testSetUp()
124 mOptionSetter.setOptionValue("work-dir", mWorkDir.getAbsolutePath()); in testSetUp_workingDir()
125 mOptionSetter.setOptionValue("script-file", mScriptFile.getName()); // relative in testSetUp_workingDir()
134 mOptionSetter.setOptionValue("script-file", mScriptFile.getName()); // relative in testSetUp_findFile()
143 mOptionSetter.setOptionValue("script-file", "unknown.sh"); in testSetUp_fileNotFound()
149 mOptionSetter.setOptionValue("script-file", mScriptFile.getAbsolutePath()); in testSetUp_executionError()
157 mOptionSetter.setOptionValue("script-file", mScriptFile.getAbsolutePath()); in testSetUp_pathVariable()
DSwitchUserTargetPreparerTest.java49 private OptionSetter mOptionSetter; field in SwitchUserTargetPreparerTest
55 mOptionSetter = new OptionSetter(mSwitchUserTargetPreparer); in setUp()
61 mOptionSetter.setOptionValue("user-type", "primary"); in testSetUpRunAsPrimary_ifAlreadyInPrimary_noSwitch()
81 mOptionSetter.setOptionValue("user-type", "system"); in testSetUpRunAsSystem_ifAlreadyInSystem_noSwitch()
100 mOptionSetter.setOptionValue("user-type", "primary"); in testSetUpRunAsPrimary_ifNotInPrimary_switchToPrimary()
120 mOptionSetter.setOptionValue("user-type", "guest"); in testSetUpRunAsGuest_ifNotInGuest_switchToGuest()
140 mOptionSetter.setOptionValue("user-type", "system"); in testSetUpRunAsSystem_ifNotInSystem_switchToSystem()
160 mOptionSetter.setOptionValue("user-type", "system"); in testTearDown_ifStartedInSecondary_switchesBackToSecondary()
201 mOptionSetter.setOptionValue("user-type", "primary"); in testSetUp_ifSwitchFails_throwsTargetSetupError()
DPushFilePreparerTest.java56 private OptionSetter mOptionSetter = null; field in PushFilePreparerTest
65 mOptionSetter = new OptionSetter(mPreparer); in setUp()
81 mOptionSetter.setOptionValue("push-file", "/noexist", "/data/"); in testLocalNoExist()
82 mOptionSetter.setOptionValue("post-push", "ls /"); in testLocalNoExist()
97 mOptionSetter.setOptionValue("push-file", "/bin/sh", "/noexist/"); in testRemoteNoExist()
98 mOptionSetter.setOptionValue("post-push", "ls /"); in testRemoteNoExist()
127 mOptionSetter.setOptionValue("push-file", "perf_test", "/data/local/tmp/"); in testPushFile_RemoteIsDir()
151 mOptionSetter.setOptionValue("push-file", "perf_test", "/data/local/tmp/perf_test1"); in testPushFile_duplicateKey()
152 mOptionSetter.setOptionValue("push-file", "perf_test", "/data/local/tmp/perf_test2"); in testPushFile_duplicateKey()
182 mOptionSetter.setOptionValue("push-file", "perf_test", "/data/local/tmp/"); in testPushDir_RemoteIsDir()
[all …]
DAoaTargetPreparerTest.java56 private OptionSetter mOptionSetter; field in AoaTargetPreparerTest
69 mOptionSetter = new OptionSetter(mPreparer); in setUp()
80 mOptionSetter.setOptionValue("action", "wake"); in testSetUp()
81 mOptionSetter.setOptionValue("device-timeout", "1s"); in testSetUp()
82 mOptionSetter.setOptionValue("wait-for-device-online", "true"); in testSetUp()
102 mOptionSetter.setOptionValue("action", "wake"); in testSetUp_noDevice()
109 mOptionSetter.setOptionValue("action", "wake"); in testSetUp_skipDeviceCheck()
110 mOptionSetter.setOptionValue("wait-for-device-online", "false"); // device check disabled in testSetUp_skipDeviceCheck()
DPerfettoPreparerTest.java41 private OptionSetter mOptionSetter = null; field in PerfettoPreparerTest
49 mOptionSetter = new OptionSetter(mPreparer); in setUp()
63 mOptionSetter.setOptionValue("binary-perfetto-config", "dummy.txt"); in testLocalPerfettoBinaryNoExist()
79 mOptionSetter.setOptionValue("binary-perfetto-config", perfettoTextFile.getPath()); in testLocalPerfettoBinaryValid()
DGkiDeviceFlashPreparerTest.java61 private OptionSetter mOptionSetter; field in GkiDeviceFlashPreparerTest
98 mOptionSetter = new OptionSetter(mPreparer); in setUp()
DGsiDeviceFlashPreparerTest.java61 private OptionSetter mOptionSetter; field in GsiDeviceFlashPreparerTest
98 mOptionSetter = new OptionSetter(mPreparer); in setUp()
/tools/tradefederation/contrib/tests/src/com/android/scenario/
DAppSetupTest.java46 private OptionSetter mOptionSetter; field in AppSetupTest
57 mOptionSetter = new OptionSetter(mAppSetup); in setUp()
63 mOptionSetter.setOptionValue(DROP_CACHE_OPTION, String.valueOf(true)); in testDropCachesOption_set()
78 mOptionSetter.setOptionValue(KILL_APPS_OPTION, "app1"); in testKillAppsOption()
79 mOptionSetter.setOptionValue(KILL_APPS_OPTION, "app2"); in testKillAppsOption()
93 mOptionSetter.setOptionValue("disable", String.valueOf(true)); in testDisableOption()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DTestMappingSuiteRunnerTest.java82 private OptionSetter mOptionSetter; field in TestMappingSuiteRunnerTest
107 mOptionSetter = new OptionSetter(mRunner); in setUp()
108 mOptionSetter.setOptionValue("suite-config-prefix", "suite"); in setUp()
196 mOptionSetter.setOptionValue("include-filter", "test1"); in testLoadTests_conflictTestGroup()
197 mOptionSetter.setOptionValue("test-mapping-test-group", "group"); in testLoadTests_conflictTestGroup()
207 mOptionSetter.setOptionValue("include-filter", "test1"); in testLoadTests_conflictOptions()
208 mOptionSetter.setOptionValue("test-mapping-path", "path1"); in testLoadTests_conflictOptions()
224 mOptionSetter.setOptionValue("include-filter", "test1"); in testLoadTests_conflictKeyword()
225 mOptionSetter.setOptionValue("test-mapping-keyword", "key1"); in testLoadTests_conflictKeyword()
236 mOptionSetter.setOptionValue("test-mapping-test-group", "postsubmit"); in testLoadTests_testMappingsZip()
[all …]