/platform_testing/libraries/health/runners/microbenchmark/tests/src/android/platform/test/microbenchmark/ |
D | MicrobenchmarkTest.java | 71 Bundle args = new Bundle(); in testIterationCount() local 72 args.putString("iterations", "10"); in testIterationCount() 73 Microbenchmark microbench = new Microbenchmark(BasicTest.class, args); in testIterationCount() 114 Bundle args = new Bundle(); in testMultipleIterationsWithRename() local 115 args.putString("iterations", "2"); in testMultipleIterationsWithRename() 116 args.putString("rename-iterations", "true"); in testMultipleIterationsWithRename() 117 LoggingMicrobenchmark loggingRunner = new LoggingMicrobenchmark(LoggingTest.class, args); in testMultipleIterationsWithRename() 150 Bundle args = new Bundle(); in testMultipleIterationsWithDifferentSuffix() local 151 args.putString("iterations", "2"); in testMultipleIterationsWithDifferentSuffix() 152 args.putString("rename-iterations", "true"); in testMultipleIterationsWithDifferentSuffix() [all …]
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | TotalPssMetricListener.java | 56 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 …]
|
D | ProcLoadListener.java | 63 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()
|
D | FreeMemListener.java | 40 public FreeMemListener(Bundle args, FreeMemHelper helper) { in FreeMemListener() argument 41 super(args, helper); in FreeMemListener() 49 Bundle args = getArgsBundle(); in setupAdditionalArgs() local 51 boolean isDropCache = Boolean.parseBoolean(args.getString(DROP_CACHE_ARG)); in setupAdditionalArgs()
|
D | ShowmapSnapshotListener.java | 77 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()
|
D | PinnerSnapshotListener.java | 43 public PinnerSnapshotListener(Bundle args, PinnerHelper helper) { in PinnerSnapshotListener() argument 44 super(args, helper); in PinnerSnapshotListener() 54 Bundle args = getArgsBundle(); in setupAdditionalArgs() local 55 String testOutputDir = args.getString(OUTPUT_DIR_KEY, DEFAULT_OUTPUT_DIR); in setupAdditionalArgs()
|
D | DumpsysServiceListener.java | 38 public DumpsysServiceListener(Bundle args, DumpsysServiceHelper helper) { in DumpsysServiceListener() argument 39 super(args, helper); in DumpsysServiceListener() 44 Bundle args = getArgsBundle(); in setupAdditionalArgs() local 45 String servicesString = args.getString(SERVICE_NAMES_KEY); in setupAdditionalArgs()
|
D | DumpsysMeminfoListener.java | 38 public DumpsysMeminfoListener(Bundle args, DumpsysMeminfoHelper helper) { in DumpsysMeminfoListener() argument 39 super(args, helper); in DumpsysMeminfoListener() 44 Bundle args = getArgsBundle(); in setupAdditionalArgs() local 45 String processesString = args.getString(PROCESS_NAMES_KEY); in setupAdditionalArgs()
|
/platform_testing/libraries/health/runners/longevity/host/tests/src/android/host/test/longevity/ |
D | LongevitySuiteTest.java | 63 Map<String, String> args = new HashMap(); in testDoNotInvalidateTestRuns() local 64 args.put(LongevitySuite.INVALIDATE_OPTION, "false"); in testDoNotInvalidateTestRuns() 65 args.put(LongevitySuite.QUITTER_OPTION, "true"); in testDoNotInvalidateTestRuns() 68 FailingTestSuite.class, new AllDefaultPossibilitiesBuilder(true), args); in testDoNotInvalidateTestRuns() 77 Map<String, String> args = new HashMap(); in testInvalidateTestRuns() local 78 args.put(LongevitySuite.INVALIDATE_OPTION, "true"); in testInvalidateTestRuns() 79 args.put(LongevitySuite.QUITTER_OPTION, "true"); in testInvalidateTestRuns() 80 args.put(ITERATIONS_OPTION_NAME, String.valueOf(10)); in testInvalidateTestRuns() 83 FailingTestSuite.class, new AllDefaultPossibilitiesBuilder(true), args); in testInvalidateTestRuns() 109 Map<String, String> args = new HashMap(); in testTimeoutTestRuns() local [all …]
|
/platform_testing/libraries/health/composers/host/src/android/host/test/composer/ |
D | Shuffle.java | 26 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()
|
D | Iterate.java | 25 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()
|
D | ShuffleBase.java | 41 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
|
D | Compose.java | 29 return (args, list) -> next.apply(args, this.apply(args, list)); in andThen()
|
/platform_testing/libraries/health/utils/tests/src/android/platform/test/util/ |
D | HealthRunnerBuilderTest.java | 62 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/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | BusinessLogicExecutor.java | 52 public boolean executeCondition(String method, String... args) { in executeCondition() argument 53 logDebug("Executing condition: %s", formatExecutionString(method, args)); in executeCondition() 55 return (Boolean) invokeMethod(method, args); in executeCondition() 60 Arrays.toString(args)), e); in executeCondition() 71 public void executeAction(String method, String... args) { in executeAction() argument 72 logDebug("Executing action: %s", formatExecutionString(method, args)); in executeAction() 74 invokeMethod(method, args); in executeAction() 79 Arrays.toString(args)), e); in executeAction() 99 protected abstract String formatExecutionString(String method, String... args); in formatExecutionString() argument 102 protected String[] formatArgs(String[] args) { in formatArgs() argument [all …]
|
D | MultiLog.java | 29 public void logInfo(String logTag, String format, Object... args); in logInfo() argument 37 public void logDebug(String logTag, String format, Object... args); in logDebug() argument 45 public void logWarn(String logTag, String format, Object... args); in logWarn() argument 53 public void logError(String logTag, String format, Object... args); in logError() argument
|
/platform_testing/libraries/health/composers/host/tests/src/android/host/test/composer/ |
D | IterateTest.java | 32 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()
|
D | ShuffleTest.java | 36 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/ |
D | IterateTest.java | 33 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()
|
D | ShuffleTest.java | 37 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/ |
D | Iterate.java | 26 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()
|
D | Shuffle.java | 28 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/device-collectors/src/main/platform-collectors/src/android/device/collectors/ |
D | CpuUsageListener.java | 45 Bundle args = getArgsBundle(); in setupAdditionalArgs() local 47 if ("true".equals(args.getString(DISABLE_PER_PACKAGE))) { in setupAdditionalArgs() 51 if ("true".equals(args.getString(DISABLE_TOTAL_PKG))) { in setupAdditionalArgs() 55 if ("true".equals(args.getString(ENABLE_CPU_UTILIZATION))) { in setupAdditionalArgs()
|
D | TimeInStateListener.java | 54 public TimeInStateListener(Bundle args, TimeInStateHelper helper) { in TimeInStateListener() argument 55 super(args, helper); in TimeInStateListener() 60 Bundle args = getArgsBundle(); in setupAdditionalArgs() local 61 String keyArgString = args.getString(ARG_KEY); in setupAdditionalArgs()
|
/platform_testing/tests/example/mobly/ |
D | hello_world_test.py | 44 def _create_config_file(args): argument 57 log_path = args.log_path if args.log_path else mobly_dir 59 serial=args.device_serial, 129 args, unrec_argv = parser.parse_known_args(other_args) 130 logging.info('Parsed arguments: %s; Not parsed arguments: %s', args, 132 return local_args, args, filtered_argv 149 local_args, args, filtered_argv = _parse_arguments(sys.argv[1:]) variable 151 if not args.config:
|