Searched refs:ratio (Results 26 - 34 of 34) sorted by relevance

12

/frameworks/base/core/java/android/gesture/
H A DGestureUtils.java65 * The scaling does not necessarily keep the aspect ratio of the gesture.
84 * aspect ratio
298 float ratio = (increment - distanceSoFar) / distance;
299 float nx = lstPointX + ratio * deltaX;
300 float ny = lstPointY + ratio * deltaY;
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
H A DConfigGenerator.java260 public ConfigGenerator setRatio(ScreenRatio ratio) { argument
261 mRatio = ratio;
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCamera2Settings.java186 public void setZoomRatio(float ratio) { argument
187 super.setZoomRatio(ratio);
H A DAndroidCameraAgentImpl.java730 * @param ratio Desired zoom ratio, in [1.0f,+Inf).
732 * @return Index of the closest corresponding ratio, rounded up toward
733 * that of the maximum available ratio.
735 private int zoomRatioToIndex(float ratio, List<Integer> percentages) { argument
736 int percent = (int) (ratio * AndroidCameraCapabilities.ZOOM_MULTIPLIER);
739 // Found the desired ratio in the supported list
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.h182 // This is set to a 1:1 value to allow for any aspect ratio that has
189 // Aspect ratio tolerance
361 // preview aspect ratio.
368 // Get max size (from the size array) that matches the given aspect ratio.
369 Size getMaxSizeForRatio(float ratio, const int32_t* sizeArray, size_t count);
H A DParameters.cpp299 // Pick the largest thumbnail size that matches still image aspect ratio.
2747 float ratio, const int32_t* sizeArray, size_t count) {
2755 if (fabs(curRatio - ratio) < ASPECT_RATIO_TOLERANCE && maxSize.width < sizeArray[i]) {
2765 ALOGW("Unable to find the size to match the given aspect ratio %f."
2766 "Fall back to %d x %d", ratio, maxSize.width, maxSize.height);
2857 // The desired activeAreaWidth/cropAreaWidth ratio (or height if h>w)
2858 // via interpolating zoom step into a zoom ratio
2861 "Zoom ratio calculated out of bounds. Expected 1 - %f, actual: %f",
2864 ALOGV("Zoom maxDigital=%f, increment=%f, ratio=%f, previewWidth=%d, "
2882 // aspect ratio
2746 getMaxSizeForRatio( float ratio, const int32_t* sizeArray, size_t count) argument
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLES20Canvas.java758 public void drawMixed(BasicTexture texture, int toColor, float ratio, int x, int y, int w, int h) { argument
761 drawMixed(texture, toColor, ratio, mTempSourceRect, mTempTargetRect);
765 public void drawMixed(BasicTexture texture, int toColor, float ratio, RectF source, RectF target) { argument
772 float cappedRatio = Math.min(1f, Math.max(0f, ratio));
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsHelper.java437 // Then compute the ratio of time spent at each speed
440 double ratio = (double) cpuSpeedStepTimes[step] / totalTimeAtSpeeds;
441 if (DEBUG && ratio != 0) Log.d(TAG, "UID " + u.getUid() + ": CPU step #"
442 + step + " ratio=" + makemAh(ratio) + " power="
443 + makemAh(ratio*tmpCpuTime*powerCpuNormal[step] / (60*60*1000)));
444 processPower += ratio * tmpCpuTime * powerCpuNormal[step];
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dpsy_main.c535 tdata = L_mpy_ls(*data0++, hPsyConfLong->ratio);
717 tdata = L_mpy_ls(*data1++, hPsyConfShort->ratio);

Completed in 379 milliseconds

12