Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 34) sorted by relevance

12

/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/tracks/
DSliceTrack.kt44 var width: Int in paintComponent() variable
53 width = maxOf(scaledWidth.toInt(), 1) in paintComponent()
54 if (x + width > 0 && x < this.width) { in paintComponent()
61 g.fillRect(x, y, width, height) in paintComponent()
64 drawLabel(it, g, metrics, x, ty, width) in paintComponent()
70 open fun drawLabel(slice: T, g: Graphics, metrics: FontMetrics, x: Int, y: Int, width: Int) { in drawLabel()
73 while (strLimit < slice.name.length && strWidth <= width) { in drawLabel()
77 if (strWidth > width) strLimit-- in drawLabel()
DSchedTrack.kt40 …e fun drawLabel(slice: SchedSlice, g: Graphics, metrics: FontMetrics, x: Int, y: Int, width: Int) { in drawLabel()
/tools/test/connectivity/tools/
Dread_acts_results.py107 print(' '.join((val.ljust(width) for val, width in zip(row,
120 print(' '.join((val.ljust(width) for val, width in zip(row,
126 print(' '.join((val.ljust(width) for val, width in zip(row,
132 print(' '.join((val.ljust(width)
133 for val, width in zip(row, widths))))
/tools/tradefederation/contrib/src/com/android/media/tests/
DAudioLoopbackImageAnalyzer.java91 final int width = img.getWidth(); in analyzeImage() local
94 CLog.i("image width=" + width + ", height=" + height); in analyzeImage()
105 if (width >= TABLET_SCREEN_MIN_WIDTH && height >= TABLET_SCREEN_MIN_HEIGHT) { in analyzeImage()
111 horizontalStart = Math.round(1.7f * SECTION_WIDTH_IN_PERCENT * width / 100.0f); in analyzeImage()
130 final int[] horizontal = new int[width]; in analyzeImage()
132 projectPixelsToXAxis(img, targetColors, horizontal, width, height); in analyzeImage()
135 if (!boundsWithinRange(durationBounds, 0, width)) { in analyzeImage()
158 final float duration = (durationRight - durationLeft) * 100.0f / width; in analyzeImage()
390 final int width, in projectPixelsToXAxis() argument
395 for (int x = 0; x < width; x++) { in projectPixelsToXAxis()
/tools/acloud/internal/lib/
Dutils_test.py46 def __init__(self, width=None, height=None): argument
47 self.width = width
58 return self.width
279 mock_tk.return_value = FakeTkinter(height=800, width=1200)
285 mock_tk.return_value = FakeTkinter(height=800, width=1200)
291 mock_tk.return_value = FakeTkinter(height=1080, width=1920)
298 mock_tk.return_value = FakeTkinter(height=1200, width=800)
/tools/tradefederation/core/src/com/android/tradefed/util/
DTableBuilder.java100 int width = mRowLength - 2 - mPadding * 2; // Deduct boundaries in build() local
106 if (text.length() > width) { in build()
107 mBuilder.append(text.substring(0, width)); in build()
108 text = text.substring(width); in build()
111 addPadding(width - text.length()); in build()
/tools/dexter/slicer/
Ddex_bytecode.cc105 size_t width = 0; in GetWidthFromBytecode() local
107 width = 4 + bytecode[1] * 2; in GetWidthFromBytecode()
109 width = 2 + bytecode[1] * 4; in GetWidthFromBytecode()
114 width = 4 + (elemWidth * len + 1) / 2; in GetWidthFromBytecode()
116 width = GetWidthFromFormat( in GetWidthFromBytecode()
119 return width; in GetWidthFromBytecode()
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/
DTimelineView.kt67 lastMousePosition.setLocation(width / 2, 0)
77 renderState.pan((width * -.3).toInt()) in <lambda>()
80 renderState.pan((width * .3).toInt()) in <lambda>()
96 return maxOf(0, minOf(this.width, lastMousePosition.x - LayoutConstants.RowLabelWidth)) in isFocusable()
DRowLabel.kt30 dimen.width = LayoutConstants.RowLabelWidth in getPreferredSize()
DTraceViewerWindow.kt103 frame.size.width - LayoutConstants.RowLabelWidth) in <lambda>()
/tools/test/graphicsbenchmark/performance_tests/hostside/test/com/android/game/qualification/test/
DPerformanceTestTest.java37 int width = 10; in createImage() local
39 BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); in createImage()
40 for (int i = 0; i < width; i++) { in createImage()
/tools/asuite/asuite_plugin/src/java/com/android/atest/toolWindow/
DAtestToolWindow.java134 int width = toolWindowEx.getComponent().getWidth(); in setInitialWidth() local
135 if (width < INITIAL_WIDTH) { in setInitialWidth()
136 toolWindowEx.stretchWidth(INITIAL_WIDTH - width); in setInitialWidth()
/tools/test/graphicsbenchmark/apps/sample_app/src/cpp/
Drenderer.cpp129 egl.width = w; in initDisplay()
215 float ratio = float(egl.width) / egl.height; in draw()
Drenderer.h37 int32_t width; member
Dvecmath.cpp319 Mat4 Mat4::Perspective(float width, float height, float nearPlane, in Perspective() argument
325 result.f_[0] = n2 / width; in Perspective()
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_performance_test_utils.py250 width=1100, argument
261 'width': width,
305 width=3, argument
342 'width': width,
Dwifi_power_test_utils.py111 source=s2, columns=columns, width=1300, height=60, editable=True)
/tools/test/graphicsbenchmark/functional_tests/java/src/com/android/game/qualification/tests/
DChoreoTestActivity.java57 … public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {} in ChoreoTestView()
DSurfaceFlingerTestActivity.java82 … public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in TestView()
/tools/test/connectivity/acts/framework/acts/test_utils/power/
DPowerGnssBaseTest.py113 source=s2, columns=columns, width=1300, height=60, editable=True)
/tools/test/connectivity/acts/tests/google/wifi/
DWifiRoamingPerformanceTest.py375 width=1)
409 iperf_time_stamps, result['throughput'], 'Throughput', width=1)
DWifiRvrTest.py761 width=1,
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java721 rawImage.width, rawImage.height, BufferedImage.TYPE_3BYTE_BGR); in rawImageToBufferedImage()
724 image = new BufferedImage(rawImage.width, rawImage.height, BufferedImage.TYPE_INT_ARGB); in rawImageToBufferedImage()
731 for (int x = 0 ; x < rawImage.width ; x++) { in rawImageToBufferedImage()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceTest.java4195 sRawImage.width = 1080; in prepareRawImage()
4214 testImage.width = 25; in testCompressScreenshot()
4261 testImage.width = 25; in testRawImageToBufferedImage()
4265 assertEquals(testImage.width, bufferedImage.getWidth()); in testRawImageToBufferedImage()
4271 assertEquals(testImage.width, bufferedImage.getWidth()); in testRawImageToBufferedImage()
4318 assertEquals(testImage[0].width, image.getWidth()); in testCompressScreenshotNoRescale()
/tools/repohooks/tools/
Dcpplint.py4291 width = 0
4294 width += 2
4304 width -= 1
4306 width += 1
4307 return width

12