Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 56) sorted by relevance

123

/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DTotalPssMetricListener.java56 public TotalPssMetricListener(Bundle args, TotalPssHelper helper) { in TotalPssMetricListener() argument
57 super(args, helper); in TotalPssMetricListener()
67 Bundle args = getArgsBundle(); in setupAdditionalArgs() local
68 String procsString = args.getString(PROCESS_NAMES_KEY); in setupAdditionalArgs()
77 if (args.getString(MIN_ITERATIONS_KEY) != null) { in setupAdditionalArgs()
78 mTotalPssHelper.setMinIterations(Integer.parseInt(args.getString(MIN_ITERATIONS_KEY))); in setupAdditionalArgs()
81 if (args.getString(MAX_ITERATIONS_KEY) != null) { in setupAdditionalArgs()
82 mTotalPssHelper.setMaxIterations(Integer.parseInt(args.getString(MAX_ITERATIONS_KEY))); in setupAdditionalArgs()
85 if (args.getString(SLEEP_TIME_KEY) != null) { in setupAdditionalArgs()
86 mTotalPssHelper.setSleepTime(Integer.parseInt(args.getString(SLEEP_TIME_KEY))); in setupAdditionalArgs()
[all …]
DProcLoadListener.java63 public ProcLoadListener(Bundle args, ProcLoadHelper helper) { in ProcLoadListener() argument
64 super(args, helper); in ProcLoadListener()
74 Bundle args = getArgsBundle(); in setupAdditionalArgs() local
76 if (args.getString(PROC_LOAD_THRESHOLD) != null) { in setupAdditionalArgs()
77 mProcLoadHelper.setProcLoadThreshold(Double.parseDouble(args in setupAdditionalArgs()
81 if (args.getString(PROC_THRESHOLD_TIMEOUT) != null) { in setupAdditionalArgs()
82 mProcLoadHelper.setProcLoadWaitTimeInMs(Long.parseLong(args in setupAdditionalArgs()
86 if (args.getString(PROC_LOAD_INTERVAL) != null) { in setupAdditionalArgs()
87 mProcLoadHelper.setProcLoadIntervalInMs(Long.parseLong(args in setupAdditionalArgs()
DShowmapSnapshotListener.java77 public ShowmapSnapshotListener(Bundle args, ShowmapSnapshotHelper helper) { in ShowmapSnapshotListener() argument
78 super(args, helper); in ShowmapSnapshotListener()
88 Bundle args = getArgsBundle(); in setupAdditionalArgs() local
89 String testOutputDir = args.getString(OUTPUT_DIR_KEY, DEFAULT_OUTPUT_DIR); in setupAdditionalArgs()
91 String procsString = args.getString(PROCESS_NAMES_KEY); in setupAdditionalArgs()
94 String metricNameIndexArg = args.getString(METRIC_NAME_INDEX); in setupAdditionalArgs()
110 String dropCacheValue = args.getString(DROP_CACHE_KEY); in setupAdditionalArgs()
DDumpsysMeminfoListener.java39 public DumpsysMeminfoListener(Bundle args, DumpsysMeminfoHelper helper) { in DumpsysMeminfoListener() argument
40 super(args, helper); in DumpsysMeminfoListener()
45 Bundle args = getArgsBundle(); in setupAdditionalArgs() local
46 String processesString = args.getString(PROCESS_NAMES_KEY); in setupAdditionalArgs()
DProcessShowmapListener.java53 public ProcessShowmapListener(Bundle args, ProcessShowmapHelper helper) { in ProcessShowmapListener() argument
54 super(args, helper); in ProcessShowmapListener()
61 Bundle args = getArgsBundle(); in onTestRunStart() local
62 String procsString = args.getString(PROCESS_NAMES_KEY); in onTestRunStart()
DJankListener.java44 public JankListener(Bundle args, JankCollectionHelper helper) { in JankListener() argument
45 super(args, helper); in JankListener()
51 Bundle args = getArgsBundle(); in setupAdditionalArgs() local
52 String pkgs = args.getString(PACKAGE_NAMES_KEY); in setupAdditionalArgs()
DBinderListener.java44 public BinderListener(Bundle args, BinderCollectionHelper helper) { in BinderListener() argument
45 super(args, helper); in BinderListener()
51 Bundle args = getArgsBundle(); in setupAdditionalArgs() local
52 String processes = args.getString(PROCESS_NAMES_KEY); in setupAdditionalArgs()
/platform_testing/libraries/health/composers/host/src/android/host/test/composer/
DShuffle.java26 protected boolean getShuffleArgument(Map<String, String> args) { in getShuffleArgument() argument
27 if (args.containsKey(SHUFFLE_OPTION_NAME)) { in getShuffleArgument()
28 return Boolean.parseBoolean(args.get(SHUFFLE_OPTION_NAME)); in getShuffleArgument()
35 protected long getSeedArgument(Map<String, String> args) { in getSeedArgument() argument
36 if (args.containsKey(SEED_OPTION_NAME)) { in getSeedArgument()
37 String seed = args.get(SEED_OPTION_NAME); in getSeedArgument()
DIterate.java25 protected int getIterationsArgument(Map<String, String> args) { in getIterationsArgument() argument
26 if (args.containsKey(getOptionName())) { in getIterationsArgument()
27 String iterations = args.get(getOptionName()); in getIterationsArgument()
40 protected OrderOptions getOrdersArgument(Map<String, String> args) { in getOrdersArgument() argument
42 if (args.containsKey(ORDER_OPTION_NAME)) { in getOrdersArgument()
43 String orderStr = args.get(ORDER_OPTION_NAME); in getOrdersArgument()
DShuffleBase.java41 public List<U> apply(T args, List<U> input) { in apply() argument
42 boolean shuffle = getShuffleArgument(args); in apply()
44 long seed = getSeedArgument(args); in apply()
51 protected abstract boolean getShuffleArgument(T args); in getShuffleArgument() argument
54 protected abstract long getSeedArgument(T args); in getSeedArgument() argument
DCompose.java29 return (args, list) -> next.apply(args, this.apply(args, list)); in andThen()
DIterateBase.java47 public List<U> apply(T args, List<U> input) { in apply() argument
48 int iterations = getIterationsArgument(args); in apply()
49 OrderOptions order = getOrdersArgument(args); in apply()
68 protected abstract int getIterationsArgument(T args); in getIterationsArgument() argument
71 protected abstract OrderOptions getOrdersArgument(T args); in getOrdersArgument() argument
/platform_testing/libraries/health/runners/longevity/host/tests/src/android/host/test/longevity/
DLongevitySuiteTest.java61 Map<String, String> args = new HashMap(); in testDoNotInvalidateTestRuns() local
62 args.put(LongevitySuite.INVALIDATE_OPTION, "false"); in testDoNotInvalidateTestRuns()
63 args.put(LongevitySuite.QUITTER_OPTION, "true"); in testDoNotInvalidateTestRuns()
66 FailingTestSuite.class, new AllDefaultPossibilitiesBuilder(true), args); in testDoNotInvalidateTestRuns()
75 Map<String, String> args = new HashMap(); in testInvalidateTestRuns() local
76 args.put(LongevitySuite.INVALIDATE_OPTION, "true"); in testInvalidateTestRuns()
77 args.put(LongevitySuite.QUITTER_OPTION, "true"); in testInvalidateTestRuns()
78 args.put(ITERATIONS_OPTION_NAME, String.valueOf(10)); in testInvalidateTestRuns()
81 FailingTestSuite.class, new AllDefaultPossibilitiesBuilder(true), args); in testInvalidateTestRuns()
112 Map<String, String> args = new HashMap(); in testChildAccounting() local
[all …]
/platform_testing/libraries/health/runners/microbenchmark/tests/src/android/platform/test/microbenchmark/
DMicrobenchmarkTest.java48 Bundle args = new Bundle(); in testIterationCount() local
49 args.putString("iterations", "10"); in testIterationCount()
50 Microbenchmark microbench = new Microbenchmark(BasicTest.class, args); in testIterationCount()
91 Bundle args = new Bundle(); in testMultipleIterationsWithRename() local
92 args.putString("iterations", "2"); in testMultipleIterationsWithRename()
93 args.putString("rename-iterations", "true"); in testMultipleIterationsWithRename()
94 LoggingMicrobenchmark loggingRunner = new LoggingMicrobenchmark(LoggingTest.class, args); in testMultipleIterationsWithRename()
127 Bundle args = new Bundle(); in testMultipleIterationsWithDifferentSuffix() local
128 args.putString("iterations", "2"); in testMultipleIterationsWithDifferentSuffix()
129 args.putString("rename-iterations", "true"); in testMultipleIterationsWithDifferentSuffix()
[all …]
/platform_testing/libraries/health/utils/tests/src/android/platform/test/util/
DHealthRunnerBuilderTest.java62 Bundle args = new Bundle(); in testUsingSpecifiedRunner_valid() local
63 args.putString(HealthRunnerBuilder.RUNNER_OPTION, SampleRunner.class.getName()); in testUsingSpecifiedRunner_valid()
64 Runner runner = (new HealthRunnerBuilder(args)).runnerForClass(SampleTest.class); in testUsingSpecifiedRunner_valid()
72 Bundle args = new Bundle(); in testUsingSpecifiedRunner_invalid_notClass() local
73 args.putString(HealthRunnerBuilder.RUNNER_OPTION, "notAClass"); in testUsingSpecifiedRunner_invalid_notClass()
74 Runner runner = (new HealthRunnerBuilder(args)).runnerForClass(SampleTest.class); in testUsingSpecifiedRunner_invalid_notClass()
81 Bundle args = new Bundle(); in testUsingSpecifiedRunner_invalid_notRunner() local
82 args.putString(HealthRunnerBuilder.RUNNER_OPTION, HealthRunnerBuilderTest.class.getName()); in testUsingSpecifiedRunner_invalid_notRunner()
83 Runner runner = (new HealthRunnerBuilder(args)).runnerForClass(SampleTest.class); in testUsingSpecifiedRunner_invalid_notRunner()
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/
DCpuUsageListener.java47 Bundle args = getArgsBundle(); in setupAdditionalArgs() local
49 if ("true".equals(args.getString(DISABLE_PER_PACKAGE))) { in setupAdditionalArgs()
53 if ("true".equals(args.getString(DISABLE_PER_FREQ))) { in setupAdditionalArgs()
57 if ("true".equals(args.getString(DISABLE_TOTAL_PKG))) { in setupAdditionalArgs()
61 if ("true".equals(args.getString(DISABLE_TOTAL_FREQ))) { in setupAdditionalArgs()
65 if ("true".equals(args.getString(ENABLE_CPU_UTILIZATION))) { in setupAdditionalArgs()
/platform_testing/libraries/health/composers/host/tests/src/android/host/test/composer/
DIterateTest.java32 Map<String, String> args = new HashMap<>(); in build() local
34 args.put(IterateTestBase.ITERATIONS_OPTION_NAME, String.valueOf(mIterations)); in build()
37 args.put( in build()
42 args.put(IterateTestBase.ORDER_OPTION_NAME, mOrder); in build()
44 return args; in build()
DShuffleTest.java36 Map<String, String> args = new HashMap<>(); in getArguments() local
37 args.put(SHUFFLE_OPTION_NAME, String.valueOf(shuffle)); in getArguments()
38 args.put(SEED_OPTION_NAME, String.valueOf(seed)); in getArguments()
39 return args; in getArguments()
/platform_testing/libraries/health/composers/platform/tests/src/android/platform/test/composer/
DIterateTest.java33 Bundle args = new Bundle(); in build() local
35 args.putString(IterateTestBase.ITERATIONS_OPTION_NAME, String.valueOf(mIterations)); in build()
38 args.putString( in build()
43 args.putString(IterateTestBase.ORDER_OPTION_NAME, String.valueOf(mOrder)); in build()
45 return args; in build()
DShuffleTest.java37 Bundle args = new Bundle(); in getArguments() local
38 args.putString(SHUFFLE_OPTION_NAME, String.valueOf(shuffle)); in getArguments()
39 args.putString(SEED_OPTION_NAME, String.valueOf(seed)); in getArguments()
40 return args; in getArguments()
/platform_testing/libraries/health/composers/platform/src/android/platform/test/composer/
DIterate.java26 protected int getIterationsArgument(Bundle args) { in getIterationsArgument() argument
27 return Integer.parseInt(args.getString(getOptionName(), String.valueOf(mDefaultValue))); in getIterationsArgument()
31 protected OrderOptions getOrdersArgument(Bundle args) { in getOrdersArgument() argument
32 String orderStr = args.getString(ORDER_OPTION_NAME, ORDER_DEFAULT_VALUE.toString()); in getOrdersArgument()
DShuffle.java28 protected boolean getShuffleArgument(Bundle args) { in getShuffleArgument() argument
30 args.getString(SHUFFLE_OPTION_NAME, String.valueOf(mShuffleDefaultValue))); in getShuffleArgument()
34 protected long getSeedArgument(Bundle args) { in getSeedArgument() argument
35 String seed = args.getString(SEED_OPTION_NAME, String.valueOf(new Random().nextLong())); in getSeedArgument()
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/
DProfileTest.java148 public TestableProfile(Bundle args) { in TestableProfile() argument
149 super(args); in TestableProfile()
153 protected Configuration getConfigurationArgument(Bundle args) { in getConfigurationArgument() argument
154 return TEST_CONFIGS.get(args.getString(PROFILE_OPTION_NAME)); in getConfigurationArgument()
158 protected Profile getProfile(Bundle args) { in getProfile() argument
159 return new TestableProfile(args); in getProfile()
163 Bundle args = new Bundle(); in getArguments() local
164 args.putString(PROFILE_OPTION_NAME, configName); in getArguments()
165 return args; in getArguments()
/platform_testing/libraries/device-collectors/src/main/java/android/device/preparers/
DGarbageCollectionPreparer.java70 public GarbageCollectionPreparer(Bundle args, GarbageCollectionHelper helper) { in GarbageCollectionPreparer() argument
71 super(args); in GarbageCollectionPreparer()
77 Bundle args = getArgsBundle(); in onTestRunStart() local
78 String procsString = args.getString(PROCESS_NAMES_KEY); in onTestRunStart()
85 String gcWaitString = args.getString(GC_WAIT_TIME_KEY); in onTestRunStart()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DBaseMetricListenerInstrumentedTest.java65 private BaseMetricListener createWithArgs(Bundle args) { in createWithArgs() argument
66 if (args == null) { in createWithArgs()
67 args = new Bundle(); in createWithArgs()
69 return new BaseMetricListener(args) { in createWithArgs()
137 Bundle args = new Bundle();
138 args.putString(BaseMetricListener.INCLUDE_FILTER_GROUP_KEY, "group1,group2");
139 mListener = createWithArgs(args);
185 Bundle args = new Bundle();
186 args.putString(BaseMetricListener.INCLUDE_FILTER_GROUP_KEY, "group4");
187 mListener = createWithArgs(args);
[all …]

123