Home
last modified time | relevance | path

Searched refs:centerX (Results 1 – 25 of 132) sorted by relevance

123456

/external/replicaisland/tools/
DExtractPoints.js108 edge.centerX = edge.endX - (width / 2);
116 tile.centerX = totalX;
119 var column = Math.floor(tile.centerX / tileSizeX);
125 tile.centerX -= tile.xOffset;
150 edge.centerX -= tile.xOffset;
157 if (Math.abs(edge.centerX - tile.centerX) >
158 Math.abs((edge.centerX + edge.normalX) - tile.centerX)) {
239 var normalX = Math.round(tile.centerX +
245 tileCenterArray[0] = new Array(offsetX + tile.centerX - 1,
247 tileCenterArray[1] = new Array(offsetX + tile.centerX - 1,
[all …]
/external/perfetto/ui/src/tracks/perf_samples_profile/
Dindex.ts114 const centerX = data.tsStartsNs[i]; constant
116 const isHovered = this.hoveredTs === centerX;
119 selection.leftTs <= centerX && selection.rightTs >= centerX;
123 visibleTimeScale.secondsToPx(fromNs(centerX)),
196 const centerX = timeScale.secondsToPx(fromNs(data.tsStartsNs[left])); constant
197 if (this.isInMarker(x, y, centerX)) {
202 const centerX = timeScale.secondsToPx(fromNs(data.tsStartsNs[right])); constant
203 if (this.isInMarker(x, y, centerX)) {
210 isInMarker(x: number, y: number, centerX: number) {
211 return Math.abs(x - centerX) + Math.abs(y - this.centerY) <=
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowMagnificationController.java28 private float centerX = DEFAULT_CENTER_X; field in ShadowMagnificationController
45 return centerX; in getCenterX()
75 centerX = DEFAULT_CENTER_X; in reset()
83 protected boolean setCenter(float centerX, float centerY, boolean animate) { in setCenter() argument
84 this.centerX = centerX; in setCenter()
103 realObject, magnificationRegion, scale, centerX, centerY)); in notifyListeners()
DShadowCanvas.java160 public final float centerX; field in ShadowCanvas.CirclePaintHistoryEvent
165 CirclePaintHistoryEvent(float centerX, float centerY, float radius, Paint paint) { in CirclePaintHistoryEvent() argument
166 this.centerX = centerX; in CirclePaintHistoryEvent()
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowMagnificationControllerTest.java67 float centerX = 55f; in setCenter_notifiesListener() local
72 magnificationController.setCenter(centerX, centerY, /*animate=*/ false); in setCenter_notifiesListener()
76 assertThat(testListener.centerX).isEqualTo(centerX); in setCenter_notifiesListener()
140 assertThat(testListener.centerX).isEqualTo(0.0f); in reset_notifiesListener()
164 private float centerX = -1f; field in ShadowMagnificationControllerTest.TestListener
172 float centerX, in onMagnificationChanged() argument
176 this.centerX = centerX; in onMagnificationChanged()
/external/perfetto/ui/src/tracks/heap_profile/
Dindex.ts127 const centerX = data.tsStarts[i]; constant
129 const isHovered = this.hoveredTs === centerX;
132 selection.ts === tpTimeFromSeconds(centerX);
136 timeScale.secondsToPx(fromNs(centerX)),
207 const centerX = timeScale.secondsToPx(fromNs(data.tsStarts[left])); constant
208 if (this.isInMarker(x, y, centerX)) {
213 const centerX = timeScale.secondsToPx(fromNs(data.tsStarts[right])); constant
214 if (this.isInMarker(x, y, centerX)) {
221 isInMarker(x: number, y: number, centerX: number) {
222 return Math.abs(x - centerX) + Math.abs(y - this.centerY) <=
/external/perfetto/ui/src/tracks/cpu_profile/
Dindex.ts115 const centerX = data.tsStarts[i]; constant
117 const isHovered = this.hoveredTs === centerX;
119 selection.kind === 'CPU_PROFILE_SAMPLE' && selection.ts === centerX;
123 timeScale.secondsToPx(fromNs(centerX)),
224 const centerX = timeScale.secondsToPx(fromNs(data.tsStarts[left])); constant
225 if (this.isInMarker(x, y, centerX)) {
230 const centerX = timeScale.secondsToPx(fromNs(data.tsStarts[right])); constant
231 if (this.isInMarker(x, y, centerX)) {
238 isInMarker(x: number, y: number, centerX: number) {
239 return Math.abs(x - centerX) + Math.abs(y - this.centerY) <=
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/demos/transformer/src/main/java/com/google/android/exoplayer2/transformerdemo/
DPeriodicVignetteFrameProcessor.java44 private float centerX; field in PeriodicVignetteFrameProcessor
73 float centerX, in PeriodicVignetteFrameProcessor() argument
81 this.centerX = centerX; in PeriodicVignetteFrameProcessor()
93 glProgram.setFloatsUniform("uCenter", new float[] {centerX, centerY}); in initialize()
DAdvancedFrameProcessorFactory.java70 float centerX = 0.5f * (float) Math.cos(theta); in calculateDizzyCropMatrix() local
73 transformationMatrix.postTranslate(/* dx= */ centerX, /* dy= */ centerY); in calculateDizzyCropMatrix()
/external/replicaisland/src/com/replica/replicaisland/
DSphereCollisionVolume.java27 public SphereCollisionVolume(float radius, float centerX, float centerY) { in SphereCollisionVolume() argument
30 mCenter = new Vector2(centerX, centerY); in SphereCollisionVolume()
35 public SphereCollisionVolume(float radius, float centerX, float centerY, int hit) { in SphereCollisionVolume() argument
38 mCenter = new Vector2(centerX, centerY); in SphereCollisionVolume()
109 final float centerX = deltaX / 2.0f; in intersects() local
113 mWorkspaceVector2.x += centerX; in intersects()
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/
DImageViewState.java15 private final float centerX; field in ImageViewState
23 this.centerX = center.x; in ImageViewState()
33 return new PointF(centerX, centerY); in getCenter()
/external/skia/gm/
Dpictureimagegenerator.cpp73 canvas->drawCircle(iBox.centerX(), in draw_vector_logo()
79 path.moveTo(iBox.centerX() - accentSize / 2, iBox.bottom() + kVerticalSpacing * accentSize); in draw_vector_logo()
81 path.lineTo(iBox.centerX(), underlineY); in draw_vector_logo()
84 SkRect underlineRect = SkRect::MakeLTRB(iBox.centerX() - iBox.width() * accentSize * 3, in draw_vector_logo()
86 iBox.centerX(), in draw_vector_logo()
89 SkPoint::Make(iBox.centerX(), 0) }; in draw_vector_logo()
Daddarc.cpp281 SkScalar centerX = 50; variable
289 path.moveTo(centerX + innerRadius * sk_float_cos(startAngles[i]),
291 path.lineTo(centerX + outerRadius * sk_float_cos(startAngles[i]),
294 html_canvas_arc(&path, centerX, outerRadius, outerRadius,
297 path.lineTo(centerX + innerRadius * sk_float_cos(endAngle),
299 html_canvas_arc(&path, centerX, outerRadius, innerRadius,
Dorientation.cpp99 drawLabel("top", midX - bounds.centerX(), -bounds.top() + kPad); in make_images()
102 drawLabel("bottom", midX - bounds.centerX(), kImgH - kPad - bounds.bottom()); in make_images()
115 drawLabel(num.c_str(), midX - bounds.centerX(), baseY); in make_images()
Dlocalmatrixshader.cpp192 auto g1 = SkGradientShader::MakeRadial({imgRect.centerX(), imgRect.centerY()},
198 auto g2 = SkGradientShader::MakeRadial({imgRect.centerX(), imgRect.centerY()},
205 auto g3 = SkGradientShader::MakeRadial({imgRect.centerX(), imgRect.centerY()},
211 auto g4 = SkGradientShader::MakeRadial({imgRect.centerX(), imgRect.centerY()},
Dfilltypes.cpp55 canvas->translate(r.centerX(), r.centerY()); in showPath()
57 canvas->translate(-r.centerX(), -r.centerY()); in showPath()
/external/skia/docs/examples/
DRect_centerX.cpp9 SkDebugf("left: %3g right: %3g centerX: %3g\n", rect.left(), rect.right(), rect.centerX()); in draw()
11 SkDebugf("left: %3g right: %3g centerX: %3g\n", rect.left(), rect.right(), rect.centerX()); in draw()
DMatrix_setRotate_2.cpp15 canvas->translate(rect.centerX(), rect.centerY()); in draw()
17 canvas->translate(-rect.centerX(), -rect.centerY()); in draw()
DMatrix_setSinCos_2.cpp15 matrix.postTranslate(rect.centerX(), rect.centerY()); in draw()
17 canvas->translate(-rect.centerX(), -rect.centerY()); in draw()
DMatrix_setRSXform.cpp14 matrix.setRSXform(SkRSXform::Make(.85f, .25f, rect.centerX(), rect.centerY())); in draw()
16 canvas->translate(-rect.centerX(), -rect.centerY()); in draw()
/external/deqp/external/openglcts/modules/glesext/texture_border_clamp/
DesextcTextureBorderClampSamplingTexture.cpp1012 glw::GLuint centerX = m_test_configuration.get_width() / 2; in checkLinear() local
1028 index = y * outRowWidth + centerX * out_components + c; in checkLinear()
1032 << ") when moving from center point (x, y) = (" << centerX << "," << centerY in checkLinear()
1034 << "at point (x, y) = (" << centerX << "," << y in checkLinear()
1047 index = y * outRowWidth + centerX * out_components + c; in checkLinear()
1051 << ") when moving from center point (x, y) = (" << centerX << "," << centerY in checkLinear()
1053 << "at point (x, y) = (" << centerX << "," << y in checkLinear()
1062 for (glw::GLuint x = centerX; x < centerX + stepX; ++x) in checkLinear()
1070 << ") when moving from center point (x, y) = (" << centerX << "," << centerY in checkLinear()
1081 for (glw::GLuint x = centerY; x > centerX - stepX; --x) in checkLinear()
[all …]
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/
DCameraConnectionFragment.java581 final float centerX = viewRect.centerX(); in configureTransform() local
584 bufferRect.offset(centerX - bufferRect.centerX(), centerY - bufferRect.centerY()); in configureTransform()
590 matrix.postScale(scale, scale, centerX, centerY); in configureTransform()
591 matrix.postRotate(90 * (rotation - 2), centerX, centerY); in configureTransform()
593 matrix.postRotate(180, centerX, centerY); in configureTransform()
/external/skia/tools/viewer/
DArcSlide.cpp79 canvas->drawLine(r.centerX(), r.fTop, r.centerX(), r.fBottom, p); in DrawRectWithLines()
88 SkTextUtils::DrawString(canvas, str.c_str(), rect.centerX(), in DrawLabel()
DFilterBoundsSlide.cpp111 SkPoint pts[] = {{key.centerX(), key.fTop}, {key.centerX(), key.fBottom}}; in draw_scale_key()
126 testPoints[0] = {rect.centerX(), rect.centerY()}; in draw_scale_factors()
196 skif::ParameterSpace<SkPoint> contentCenter({localContentRect.centerX(), in draw()
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/image/
DBoundingBoxUtil.java211 float centerX = values[0]; in convertFromCenter() local
216 float left = centerX - w / 2; in convertFromCenter()
218 float right = centerX + w / 2; in convertFromCenter()

123456