Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 41) sorted by relevance

12

/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DStat.java44 double max, in StatResult() argument
50 mMax = max; in StatResult()
63 double max = data[0]; in getStat() local
66 if (data[i] > max) { in getStat()
67 max = data[i]; in getStat()
82 return new StatResult(average, min, max, stddev, median, data.length); in getStat()
149 double max = data[0]; in getMax() local
151 if (data[i] > max) { in getMax()
152 max = data[i]; in getMax()
155 return max; in getMax()
/platform_testing/libraries/flicker/utils/src/android/tools/
DTimestampFactory.kt22 private val max by lazy { in <lambda>() constant
27 fun max(): Timestamp = max in min() method
DTimestamp.kt19 import kotlin.math.max
98 val elapsedNanos = max(this.elapsedNanos - nanos, 0L) in minus()
99 val systemUptimeNanos = max(this.systemUptimeNanos - nanos, 0L) in minus()
100 val unixNanos = max(this.unixNanos - nanos, 0L) in minus()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DLongStatsCollector.java64 mMax = Math.max(mMax, value); in accept()
74 private Stats(int samples, long min, long max, double median) { in Stats() argument
77 mMax = max; in Stats()
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
DScheduledScenarioRunner.java19 import static java.lang.Math.max;
89 mTotalTimeoutMs = max(timeout, 0); in ScheduledScenarioRunner()
92 mEnforcedTimeoutMs = max(mTotalTimeoutMs - mTeardownLeewayMs, 0); in ScheduledScenarioRunner()
133 max( in withAfters()
157 return max(mTotalTimeoutMs - (System.currentTimeMillis() - mStartTimeMs), 0); in getTimeRemainingForScenario()
163 return max(mEnforcedTimeoutMs - (System.currentTimeMillis() - mStartTimeMs), 0); in getTimeRemainingForTimeoutRule()
/platform_testing/libraries/flicker/src/android/tools/flicker/extractors/
DTaggedScenarioExtractor.kt26 import kotlin.math.max in <lambda>()
138 max(cujEntry.endTimestamp.elapsedNanos, interpolatedEndTimestamp.elapsedNanos), in <lambda>()
140 max( in <lambda>()
144 unixNanos = max(cujEntry.endTimestamp.unixNanos, interpolatedEndTimestamp.unixNanos) in <lambda>()
DEntireTraceExtractor.kt24 return listOf(TraceSlice(Timestamps.min(), Timestamps.max())) in extract()
/platform_testing/libraries/flicker/utils/src/android/tools/parsers/
DAbstractTraceParser.kt40 to = Timestamps.max(), in getEntries()
50 to = Timestamps.max(), in parse()
60 to = Timestamps.max(), in doParse()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/runner/
DTestUtils.kt30 validateTimeGreaterThan(Timestamps.max(), "End time", endTime) in validateTransitionTime()
37 validateEqualTo(endTime, "End time", Timestamps.max()) in validateTransitionTimeIsEmpty()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/monitors/
DNoTraceMonitor.kt33 writer.setTransitionEndTime(Timestamps.max()) in stop()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/
DScenarioInstanceTest.kt46 return listOf(TraceSlice(Timestamps.min(), Timestamps.max())) in willReportFlickerAssertions()
86 endTimestamp = Timestamps.max(), in willReportFlickerAssertions()
130 return listOf(TraceSlice(Timestamps.min(), Timestamps.max())) in willReportMainBlockAssertions()
160 endTimestamp = Timestamps.max(), in willReportMainBlockAssertions()
DFlickerServiceTest.kt51 TraceSlice(startTimestamp = Timestamps.min(), endTimestamp = Timestamps.max()) in generatesAssertionsFromExtractedScenarios()
75 TraceSlice(startTimestamp = Timestamps.min(), endTimestamp = Timestamps.max()) in executesAssertionsReturnedByAssertionFactories()
/platform_testing/libraries/motion/src/platform/test/motion/filmstrip/
DFilmstrip.kt26 import kotlin.math.max
124 val labelWidth = ceil(labels.map { textPaint.measureText(it) }.max()).toInt() in <lambda>()
142 val tileWidth = max(screenshotWidth, labelWidth) in render()
194 val tileHeight = max(screenshotHeight, labelHeight + 2 * labelMargin) in render()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/wm/
DLegacyTransitionTraceParser.kt31 to: Timestamp = Timestamps.max(), in parse()
/platform_testing/libraries/collectors-helper/lyric/src/com/android/helpers/
DLyricMemProfilerHelper.java129 Math.max(mMaxCameraMemInfoList[i].mNativeHeap, memInfoList[i].mNativeHeap); in setMaxResult()
131 Math.max(mMaxCameraMemInfoList[i].mTotalPss, memInfoList[i].mTotalPss); in setMaxResult()
132 mMaxCameraDmabufList[i] = Math.max(mMaxCameraDmabufList[i], dmabufList[i]); in setMaxResult()
134 mMaxTotalCameraDmabuf = Math.max(mMaxTotalCameraDmabuf, totalDmabuf); in setMaxResult()
135 mMaxTotalCameraMemory = Math.max(mMaxTotalCameraMemory, totalMemory); in setMaxResult()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DTracePointRule.java75 return name.substring(Math.max(0, name.length() - getMaxSectionLength())); in getSectionName()
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/surfaceflinger/
DLayersTraceTest.kt124 trace.getFirstEntryWithOnDisplayAfter(Timestamps.max()) in getFirstEntryWithOnDisplay()
135 val matchingEntry = trace.getLastEntryWithOnDisplayBefore(Timestamps.max()) in getLastEntryWithOnDisplay()
/platform_testing/libraries/system-helpers/device-helper/src/android/system/helpers/
DDeviceHelper.java68 int screenHeight = Math.max( in isTablet()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/events/
DCujTrace.kt60 it?.timestamp ?: Timestamps.max() in from()
/platform_testing/libraries/flicker/utils/test/src/android/tools/io/
DResultReaderTest.kt58 val slicedReader = reader.slice(Timestamps.min(), Timestamps.max()) in slicedResultKeepsStatusInSync()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/io/
DResultWriter.kt39 private var transitionEndTime = Timestamps.max()
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/generic/
DMathWork.java75 Math.max(0, mDurationMs.get() - (SystemClock.uptimeMillis() - startTime))); in testDoMath()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DMemHealthRecord.java457 Long max = null; in getMax() local
459 if (max == null || sample > max) { in getMax()
460 max = sample; in getMax()
463 return max; in getMax()
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/
DUiInteractionFrameInfoListener.java98 result = Double.max(result, Double.parseDouble(token));
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/matchers/
DHumanEyeMatcher.kt6 import kotlin.math.max in <lambda>()
140 return max(diffWithWhite, diffWithBlack) in <lambda>()

12