Searched refs:scale (Results 176 - 200 of 261) sorted by relevance

1234567891011

/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java841 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/recents/
H A DRecents.java690 int toHeaderWidth = (int) (mHeaderBar.getMeasuredWidth() * toTransform.scale);
691 int toHeaderHeight = (int) (mHeaderBar.getMeasuredHeight() * toTransform.scale);
698 c.scale(toTransform.scale, toTransform.scale);
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DGlobalScreenshot.java157 float scale = (float) iconSize / Math.min(mImageWidth, mImageHeight);
159 matrix.setScale(scale, scale);
160 matrix.postTranslate((iconSize - (scale * mImageWidth)) / 2,
161 (iconSize - (scale * mImageHeight)) / 2);
728 // Decelerate, and scale the input accordingly
735 // Determine the bounds of how to scale
/frameworks/base/media/java/android/media/session/
H A DMediaSessionLegacyHelper.java343 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 DGcSnapshot.java446 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 DInput.cpp131 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/rs/java/tests/VrDemo/src/com/example/android/rs/vr/
H A DVrView.java291 mState1.mCubeScreen.scale(mState1.mVolume.mVoxelDim);
298 mState1.mCubeScreen.scale(mState1.mVolume.mVoxelDim);
310 mState1.mCubeScreen.scale(v.mVoxelDim);
/frameworks/av/media/libstagefright/webm/
H A DWebmElement.cpp295 sp<WebmElement> WebmElement::SegmentInfo(uint64_t scale, double dur) { argument
299 segmentInfo.push_back(new WebmUnsigned(kMkvTimecodeScale, scale));
/frameworks/av/services/audioflinger/
H A DAudioResamplerFirProcess.h422 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 DUiDevice.java824 * Default scale of 1.0f (original size) and 90% quality is used
842 * @param scale scale the screenshot down if needed; 1.0f for original size
847 public boolean takeScreenshot(File storePath, float scale, int quality) { argument
848 Tracer.trace(storePath, scale, quality);
/frameworks/base/core/java/android/view/
H A DIWindowManager.aidl140 void setAnimationScale(int which, float scale);
H A DMotionEvent.java546 * although it is not a linear scale. This value is of limited use.
1427 private static native void nativeScale(long nativePtr, float scale); argument
1723 * Applies a scale factor to all points within this event.
1728 * are also affected by the scale factor.
1730 * @param scale The scale factor to apply.
1733 public final void scale(float scale) { argument
1734 if (scale != 1.0f) {
1735 nativeScale(mNativePtr, scale);
[all...]
H A DWindowManagerGlobal.java141 Log.e(TAG, "Failed to get WindowManagerService, cannot set animator scale", e);
157 public void onAnimatorScaleChanged(float scale) {
158 ValueAnimator.setDurationScale(scale);
/frameworks/base/core/java/android/view/animation/
H A DAnimationSet.java412 public void scaleCurrentDuration(float scale) { argument
416 animations.get(i).scaleCurrentDuration(scale);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DShapeDrawable.java210 int scale = alpha + (alpha >>> 7); // convert to 0..256
211 return paintAlpha * scale >>> 8;
621 // resize params (e.g. scaletofit, etc.). This could be used to scale
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DNotificationChildrenContainer.java272 childState.scale = parentState.scale;
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DDisplayModifier.java240 canvas.scale(2, 2);
249 canvas.scale(1, 4);
/frameworks/native/services/inputflinger/
H A DInputReader.cpp787 "scale=%0.3f, lowThreshold=%0.3f, highThreshold=%0.3f, acceleration=%0.3f\n",
788 mConfig.pointerVelocityControlParameters.scale,
794 "scale=%0.3f, lowThreshold=%0.3f, highThreshold=%0.3f, acceleration=%0.3f\n",
795 mConfig.wheelVelocityControlParameters.scale,
3623 out.haveSizeScale = in.tryGetProperty(String8("touch.size.scale"),
3646 out.havePressureScale = in.tryGetProperty(String8("touch.pressure.scale"),
3679 out.haveDistanceScale = in.tryGetProperty(String8("touch.distance.scale"),
3764 dump.appendFormat(INDENT4 "touch.size.scale: %0.3f\n",
3794 dump.appendFormat(INDENT4 "touch.pressure.scale: %0.3f\n",
3826 dump.appendFormat(INDENT4 "touch.distance.scale
4657 float scale = 1.0f + confidence / 16.0f; local
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
H A Dvad1.cpp446 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 DMatrix.h172 void scale(float sx, float sy, float sz) { function in class:android::uirenderer::Matrix4
191 * If the matrix is identity or translate and/or scale.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DRecentsView.java457 float scale = tv.getScaleX();
458 int fromHeaderWidth = (int) (tv.mHeaderView.getMeasuredWidth() * scale);
459 int fromHeaderHeight = (int) (tv.mHeaderView.getMeasuredHeight() * scale);
467 c.scale(tv.getScaleX(), tv.getScaleY());
532 // Compute the thumbnail to scale up from
/frameworks/support/v4/java/android/support/v4/widget/
H A DSwipeProgressBar.java262 canvas.scale(radiusScale, radiusScale);
H A DSwipeRefreshLayout.java212 * @param scale Set to true if there is no view at a higher z-order than
220 public void setProgressViewOffset(boolean scale, int start, int end) { argument
221 mScale = scale;
235 * @param scale Set to true if there is no view at a higher z-order than
241 public void setProgressViewEndTarget(boolean scale, int end) { argument
243 mScale = scale;
346 * Pre API 11, alpha is used to make the progress circle appear instead of scale.
360 // scale and show
380 // Pre API 11, alpha is used in place of scale up to show the
447 // Pre API 11, alpha is used in place of scale
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java382 * Subsequent calls to translate,scale,rotate,skew,concat or clipRect,
400 * Subsequent calls to translate,scale,rotate,skew,concat or clipRect,
580 * Preconcat the current matrix with the specified scale.
582 * @param sx The amount to scale in X
583 * @param sy The amount to scale in Y
585 public void scale(float sx, float sy) { method in class:Canvas
590 * Preconcat the current matrix with the specified scale.
592 * @param sx The amount to scale in X
593 * @param sy The amount to scale in Y
594 * @param px The x-coord for the pivot point (unchanged by the scale)
597 public final void scale(float sx, float sy, float px, float py) { method in class:Canvas
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowState.java122 * the application's coordinate space (without compatibility scale applied).
144 * are in the screen's coordinate space (WITH the compatibility scale
151 * coordinate space (without compatibility scale applied).
160 * coordinate space (without compatibility scale applied).
168 * application's coordinate space (without compatibility scale applied).
176 * application's coordinate space (without compatibility scale applied).
692 // If there is a size compatibility scale being applied to the
695 mOverscanInsets.scale(mInvGlobalScale);
696 mContentInsets.scale(mInvGlobalScale);
697 mVisibleInsets.scale(mInvGlobalScal
[all...]

Completed in 3414 milliseconds

1234567891011