/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/perfetto/ |
D | ArgsTest.kt | 29 val args = in <lambda>() constant 39 Truth.assertThat(args.getChild("invalidChild")).isNull() in <lambda>() 40 Truth.assertThat(args.getChild("int")?.getInt()).isEqualTo(10) in <lambda>() 41 Truth.assertThat(args.getChild("long")?.getLong()).isEqualTo(100L) in <lambda>() 42 Truth.assertThat(args.getChild("float")?.getFloat()).isEqualTo(10.1f) in <lambda>() 43 Truth.assertThat(args.getChild("string")?.getString()).isEqualTo("text") in <lambda>() 45 assertThrows<ClassCastException> { args.getChild("int")?.getString() } in <lambda>() 50 val args = makeArgs(listOf(Pair("child.grandChild0", 10), Pair("child.grandChild1", 11))) in <lambda>() constant 52 Truth.assertThat(args.getChild("invalidChild")).isNull() in <lambda>() 53 Truth.assertThat(args.getChild("child")).isNotNull() in <lambda>() [all …]
|
/platform_testing/libraries/health/runners/microbenchmark/tests/src/android/platform/test/microbenchmark/ |
D | MicrobenchmarkTest.java | 91 Bundle args = new Bundle(); in testIterationCount() local 92 args.putString("iterations", "10"); in testIterationCount() 93 Microbenchmark microbench = new Microbenchmark(BasicTest.class, args); in testIterationCount() 135 Bundle args = new Bundle(); in testMultipleIterationsWithRename() local 136 args.putString("iterations", "2"); in testMultipleIterationsWithRename() 137 args.putString("rename-iterations", "true"); in testMultipleIterationsWithRename() 138 LoggingMicrobenchmark loggingRunner = new LoggingMicrobenchmark(LoggingTest.class, args); in testMultipleIterationsWithRename() 173 Bundle args = new Bundle(); in testMultipleIterationsWithDifferentSuffix() local 174 args.putString("iterations", "2"); in testMultipleIterationsWithDifferentSuffix() 175 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 | ShowmapSnapshotListener.java | 80 public ShowmapSnapshotListener(Bundle args, ShowmapSnapshotHelper helper) { in ShowmapSnapshotListener() argument 81 super(args, helper); in ShowmapSnapshotListener() 91 Bundle args = getArgsBundle(); in setupAdditionalArgs() local 92 String testOutputDir = args.getString(OUTPUT_DIR_KEY, DEFAULT_OUTPUT_DIR); in setupAdditionalArgs() 94 String procsString = args.getString(PROCESS_NAMES_KEY); in setupAdditionalArgs() 97 String metricNameIndexArg = args.getString(METRIC_NAME_INDEX); in setupAdditionalArgs() 112 String dropCacheValue = args.getString(DROP_CACHE_KEY); in setupAdditionalArgs() 122 boolean runGcPrecollect = "true".equals(args.getString(GC_PRECOLLECT_KEY, "false")); in setupAdditionalArgs() 125 boolean runCountThreads = "true".equals(args.getString(COUNT_THREADS_KEY, "false")); in setupAdditionalArgs()
|
D | MemLeaksListener.java | 42 public MemLeaksListener(Bundle args, MemLeaksHelper helper) { in MemLeaksListener() argument 43 super(args, helper); in MemLeaksListener() 48 Bundle args = getArgsBundle(); in setupAdditionalArgs() local 50 String diffOnFlagString = args.getString(DIFF_ON, "true"); in setupAdditionalArgs() 53 String collectAllFlagString = args.getString(COLLECT_ALL_PROCESSES, "true"); in setupAdditionalArgs() 57 String procsString = args.getString(PROCESS_NAMES_KEY, ""); in setupAdditionalArgs()
|
D | PerfettoListener.java | 50 public PerfettoListener(Bundle args, PerfettoTracingStrategy strategy) { in PerfettoListener() argument 51 super(args); in PerfettoListener() 86 Bundle args = getArgsBundle(); in setupAdditionalArgs() local 89 initTracingStrategy(args); in setupAdditionalArgs() 92 mTracingStrategy.setup(args); in setupAdditionalArgs() 95 private void initTracingStrategy(Bundle args) { in initTracingStrategy() argument 97 if (Boolean.parseBoolean(args.getString(COLLECT_PER_RUN))) { in initTracingStrategy() 99 } else if (Boolean.parseBoolean(args.getString(COLLECT_PER_CLASS))) { in initTracingStrategy()
|
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()
|
/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/flicker/utils/src/android/tools/traces/parsers/perfetto/ |
D | TransitionsTraceParser.kt | 92 val args = Args.build(transitionRows) in <lambda>() constant 94 id = args.getChild("id")?.getInt() ?: error("Missing transition id"), in <lambda>() 97 createTime = args.getChild("create_time_ns")?.getLong()?.toTimestamp(), in <lambda>() 98 sendTime = args.getChild("send_time_ns")?.getLong()?.toTimestamp(), in <lambda>() 99 abortTime = args.getChild("wm_abort_time_ns")?.getLong()?.toTimestamp(), in <lambda>() 100 finishTime = args.getChild("finish_time_ns")?.getLong()?.toTimestamp(), in <lambda>() 102 args in <lambda>() 106 startTransactionId = args.getChild("start_transaction_id")?.getLong(), in <lambda>() 107 finishTransactionId = args.getChild("finish_transaction_id")?.getLong(), in <lambda>() 108 type = args.getChild("type")?.getInt()?.toTransitionType(), in <lambda>() [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 | 23 protected int getIterationsArgument(Map<String, String> args) { in getIterationsArgument() argument 24 if (args.containsKey(getOptionName())) { in getIterationsArgument() 25 String iterations = args.get(getOptionName()); in getIterationsArgument() 38 protected OrderOptions getOrdersArgument(Map<String, String> args) { in getOrdersArgument() argument 40 if (args.containsKey(ORDER_OPTION_NAME)) { in getOrdersArgument() 41 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
|
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | BusinessLogicExecutor.java | 54 public boolean executeCondition(String method, String... args) { in executeCondition() argument 55 logDebug("Executing condition: %s", formatExecutionString(method, args)); in executeCondition() 57 return (Boolean) invokeMethod(method, args); in executeCondition() 62 Arrays.toString(args)), e); in executeCondition() 73 public void executeAction(String method, String... args) { in executeAction() argument 74 logDebug("Executing action: %s", formatExecutionString(method, args)); in executeAction() 76 invokeMethod(method, args); in executeAction() 81 Arrays.toString(args)), e); in executeAction() 101 protected abstract String formatExecutionString(String method, String... args); in formatExecutionString() argument 104 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/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/screenshot/ |
D | update_goldens.py | 42 args = parser.parse_args() 44 if not args.source_directory: 48 source_directory = os.path.normpath(args.source_directory) 61 for filename in os.listdir(args.source_directory): 66 for filename in os.listdir(args.source_directory): 70 pb_file = open(os.path.join(args.source_directory, filename), 'r') 93 args.source_directory, 95 dest_path = os.path.join(pathlib.Path.home(), args.android_build_top, golden_path)
|
/platform_testing/libraries/flicker/collector/src/android/tools/collectors/ |
D | DefaultUITraceListener.java | 51 DefaultUITraceListener(Bundle args, PerfettoTracingStrategy strategy) { in DefaultUITraceListener() argument 52 super(args, strategy); in DefaultUITraceListener() 57 Bundle args = getArgsBundle(); in setupAdditionalArgs() local 58 args.putString(PerfettoTracingStrategy.PERFETTO_CONFIG_TEXT_PROTO, "true"); in setupAdditionalArgs() 65 args.putString( in setupAdditionalArgs() 67 args.putString(PerfettoTracingStrategy.PERFETTO_CONFIG_TEXT_CONTENT, protoConfig); in setupAdditionalArgs()
|
/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()
|
/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/src/android/platform/test/composer/ |
D | Iterate.java | 24 protected int getIterationsArgument(Bundle args) { in getIterationsArgument() argument 25 return Integer.parseInt(args.getString(getOptionName(), String.valueOf(mDefaultValue))); in getIterationsArgument() 29 protected OrderOptions getOrdersArgument(Bundle args) { in getOrdersArgument() argument 30 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/scripts/map_tests/ |
D | map_tests.py | 45 args = parser.parse_args() variable 47 INFO_PATH = args.module_info or (os.environ["ANDROID_PRODUCT_OUT"] + "/module-info.json") 48 MAP_DIR = args.dir or os.getcwd() 49 TESTS_IN_DIR = args.tests_in or MAP_DIR 50 PRINT = args.print 51 WRITE = args.write 52 del args
|
/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()
|