Home
last modified time | relevance | path

Searched refs:scaleFactor (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
DMandelbrot.java51 float scaleFactor = mScript.get_scaleFactor(); in onBar2Changed() local
53 float lowerBoundX = -2.f + ((progress / scaleFactor) / 50.f); in onBar2Changed()
64 float scaleFactor = mScript.get_scaleFactor(); in onBar3Changed() local
66 float lowerBoundY = -2.f + ((progress / scaleFactor) / 50.f); in onBar3Changed()
77 float scaleFactor = 4.f - (3.96f * (progress / 100.f)); in onBar4Changed() local
78 mScript.set_scaleFactor(scaleFactor); in onBar4Changed()
Dmandelbrot.rscript23 float scaleFactor = 4.f;
27 p.x = lowerBoundX + ((float)x / gDimX) * scaleFactor;
28 p.y = lowerBoundY + ((float)y / gDimY) * scaleFactor;
59 p.x = lowerBoundX + ((float)x / gDimX) * scaleFactor;
60 p.y = lowerBoundY + ((float)y / gDimY) * scaleFactor;
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
DMandelbrot.java51 float scaleFactor = mScript.get_scaleFactor(); in onBar2Changed() local
53 float lowerBoundX = -2.f + ((progress / scaleFactor) / 50.f); in onBar2Changed()
64 float scaleFactor = mScript.get_scaleFactor(); in onBar3Changed() local
66 float lowerBoundY = -2.f + ((progress / scaleFactor) / 50.f); in onBar3Changed()
77 float scaleFactor = 4.f - (3.96f * (progress / 100.f)); in onBar4Changed() local
78 mScript.set_scaleFactor(scaleFactor); in onBar4Changed()
Dmandelbrot.rscript23 float scaleFactor = 4.f;
27 p.x = lowerBoundX + ((float)x / gDimX) * scaleFactor;
28 p.y = lowerBoundY + ((float)y / gDimY) * scaleFactor;
59 p.x = lowerBoundX + ((float)x / gDimX) * scaleFactor;
60 p.y = lowerBoundY + ((float)y / gDimY) * scaleFactor;
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
DMandelbrot.java57 float scaleFactor = mScript.get_scaleFactor(); in onBar2Changed() local
59 float lowerBoundX = -2.f + ((progress / scaleFactor) / 50.f); in onBar2Changed()
70 float scaleFactor = mScript.get_scaleFactor(); in onBar3Changed() local
72 float lowerBoundY = -2.f + ((progress / scaleFactor) / 50.f); in onBar3Changed()
83 float scaleFactor = 4.f - (3.96f * (progress / 100.f)); in onBar4Changed() local
84 mScript.set_scaleFactor(scaleFactor); in onBar4Changed()
Dmandelbrot.rscript23 float scaleFactor = 4.f;
27 p.x = lowerBoundX + ((float)x / gDimX) * scaleFactor;
28 p.y = lowerBoundY + ((float)y / gDimY) * scaleFactor;
59 p.x = lowerBoundX + ((float)x / gDimX) * scaleFactor;
60 p.y = lowerBoundY + ((float)y / gDimY) * scaleFactor;
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Dex_ctrl.cpp161 Word16 testEnergy, scaleFactor, avgEnergy, prevEnergy; in Ex_ctrl() local
201 scaleFactor = extract_l(t0); in Ex_ctrl()
204 if (carefulFlag != 0 && (scaleFactor > 3072)) in Ex_ctrl()
206 scaleFactor = 3072; in Ex_ctrl()
212 t0 = L_mult(scaleFactor, excitation[i], pOverflow); in Ex_ctrl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DScalingDrawableWrapper.java29 public ScalingDrawableWrapper(Drawable drawable, float scaleFactor) { in ScalingDrawableWrapper() argument
31 mScaleFactor = scaleFactor; in ScalingDrawableWrapper()
DStatusBarIconView.java411 float scaleFactor = typedValue.getFloat(); in getIcon() local
414 if (scaleFactor == 1.f) { in getIcon()
418 return new ScalingDrawableWrapper(icon, scaleFactor); in getIcon()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DCameraView.java219 float scaleFactor = (float) Math.pow(2.f, yDistNorm * ACCELERATION_FACTOR); in touchScreen() local
223 long exp = (long) (mExposureDown * scaleFactor); in touchScreen()
229 float focusDist = mFocusDistDown * scaleFactor; in touchScreen()
237 scaleFactor = (float) Math.pow(2.f, yDistNorm * ACCELERATION_FACTOR); in touchScreen()
238 int iso = (int) (getIso() * scaleFactor); in touchScreen()
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DCameraView.java218 float scaleFactor = (float) Math.pow(2.f, yDistNorm * ACCELERATION_FACTOR); in touchScreen() local
222 long exp = (long) (mExposureDown * scaleFactor); in touchScreen()
228 float focusDist = mFocusDistDown * scaleFactor; in touchScreen()
236 scaleFactor = (float) Math.pow(2.f, yDistNorm * ACCELERATION_FACTOR); in touchScreen()
237 int iso = (int) (getIso() * scaleFactor); in touchScreen()
/frameworks/native/cmds/flatland/
DMain.cpp390 float scaleFactor = float(mDesc.runHeights[mInstance]) / in setUp() local
392 uint32_t w = uint32_t(scaleFactor * float(mDesc.width)); in setUp()
411 ld.x = int32_t(scaleFactor * float(ld.x)); in setUp()
412 ld.y = int32_t(scaleFactor * float(ld.y)); in setUp()
413 ld.width = uint32_t(scaleFactor * float(ld.width)); in setUp()
414 ld.height = uint32_t(scaleFactor * float(ld.height)); in setUp()
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyActivity.java109 float scaleFactor = (float) Math.sqrt(deltaX * deltaX + deltaY * deltaY) * 1.5f; in drawTouch() local
115 canvas.drawCircle(mTouchX, mTouchY, INNER_RADIUS + 3 * scaleFactor, mRedPaint); in drawTouch()
116 canvas.drawCircle(mTouchX, mTouchY, INNER_RADIUS + 2 * scaleFactor, mYellowPaint); in drawTouch()
117 canvas.drawCircle(mTouchX, mTouchY, INNER_RADIUS + scaleFactor, mGreenPaint); in drawTouch()
/frameworks/base/core/jni/
Dandroid_hardware_input_InputWindowHandle.cpp53 jfieldID scaleFactor; member
131 gInputWindowHandleClassInfo.scaleFactor); in updateInfo()
305 GET_FIELD_ID(gInputWindowHandleClassInfo.scaleFactor, clazz, in register_android_view_InputWindowHandle()
/frameworks/base/core/java/android/view/
DInputWindowHandle.java67 public float scaleFactor; field in InputWindowHandle
/frameworks/base/services/core/java/com/android/server/wm/
DInputMonitor.java285 inputWindowHandle.scaleFactor = 1.0f/child.mGlobalScale; in populateInputWindowHandle()
287 inputWindowHandle.scaleFactor = 1; in populateInputWindowHandle()
DInputConsumerImpl.java91 mWindowHandle.scaleFactor = 1.0f; in InputConsumerImpl()
DLetterbox.java196 mWindowHandle.scaleFactor = 1.0f; in InputInterceptor()
DTaskPositioner.java291 mDragWindowHandle.scaleFactor = 1.0f; in register()
DDragState.java295 mDragWindowHandle.scaleFactor = 1.0f; in InputInterceptor()
DActivityTaskManagerService.java5482 final float scaleFactor = Settings.System.getFloatForUser(mContext.getContentResolver(), in updateFontScaleIfNeeded() local
5486 if (getGlobalConfiguration().fontScale == scaleFactor) { in updateFontScaleIfNeeded()
5492 configuration.fontScale = scaleFactor; in updateFontScaleIfNeeded()
/frameworks/base/core/java/android/app/
DAppOpsManager.java3043 final double scaleFactor = Math.min((double) (endTimeMillis - beginTimeMillis) in filter() local
3051 uidOp.filter(packageName, opNames, scaleFactor); in filter()
3621 private void filter(@Nullable String[] opNames, double scaleFactor) { in filter() argument
3628 op.filter(scaleFactor); in filter()
3821 private void filter(double scaleFactor) { in filter() argument
3822 scale(mAccessCount, scaleFactor); in filter()
3823 scale(mRejectCount, scaleFactor); in filter()
3824 scale(mAccessDuration, scaleFactor); in filter()
4169 private static void scale(@NonNull LongSparseLongArray data, double scaleFactor) { in scale() argument
4174 (double) data.valueAt(i) * scaleFactor)); in scale()
/frameworks/native/libs/input/
DInput.cpp138 static inline void scaleAxisValue(PointerCoords& c, int axis, float scaleFactor) { in scaleAxisValue() argument
141 c.setAxisValue(axis, value * scaleFactor); in scaleAxisValue()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java653 float scaleFactor = (float)(newWidth - totalGap) / totalWidth; in resize() local
656 key.width *= scaleFactor; in resize()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2RecordingTest.java1087 float scaleFactor = sz.getHeight() * sz.getWidth() / (float)(1920 * 1080);
1088 rate = (int)(rate * scaleFactor);

12