/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | SimpleStats.java | 28 private List<Double> mData = new LinkedList<Double>(); 38 public void addAll(Collection<? extends Double> c) { in addAll() 39 for (Double meas : c) { in addAll() 58 public List<Double> getData() { in getData() 79 public Double mean() { in mean() 90 public Double median() { in median() 111 public Double min() { in min() 123 public Double max() { in max() 139 public Double stdev() { in stdev() 144 Double avg = mean(); in stdev() [all …]
|
/tools/trebuchet/trebuchet/startup-common/src/ |
D | StartupCommon.kt | 52 val startTime : Double, in <lambda>() 53 val endTime : Double, in <lambda>() 54 val serverSideForkTime : Double, in <lambda>() 55 val reportFullyDrawnTime : Double?, in <lambda>() 56 val firstSliceTime : Double, in <lambda>() 57 val undifferentiatedTime : Double, in <lambda>() 58 val schedTimings : Map<SchedulingState, Double>, in <lambda>() 66 var totalTime : Double = 0.0 in <lambda>() 68 val values : MutableMap<String, Pair<Int, Double>> = mutableMapOf() in <lambda>() 81 constructor(name : String, lowerBound : Double, upperBound : Double) { [all …]
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/queries/ |
D | SliceQueries.kt | 52 … constructor(pid : Int, type : String, value : String?, lowerBound : Double, upperBound : Double) { 63 constructor (pid : Int, pattern : Regex, lowerBound : Double, upperBound : Double) { 273 lowerBound : Double = this.model.beginTimestamp, in ProcessModel() 274 upperBound : Double = this.model.endTimestamp) : Slice { in ProcessModel() 297 lowerBound : Double = this.model.beginTimestamp, in ProcessModel() 298 upperBound : Double = this.model.endTimestamp) : Slice { in ProcessModel() 323 lowerBound : Double = this.model.beginTimestamp, in ProcessModel() 324 upperBound : Double = this.model.endTimestamp) : Slice? { in ProcessModel() 346 lowerBound : Double = this.model.beginTimestamp, in ProcessModel() 347 upperBound : Double = this.model.endTimestamp) : Slice? { in ProcessModel() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | CodePrinter.kt | 426 is Double -> { in constantToSource() 428 Double.POSITIVE_INFINITY -> "(1.0/0.0)" in constantToSource() 429 Double.NEGATIVE_INFINITY -> "(-1.0/0.0)" in constantToSource() 430 Double.NaN -> "(0.0/0.0)" in constantToSource() 469 is Double -> { in constantToExpression() 471 Double.POSITIVE_INFINITY -> "Double.POSITIVE_INFINITY" in constantToExpression() 472 Double.NEGATIVE_INFINITY -> "Double.NEGATIVE_INFINITY" in constantToExpression() 473 Double.NaN -> "Double.NaN" in constantToExpression() 524 is Double -> { in appendSourceLiteral() 526 Double.POSITIVE_INFINITY -> { in appendSourceLiteral() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/ |
D | AggregatePostProcessor.java | 139 Double.parseDouble(val); in isAllDoubleValues() 157 List<Double> doubleValues = 158 values.stream().map(Double::parseDouble).collect(Collectors.toList()); 159 HashMap<String, Double> stats = getStats(doubleValues); 171 private HashMap<String, Double> getStats(Collection<Double> values) { 172 List<Double> valuesList = new ArrayList<>(values); 174 HashMap<String, Double> stats = new HashMap<>(); 175 double sum = values.stream().mapToDouble(Double::doubleValue).sum(); 180 .mapToDouble(Double::doubleValue)
|
/tools/tradefederation/contrib/src/com/android/regression/tests/ |
D | DetectRegression.java | 143 List<Double> beforeMetrics = before.getRunMetrics().get(name); in runRegressionDetection() 144 List<Double> afterMetrics = after.getRunMetrics().get(name); in runRegressionDetection() 155 List<Double> beforeMetrics = before.getTestMetrics().get(id); in runRegressionDetection() 156 List<Double> afterMetrics = after.getTestMetrics().get(id); in runRegressionDetection() 231 private static TableRow getTableRow(String name, List<Double> before, List<Double> after) { in getTableRow() 242 static boolean computeRegression(List<Double> before, List<Double> after) { in computeRegression() 255 static double calcMean(List<Double> list) { in calcMean() 260 static double calcStdDev(List<Double> list) { in calcStdDev()
|
D | Metrics.java | 30 private final MultiMap<String, Double> mRunMetrics = new MultiMap<>(); 31 private final MultiMap<Pair<TestDescription, String>, Double> mTestMetrics = new MultiMap<>(); 78 mRunMetrics.put(name, Double.parseDouble(value)); in addRunMetric() 95 mTestMetrics.put(metricId, Double.parseDouble(value)); in addTestMetric() 217 public MultiMap<String, Double> getRunMetrics() { in getRunMetrics() 226 public MultiMap<Pair<TestDescription, String>, Double> getTestMetrics() { in getTestMetrics()
|
/tools/loganalysis/src/com/android/loganalysis/item/ |
D | KernelLogItem.java | 54 setAttribute(START_TIME, Double.valueOf(0.0)); in KernelLogItem() 55 setAttribute(STOP_TIME, Double.valueOf(0.0)); in KernelLogItem() 62 public Double getStartTime() { in getStartTime() 63 return (Double) getAttribute(START_TIME); in getStartTime() 69 public void setStartTime(Double time) { in setStartTime() 76 public Double getStopTime() { in getStopTime() 77 return (Double) getAttribute(STOP_TIME); in getStopTime() 83 public void setStopTime(Double time) { in setStopTime()
|
D | GenericTimingItem.java | 53 public Double getDuration() { in getDuration() 54 return (Double) getAttribute(END_TIME) - (Double) getAttribute(START_TIME); in getDuration() 58 public Double getStartTime() { in getStartTime() 59 return (Double) getAttribute(START_TIME); in getStartTime() 63 public Double getEndTime() { in getEndTime() 64 return (Double) getAttribute(END_TIME); in getEndTime()
|
D | AnrItem.java | 75 public Double getCpuUsage(CpuUsageCategory category) { in getCpuUsage() 76 return (Double) getAttribute(category.toString()); in getCpuUsage() 82 public void setCpuUsage(CpuUsageCategory category, Double usage) { in setCpuUsage() 89 public Double getLoad(LoadCategory category) { in getLoad() 90 return (Double) getAttribute(category.toString()); in getLoad() 96 public void setLoad(LoadCategory category, Double usage) { in setLoad()
|
/tools/loganalysis/src/com/android/loganalysis/parser/ |
D | AnrParser.java | 88 anr.setLoad(AnrItem.LoadCategory.LOAD_1, Double.parseDouble(m.group(1))); in parse() 89 anr.setLoad(AnrItem.LoadCategory.LOAD_5, Double.parseDouble(m.group(2))); in parse() 90 anr.setLoad(AnrItem.LoadCategory.LOAD_15, Double.parseDouble(m.group(3))); in parse() 96 anr.setCpuUsage(AnrItem.CpuUsageCategory.TOTAL, Double.parseDouble(m.group(1))); in parse() 99 Double usage = m.matches() ? Double.parseDouble(m.group(1)) : 0.0; in parse() 103 usage = m.matches() ? Double.parseDouble(m.group(1)) : 0.0; in parse() 107 usage = m.matches() ? Double.parseDouble(m.group(1)) : 0.0; in parse()
|
D | DmesgParser.java | 171 serviceItem.setStartTime((long) (Double.parseDouble( in parseServiceInfo() 179 serviceItem.setEndTime((long) (Double.parseDouble( in parseServiceInfo() 202 stageInfoItem.setStartTime((long) (Double.parseDouble( in parseStageInfo() 210 stageInfoItem.setDuration((long) (Double.parseDouble( in parseStageInfo() 218 stageInfoItem.setDuration((long) Double.parseDouble(match.group(DURATION))); in parseStageInfo() 243 actionInfoItem.setStartTime((long) (Double.parseDouble( in parseActionInfo()
|
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/ |
D | Animator.kt | 22 fun animate(start: Double, end: Double, setter: (Double) -> Unit) { in animate() 26 class Animator(val start: Double, val end: Double, val setter: (Double) -> Unit, val duration: Int … 31 val value: Double = ((end - start) * frac) + start in animate()
|
D | RenderState.kt | 22 class RenderState(minX: Double, maxX: Double, viewWidth: Int) { in <lambda>() 23 var scale: Double in <lambda>() 25 var panX: Double in <lambda>() 41 fun zoomBy(amount: Double, viewX: Int) { in <lambda>()
|
/tools/tradefederation/contrib/src/com/android/performance/tests/ |
D | EmmcPerformanceTest.java | 222 Double kbps = null; in runTest() 241 metrics.put(testKey, Double.toString(stats.median())); in runTest() 245 Double.toString(entry.getValue().median())); in runTest() 265 private Double runDdIteration(String command, Map<String, SimpleStats> simpleperfMetricsMap) in runDdIteration() 280 return convertBpsToKBps(Double.parseDouble(m.group(1))); in runDdIteration() 296 private Double runRandomIteration(String command, Map<String, SimpleStats> simpleperfMetricsMap) in runRandomIteration() 309 return convertIopsToKBps(Double.parseDouble(m.group(1))); in runRandomIteration() 328 Double metricValue = in simpleperfResultAggregation()
|
D | HermeticLaunchTest.java | 419 Double totalTime = 0d; in analyzeLogCatData() 423 Double averageTime = Double.valueOf(totalTime / amLaunchTimes.get(activityName).size()); in analyzeLogCatData() 638 Map<String, Double> launchSum = new HashMap<>(); in averageAtraceData() 647 Double currentSum = launchSum.get(sectionName) + secPeriod.duration; in averageAtraceData() 653 Double drawStartTime = in averageAtraceData() 662 Double currentSum = launchSum.get(sectionName) + secPeriod.duration; in averageAtraceData() 669 Double averageTime = launchSum.get(sectionName) / mutipleLaunchTraceInfo.size(); in averageAtraceData()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | TemperatureCollector.java | 63 private Map<ITestDevice, Double> mMaxDeviceTemps; 69 private Map<ITestDevice, Double> mMinDeviceTemps; 93 Double temp = getTemperature(device); in collect() 114 private Double getTemperature(ITestDevice device) throws DeviceNotAvailableException { in getTemperature() 119 return Double.parseDouble(m.group(1)); in getTemperature() 137 Double maxTemp = mMaxDeviceTemps.get(device); in onEnd() 145 Double minTemp = mMinDeviceTemps.get(device); in onEnd()
|
D | LogcatTimingMetricCollector.java | 175 Map<String, List<Double>> metrics = parse(logcatData); in collectMetrics() 176 for (Map.Entry<String, List<Double>> entry : metrics.entrySet()) { in collectMetrics() 178 List<Double> values = entry.getValue(); in collectMetrics() 204 Map<String, List<Double>> parse(InputStreamSource logcatData) { in parse() 205 Map<String, List<Double>> metrics = new HashMap<>(); in parse() 228 private Metric.Builder createMetric(List<Double> values) { in createMetric() 233 .map(value -> Double.toString(value)) in createMetric()
|
D | AtraceRunMetricCollector.java | 168 resultStats.add(Double.parseDouble(metric[1].trim())); in aggregateMetrics() 172 Double.parseDouble(metric[1].trim())); in aggregateMetrics() 180 Double.toString(resultAggregate.getValue().mean() in aggregateMetrics() 183 Double.toString(resultAggregate.getValue().mean())); in aggregateMetrics() 185 Double.toString(resultAggregate.getValue().max())); in aggregateMetrics() 187 Double.toString(resultAggregate.getValue().min())); in aggregateMetrics()
|
/tools/loganalysis/test_framework/com/android/tradefed/device/metric/ |
D | LogcatTimingMetricCollector.java | 128 Map<String, List<Double>> metrics = parse(logcatData); in onTestRunEnd() 129 for (Map.Entry<String, List<Double>> entry : metrics.entrySet()) { in onTestRunEnd() 131 List<Double> values = entry.getValue(); in onTestRunEnd() 166 Map<String, List<Double>> parse(InputStreamSource logcatData) { in parse() 167 Map<String, List<Double>> metrics = new HashMap<>(); in parse() 190 private Metric.Builder createMetric(List<Double> values) { in createMetric() 195 .map(value -> Double.toString(value)) in createMetric()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | AudioLoopbackTestHelper.java | 623 metrics.put(resultKeyPrefix + "latency_max", Double.toString(mLatencyStats.mMax)); in populateStressTestMetrics() 624 metrics.put(resultKeyPrefix + "latency_min", Double.toString(mLatencyStats.mMin)); in populateStressTestMetrics() 625 metrics.put(resultKeyPrefix + "latency_mean", Double.toString(mLatencyStats.mMean)); in populateStressTestMetrics() 626 metrics.put(resultKeyPrefix + "latency_median", Double.toString(mLatencyStats.mMedian)); in populateStressTestMetrics() 627 metrics.put(resultKeyPrefix + "confidence_max", Double.toString(mConfidenceStats.mMax)); in populateStressTestMetrics() 628 metrics.put(resultKeyPrefix + "confidence_min", Double.toString(mConfidenceStats.mMin)); in populateStressTestMetrics() 629 metrics.put(resultKeyPrefix + "confidence_mean", Double.toString(mConfidenceStats.mMean)); in populateStressTestMetrics() 631 resultKeyPrefix + "confidence_median", Double.toString(mConfidenceStats.mMedian)); in populateStressTestMetrics()
|
D | CameraPerformanceTest.java | 380 List<Double> values = new ArrayList<>(); in parseToCtsMetrics() 382 values.add(Double.parseDouble(value)); in parseToCtsMetrics() 481 List<Double> values = new ArrayList<>(); in parseToCtsMetrics() 484 values.add(Double.parseDouble(parser.nextText())); in parseToCtsMetrics() 525 Map<String, List<Double>> metricsData = new HashMap<>(); in parse() 557 List<Double> list = new ArrayList<>(); in parse() 578 List<Double> list = new ArrayList<>(); in parse()
|
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/fragments/ |
D | SchedulingProcessFragment.kt | 21 …sModelFragment, val thread: ThreadModelFragment, override val startTime: Double) : CpuProcessSlice… 22 override var endTime: Double = Double.MAX_VALUE 27 … fun switchProcess(process: ProcessModelFragment, thread: ThreadModelFragment, timestamp: Double) { in switchProcess() 29 if (_slices.last().endTime == Double.MAX_VALUE) { in switchProcess() 62 override val didNotFinish: Boolean get() = endTime == Double.MAX_VALUE
|
D | AsyncSlicesBuilder.kt | 23 override val startTime: Double, 24 override var endTime: Double, 40 fun openAsyncSlice(pid: Int, name: String, cookie: Int, startTime: Double) { in openAsyncSlice() 41 openSlices[key(name, cookie)] = AsyncSlice(startTime, Double.NaN, name, cookie, in openAsyncSlice() 45 fun closeAsyncSlice(pid: Int, name: String, cookie: Int, endTime: Double) { in closeAsyncSlice() 53 fun autoCloseOpenSlices(maxTimestamp: Double) { in autoCloseOpenSlices()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | GceAvdInfo.java | 240 Double.valueOf(Double.parseDouble(fetch_artifact_time) * 1000).longValue()); in addCfStartTimeMetrics() 246 Double.valueOf(Double.parseDouble(gce_create_time) * 1000).longValue()); in addCfStartTimeMetrics() 252 Double.valueOf(Double.parseDouble(launch_cvd_time) * 1000).longValue()); in addCfStartTimeMetrics()
|