/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
D | MemHealthRecord.java | 131 List<Long> nativeHeap = getForegroundNativeHeap(records); in saveVerbose() 132 List<Long> dalvikHeap = getForegroundDalvikHeap(records); in saveVerbose() 133 List<Long> pss = getForegroundPss(records); in saveVerbose() 134 List<Long> asJavaHeap = getForegroundSummaryJavaHeap(records); in saveVerbose() 135 List<Long> asNativeHeap = getForegroundSummaryNativeHeap(records); in saveVerbose() 136 List<Long> asCode = getForegroundSummaryCode(records); in saveVerbose() 137 List<Long> asStack = getForegroundSummaryStack(records); in saveVerbose() 138 List<Long> asGraphics = getForegroundSummaryGraphics(records); in saveVerbose() 139 List<Long> asOther = getForegroundSummaryOther(records); in saveVerbose() 140 List<Long> asSystem = getForegroundSummarySystem(records); in saveVerbose() [all …]
|
D | Scheduler.java | 46 public static Scheduler sequential(Long iterations) { 56 public static Scheduler shuffled(Random random, Long iterations) { 64 private final Long mIterations; 66 Sequential(Long iterations) { 89 private final Long mIterations; 91 Shuffled(Random random, Long iterations) {
|
D | DataCollector.java | 34 private final Map<LogGenerator, Long> generatorsWithIntervals = new HashMap<>(); 35 private final Map<LogGenerator, Long> mLastUpdate = new HashMap<>(); 45 private void put(LogGenerator key, Long interval) { in put() 82 for (Map.Entry<LogGenerator, Long> entry : generatorsWithIntervals.entrySet()) { in start() 124 for (Map.Entry<LogGenerator, Long> entry : generatorsWithIntervals.entrySet()) { in loop() 125 Long t = SystemClock.uptimeMillis() - mLastUpdate.get(entry.getKey()); in loop() 146 private long gcd(Collection<Long> values) { in gcd() 153 for (Long value : values) { in gcd()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/ |
D | Utils.kt | 19 fun queryRealToMonotonicTimeOffsetNs(session: TraceProcessorSession, tableName: String): Long { in <lambda>() 29 fun queryLastEntryTimestamp(session: TraceProcessorSession, tableName: String): Long? { in queryLastEntryTimestamp() 42 rows.get(0).get("ts") as Long in queryLastEntryTimestamp() 50 fun queryToMonotonic(session: TraceProcessorSession, elapsedTimestamp: Long): Long { in queryToMonotonic() 55 rows.get(0).get("ts") as Long in queryToMonotonic() 60 fun queryToRealtime(session: TraceProcessorSession, elapsedTimestamp: Long): Long { in queryToRealtime() 65 rows.get(0).get("ts") as Long in queryToRealtime()
|
/platform_testing/libraries/flicker/utils/src/android/tools/ |
D | TimestampFactory.kt | 19 class TimestampFactory(private val realTimestampFormatter: (Long) -> String = { it.toString() }) { in <lambda>() 23 Timestamp(Long.MAX_VALUE, Long.MAX_VALUE, Long.MAX_VALUE, realTimestampFormatter) in <lambda>() 31 elapsedNanos: Long? = null, in min() 32 systemUptimeNanos: Long? = null, in min() 33 unixNanos: Long? = null, in min() 55 fun from(elapsedNanos: Long, elapsedOffsetNanos: Long): Timestamp { in from()
|
D | Consts.kt | 22 const val MILLISECOND_AS_NANOSECONDS: Long = 1000000 23 const val SECOND_AS_NANOSECONDS: Long = 1000000000 24 const val MINUTE_AS_NANOSECONDS: Long = 60000000000 25 const val HOUR_AS_NANOSECONDS: Long = 3600000000000 26 const val DAY_AS_NANOSECONDS: Long = 86400000000000
|
D | Timestamp.kt | 30 val elapsedNanos: Long = 0L, 31 val systemUptimeNanos: Long = 0L, 32 val unixNanos: Long = 0L, 33 private val realTimestampFormatter: (Long) -> String 42 elapsedNanos == Long.MAX_VALUE && 43 systemUptimeNanos == Long.MAX_VALUE && 44 unixNanos == Long.MAX_VALUE 97 operator fun minus(nanos: Long): Timestamp { in minus() 191 fun formatElapsedTimestamp(timestampNs: Long): String { in formatElapsedTimestamp()
|
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/ |
D | StatsdStatsHelper.java | 30 public class StatsdStatsHelper implements ICollectorHelper<Long> { 81 public Map<String, Long> getMetrics() { in getMetrics() 82 Map<String, Long> resultMap = new HashMap<>(); in getMetrics() 102 StatsLog.StatsdStatsReport.AtomStats[] stats, Map<String, Long> resultMap) { in populateAtomStats() 115 Long.valueOf(dataItem.count)); in populateAtomStats() 118 Long.valueOf(dataItem.errorCount)); in populateAtomStats() 125 MetricUtility.constructKey(metricKeyPrefix, "count"), Long.valueOf(summaryCount)); in populateAtomStats() 128 Long.valueOf(summaryErrorCount)); in populateAtomStats() 132 StatsLog.StatsdStatsReport.ConfigStats[] configStats, Map<String, Long> resultMap) { in populateConfigStats() 142 Long.valueOf(dataItem.metricCount)); in populateConfigStats() [all …]
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/ |
D | Transaction.kt | 22 val requestedVSyncId: Long, 23 val postTime: Long, 24 val id: Long, 25 val mergedTransactionIds: Collection<Long>, 29 val appliedVSyncId: Long
|
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/ |
D | StatsdStatsHelperTest.java | 257 private static void verifyAtomStats(Map<String, Long> result, int atomsCount) { in verifyAtomStats() 267 Long.valueOf(fieldValue++)); in verifyAtomStats() 270 Long.valueOf(fieldValue++)); in verifyAtomStats() 275 Map<String, Long> result, String metricKeyPrefix, long count) { in verifyConfigAlertStats() 283 assertEquals(result.get(metricKey), Long.valueOf(i + 2)); in verifyConfigAlertStats() 288 Map<String, Long> result, String metricKeyPrefix, long count) { in verifyConfigMatcherStats() 296 assertEquals(result.get(metricKey), Long.valueOf(i + 2)); in verifyConfigMatcherStats() 301 Map<String, Long> result, String metricKeyPrefix, long count) { in verifyConfigConditionStats() 309 assertEquals(result.get(metricKey), Long.valueOf(i + 2)); in verifyConfigConditionStats() 314 Map<String, Long> result, String metricKeyPrefix, long count) { in verifyConfigMetricStats() [all …]
|
D | CpuUsageHelperTest.java | 80 Map<String, Long> cpuUsage = mCpuUsageHelper.getMetrics(); in testCpuUsageMetrics() 102 Long sumCpuUsage = 0L; in testCpuUsageMetricsKey() 103 Long reportedTotalCpuUsage = 0L; in testCpuUsageMetricsKey() 104 for (Map.Entry<String, Long> cpuUsageEntry : mCpuUsageHelper.getMetrics().entrySet()) { in testCpuUsageMetricsKey() 136 Map<String, Long> cpuUsage = mCpuUsageHelper.getMetrics(); in testCpuDisabledPerPkg() 153 Map<String, Long> cpuUsage = mCpuUsageHelper.getMetrics(); in testCpuUsageOnlyPerPkg() 155 for (Map.Entry<String, Long> cpuUsageEntry : mCpuUsageHelper.getMetrics().entrySet()) { in testCpuUsageOnlyPerPkg() 170 Map<String, Long> cpuUsage = mCpuUsageHelper.getMetrics(); in testCpuEnableCpuUtilization()
|
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/ |
D | TimeInStateHelper.java | 34 public class TimeInStateHelper implements ICollectorHelper<Long> { 47 private List<Map<String, Long>> mBeforeFreqStats; 48 private List<Map<String, Long>> mAfterFreqStats; 107 public Map<String, Long> getMetrics() { in getMetrics() 119 private List<Map<String, Long>> readAllFreqStats() { in readAllFreqStats() 120 List<Map<String, Long>> freqStatsMapList = new ArrayList<Map<String, Long>>(); in readAllFreqStats() 122 Map<String, Long> result = readFreqStats(source); in readAllFreqStats() 128 private Map<String, Long> readFreqStats(String source) { in readFreqStats() 129 Map<String, Long> freqStatsMap = new HashMap<String, Long>(); in readFreqStats() 140 freqStatsMap.put(freq, Long.parseLong(time)); in readFreqStats() [all …]
|
/platform_testing/libraries/health/options/src/android/platform/test/option/ |
D | LongOption.java | 19 public class LongOption extends TestOption<Long> { 25 protected Long parseValueFromString(String value) { in parseValueFromString() 26 return Long.valueOf(value); in parseValueFromString()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/ |
D | TraceParserTest.kt | 35 listOf<Long>() in canSliceWithAllBefore() 149 private fun testSliceUsingElapsedTimestamp(from: Long, to: Long, expected: List<Timestamp>) { in testSliceUsingElapsedTimestamp() 156 to: Long, in testSliceUsingElapsedTimestamp() 163 from: Long, in testSliceUsingElapsedTimestamp() 171 private fun testSliceUsingElapsedTimestamp(from: Long, to: Timestamp?, expected: List<Long>) { in testSliceUsingElapsedTimestamp() 192 private fun testSliceUsingElapsedTimestamp(from: Timestamp?, to: Long, expected: List<Long>) { in testSliceUsingElapsedTimestamp() 200 private fun testSliceUsingElapsedTimestamp(from: Long, to: Long, expected: List<Long>) { in testSliceUsingElapsedTimestamp() 244 private fun testSliceWithOutInitialEntry(from: Long, to: Long, expected: List<Long>) { in testSliceWithOutInitialEntry() 257 private fun testSliceWithInitialEntry(from: Long, to: Long, expected: List<Long>) { in testSliceWithInitialEntry()
|
/platform_testing/libraries/collectors-helper/adservices/src/com/android/helpers/ |
D | JSScriptEngineLatencyHelper.java | 66 public Map<String, Long> processInput(InputStream inputStream) throws IOException { in processInput() 70 List<Long> sandboxInitTimes = new ArrayList<>(); in processInput() 71 List<Long> isolateCreateTimes = new ArrayList<>(); in processInput() 72 List<Long> javaProcessTimes = new ArrayList<>(); in processInput() 73 List<Long> webviewProcessTimes = new ArrayList<>(); in processInput() 84 long latency = Long.parseLong(matcher.group(2)); in processInput() 112 private Long getAverage(List<Long> list, long defaultValue) { in getAverage()
|
D | SelectAdsLatencyHelper.java | 53 public Map<String, Long> processInput(InputStream inputStream) throws IOException { in processInput() 61 Map<String, Long> output = new HashMap<String, Long>(); in processInput() 72 long latency = Long.parseLong(matcher.group(2)); in processInput()
|
D | MeasurementLatencyHelper.java | 53 public Map<String, Long> processInput(InputStream inputStream) throws IOException { in processInput() 59 Map<String, Long> output = new HashMap<String, Long>(); in processInput() 64 long latency = Long.parseLong(matcher.group(2)); in processInput()
|
D | TopicsLatencyHelper.java | 60 public Map<String, Long> processInput(InputStream inputStream) throws IOException { in processInput() 65 Map<String, Long> output = new HashMap<String, Long>(); in processInput() 74 long latency = Long.parseLong(matcher.group(2)); in processInput()
|
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/ |
D | DumpsysMeminfoHelperTest.java | 91 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_noProcess() 100 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_nullProcess() 108 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_nullProcessObjectMap() 116 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_wrongProcesses() 128 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_wrongProcessesNameInProcessObjectMap() 140 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_wrongObjectNameInProcessObjectMap() 149 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_oneProcess() 159 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_multipleProcesses() 175 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_oneProcessObjectMap() 190 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_twoProcessObjectMap() [all …]
|
D | TotalPssHelperTest.java | 63 Map<String, Long> pssMetrics = mTotalPssHelper.getMetrics(); in testEmptyProcessName() 71 Map<String, Long> pssMetrics = mTotalPssHelper.getMetrics(); in testNullProcessName() 79 Map<String, Long> pssMetrics = mTotalPssHelper.getMetrics(); in testGetMetrics_OneProcess() 89 Map<String, Long> pssMetrics = mTotalPssHelper.getMetrics(); in testGetMetrics_MultipleProcesses() 101 Map<String, Long> pssMetrics = mTotalPssHelper.getMetrics(); in testGetMetrics_InvalidProcess()
|
/platform_testing/libraries/flicker/appHelpers/src/android/tools/device/apphelpers/ |
D | MapsAppHelper.kt | 134 val SEARCH_TIMEOUT_IN_MSECS: Long = 25000 in startSearch() 151 private fun hasSearchBar(wait_time: Long = WAIT_TIMEOUT): Boolean { in hasSearchBar() 155 private fun getSelectableSearchBar(wait_time: Long = WAIT_TIMEOUT): UiObject2? { in getSelectableSearchBar() 162 private fun getEditableSearchBar(wait_time: Long = WAIT_TIMEOUT): UiObject2? { in getEditableSearchBar() 169 private fun getDirectionsButton(wait_time: Long = WAIT_TIMEOUT): UiObject2? { in getDirectionsButton() 176 private fun getStartPointBox(wait_time: Long = WAIT_TIMEOUT): UiObject2? { in getStartPointBox() 180 private fun getYourLocation(wait_time: Long = WAIT_TIMEOUT): UiObject2? { in getYourLocation() 184 private fun getStartNavigationButton(wait_time: Long = WAIT_TIMEOUT): UiObject2? { in getStartNavigationButton() 188 private fun getCloseNavigationButton(wait_time: Long = WAIT_TIMEOUT): UiObject2? { in getCloseNavigationButton() 211 private const val WAIT_TIMEOUT: Long = 5000
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | MemLeaksHelper.java | 32 public class MemLeaksHelper implements ICollectorHelper<Long> { 51 private Map<String, Long> mPrevious = new HashMap<>(); 79 public Map<String, Long> getMetrics() { in getMetrics() 80 Map<String, Long> current = getMeminfo(); in getMetrics() 81 Map<String, Long> results = new HashMap<>(); in getMetrics() 102 private Map<String, Long> getMeminfo() { in getMeminfo() 105 Map<String, Long> results = new HashMap<>(); in getMeminfo() 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()
|
D | TotalPssHelper.java | 38 public class TotalPssHelper implements ICollectorHelper<Long> { 58 private Map<String, Long> mPssFinalMap = new HashMap<>(); 76 public Map<String, Long> getMetrics() { in getMetrics() 104 List<Long> pssData = new ArrayList<Long>(); in measureMemory() 172 private boolean stabilized(List<Long> pssData) { in stabilized() 185 private long average(List<Long> pssData) { in average()
|
/platform_testing/libraries/collectors-helper/app/test/src/com/android/helpers/tests/ |
D | AppVersionHelperTest.java | 64 Map<String, Long> appVersionMetrics = mAppVersionHelper.getMetrics(); in testEmptyPackageName() 73 Map<String, Long> appVersionMetrics = mAppVersionHelper.getMetrics(); in testNullPackageName() 82 Map<String, Long> appVersionMetrics = mAppVersionHelper.getMetrics(); in testGetMetrics_OnePackage() 95 Map<String, Long> appVersionMetrics = mAppVersionHelper.getMetrics(); in testGetMetrics_MultiplePackages() 115 Map<String, Long> appVersionMetrics = mAppVersionHelper.getMetrics(); in testGetMetrics_InvalidPackage()
|
/platform_testing/libraries/collectors-helper/adservices/test/src/com/android/helpers/ |
D | JSScriptEngineLatencyHelperTest.java | 77 Map<String, Long> actual = mJSScriptEngineLatencyHelper.getMetrics(); in testInitTimeInLogcat() 90 Map<String, Long> actual = mJSScriptEngineLatencyHelper.getMetrics(); in testWithEmptyLogcat() 91 for (Long val : actual.values()) { in testWithEmptyLogcat() 100 Map<String, Long> actual = mJSScriptEngineLatencyHelper.getMetrics(); in testInputStreamThrowsException() 101 for (Long val : actual.values()) { in testInputStreamThrowsException()
|