Home
last modified time | relevance | path

Searched refs:scale (Results 1 – 25 of 45) sorted by relevance

12

/cts/tests/openglperf2/jni/reference/scene/flocking/
DBoid.cpp40 tmp.scale(1.0f / dist); in flock()
57 separation.scale(1.0f / separationCount); in flock()
58 separation.scale(SEPARATION_WEIGHT); in flock()
62 alignment.scale(1.0f / alignmentCount); in flock()
64 alignment.scale(ALIGNMENT_WEIGHT); in flock()
68 cohesion.scale(1.0f / cohesionCount); in flock()
69 cohesion.scale(COHESION_WEIGHT); in flock()
75 desired.scale(MAX_SPEED * ((d < 100.0f) ? d / 100.0f : 1)); in flock()
/cts/apps/CameraITS/pymodules/its/
Dcv2image.py60 def scale_img(img, scale=1.0): argument
62 dim = (int(img.shape[1]*scale), int(img.shape[0]*scale))
104 … self.xnorm, self.ynorm, self.wnorm, self.hnorm, self.scale = its.image.chart_located_per_argv()
120 self.scale = 1.0
185 self.scale = s_factor
192 for scale in numpy.arange(scale_start, scale_stop, scale_step):
193 scene_scaled = scale_img(scene_gray, scale)
200 print ' scale factor: %.3f, opt val: %.f' % (scale, opt_val)
219 self.scale = scale_start + scale_step * match_index
220 print 'Optimum scale factor: %.3f' % self.scale
[all …]
/cts/tests/tests/media/src/android/media/cts/
DFaceView.java78 float scale = Math.min((float) getWidth() / mPicWidth, (float) getHeight() / mPicHeight); in onDraw() local
80 scaledRect.scale(scale); in onDraw()
85 float centerX = eyesMP.x * scale; in onDraw()
86 float centerY = eyesMP.y * scale; in onDraw()
87 float eyesDistance = face.eyesDistance() * scale; in onDraw()
DIvfWriter.java56 String filename, String mimeType, int width, int height, int scale, in IvfWriter() argument
62 mScale = scale; in IvfWriter()
117 int frameCount, int width, int height, int scale, int rate, String mimeType) { in makeIvfHeader() argument
132 lay32Bits(ivfHeader, 20, scale); in makeIvfHeader()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DImageProcessingTest.java337 float scale = 1 / 255f; in unpackSrc() local
339 srcR = (0xFF & (src >> 16)) * scale; in unpackSrc()
340 srcG = (0xFF & (src >> 8)) * scale; in unpackSrc()
341 srcB = (0xFF & (src >> 0)) * scale; in unpackSrc()
342 srcA = (0xFF & (src >> 24)) * scale; in unpackSrc()
346 float scale = 1 / 255f; in unpackDst() local
353 dstR = (0xFF & (dst >> 16)) * scale; in unpackDst()
354 dstG = (0xFF & (dst >> 8)) * scale; in unpackDst()
355 dstB = (0xFF & (dst >> 0)) * scale; in unpackDst()
356 dstA = (0xFF & (dst >> 24)) * scale; in unpackDst()
[all …]
DMatrix4fTest.java159 m.scale(scaleX, scaleY, scaleZ); in testScale()
225 m.scale(2.0f, 2.0f, 2.0f); in testInverse()
DMatrix3fTest.java161 m.scale(scaleX, scaleY, scaleZ); in testScale()
173 m.scale(scaleX, scaleY); in testScale()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityMagnificationTest.java75 final float scale = 2.0f; in testSetScale() local
78 mService.runOnServiceSync(() -> result.set(controller.setScale(scale, false))); in testSetScale()
81 assertEquals("Failed to apply scale", scale, controller.getScale()); in testSetScale()
93 final float scale = 2.0f; in testSetScaleAndCenter() local
101 setScale.set(controller.setScale(scale, false)); in testSetScaleAndCenter()
106 assertEquals("Failed to apply scale", scale, controller.getScale()); in testSetScaleAndCenter()
124 final float scale = 2.0f; in testListener() local
127 mService.runOnServiceSync(() -> result.set(controller.setScale(scale, false))); in testListener()
131 eq(controller), any(Region.class), eq(scale), anyFloat(), anyFloat()); in testListener()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DNinePatchDrawableTest.java472 final float scale = scaledDensityDpi / (float) preloadDensityDpi; in verifySetTargetDensityInner() local
479 assertEquals(Math.round(origWidth * scale), scaledDrawable.getIntrinsicWidth()); in verifySetTargetDensityInner()
480 assertEquals(Math.round(origHeight * scale), scaledDrawable.getIntrinsicHeight()); in verifySetTargetDensityInner()
484 assertEquals((int) (origPadding.left * scale), tempPadding.left); in verifySetTargetDensityInner()
485 assertEquals((int) (origPadding.top * scale), tempPadding.top); in verifySetTargetDensityInner()
486 assertEquals((int) (origPadding.right * scale), tempPadding.right); in verifySetTargetDensityInner()
487 assertEquals((int) (origPadding.bottom * scale), tempPadding.bottom); in verifySetTargetDensityInner()
559 final float scale = scaledDensityDpi / (float) preloadDensityDpi; in verifyPreloadDensityInner() local
565 assertEquals(Math.round(origWidth * scale), scaledDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
566 assertEquals(Math.round(origHeight * scale), scaledDrawable.getIntrinsicHeight()); in verifyPreloadDensityInner()
[all …]
/cts/tests/openglperf2/jni/primitive/fullpipeline/
DFullPipelineRenderer.cpp152 float scale = 2.0f / count; in setUp() local
159 Matrix* transformMatrix = Matrix::newScale(scale, scale, scale); in setUp()
/cts/tests/openglperf2/jni/graphics/
DVector2D.cpp41 void Vector2D::scale(float s) { in scale() function in Vector2D
55 scale(1 / m); in normalize()
62 scale(max); in limit()
DVector2D.h25 void scale(float s);
DMatrix.h32 void scale(float x, float y, float z);
/cts/hostsidetests/incident/src/com/android/server/cts/
DBatteryIncidentTest.java55 int scale = dump.getScale(); in verifyBatteryServiceDumpProto() local
56 assertTrue(scale > 0); in verifyBatteryServiceDumpProto()
58 assertTrue(level >= 0 && level <= scale); in verifyBatteryServiceDumpProto()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBitmapDrawableTest.java100 final float scale = scaledDensityDpi / (float) preloadDensityDpi; in verifyPreloadDensityInner() local
108 assertEquals(Math.round(origWidth * scale), scaledDrawable.getIntrinsicWidth()); in verifyPreloadDensityInner()
109 assertEquals(Math.round(origHeight * scale), scaledDrawable.getIntrinsicHeight()); in verifyPreloadDensityInner()
DRgba16fTests.java50 canvas.scale( in testTransferFunctions()
71 canvas.scale( in testAlpha()
107 canvas.scale( in testMasked()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/
DDspWindow.java58 public void scale(double scale) { in scale() argument
59 DspBufferMath.mult(mBuffer, mBuffer, scale); in scale()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DDetermineFovActivity.java196 float scale = (float) canvasWidth / photoWidth; in drawContents() local
197 int scaledHeight = (int) (scale * photoHeight); in drawContents()
205 scale = (float) canvasHeight / photoHeight; in drawContents()
206 float scaledWidth = scale * photoWidth; in drawContents()
/cts/tests/tests/rsblas/assets/
Dblas_gen.py58 def sMatGen(m, n, scale): argument
59 a = mat(random.randint(1, 10, size=(m, n)).astype('f4')/scale)
63 def dMatGen(m, n, scale): argument
64 a = mat(random.randint(1, 10, size=(m, n)).astype('f8')/scale)
68 def cMatGen(m, n, scale): argument
69 a_real = mat(random.randint(1, 10, size=(m, n)).astype('f4')/scale)
70 a_img = mat(random.randint(1, 10, size=(m, n)).astype('f4')/scale)
75 def zMatGen(m, n, scale): argument
76 a_real = mat(random.randint(1, 10, size=(m, n)).astype('f8')/scale)
77 a_img = mat(random.randint(1, 10, size=(m, n)).astype('f8')/scale)
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DInstallUpdateTest.java209 int scale = batteryStatus.getIntExtra(BatteryManager.EXTRA_SCALE, /* defaultValue= */ -1); in calculateBatteryPercentage() local
210 return 100 * level / (float) scale; in calculateBatteryPercentage()
/cts/tools/utils/
Dmonsoon.py244 def scale(val): function
253 out_main.append(scale(main))
254 out_usb.append(scale(usb))
/cts/apps/CameraITS/tests/sensor_fusion/
Dtest_sensor_fusion.py254 scale = 360/(2*math.pi)
256 cam_rots *= scale
257 gyro_rots *= scale
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dlayer_info.rsh18 // A scale factor =1.0f/(1+dilation_radius), which is used to normalize a
Dlayer_info_fast.rsh18 // A scale factor =1.0f/(1+dilation_radius), which is used to normalize a
/cts/suite/audio_quality/test_description/processing/
Dgen_random.py33 randomSignal = np.random.normal(scale = peakAmpl * 2 / 3, size=samples)

12