/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/ |
D | StatsdStatsHelper.java | 113 resultMap.put( in populateAtomStats() 116 resultMap.put( in populateAtomStats() 124 resultMap.put( in populateAtomStats() 126 resultMap.put( in populateAtomStats() 140 resultMap.put( in populateConfigStats() 143 resultMap.put( in populateConfigStats() 146 resultMap.put( in populateConfigStats() 149 resultMap.put( in populateConfigStats() 178 resultMap.put(metricKey, Long.valueOf(dataItem.maxTupleCounts)); in populateMetricStats() 186 resultMap.put(metricKey, Long.valueOf(summaryCount)); in populateMetricStats() [all …]
|
D | BatteryUsageStatsHelper.java | 131 results.put( in batteryUsageStatsFromBucket() 135 results.put( in batteryUsageStatsFromBucket() 138 results.put( in batteryUsageStatsFromBucket() 142 results.put( in batteryUsageStatsFromBucket() 160 results.put( in batteryUsageStatsFromBucket() 178 results.put("time-in-fg-by-" + packageNamesForMetrics + "-ms", timeInForeground); in batteryUsageStatsFromBucket() 179 results.put("time-in-bg-by-" + packageNamesForMetrics + "-ms", timeInBackground); in batteryUsageStatsFromBucket() 184 results.put( in batteryUsageStatsFromBucket() 188 results.put( in batteryUsageStatsFromBucket() 205 results.put("session-start-ms", atom.sessionStartMillis); in batteryUsageStatsFromBucket() [all …]
|
D | CpuUsageHelper.java | 119 cpuUsageMap.put(UserTimeKey, userTimeMillis); in getMetrics() 120 cpuUsageMap.put(SystemTimeKey, sysTimeMillis); in getMetrics() 142 cpuUsageFinalMap.put( in getMetrics() 145 cpuUsageFinalMap.put(finalKey, cpuUsage); in getMetrics() 158 cpuUsageFinalMap.put(TOTAL_CPU_USAGE, totalCpuUsage); in getMetrics() 164 cpuUsageFinalMap.put(TOTAL_CPU_TIME, totalCpuTime); in getMetrics() 168 cpuUsageFinalMap.put(CPU_UTILIZATION, (long) utilization); in getMetrics()
|
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | DevicePropertyInfo.java | 166 propertyMap.put(prefix + "abi", mAbi); in getPropertytMapWithPrefix() 167 propertyMap.put(prefix + "abi2", mAbi2); in getPropertytMapWithPrefix() 168 propertyMap.put(prefix + "abis", mAbis); in getPropertytMapWithPrefix() 169 propertyMap.put(prefix + "abis_32", mAbis32); in getPropertytMapWithPrefix() 170 propertyMap.put(prefix + "abis_64", mAbis64); in getPropertytMapWithPrefix() 171 propertyMap.put(prefix + "board", mBoard); in getPropertytMapWithPrefix() 172 propertyMap.put(prefix + "brand", mBrand); in getPropertytMapWithPrefix() 173 propertyMap.put(prefix + "device", mDevice); in getPropertytMapWithPrefix() 174 propertyMap.put(prefix + "fingerprint", mFingerprint); in getPropertytMapWithPrefix() 175 propertyMap.put(prefix + "vendor_fingerprint", mVendorFingerprint); in getPropertytMapWithPrefix() [all …]
|
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/ |
D | SlabinfoHelperTest.java | 61 sample.slabs.put("a", 0L); in testSimpleExactFits() 62 sample.slabs.put("b", 0L); in testSimpleExactFits() 63 sample.slabs.put("c", 0L); in testSimpleExactFits() 64 sample.slabs.put("d", 25L); in testSimpleExactFits() 65 sample.slabs.put("e", 50L); in testSimpleExactFits() 66 sample.slabs.put("f", 100L); in testSimpleExactFits() 72 sample.slabs.put("a", 100L); in testSimpleExactFits() 73 sample.slabs.put("b", 50L); in testSimpleExactFits() 74 sample.slabs.put("c", 25L); in testSimpleExactFits() 75 sample.slabs.put("d", 0L); in testSimpleExactFits() [all …]
|
/platform_testing/libraries/junitxml/src/com/android/junitxml/ |
D | AtestRunListener.java | 76 moduleStartEventData.put(MODULE_NAME_KEY, mSuiteName); in testRunStarted() 80 testRunEventData.put(TESTCOUNT_KEY, mTotalCount); in testRunStarted() 81 testRunEventData.put(ATTEMPT_KEY, 0); in testRunStarted() 82 testRunEventData.put(RUNNAME_KEY, mSuiteName); in testRunStarted() 89 eventData.put(TIME_KEY, result.getRunTime()); in testRunFinished() 98 eventData.put(CLASSNAME_KEY, description.getClassName()); in testFailure() 99 eventData.put(TESTNAME_KEY, description.getMethodName()); in testFailure() 100 eventData.put(TRACE_KEY, failure.getTrace()); in testFailure() 107 eventData.put(START_TIME_KEY, System.currentTimeMillis()); in testStarted() 108 eventData.put(CLASSNAME_KEY, description.getClassName()); in testStarted() [all …]
|
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
D | DataCollector.java | 45 private void put(LogGenerator key, Long interval) { in put() method in DataCollector 47 generatorsWithIntervals.put(key, interval); in put() 60 put(LogGenerator.BUGREPORTZ, bugreportzInterval); in DataCollector() 66 put(LogGenerator.BUGREPORT, bugreportInterval); in DataCollector() 68 put(LogGenerator.CPU_INFO, cpuinfoInterval); in DataCollector() 69 put(LogGenerator.FRAGMENTATION, fragmentationInterval); in DataCollector() 70 put(LogGenerator.GRAPHICS_STATS, graphicsInterval); in DataCollector() 71 put(LogGenerator.ION_HEAP, ionHeapInterval); in DataCollector() 72 put(LogGenerator.MEM_INFO, meminfoInterval); in DataCollector() 73 put(LogGenerator.PAGETYPE_INFO, pagetypeinfoInterval); in DataCollector() [all …]
|
/platform_testing/libraries/motion/src/platform/test/motion/view/ |
D | DataPointTypes.kt | 41 put("x", it.x) in <lambda>() 42 put("y", it.y) in <lambda>() 58 put("left", it.left) in <lambda>() 59 put("top", it.top) in <lambda>() 60 put("right", it.right) in <lambda>() 61 put("bottom", it.bottom) in <lambda>() 83 put(cornerRadiiPropertyNames[i], it.rawValues[i]) in <lambda>()
|
/platform_testing/libraries/collectors-helper/lyric/src/com/android/helpers/ |
D | LyricCpuUtilizationHelper.java | 104 metrics.put( in processMatch() 107 metrics.put(String.format(METRIC_KEY, node, "system_time"), parseTime(matcher.group(3))); in processMatch() 108 metrics.put( in processMatch() 110 metrics.put( in processMatch() 112 metrics.put(String.format(METRIC_KEY, node, "user_time"), parseTime(matcher.group(6))); in processMatch() 113 metrics.put(String.format(METRIC_KEY, node, "user_time_max"), parseTime(matcher.group(7))); in processMatch() 114 metrics.put(String.format(METRIC_KEY, node, "user_time_min"), parseTime(matcher.group(8))); in processMatch() 115 metrics.put(String.format(METRIC_KEY, node, "wall_time"), parseTime(matcher.group(9))); in processMatch() 116 metrics.put(String.format(METRIC_KEY, node, "wall_time_max"), parseTime(matcher.group(10))); in processMatch() 117 metrics.put(String.format(METRIC_KEY, node, "wall_time_min"), parseTime(matcher.group(11))); in processMatch()
|
D | LyricMemProfilerHelper.java | 245 metrics.put( in getMetrics() 248 metrics.put( in getMetrics() 251 metrics.put("max" + mMetricNameList[i] + "Dmabuf", mMaxCameraDmabufList[i]); in getMetrics() 253 metrics.put("maxNativeHeap", mMaxCameraMemInfoList[0].mNativeHeap); in getMetrics() 254 metrics.put("maxTotalPss", mMaxCameraMemInfoList[0].mTotalPss); in getMetrics() 255 metrics.put("maxDmabuf", mMaxCameraDmabufList[0]); in getMetrics() 257 metrics.put("maxTotalCameraDmabuf", mMaxTotalCameraDmabuf); in getMetrics() 258 metrics.put("maxTotalCameraMemory", mMaxTotalCameraMemory); in getMetrics() 332 metrics.put(mMetricNameList[i] + "NativeHeap", memInfoList[i].mNativeHeap); in processOutput() 333 metrics.put(mMetricNameList[i] + "TotalPss", memInfoList[i].mTotalPss); in processOutput() [all …]
|
/platform_testing/libraries/motion/src/platform/test/motion/golden/ |
D | JsonGoldenSerializer.kt | 57 put( in toJson() 59 JSONArray().apply { golden.frameIds.map(::frameIdToJson).forEach(this::put) } in toJson() 61 put( in toJson() 63 JSONArray().apply { golden.features.values.map(::featureToJson).forEach(this::put) } in toJson() 95 put(KEY_FEATURE_NAME, feature.name) in featureToJson() 103 put(KEY_FEATURE_TYPE, dataPointTypes.single()) in featureToJson() 111 put( in featureToJson() 113 JSONArray().apply { feature.dataPoints.map { it.asJson() }.forEach(this::put) } in featureToJson() 136 val alreadyRegisteredType = put(type.typeName, type) in <lambda>()
|
/platform_testing/libraries/health/runners/longevity/host/tests/src/android/host/test/longevity/ |
D | LongevitySuiteTest.java | 64 args.put(LongevitySuite.INVALIDATE_OPTION, "false"); in testDoNotInvalidateTestRuns() 65 args.put(LongevitySuite.QUITTER_OPTION, "true"); in testDoNotInvalidateTestRuns() 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() 110 args.put(LongevitySuite.INVALIDATE_OPTION, "true"); in testTimeoutTestRuns() 111 args.put(TimeoutTerminator.OPTION, "25"); in testTimeoutTestRuns() 112 args.put(ITERATIONS_OPTION_NAME, String.valueOf(10)); in testTimeoutTestRuns() 145 args.put(ITERATIONS_OPTION_NAME, String.valueOf(expectedIterations)); in testChildAccounting()
|
/platform_testing/libraries/motion/tests/src/platform/test/motion/ |
D | MotionTestRuleTest.kt | 103 put("frame_ids", JSONArray()) in writeGeneratedTimeSeries_writesTimeSeries() 104 put("features", JSONArray()) in writeGeneratedTimeSeries_writesTimeSeries() 124 put("goldenRepoPath", "assets/updated_golden.json") in writeGeneratedTimeSeries_includesMetadata() 125 put("filmstripTestIdentifier", "motion_debug_filmstrip_FooClass") in writeGeneratedTimeSeries_includesMetadata() 126 put("goldenIdentifier", "updated_golden") in writeGeneratedTimeSeries_includesMetadata() 127 put("result", "MISSING_REFERENCE") in writeGeneratedTimeSeries_includesMetadata() 166 put("goldenRepoPath", "assets/updated_golden.json") in writeGeneratedTimeSeries_withScreenshots_writesVideoAndIncludesMetadata() 167 put("filmstripTestIdentifier", "motion_debug_filmstrip_FooClass") in writeGeneratedTimeSeries_withScreenshots_writesVideoAndIncludesMetadata() 168 put("goldenIdentifier", "updated_golden") in writeGeneratedTimeSeries_withScreenshots_writesVideoAndIncludesMetadata() 169 put("result", "MISSING_REFERENCE") in writeGeneratedTimeSeries_withScreenshots_writesVideoAndIncludesMetadata() [all …]
|
/platform_testing/libraries/motion/compose/src/platform/test/motion/compose/ |
D | DataPointTypes.kt | 68 put("width", it.width) in Dp() 69 put("height", it.height) in Dp() 84 put("width", it.width.value) in Dp() 85 put("height", it.height.value) in Dp() 100 put("x", it.x.value) in Dp() 101 put("y", it.y.value) in Dp() 124 put("x", it.x) in Dp() 125 put("y", it.y) in Dp()
|
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/ |
D | CoolDownRuleTest.java | 196 escape_test_cases.put("", ""); in testEscapedOptionStrs() 197 escape_test_cases.put("#", " "); in testEscapedOptionStrs() 198 escape_test_cases.put("##", "#"); in testEscapedOptionStrs() 199 escape_test_cases.put("prefix#", "prefix "); in testEscapedOptionStrs() 200 escape_test_cases.put("prefix##", "prefix#"); in testEscapedOptionStrs() 201 escape_test_cases.put("#postfix", " postfix"); in testEscapedOptionStrs() 202 escape_test_cases.put("##postfix", "#postfix"); in testEscapedOptionStrs() 203 escape_test_cases.put("prefix#postfix", "prefix postfix"); in testEscapedOptionStrs() 204 escape_test_cases.put("prefix##postfix", "prefix#postfix"); in testEscapedOptionStrs() 205 escape_test_cases.put("###", "# "); in testEscapedOptionStrs() [all …]
|
/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/ |
D | CrashUtilsTest.java | 59 expectedResults.put( in testGetAllCrashes() 82 expectedResults.put( in testGetAllCrashes() 125 expectedResults.put( in testGetAllCrashes() 168 expectedResults.put( in testGetAllCrashes() 211 expectedResults.put( in testGetAllCrashes() 234 expectedResults.put( in testGetAllCrashes() 245 expectedResults.put( in testGetAllCrashes() 325 expectedResults.put( in testGetAllCrashes() 399 expectedResults.put( in testGetAllCrashes() 422 expectedResults.put( in testGetAllCrashes() [all …]
|
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/ |
D | SfStatsCollectionHelper.java | 101 results.put(metricKey, parseStatsValue(globalPairs.get(key))); in getMetrics() 105 results.put( in getMetrics() 111 results.put( in getMetrics() 124 results.put( in getMetrics() 132 results.put( in getMetrics() 140 results.put( in getMetrics() 183 pairs.put(keyValueMatcher.group(1), keyValueMatcher.group(2)); in getStatPairs() 213 histogram.put( in getHistogramPairs() 218 pairs.put(key, histogram); in getHistogramPairs() 237 Histogram put(Integer key, Long value) { in put() method in SfStatsCollectionHelper.Histogram [all …]
|
/platform_testing/libraries/health/composers/host/tests/src/android/host/test/composer/ |
D | IterateTest.java | 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()
|
D | ShuffleTest.java | 37 args.put(SHUFFLE_OPTION_NAME, String.valueOf(shuffle)); in getArguments() 38 args.put(SEED_OPTION_NAME, String.valueOf(seed)); in getArguments()
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | DataRecord.java | 41 mCurrentStringMetrics.put(key, value); in addStringMetric() 52 mCurrentFileMetrics.put(fileKey, value); in addFileMetric() 62 mCurrentBinaryMetrics.put(key, value); in addBinaryMetric() 80 res.put(entry.getKey(), entry.getValue().getAbsolutePath()); in getStringMetrics()
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | MemLeaksHelper.java | 86 results.put(processName, current.get(processName) - mPrevious.get(processName)); in getMetrics() 88 results.put(processName, current.get(processName)); in getMetrics() 143 results.put(PROC_MEM_BYTES + processName, Long.parseLong(matcherLeak.group(1))); in getMeminfo() 144 results.put(PROC_ALLOCATIONS + processName, Long.parseLong(matcherLeak.group(2))); in getMeminfo() 150 results.put(PROC_MEM_BYTES + processName, 0L); in getMeminfo() 151 results.put(PROC_ALLOCATIONS + processName, 0L); in getMeminfo() 185 pids.put(Integer.parseInt(splitLine[1]), processName); in getPids() 199 pids.put(Integer.parseInt(mPidOutput.replace("\n", "").trim()), mProcessNames[i]); in getPids()
|
D | ProcessShowmapHelper.java | 106 showmapFinalMap.put(constructKey(processName, PSS), endMetrics.pss); in getMetrics() 107 showmapFinalMap.put(constructKey(processName, RSS), endMetrics.rss); in getMetrics() 108 showmapFinalMap.put(constructKey(processName, VSS), endMetrics.vss); in getMetrics() 115 showmapFinalMap.put( in getMetrics() 117 showmapFinalMap.put( in getMetrics() 119 showmapFinalMap.put( in getMetrics()
|
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/ |
D | DownloadAppTestHelper.java | 201 mDownloadedItems.put(fileName, new DlObjSizeTimePair(size, timeInMiliSec)); in populateContentInDLApp() 222 values.put("title", title); in addToDownloadContentDB() 223 values.put("description", description); in addToDownloadContentDB() 224 values.put("mimetype", mimeType); in addToDownloadContentDB() 225 values.put("is_public_api", true); in addToDownloadContentDB() 226 values.put("scanned", isMediaScannerScannable); in addToDownloadContentDB() 227 values.put("is_visible_in_downloads_ui", Boolean.TRUE); in addToDownloadContentDB() 228 values.put("destination", 6); // 6: show the download item in app in addToDownloadContentDB() 229 values.put("_data", path); // location to save the downloaded file in addToDownloadContentDB() 230 values.put("status", 200); // 200 : STATUS_SUCCESS in addToDownloadContentDB() [all …]
|
/platform_testing/host_runners/boot/src/com/android/boot/ |
D | BootTimeTest.java | 379 mBootInfo.put(DMESG_BOOT_COMPLETE_TIME, bootCompleteTime); in setDmesgBootCompleteTime() 384 mBootIterationInfo.put(DMESG_BOOT_COMPLETE_TIME, bootCompleteTime); in setDmesgBootIterationTime() 708 mBootInfo.put(SUCCESSIVE_ONLINE, onlineDelayList); in testSuccessiveBoots() 710 mBootIterationInfo.put(SUCCESSIVE_ONLINE, onlineTime); in testSuccessiveBoots() 718 mBootInfo.put(SUCCESSIVE_BOOT, bootDelayList); in testSuccessiveBoots() 720 mBootIterationInfo.put(SUCCESSIVE_BOOT, bootTime); in testSuccessiveBoots() 755 iterationResult.put(bootData.getKey(), bootData.getValue().toString()); in testSuccessiveBoots() 758 iterationResult.put("perfetto_file_path", perfettoTraceFilePath); in testSuccessiveBoots() 775 iterationResult.put( in testSuccessiveBoots() 821 results.put( in extractLogcatInfo() [all …]
|
/platform_testing/libraries/motion/src/platform/test/motion/ |
D | MotionTestRule.kt | 143 metadata.put( in <lambda>() 147 metadata.put("filmstripTestIdentifier", debugFilmstripTestIdentifier(recordedMotion)) in <lambda>() 148 metadata.put("goldenIdentifier", goldenIdentifier) in <lambda>() 149 metadata.put("result", result.name) in <lambda>() 157 metadata.put("videoLocation", videoFile.relativeTo(deviceLocalPath)) in <lambda>() 166 jsonObject.put("//metadata", metadata) in <lambda>()
|