/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/ |
D | TransformTestActivity.java | 68 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/ |
D | CubeRenderer.java | 32 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/ |
D | SaturateFilter.java | 31 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()
|
D | ColorTemperatureFilter.java | 31 private float mScale = 0.5f; field in ColorTemperatureFilter 115 mProgram.setHostValue("scale", 2.0f * mScale - 1.0f); in updateParameters()
|
D | AutoFixFilter.java | 34 private float mScale; field in AutoFixFilter 194 mShaderProgram.setHostValue("scale", mScale); in initParameters() 232 mShaderProgram.setHostValue("scale", mScale); in fieldPortValueUpdated()
|
D | SharpenFilter.java | 31 private float mScale = 0f; field in SharpenFilter 139 mProgram.setHostValue("scale", mScale); in updateParameters()
|
D | VignetteFilter.java | 31 private float mScale = 0f; field in VignetteFilter 115 mProgram.setHostValue("range", 1.30f - (float) Math.sqrt(mScale) * 0.7f); in updateParameters()
|
D | FisheyeFilter.java | 41 private float mScale = 0f; field in FisheyeFilter 157 float alpha = mScale * 2.0f + 0.75f; in updateProgramParams()
|
D | GrainFilter.java | 36 private float mScale = 0f; field in GrainFilter 130 mGrainProgram.setHostValue("scale", mScale); in updateParameters()
|
/frameworks/av/cmds/screenrecord/ |
D | TextRenderer.h | 39 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
|
D | TextRenderer.cpp | 175 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/ |
D | BrightnessCorrection.java | 219 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/ |
D | SoundPoolTest.java | 74 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/ |
D | ScaledTextActivity.java | 53 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/ |
D | TaskSnapshotPersisterLoaderTest.java | 172 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/ |
D | ScaleFilter.java | 27 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/ |
D | EchoSuppressor.cpp | 52 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()
|
D | EchoSuppressor.h | 32 int mScale; variable
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | PortableFloatMap.java | 18 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/ |
D | TiledImageRenderer.java | 109 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/ |
D | TaskSnapshotLoader.java | 61 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()
|
D | TaskSnapshotSurface.java | 555 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/ |
D | WindowMagnificationController.java | 59 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/ |
D | VolumeShaper.h | 516 , 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/ |
D | KeyguardClockSwitch.java | 533 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()
|