Home
last modified time | relevance | path

Searched refs:mScale (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
DTransformTestActivity.java68 private float mScale = 1.f; field in TransformTestActivity.TransformView
83 if (mScale * scale > 0.1f) { in onScale()
84 if (mScale * scale < 10.f) { in onScale()
85 mScale *= scale; in onScale()
87 mScale = 10.f; in onScale()
90 mScale = 0.1f; in onScale()
93 Log.d("ttest", "mScale: " + mScale + " mPos: (" + mPosX + ", " + mPosY + ")"); in onScale()
107 mMatrix.postScale(mScale, mScale); in onScale()
141 mMatrix.postScale(mScale, mScale); in setDrawable()
170 mMatrix.postScale(mScale, mScale); in onTouchEvent()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
DCubeRenderer.java32 private float mScale = 1.0f; field in CubeRenderer
66 gl.glScalef(mScale, mScale, mScale); in onDrawFrame()
77 mScale *= 1.02f; in onDrawFrame()
78 if (mScale > 4.0f) { in onDrawFrame()
79 mScale = 1.0f; in onDrawFrame()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DSaturateFilter.java31 private float mScale = 0f; field in SaturateFilter
128 if (mScale > 0.0f) { in process()
154 if (mScale > 0.0f) { in updateParameters()
157 exponents[0] = (0.9f * mScale) + 1.0f; in updateParameters()
158 exponents[1] = (2.1f * mScale) + 1.0f; in updateParameters()
159 exponents[2] = (2.7f * mScale) + 1.0f; in updateParameters()
163 mBenProgram.setHostValue("scale", 1.0f + mScale); in updateParameters()
DColorTemperatureFilter.java31 private float mScale = 0.5f; field in ColorTemperatureFilter
115 mProgram.setHostValue("scale", 2.0f * mScale - 1.0f); in updateParameters()
DAutoFixFilter.java34 private float mScale; field in AutoFixFilter
194 mShaderProgram.setHostValue("scale", mScale); in initParameters()
232 mShaderProgram.setHostValue("scale", mScale); in fieldPortValueUpdated()
DSharpenFilter.java31 private float mScale = 0f; field in SharpenFilter
139 mProgram.setHostValue("scale", mScale); in updateParameters()
DVignetteFilter.java31 private float mScale = 0f; field in VignetteFilter
115 mProgram.setHostValue("range", 1.30f - (float) Math.sqrt(mScale) * 0.7f); in updateParameters()
DFisheyeFilter.java41 private float mScale = 0f; field in FisheyeFilter
157 float alpha = mScale * 2.0f + 0.75f; in updateProgramParams()
DGrainFilter.java36 private float mScale = 0f; field in GrainFilter
130 mGrainProgram.setHostValue("scale", mScale); in updateParameters()
/frameworks/av/cmds/screenrecord/
DTextRenderer.h39 mScale(1.0f), in TextRenderer()
57 float getScale() const { return mScale; } in getScale()
58 void setScale(float scale) { mScale = scale; } in setScale()
110 float getScaledGlyphHeight() const { return getGlyphHeight() * mScale; } in getScaledGlyphHeight()
117 float mScale; variable
DTextRenderer.cpp175 width += (glyphWidth - 1 - FontBitmap::outlineWidth) * mScale; in computeScaledStringWidth()
183 ALOGV("drawString %.3f,%.3f '%s' (scale=%.3f)", x, y, str8.string(),mScale); in drawString()
205 float vertRight = x + glyphWidth * mScale; in drawString()
207 float vertBottom = y + glyphHeight * mScale; in drawString()
246 x += (glyphWidth - 1 - FontBitmap::outlineWidth) * mScale; in drawString()
/frameworks/base/core/java/android/hardware/display/
DBrightnessCorrection.java219 private final float mScale; field in BrightnessCorrection.ScaleAndTranslateLog
226 mScale = MathUtils.constrain(scale, MIN_SCALE, MAX_SCALE); in ScaleAndTranslateLog()
232 return MathUtils.exp(mScale * MathUtils.log(brightness) + mTranslate); in apply()
237 return "ScaleAndTranslateLog(" + mScale + ", " + mTranslate + ")"; in toString()
249 return other.mScale == mScale && other.mTranslate == mTranslate; in equals()
255 result = result * 31 + Float.hashCode(mScale); in hashCode()
263 dest.writeFloat(mScale); in writeToParcel()
270 serializer.attribute(null, ATTR_SCALE, Float.toString(mScale)); in saveToXml()
/frameworks/base/media/tests/SoundPoolTest/src/com/android/
DSoundPoolTest.java74 private float mScale[]; field in SoundPoolTest.TestThread
154 int count = mScale.length; in TestScales()
157 NORMAL_PRIORITY, DEFAULT_LOOP, mScale[step]); in TestScales()
176 int count = mScale.length; in TestRates()
178 NORMAL_PRIORITY, DEFAULT_LOOP, mScale[0]); in TestRates()
188 mSoundPool.setRate(id, mScale[step]); in TestRates()
189 if (DEBUG) Log.d(LOG_TAG, "Change rate " + mScale[step]); in TestRates()
278 NORMAL_PRIORITY, DEFAULT_LOOP, mScale[i]); in TestPauseResume()
310 … int id = mSoundPool.play(mSounds[0], 0.0f, 1.0f, NORMAL_PRIORITY, DEFAULT_LOOP, mScale[0]); in TestVolume()
341 mScale = new float[13]; in run()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DScaledTextActivity.java53 private float mScale = 1.0f; field in ScaledTextActivity.ScaledTextView
72 return mScale; in getTextScale()
76 mScale = scale; in setTextScale()
120 canvas.scale(mScale, mScale); in onDraw()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotPersisterLoaderTest.java172 assertEquals(highResConf.mScale, 0.6f, DELTA); in testLegacyPLowRamConfig()
178 assertEquals(lowResConf.mScale, 0.6f, DELTA); in testLegacyPLowRamConfig()
202 assertEquals(highResConf.mScale, 1.0f, DELTA); in testLegacyPNonLowRamConfig()
208 assertEquals(lowResConf.mScale, 0.5f, DELTA); in testLegacyPNonLowRamConfig()
232 assertEquals(highResConf.mScale, legacyScale, DELTA); in testLegacyQLowRamConfig()
233 assertEquals(highResConf.mScale, 0.6f, DELTA); in testLegacyQLowRamConfig()
239 assertEquals(lowResConf.mScale, legacyScale, DELTA); in testLegacyQLowRamConfig()
240 assertEquals(lowResConf.mScale, 0.6f, DELTA); in testLegacyQLowRamConfig()
264 assertEquals(highResConf.mScale, legacyScale, DELTA); in testLegacyQNonLowRamConfig()
265 assertEquals(highResConf.mScale, 0.8f, DELTA); in testLegacyQNonLowRamConfig()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DScaleFilter.java27 private float mScale = 1.0f; field in ScaleFilter
58 return (int)(inWidth * mScale); in getOutputWidth()
63 return (int)(inHeight * mScale); in getOutputHeight()
/frameworks/opt/net/voip/src/jni/rtp/
DEchoSuppressor.cpp52 mScale = 1 << shift; in EchoSuppressor()
103 for (int i = mWindowSize - 1, j = 0; i >= 0; --i, j += mScale) { in run()
105 for (int k = 0; k < mScale; ++k) { in run()
129 for (int i = mWindowSize - 1, j = 0; i >= 0; --i, j += mScale) { in run()
131 for (int k = 0; k < mScale; ++k) { in run()
DEchoSuppressor.h32 int mScale; variable
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DPortableFloatMap.java18 private float mScale; field in PortableFloatMap
61 mScale = Float.parseFloat(scaleLine); in PortableFloatMap()
63 mData.order(mScale < 0 ? ByteOrder.LITTLE_ENDIAN : ByteOrder.BIG_ENDIAN); in PortableFloatMap()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageRenderer.java109 protected float mScale; field in TiledImageRenderer
239 && mScale == scale) { in setPosition()
244 mScale = scale; in setPosition()
267 mLevel = Utils.clamp(Utils.floorLog2(1f / mScale), 0, mLevelCount); in layoutTiles()
274 getRange(range, mCenterX, mCenterY, mLevel, mScale, mRotation); in layoutTiles()
275 mOffsetX = Math.round(mViewWidth / 2f + (range.left - mCenterX) * mScale); in layoutTiles()
276 mOffsetY = Math.round(mViewHeight / 2f + (range.top - mCenterY) * mScale); in layoutTiles()
277 fromLevel = mScale * (1 << mLevel) > 0.75f ? mLevel - 1 : mLevel; in layoutTiles()
281 mOffsetX = Math.round(mViewWidth / 2f - mCenterX * mScale); in layoutTiles()
282 mOffsetY = Math.round(mViewHeight / 2f - mCenterY * mScale); in layoutTiles()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotLoader.java61 final float mScale; field in TaskSnapshotLoader.PreRLegacySnapshotConfig
69 mScale = scale; in PreRLegacySnapshotConfig()
189 int taskWidth = (int) ((float) hwBitmap.getWidth() / legacyConfig.mScale); in loadTask()
190 int taskHeight = (int) ((float) hwBitmap.getHeight() / legacyConfig.mScale); in loadTask()
DTaskSnapshotSurface.java555 private final float mScale; field in TaskSnapshotSurface.SystemBarBackgroundPainter
564 mScale = scale; in SystemBarBackgroundPainter()
595 return (int) (mSystemBarInsets.top * mScale); in getStatusBarColorViewHeight()
621 final int rightInset = (int) (mSystemBarInsets.right * mScale); in drawStatusBarBackground()
631 mScale); in drawNavigationBarBackground() local
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationController.java59 private float mScale; field in WindowMagnificationController
94 mScale = r.getInteger(R.integer.magnification_default_scale); in WindowMagnificationController()
277 Rect sourceBounds = getSourceBounds(mMagnificationFrame, mScale); in modifyWindowMagnification()
344 final int scaledWidth = (int) (halfWidth / mScale); in setMagnificationFrameBoundary()
346 final int scaledHeight = (int) (halfHeight / mScale); in setMagnificationFrameBoundary()
/frameworks/av/include/media/
DVolumeShaper.h516 , mScale(1) { in Translate()
528 return mScale; in getScale()
532 mScale = scale; in setScale()
536 return mScale * (in - mOffset); in operator()
542 ss << ", mScale=" << mScale; in toString()
549 R mScale; variable
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardClockSwitch.java533 private float mScale; field in KeyguardClockSwitch.ClockVisibilityTransition
564 mScale = scale; in setScale()
594 final float startScale = mScale; in onAppear()
610 final float endScale = mScale; in onDisappear()

12