/frameworks/base/core/java/android/os/vibrator/ |
D | PrimitiveSegment.java | 39 private final float mScale; field in PrimitiveSegment 49 mScale = scale; in PrimitiveSegment() 58 return mScale; in getScale() 85 return new PrimitiveSegment(mPrimitiveId, VibrationEffect.scale(mScale, scaleFactor), in scale() 99 Preconditions.checkArgumentInRange(mScale, 0f, 1f, "scale"); in validate() 107 dest.writeFloat(mScale); in writeToParcel() 120 + ", scale=" + mScale in toString() 131 && Float.compare(that.mScale, mScale) == 0 in equals() 137 return Objects.hash(mPrimitiveId, mScale, mDelay); in hashCode()
|
/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()
|
/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 | 212 private final float mScale; field in BrightnessCorrection.ScaleAndTranslateLog 219 mScale = MathUtils.constrain(scale, MIN_SCALE, MAX_SCALE); in ScaleAndTranslateLog() 225 return MathUtils.exp(mScale * MathUtils.log(brightness) + mTranslate); in apply() 230 return "ScaleAndTranslateLog(" + mScale + ", " + mTranslate + ")"; in toString() 242 return other.mScale == mScale && other.mTranslate == mTranslate; in equals() 248 result = result * 31 + Float.hashCode(mScale); in hashCode() 256 dest.writeFloat(mScale); in writeToParcel() 263 serializer.attributeFloat(null, ATTR_SCALE, mScale); in saveToXml()
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | FastBitmapDrawable.java | 66 return fastBitmapDrawable.mScale; 71 fastBitmapDrawable.mScale = value; 76 private float mScale = 1; field in FastBitmapDrawable 101 if (mScale != 1f) { in draw() 104 canvas.scale(mScale, mScale, bounds.exactCenterX(), bounds.exactCenterY()); in draw() 166 mScale = 1; in resetScale() 171 return mScaleAnimation == null ? 1 : mScale; in getAnimatedScale() 234 mScale = 1f; in onStateChange()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
D | WindowMagnificationAnimationController.java | 265 final float sentScale = mStartSpec.mScale + (mEndSpec.mScale - mStartSpec.mScale) * fract; in onAnimationUpdate() 291 private float mScale = Float.NaN; field in WindowMagnificationAnimationController.AnimationSpec 306 return mScale == s.mScale && mCenterX == s.mCenterX && mCenterY == s.mCenterY; in equals() 311 int result = (mScale != +0.0f ? Float.floatToIntBits(mScale) : 0); in hashCode() 318 mScale = scale; in set() 326 + "mScale=" + mScale in toString()
|
D | WindowMagnificationController.java | 98 private float mScale; field in WindowMagnificationController 164 mScale = mResources.getInteger(R.integer.magnification_default_scale); in WindowMagnificationController() 208 calculateSourceBounds(mMagnificationFrame, mScale); in WindowMagnificationController() 220 mMirrorView.setStateDescription(formatStateDescription(mScale)); in WindowMagnificationController() 564 final int scaledWidth = (int) (halfWidth / mScale); in setMagnificationFrameBoundary() 566 final int scaledHeight = (int) (halfHeight / mScale); in setMagnificationFrameBoundary() 645 mScale = Float.isNaN(scale) ? mScale : scale; in enableWindowMagnification() 663 if (!isWindowVisible() || mScale == scale) { in setScale() 694 return isWindowVisible() ? mScale : Float.NaN; in getScale() 765 pw.println(" mScale:" + mScale); in dump() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | MockWindowMagnificationConnection.java | 54 private float mScale = 2.0f; field in MockWindowMagnificationConnection 94 mScale = Float.isNaN(scale) ? mScale : scale; in stubEnableWindowMagnification() 126 final int left = mMirrorWindowFrame.left + (halfWidth - (int) (halfWidth / mScale)); in computeSourceBounds() 127 final int right = mMirrorWindowFrame.right - (halfWidth - (int) (halfWidth / mScale)); in computeSourceBounds() 128 final int top = mMirrorWindowFrame.top + (halfHeight - (int) (halfHeight / mScale)); in computeSourceBounds() 129 final int bottom = mMirrorWindowFrame.bottom - (halfHeight - (int) (halfHeight / mScale)); in computeSourceBounds()
|
/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/packages/SettingsLib/src/com/android/settingslib/drawable/ |
D | CircleFramedDrawable.java | 46 private float mScale; field in CircleFramedDrawable 91 mScale = 1f; in CircleFramedDrawable() 99 final float inside = mScale * mSize; in draw() 107 mScale = scale; in setScale() 111 return mScale; in getScale()
|
/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/packages/SystemUI/src/com/android/systemui/settings/brightness/ |
D | BrightnessSliderView.java | 49 private float mScale = 1f; field in BrightnessSliderView 187 if (scale != mScale) { in setSliderScaleY() 188 mScale = scale; in setSliderScaleY() 196 int height = (int) (mProgressDrawable.getIntrinsicHeight() * mScale); in applySliderScale() 203 return mScale; in getSliderScaleY()
|
/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/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskSnapshotPersisterLoaderTest.java | 173 assertEquals(highResConf.mScale, 0.6f, DELTA); in testLegacyPLowRamConfig() 179 assertEquals(lowResConf.mScale, 0.6f, DELTA); in testLegacyPLowRamConfig() 203 assertEquals(highResConf.mScale, 1.0f, DELTA); in testLegacyPNonLowRamConfig() 209 assertEquals(lowResConf.mScale, 0.5f, DELTA); in testLegacyPNonLowRamConfig() 233 assertEquals(highResConf.mScale, legacyScale, DELTA); in testLegacyQLowRamConfig() 234 assertEquals(highResConf.mScale, 0.6f, DELTA); in testLegacyQLowRamConfig() 240 assertEquals(lowResConf.mScale, legacyScale, DELTA); in testLegacyQLowRamConfig() 241 assertEquals(lowResConf.mScale, 0.6f, DELTA); in testLegacyQLowRamConfig() 265 assertEquals(highResConf.mScale, legacyScale, DELTA); in testLegacyQNonLowRamConfig() 266 assertEquals(highResConf.mScale, 0.8f, DELTA); in testLegacyQNonLowRamConfig() [all …]
|
/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()
|
/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/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()
|
/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 …]
|