/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | TotalPssMetricListener.java | 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() 89 if (args.getString(THRESHOLD_KEY) != null) { in setupAdditionalArgs() 90 mTotalPssHelper.setThreshold(Integer.parseInt(args.getString(THRESHOLD_KEY))); in setupAdditionalArgs()
|
D | ProcLoadListener.java | 76 if (args.getString(PROC_LOAD_THRESHOLD) != null) { in setupAdditionalArgs() 78 .getString(PROC_LOAD_THRESHOLD))); in setupAdditionalArgs() 81 if (args.getString(PROC_THRESHOLD_TIMEOUT) != null) { in setupAdditionalArgs() 83 .getString(PROC_THRESHOLD_TIMEOUT))); in setupAdditionalArgs() 86 if (args.getString(PROC_LOAD_INTERVAL) != null) { in setupAdditionalArgs() 88 .getString(PROC_LOAD_INTERVAL))); in setupAdditionalArgs()
|
D | ShowmapSnapshotListener.java | 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 | PerfettoTracingStrategy.java | 404 Boolean.parseBoolean(args.getString(PERFETTO_START_BG_WAIT, String.valueOf(true))); in setup() 409 args.getString(PERFETTO_CONFIG_ROOT_DIR_ARG, DEFAULT_PERFETTO_CONFIG_ROOT_DIR); in setup() 416 mIsConfigTextProto = Boolean.parseBoolean(args.getString(PERFETTO_CONFIG_TEXT_PROTO)); in setup() 422 args.getString( in setup() 426 mConfigContent = args.getString(PERFETTO_CONFIG_TEXT_CONTENT, ""); in setup() 429 args.getString(PERFETTO_CONFIG_OUTPUT_FILE_PREFIX, DEFAULT_PERFETTO_PREFIX); in setup() 432 Boolean.parseBoolean(args.getString(PERFETTO_PERSIST_PID_TRACK))); in setup() 435 args.getString(PERFETTO_PID_TRACK_ROOT, DEFAULT_PERFETTO_PID_TRACK_ROOT)); in setup() 442 Boolean.parseBoolean(args.getString(HOLD_WAKELOCK_WHILE_COLLECTING)); in setup() 447 Long.parseLong(args.getString(PERFETTO_WAIT_TIME_ARG, DEFAULT_WAIT_TIME_MSECS)); in setup() [all …]
|
D | SimpleperfListener.java | 124 mIsCollectPerRun = Boolean.parseBoolean(args.getString(COLLECT_PER_RUN)); in onTestRunStart() 128 mTestOutputRoot = args.getString(TEST_OUTPUT_ROOT, DEFAULT_OUTPUT_ROOT); in onTestRunStart() 131 mSkipTestFailureMetrics = "true".equals(args.getString(SKIP_TEST_FAILURE_METRICS)); in onTestRunStart() 134 mSubcommand = args.getString(SUBCOMMAND, DEFAULT_SUBCOMMAND); in onTestRunStart() 137 mArguments = args.getString(ARGUMENTS, DEFAULT_ARGUMENTS); in onTestRunStart() 140 String processes = args.getString(PROCESSES, ""); in onTestRunStart() 144 String events = args.getString(EVENTS, ""); in onTestRunStart() 148 mReport = "true".equals(args.getString(REPORT)); in onTestRunStart() 151 String[] symbolAndMetricKey = args.getString(REPORT_SYMBOLS, "").trim().split("\\s*;\\s*"); in onTestRunStart() 169 mTestIterations = Integer.parseInt(args.getString(TEST_ITERATIONS, "1")); in onTestRunStart() [all …]
|
D | LyricMemProfilerCollector.java | 50 String argString = args.getString(PROFILE_PERIOD_KEY); in setupAdditionalArgs() 56 argString = args.getString(PROFILE_PID_NAME_LIST); in setupAdditionalArgs() 60 argString = args.getString(PROFILE_METRIC_NAME_LIST); in setupAdditionalArgs()
|
D | MemLeaksListener.java | 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 | LogcatCollector.java | 193 if (args.getString(BEFORE_LOGCAT_DURATION_SECS) != null) { in setupAdditionalArgs() 195 .parseLong(args.getString(BEFORE_LOGCAT_DURATION_SECS)); in setupAdditionalArgs() 198 if (args.getString(COLLECT_ON_FAILURE_ONLY) != null) { in setupAdditionalArgs() 199 mCollectOnlyTestFailed = Boolean.parseBoolean(args.getString(COLLECT_ON_FAILURE_ONLY)); in setupAdditionalArgs() 202 if (args.getString(RETURN_LOGCAT_DIR) != null) { in setupAdditionalArgs() 204 .parseBoolean(args.getString(RETURN_LOGCAT_DIR)); in setupAdditionalArgs()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/perfetto/ |
D | ArgsTest.kt | 43 Truth.assertThat(args.getChild("string")?.getString()).isEqualTo("text") in <lambda>() 45 assertThrows<ClassCastException> { args.getChild("int")?.getString() } in <lambda>() 94 Truth.assertThat(args.getChild("child0")?.getString()).isEqualTo("0") in <lambda>() 95 Truth.assertThat(args.getChild("child1")?.getString()).isEqualTo("1") in <lambda>() 97 Truth.assertThat(args.getChildren("children")!![0].getString()).isEqualTo("10") in <lambda>() 101 args.getChildren("children")!![1].getChild("grandChildString")?.getString() in <lambda>() 105 args.getChildren("children")!![2].getChildren("grandChildren")!![0].getString() in <lambda>() 109 args.getChildren("children")!![2].getChildren("grandChildren")!![1].getString() in <lambda>() 113 Truth.assertThat(args.getChildren("otherChildren")!![0].getString()).isEqualTo("0") in <lambda>() 114 Truth.assertThat(args.getChildren("otherChildren")!![1].getString()).isEqualTo("1") in <lambda>()
|
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | BaseMetricListenerInstrumentedTest.java | 112 Boolean.parseBoolean(getArgsBundle().getString(SKIP_METRICS_OPTION)); in createWithArgs() 141 assertEquals(TEST_START_VALUE + "method", check.getString(TEST_START_KEY)); in testReportMetrics() 142 assertEquals(TEST_END_VALUE + "method", check.getString(TEST_END_KEY)); in testReportMetrics() 146 assertEquals(RUN_START_VALUE, resultBundle.getString(RUN_START_KEY)); in testReportMetrics() 147 assertEquals(RUN_END_VALUE, resultBundle.getString(RUN_END_KEY)); in testReportMetrics() 188 assertEquals(TEST_START_VALUE + "method", check.getString(TEST_START_KEY)); in testReportMetrics_withIncludeFilters() 189 assertEquals(TEST_END_VALUE + "method", check.getString(TEST_END_KEY)); in testReportMetrics_withIncludeFilters() 193 assertEquals(TEST_START_VALUE + "method3", check2.getString(TEST_START_KEY)); in testReportMetrics_withIncludeFilters() 194 assertEquals(TEST_END_VALUE + "method3", check2.getString(TEST_END_KEY)); in testReportMetrics_withIncludeFilters() 237 assertEquals(TEST_START_VALUE + "method2", check.getString(TEST_START_KEY)); in testReportMetrics_withIncludeFilters_multiGroup() [all …]
|
D | OatDumpCollectorTest.java | 84 assertThat(startMetrics.getString(filenameStartKey)).contains(filenameStartValue); in testCollectOatDump_onRunStartAndRunEnd() 85 assertThat(startMetrics.getString(odexFileSizeStartKey)).isNotNull(); in testCollectOatDump_onRunStartAndRunEnd() 86 assertThat(startMetrics.getString(reportedSizeStartKey)).isNotNull(); in testCollectOatDump_onRunStartAndRunEnd() 102 assertThat(endMetrics.getString(filenameEndKey)).contains(filenameEndValue); in testCollectOatDump_onRunStartAndRunEnd() 103 assertThat(endMetrics.getString(odexFileSizeEndKey)).isNotNull(); in testCollectOatDump_onRunStartAndRunEnd() 104 assertThat(endMetrics.getString(reportedSizeEndKey)).isNotNull(); in testCollectOatDump_onRunStartAndRunEnd()
|
D | ScheduledRunMetricListenerTest.java | 71 assertEquals(TEST_RUN_VALUE + "0", resultBundle.getString(TEST_RUN_KEY + "0")); in testPeriodicRun() 72 assertEquals(TEST_RUN_VALUE + "1", resultBundle.getString(TEST_RUN_KEY + "1")); in testPeriodicRun() 73 assertEquals(TEST_RUN_VALUE + "2", resultBundle.getString(TEST_RUN_KEY + "2")); in testPeriodicRun()
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | GarbageCollectRule.java | 55 if (getArguments() != null && getArguments().getString(GC_APPS) != null) { in initGcHelper() 56 applications = getArguments().getString(GC_APPS).split(","); in initGcHelper() 73 if (getArguments() != null && getArguments().getString(GC_WAIT_TIME_MS) != null) { in garbageCollect() 74 waitTimeMs = Long.parseLong(getArguments().getString(GC_WAIT_TIME_MS)); in garbageCollect() 100 boolean gcRuleEnd = Boolean.parseBoolean(getArguments().getString(GC_RULE_END, "false")); in finished()
|
D | PhotoUploadRule.java | 57 photoCount = Integer.valueOf(getArguments().getString(PHOTO_COUNT, String.valueOf(5))); in starting() 58 photoTimeout = Long.valueOf(getArguments().getString(PHOTO_TIMEOUT, String.valueOf(10000))); in starting() 60 Long.valueOf(getArguments().getString(TAKE_PHOTO_DELAY, String.valueOf(1000))); in starting() 63 getArguments().getString(CAPTURE_VIDEO_DURATION, String.valueOf(30000))); in starting() 64 uploadPhoto = Boolean.valueOf(getArguments().getString(UPLOAD_PHOTO, String.valueOf(true))); in starting() 66 Boolean.valueOf(getArguments().getString(UPLOAD_VIDEO, String.valueOf(false))); in starting()
|
D | CoolDownRule.java | 75 getArguments().getString(DEVICE_TEMPERATURE_NAME_OPTION, "")); in starting() 80 mPollIntervalSecs = Long.valueOf(getArguments().getString(POLL_INTERVAL_OPTION, "30")); in starting() 81 mMaxWaitSecs = Long.valueOf(getArguments().getString(MAX_WAIT_OPTION, "1200")); in starting() 83 Boolean.valueOf(getArguments().getString(ABORT_ON_TIMEOUT_OPTION, "false")); in starting() 84 mPostIdleWaitSecs = Long.valueOf(getArguments().getString(POST_IDLE_WAIT_OPTION, "30")); in starting() 86 Integer.valueOf(getArguments().getString(TARGET_TEMPERATURE_OPTION, "35")); in starting()
|
D | CompilationFilterRule.java | 73 String filter = getArguments().getString(COMPILE_FILTER_OPTION); in finished() 77 .parseInt(getArguments().getString(PROFILE_SAVE_TIMEOUT, "5000")); in finished() 89 if (getArguments().getString(COMPILE_PACKAGE_NAMES_OPTION) != null) { in finished() 90 mApplications = getArguments().getString(COMPILE_PACKAGE_NAMES_OPTION).split(","); in finished()
|
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/ |
D | CpuUsageListener.java | 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()
|
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/samples/testing/ |
D | SampleExtraArgsSuite.java | 67 .getString( 99 .getString(TEST_LEVEL_OPTION, TEST_LEVEL_DEFAULT)); 123 InstrumentationRegistry.getArguments().getString(IN_TEST_ARG, IN_TEST_DEFAULT)); in testArgOverride() 136 InstrumentationRegistry.getArguments().getString(ARG_TO_CHECK_OPTION); in testArgIsAbsent() 140 InstrumentationRegistry.getArguments().getString(argToCheck)); in testArgIsAbsent()
|
/platform_testing/tests/perf/PerformanceAppTest/src/com/android/performanceapp/tests/ |
D | AppLaunchTests.java | 97 mTargetPackageName = args.getString(TARGETPACKAGE); in setUp() 99 mSimpleperfEvt = args.getString(SIMPLEPERF_EVT); in setUp() 100 mDispatcher = args.getString(DISPATCHER); in setUp() 102 mAtraceCategory = args.getString(ATRACE_CATEGORIES); in setUp() 109 mSimpleperfBin = args.getString(SIMPLEPERF_BIN); in setUp() 110 mSimpleperfEvt = args.getString(SIMPLEPERF_EVT); in setUp() 111 mSimpleperfDir = args.getString(SIMPLEPERF_DATA); in setUp() 113 mCustomActivityList = args.getString(ACTIVITYLIST); in setUp() 116 mTargetUrl = args.getString(TARGET_URL); in setUp() 118 mActivityList.add(args.getString(TARGET_URL)); in setUp() [all …]
|
/platform_testing/tests/perf/PerformanceLaunch/src/com/android/performanceLaunch/ |
D | DispatchActivity.java | 49 mActivityName = mExtras.getString("ACTIVITY_NAME"); in onCreate() 50 mSimpleperfBin = mExtras.getString("SIMPLEPERF_BIN"); in onCreate() 51 mSimpleperfEvt = mExtras.getString("SIMPLEPERF_EVT"); in onCreate() 52 mSimpleperfDir = mExtras.getString("SIMPLEPERF_DIR"); in onCreate()
|
/platform_testing/libraries/health/composers/platform/src/android/platform/test/composer/ |
D | Iterate.java | 25 return Integer.parseInt(args.getString(getOptionName(), String.valueOf(mDefaultValue))); in getIterationsArgument() 30 String orderStr = args.getString(ORDER_OPTION_NAME, ORDER_DEFAULT_VALUE.toString()); in getOrdersArgument()
|
D | Shuffle.java | 30 args.getString(SHUFFLE_OPTION_NAME, String.valueOf(mShuffleDefaultValue))); in getShuffleArgument() 35 String seed = args.getString(SEED_OPTION_NAME, String.valueOf(new Random().nextLong())); in getSeedArgument()
|
/platform_testing/tests/automotive/health/rules/src/android/platform/scenario/ |
D | HotAppStartupRunRule.java | 60 getArguments().getString(GO_HOME_PARAM_NAME, GO_HOME_DEFAULT)); in starting() 61 mAppPackage = getArguments().getString(LAUNCHER_PARAM_NAME, CARLAUNCHER_PACKAGE); in starting() 62 mAppActivity = getArguments().getString(APP_ACTIVITY_PARAM_NAME, APP_GRID_ACTIVITY); in starting()
|
/platform_testing/libraries/sts-common-util/device-side/src/com/android/sts/common/util/ |
D | StsExtraBusinessLogicTestCase.java | 50 InstrumentationRegistry.getArguments().getString("sts-dynamic-plan"); in getExtraBusinessLogics() 80 InstrumentationRegistry.getArguments().getString("sts-use-kernel-spl"); in shouldUseKernelSpl() 87 InstrumentationRegistry.getArguments().getString("sts-should-skip-mainline")); in shouldSkipMainlineTests() 99 InstrumentationRegistry.getArguments().getString("release-bulletin-spl"); in getReleaseBulletinSpl()
|
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | BusinessLogicFactory.java | 111 String authStatus = root.getString(AUTHENTICATION_STATUS); in createBL() 119 bl.mTimestamp = parseTimestamp(root.getString(TIMESTAMP)); in createBL() 132 String testName = jsonRulesList.getString(TEST_NAME); in createBL() 152 redactionRegexes.add(redactionRegexesJSONArray.getString(i)); in parseRedactionRegexes() 163 description = rulesListJSONObject.getString(RULES_LIST_DESCRIPTION); in extractRulesList() 201 String methodName = ruleConditionJSONObject.getString(METHOD_NAME); in extractRuleConditionList() 217 methodArgs.add(methodArgsJSONArray.getString(j)); in extractRuleConditionList() 232 String methodName = ruleActionJSONObject.getString(METHOD_NAME); in extractRuleActionList() 243 methodArgs.add(methodArgsJSONArray.getString(j)); in extractRuleActionList()
|