/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | Utils.java | 118 int scale = batteryChangedIntent.getIntExtra(BatteryManager.EXTRA_SCALE, 100); 119 return (level * 100) / scale;
|
/frameworks/base/core/java/android/view/ |
H A D | WindowManager.java | 2310 public void scale(float scale) { argument 2311 x = (int) (x * scale + 0.5f); 2312 y = (int) (y * scale + 0.5f); 2314 width = (int) (width * scale + 0.5f); 2317 height = (int) (height * scale + 0.5f);
|
/frameworks/base/core/java/android/widget/ |
H A D | StackView.java | 333 final float scale = 1 - PERSPECTIVE_SCALE_FACTOR * (1 - r); 336 float scaleShiftCorrectionY = (scale - 1) * 341 float scaleShiftCorrectionX = (1 - scale) * 354 PropertyValuesHolder scalePropX = PropertyValuesHolder.ofFloat("scaleX", scale); 355 PropertyValuesHolder scalePropY = PropertyValuesHolder.ofFloat("scaleY", scale); 367 view.setScaleX(scale); 368 view.setScaleY(scale);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | PointerLocationView.java | 841 int scale = 1; 843 scale *= 10; 845 value = (float) (Math.rint(value * scale) / scale); 853 append((int) (value * scale), precision);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
H A D | GlobalScreenshot.java | 159 float scale = (float) iconSize / Math.min(mImageWidth, mImageHeight); 161 matrix.setScale(scale, scale); 162 matrix.postTranslate((iconSize - (scale * mImageWidth)) / 2, 163 (iconSize - (scale * mImageHeight)) / 2); 811 // Decelerate, and scale the input accordingly 818 // Determine the bounds of how to scale
|
/frameworks/base/media/java/android/media/session/ |
H A D | MediaSessionLegacyHelper.java | 343 float scale = Math.min((float) maxWidth / width, (float) maxHeight / height); 344 int newWidth = Math.round(scale * width); 345 int newHeight = Math.round(scale * height);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | GcSnapshot.java | 446 public void scale(float sx, float sy) { method in class:GcSnapshot 449 layer.getGraphics().scale(sx, sy); 455 mTransform.scale(sx, sy);
|
/frameworks/native/libs/input/ |
H A D | Input.cpp | 131 void PointerCoords::scale(float scaleFactor) { function in class:android::PointerCoords 132 // No need to scale pressure or size since they are normalized. 133 // No need to scale orientation since it is meaningless to do so. 344 void MotionEvent::scale(float scaleFactor) { function in class:android::MotionEvent 352 mSamplePointerCoords.editItemAt(i).scale(scaleFactor);
|
/frameworks/native/services/surfaceflinger/ |
H A D | DispSync.cpp | 558 double scale = 2.0 * M_PI / double(mPeriod); local 563 double samplePhase = double(sample % mPeriod) * scale; 571 mPhase = nsecs_t(atan2(sampleAvgY, sampleAvgX) / scale);
|
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/ |
H A D | VrView.java | 291 mState1.mCubeScreen.scale(mState1.mVolume.mVoxelDim); 298 mState1.mCubeScreen.scale(mState1.mVolume.mVoxelDim); 310 mState1.mCubeScreen.scale(v.mVoxelDim);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskStackLayoutAlgorithm.java | 988 transformOut.scale = 1f; 995 Utilities.scaleRectAboutCenter(transformOut.rect, transformOut.scale); 1221 * Scales the given {@param value} to the scale of the {@param instance} rect relative to the 1227 float scale = Utilities.clamp01((float) instance.width() / other.width()); 1228 return Math.max(minValue, (int) (scale * value)); 1230 float scale = Utilities.clamp01((float) instance.height() / other.height()); 1231 return Math.max(minValue, (int) (scale * value));
|
/frameworks/av/services/audioflinger/ |
H A D | AudioResamplerFirProcess.h | 422 static const TC scale = 1. / (65536. * 65536.); // scale phase bits to [0.0, 1.0) local 423 TC lerpP = TC(phase << (sizeof(phase)*8 - coefShift)) * scale;
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiDevice.java | 827 * Default scale of 1.0f (original size) and 90% quality is used 845 * @param scale scale the screenshot down if needed; 1.0f for original size 850 public boolean takeScreenshot(File storePath, float scale, int quality) { argument 851 Tracer.trace(storePath, scale, quality);
|
/frameworks/base/core/java/android/view/animation/ |
H A D | AnimationSet.java | 412 public void scaleCurrentDuration(float scale) { argument 416 animations.get(i).scaleCurrentDuration(scale);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ShapeDrawable.java | 211 int scale = alpha + (alpha >>> 7); // convert to 0..256 212 return paintAlpha * scale >>> 8; 622 // resize params (e.g. scaletofit, etc.). This could be used to scale
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
H A D | DisplayModifier.java | 240 canvas.scale(2, 2); 249 canvas.scale(1, 4);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowStateAnimator.java | 235 // scale according to client specified layout parameters (e.g. 390 " scale=" + mService.getWindowAnimationScaleLocked()); 932 float scale = spec.scale; 933 transform.postScale(scale, scale); 937 // in the same position we will also have to scale the surfaceInsets. 938 transform.postTranslate(-(surfaceInsetLeft*scale - surfaceInsetLeft), 939 -(surfaceInsetTop*scale - surfaceInsetTop)); 996 // thing... magically makes it call good: scale eac [all...] |
/frameworks/native/services/inputflinger/ |
H A D | InputReader.cpp | 815 "scale=%0.3f, lowThreshold=%0.3f, highThreshold=%0.3f, acceleration=%0.3f\n", 816 mConfig.pointerVelocityControlParameters.scale, 822 "scale=%0.3f, lowThreshold=%0.3f, highThreshold=%0.3f, acceleration=%0.3f\n", 823 mConfig.wheelVelocityControlParameters.scale, 3768 out.haveSizeScale = in.tryGetProperty(String8("touch.size.scale"), 3791 out.havePressureScale = in.tryGetProperty(String8("touch.pressure.scale"), 3824 out.haveDistanceScale = in.tryGetProperty(String8("touch.distance.scale"), 3909 dump.appendFormat(INDENT4 "touch.size.scale: %0.3f\n", 3939 dump.appendFormat(INDENT4 "touch.pressure.scale: %0.3f\n", 3971 dump.appendFormat(INDENT4 "touch.distance.scale 4802 float scale = 1.0f + confidence / 16.0f; local [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
H A D | vad1.cpp | 446 scale -- Word16 -- scaling for the level calculation 515 Word16 scale, /* i : scaling for the level calculation */ 531 l_temp2 = L_add(l_temp1, L_shl(*sub_level, sub(16, scale, pOverflow), pOverflow), pOverflow); 532 *sub_level = extract_h(L_shl(l_temp1, scale, pOverflow)); 538 level = extract_h(L_shl(l_temp2, scale, pOverflow)); 505 level_calculation( Word16 data[], Word16 *sub_level, Word16 count1, Word16 count2, Word16 ind_m, Word16 ind_a, Word16 scale, Flag *pOverflow ) argument
|
/frameworks/base/libs/hwui/ |
H A D | Matrix.h | 176 void scale(float sx, float sy, float sz) { function in class:android::uirenderer::Matrix4 195 * If the matrix is identity or translate and/or scale. 225 os << ", scale " << matrix[kScaleX] << "x" << matrix[kScaleY];
|
/frameworks/base/libs/hwui/hwui/ |
H A D | Canvas.h | 152 virtual void scale(float sx, float sy) = 0;
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | GlopBuilderTests.cpp | 140 goldenGlop->transform.modelView.scale(99, 99, 1);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
H A D | NavBarTuner.java | 99 final float scale = isPhoneLandscape ? PREVIEW_SCALE_LANDSCAPE : PREVIEW_SCALE; 100 config.densityDpi = (int) (config.densityDpi * scale); 106 * scale); 109 layoutParams.height = (int) (layoutParams.height * scale);
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | AccessibilityManagerService.java | 805 * magnification is not enabled (e.g. scale is 1) 806 * @param scale the new scale 811 float scale, float centerX, float centerY) { 813 notifyMagnificationChangedLocked(region, scale, centerX, centerY); 998 float scale, float centerX, float centerY) { 1002 service.notifyMagnificationChangedLocked(region, scale, centerX, centerY); 3006 public boolean setMagnificationScaleAndCenter(float scale, float centerX, float centerY, argument 3023 .setScaleAndCenter(scale, centerX, centerY, animate, mId); 3267 float scale, floa 810 notifyMagnificationChanged(@onNull Region region, float scale, float centerX, float centerY) argument 997 notifyMagnificationChangedLocked(@onNull Region region, float scale, float centerX, float centerY) argument 3266 notifyMagnificationChangedLocked(@onNull Region region, float scale, float centerX, float centerY) argument 3280 notifyMagnificationChangedInternal(@onNull Region region, float scale, float centerX, float centerY) argument 3491 notifyMagnificationChangedLocked(@onNull Region region, float scale, float centerX, float centerY) argument [all...] |
/frameworks/rs/cpu_ref/ |
H A D | rsCpuRuntimeMath.cpp | 71 m->scale(x, y, z);
|