Home
last modified time | relevance | path

Searched refs:height (Results 1 – 25 of 71) sorted by relevance

123

/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DDefaultDeviceEmulationSpec.kt49 height = 3120,
57 height = 1600,
65 height = 2092,
73 height = 1840,
81 height = 2424,
89 height = 2152,
97 height = 480,
105 height = 720,
113 height = 1080,
121 height = 2160,
DDeviceEmulationRule.kt71 val (width, height) = getEmulatedDisplaySize() in <lambda>() constant
80 val scaledHeight = height * 160 / density in <lambda>()
96 if (prevWidth != width || prevHeight != height) { in <lambda>()
97 setDisplaySize(width, height) in <lambda>()
108 setDisplaySize(width, height) in <lambda>()
126 val isPortraitNaturalPosition = display.width < display.height in <lambda>()
128 display.height to display.width in <lambda>()
130 display.width to display.height in <lambda>()
142 private fun setDisplaySize(width: Int, height: Int) { in <lambda>()
146 wm.setForcedDisplaySize(Display.DEFAULT_DISPLAY, width, height) in <lambda>()
[all …]
DMaterialYouColorsSimulationUtils.kt47 private fun pixelWithinFilterRange(row: Int, col: Int, width: Int, height: Int): Boolean { in pixelWithinFilterRange()
49 row < height - FILTER_SIZE && in pixelWithinFilterRange()
106 val colorValidArray = IntArray(originalBitmap.width * originalBitmap.height, { 0 }) in bitmapWithMaterialYouColorsSimulation()
107 val stream = IntStream.range(0, originalBitmap.width * originalBitmap.height) in bitmapWithMaterialYouColorsSimulation()
122 val newStream = IntStream.range(0, originalBitmap.width * originalBitmap.height) in bitmapWithMaterialYouColorsSimulation()
134 originalBitmap.height in bitmapWithMaterialYouColorsSimulation()
152 originalBitmap.height, in bitmapWithMaterialYouColorsSimulation()
DScreenshotTestRule.kt193 if (actual.width != expected.width || actual.height != expected.height) { in <lambda>()
199 expectedHeight = expected.height, in <lambda>()
201 actualHeight = actual.height in <lambda>()
214 val expectedHeight = expected.height in <lambda>()
230 height = actual.height, in <lambda>()
278 val imageRect = Rect(0, 0, original.width, original.height) in <lambda>()
404 val bitmapArray = IntArray(width * height) in toIntArray()
405 getPixels(bitmapArray, 0, width, 0, 0, width, height) in toIntArray()
/platform_testing/libraries/flicker/utils/src/android/tools/datatypes/
DSize.kt26 open class Size protected constructor(val width: Int, val height: Int) : DataType() { constant in android.tools.datatypes.Size
27 override val isEmpty = height == 0 || width == 0
29 override fun doPrintValue() = "$width x $height" in doPrintValue()
33 get() = withCache { Size(width = 0, height = 0) } in doPrintValue()
34 fun from(width: Int, height: Int): Size = withCache { Size(width, height) } in doPrintValue()
DActiveBuffer.kt26 class ActiveBuffer private constructor(width: Int, height: Int, val stride: Int, val format: Int) :
27 Size(width, height) {
28 override fun doPrintValue() = "w:$width, h:$height, stride:$stride, format:$format" in doPrintValue()
32 get() = withCache { ActiveBuffer(width = 0, height = 0, stride = 0, format = 0) } in doPrintValue()
33 fun from(width: Int, height: Int, stride: Int, format: Int): ActiveBuffer = withCache { in doPrintValue()
34 ActiveBuffer(width, height, stride, format) in doPrintValue()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/
DMSSIMMatcherTest.kt35 val filter = BooleanArray(first.width * first.height) { true } in performDiff_sameBitmaps()
43 first.height, in performDiff_sameBitmaps()
55 val filter = BooleanArray(first.width * first.height) { false } in performDiff_noPixelsCompared()
63 first.height, in performDiff_noPixelsCompared()
74 val filter = BooleanArray(first.width * first.height) { false } in performDiff_sameRegion()
75 val startHeight = 18 * first.height / 20 in performDiff_sameRegion()
76 val endHeight = 37 * first.height / 40 in performDiff_sameRegion()
91 first.height, in performDiff_sameRegion()
103 val filter = BooleanArray(first.width * first.height) { true } in performDiff_checkedAgainstUnchecked()
111 first.height, in performDiff_checkedAgainstUnchecked()
[all …]
DPixelPerfectMatcherTest.kt43 first.height in performDiff_sameBitmaps()
60 height = first.height, in performDiff_sameSize_partialCompare_topLeftOutOfBoundaries_diff()
78 height = first.height, in performDiff_sameSize_partialCompare_topLeft_diffBoundaries()
79 regions = listOf(Rect(0, 0, first.width / 2, first.height / 2)) in performDiff_sameSize_partialCompare_topLeft_diffBoundaries()
96 height = first.height, in performDiff_sameSize_partialCompare_bottomRight()
97 regions = listOf(Rect(first.width / 2, first.height / 2, first.width, first.height)) in performDiff_sameSize_partialCompare_bottomRight()
114 height = first.height, in performDiff_sameSize_partialCompare_bottomRightOutOfBoundaries_diff()
117 Rect(first.width / 2, first.height / 2, first.width + 10, first.height + 10) in performDiff_sameSize_partialCompare_bottomRightOutOfBoundaries_diff()
135 first.height in performDiff_sameSize_differentBorders()
152 first.height, in performDiff_sameSize_differentBorders_partialCompare()
[all …]
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/matchers/
DBitmapMatcher.kt44 height: Int, in <lambda>()
70 val height = if (expectedHeight < actualHeight) expectedHeight else actualHeight in <lambda>() constant
74 val diffArray = lazy { IntArray(width * height) { Color.TRANSPARENT } } in <lambda>()
76 for (i in 0..<height) { in <lambda>()
91 .setNumberPixelsCompared(width * height) in <lambda>()
97 val diff = Bitmap.createBitmap(diffArray.value, width, height, Bitmap.Config.ARGB_8888) in <lambda>()
105 protected fun getFilter(width: Int, height: Int, regions: List<Rect>): BooleanArray { in <lambda>()
107 BooleanArray(width * height) { true } in <lambda>()
109 val regionsSanitised = regions.map { Rect(it).apply { intersect(0, 0, width, height) } } in <lambda>()
110 BooleanArray(width * height).also { filterArr -> in <lambda>()
[all …]
DAlmostPerfectMatcher.kt42 height: Int, in <lambda>()
47 val filter = getFilter(width, height, regions) in <lambda>()
52 val diffArray = lazy { IntArray(width * height) { Color.TRANSPARENT } } in <lambda>()
64 else (acceptableThreshold * width * height).toInt() in <lambda>()
68 else Bitmap.createBitmap(diffArray.value, width, height, Bitmap.Config.ARGB_8888) in <lambda>()
76 .setNumberPixelsCompared(width * height) in <lambda>()
94 val height = if (expectedHeight < actualHeight) expectedHeight else actualHeight in <lambda>() constant
99 val diffArray = lazy { IntArray(width * height) { Color.TRANSPARENT } } in <lambda>()
101 for (i in 0..<height) { in <lambda>()
116 else (acceptableThreshold * width * height).toInt() in <lambda>()
[all …]
DPixelPerfectMatcher.kt32 height: Int, in <lambda>()
37 val filter = getFilter(width, height, regions) in <lambda>()
42 val diffArray = lazy { IntArray(width * height) { Color.TRANSPARENT } } in <lambda>()
54 .setNumberPixelsCompared(width * height) in <lambda>()
61 val diff = Bitmap.createBitmap(diffArray.value, width, height, Bitmap.Config.ARGB_8888) in <lambda>()
DHumanEyeMatcher.kt30 height: Int, in <lambda>()
37 val filter = getFilter(width, height, regions) in <lambda>()
42 IntArray(width * height) { index -> in <lambda>()
58 val diffArray = lazy { IntArray(width * height) { Color.TRANSPARENT } } in <lambda>()
68 height, in <lambda>()
69 width * height - ignored - different, in <lambda>()
101 val downThreshold = if (y < height - 1) getEasiestThresholdFailed(x, y + 1) else null in <lambda>()
120 height, in <lambda>()
121 width * height - ignored - different, in <lambda>()
196 height: Int, in <lambda>()
[all …]
DMSSIMMatcher.kt48 height: Int, in compareBitmaps()
51 val filter = getFilter(width, height, regions) in compareBitmaps()
52 val calSSIMResult = calculateSSIM(expected, given, width, height, filter) in compareBitmaps()
71 val result = PixelPerfectMatcher().compareBitmaps(expected, given, width, height, regions) in compareBitmaps()
79 height: Int, in calculateSSIM()
82 return calculateSSIM(ideal, given, 0, width, width, height, filter) in calculateSSIM()
91 height: Int, in calculateSSIM()
99 while (currentWindowY < height) { in calculateSSIM()
100 val windowHeight = computeWindowSize(currentWindowY, height) in calculateSSIM()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/matchers/
DHumanEyeMatcherTest.kt25 height = 1, in <lambda>()
42 height = 1, in <lambda>()
59 height = 1, in <lambda>()
76 height = 1, in <lambda>()
93 height = first.height in <lambda>()
109 height = 2, in <lambda>()
137 height = 3, in <lambda>()
168 height = 3, in <lambda>()
187 height = 3, in <lambda>()
222 height = 3, in <lambda>()
[all …]
DAlmostPerfectMatcherTest.kt39 height = 1, in diffColor_exactMatch()
57 height = 1, in diffColor_almostMatchLowRed()
75 height = 1, in diffColor_almostMatchHighRed()
93 height = 1, in diffColor_notMatch()
112 height = first.height in performDiff_sameBitmaps()
130 height = first.height, in performDiff_sameSize_partialCompare_checkDiffImage()
136 for (i in 0 until first.height) { in performDiff_sameSize_partialCompare_checkDiffImage()
/platform_testing/libraries/media-helper/src/android/test/mediahelper/
DMediaValidationHelper.java93 int height = format.getInteger(MediaFormat.KEY_HEIGHT); in validateVideoTrackMediaFormat() local
97 "Duration: %d; Width: %d; Height: %d", durationMillis, width, height)); in validateVideoTrackMediaFormat()
100 assertThat(height).isEqualTo(expHeight); in validateVideoTrackMediaFormat()
112 int height = bitmap.getHeight(); in validateImage() local
114 Log.d(TAG, String.format("Height: %d; Width: %d", height, width)); in validateImage()
115 assertThat(height).isGreaterThan(minHeight); in validateImage()
/platform_testing/libraries/motion/src/platform/test/motion/filmstrip/
DFilmstrip.kt40 private var screenshotHeight = screenshots.maxOf { it.bitmap.height } in <lambda>()
78 val scaleY = screenshotHeight.toFloat() / screenshots.maxOf { it.bitmap.height } in <lambda>()
145 val height = screenshotHeight + labelHeight + 2 * labelMargin in render() constant
147 val filmstrip = Bitmap.createBitmap(width, height, bitmapConfig) in render()
155 /* bottom = */ height.toFloat(), in render()
197 val height = screenshots.size * tileHeight in render() constant
199 val filmstrip = Bitmap.createBitmap(width, height, bitmapConfig) in render()
206 /* bottom = */ height.toFloat(), in render()
229 /* y = */ y + (tileHeight + textBounds.height()) / 2, in render()
/platform_testing/libraries/flicker/utils/src/android/tools/helpers/
DWindowUtils.kt71 Rect(0, 0, displayBounds.height(), displayBounds.width()) in getDisplayBounds()
73 Rect(0, 0, displayBounds.width(), displayBounds.height()) in getDisplayBounds()
97 val height = getExpectedStatusBarHeight(display) in getExpectedStatusBarPosition() constant
98 return Region(0, 0, display.displayRect.width(), height) in getExpectedStatusBarPosition()
118 val displayHeight = display.layerStackSpace.height() in getNavigationBarPosition()
147 displayHeight = displayBounds.height() in estimateNavigationBarPosition()
150 displayWidth = displayBounds.height() in estimateNavigationBarPosition()
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/
DSplitAppLayerBoundsSnapToDivider.kt62 return if (displaySize.width > displaySize.height) { in calculateExpectedDisplaySize()
68 displaySize.height in calculateExpectedDisplaySize()
75 displaySize.height in calculateExpectedDisplaySize()
91 displaySize.height in calculateExpectedDisplaySize()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/utils/
DBitmapUtils.kt34 height: Int = 100, in createBitmap()
36 ) = Bitmap.createBitmap(width, height, bitmapConfig).also { Canvas(it).drawColor(color) } in createBitmap()
/platform_testing/tests/perf/PerformanceLaunch/src/com/android/performanceLaunch/helper/
DSimpleGLRenderer.java96 public void onSurfaceChanged(GL10 unused, int width, int height) { in onSurfaceChanged() argument
99 GLES20.glViewport(0, 0, width, height); in onSurfaceChanged()
101 float ratio = (float) width / height; in onSurfaceChanged()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/
DWindowLayoutParams.kt33 val height: Int = 0, constant in android.tools.traces.wm.WindowLayoutParams
70 if (height != other.height) return false in equals()
106 result = 31 * result + height in hashCode()
137 return "WindowLayoutParams(type=$type, x=$x, y=$y, width=$width, height=$height, " + in toString()
165 height: Int, in from()
197 height, in from()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper2/
DNexusLauncherStrategy.java109 int height = mDevice.getDisplayHeight(); in openAllApps() local
113 height * 6 / 7, in openAllApps()
115 height / 7, in openAllApps()
116 (height * 2 / 3) / 100); // 100 px/step in openAllApps()
DBaseLauncher3Strategy.java95 int height = mDevice.getDisplayHeight(); in openAllApps() local
99 height * 6 / 7, in openAllApps()
101 height / 7, in openAllApps()
102 (height * 2 / 3) / 100); // 100 px/step in openAllApps()
114 final int topGestureMargin = (int) (allAppsContainer.getVisibleBounds().height() * 0.15f); in openAllApps()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DNexusLauncherStrategy.java117 int height = mDevice.getDisplayHeight(); in openAllApps() local
121 height * 6 / 7, in openAllApps()
123 height / 7, in openAllApps()
124 (height * 2 / 3) / 100); // 100 px/step in openAllApps()

123