Searched refs:clamp (Results 101 - 125 of 125) sorted by relevance

12345

/frameworks/native/services/surfaceflinger/TimeStats/
H A DTimeStats.cpp66 value = std::clamp(value, int64_t(0), int64_t(UINT32_MAX));
147 delta = std::clamp(delta, int64_t(INT32_MIN), int64_t(INT32_MAX));
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskStackViewScroller.java183 return Utilities.clamp(scroll, mLayoutAlgorithm.mMinScrollP, mLayoutAlgorithm.mMaxScrollP);
H A DTaskStackViewTouchHandler.java297 float clampedScrollP = Utilities.clamp(curScrollP, minScrollP, maxScrollP);
H A DTaskStackView.java870 Utilities.clamp(focusTaskIndex, 0, mStack.getTaskCount() - 1) : -1;
1156 mLastScrollPPercent = Utilities.clamp(Utilities.unmapRange(mStackScroller.getStackScroll(),
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicConvolve3x3.cpp101 px = clamp(px + 0.5f, 0.f, 255.f);
123 px = clamp(px + 0.5f, 0.f, 255.f);
143 *out = clamp(px + 0.5f, 0.f, 255.f);
H A DrsCpuIntrinsicResize.cpp117 p = clamp(p + 0.5f, 0.f, 255.f);
152 p = clamp(p + 0.5f, 0.f, 255.f);
176 p = clamp(p + 0.5f, 0.f, 255.f);
H A DrsCpuIntrinsicConvolve5x5.cpp122 px = clamp(px + 0.5f, 0.f, 255.f);
165 px = clamp(px + 0.5f, 0.f, 255.f);
208 px = clamp(px + 0.5f, 0.f, 255.f);
/frameworks/rs/script_api/
H A Drs_math.spec493 function: clamp
504 Clamps a value to a specified high and low bound. clamp() returns min_value
507 There are two variants of clamp: one where the min and max are scalars applied
513 function: clamp
524 function: clamp
535 function: clamp
546 function: clamp
557 function: clamp
3375 arg: #1 amount, "Value to clamp."
3378 deprecated: 22, Use @clamp() instea
[all...]
/frameworks/base/core/java/android/view/
H A DMotionEvent.java3101 private static final float clamp(float value, float low, float high) { method in class:MotionEvent
3126 pc[i].x = clamp(pc[i].x, left, right);
3127 pc[i].y = clamp(pc[i].y, top, bottom);
/frameworks/base/core/java/android/widget/
H A DHorizontalScrollView.java1547 // Don't forget to clamp
1632 x = clamp(x, getWidth() - mPaddingRight - mPaddingLeft, child.getWidth());
1633 y = clamp(y, getHeight() - mPaddingBottom - mPaddingTop, child.getHeight());
1690 private static int clamp(int n, int my, int child) { method in class:HorizontalScrollView
H A DScrollView.java1570 // Don't forget to clamp
1673 x = clamp(x, getWidth() - mPaddingRight - mPaddingLeft, child.getWidth());
1674 y = clamp(y, getHeight() - mPaddingBottom - mPaddingTop, child.getHeight());
1796 private static int clamp(int n, int my, int child) { method in class:ScrollView
/frameworks/base/libs/hwui/
H A DAnimator.cpp281 fraction = MathUtils::clamp(fraction, 0.0f, 1.0f);
H A DGlopBuilder.cpp371 // specify invalid filter/clamp, since these are always static for PathTextures
387 // specify invalid filter/clamp, since these are always static for ShadowTextures
667 ALOGD(" texture %p, target %d, filter %d, clamp %d", fill.texture.texture,
668 fill.texture.texture->target(), fill.texture.filter, fill.texture.clamp);
H A DSpotShadow.cpp349 ratioZ = MathUtils::clamp(polyVertex.z / lightToPolyZ, 0.0f, CASTER_Z_CAP_RATIO);
/frameworks/support/compat/src/main/java/androidx/core/widget/
H A DNestedScrollView.java1758 int newScrollY = clamp(currentScrollY, parentSpace, childSize);
1865 x = clamp(x, parentSpaceHorizontal, childSizeHorizontal);
1866 y = clamp(y, parentSpaceVertical, childSizeVertical);
1937 private static int clamp(int n, int my, int child) { method in class:NestedScrollView
/frameworks/native/libs/math/include/math/
H A DTVecHelpers.h496 return clamp(lv, T(0), T(1));
499 friend inline CONSTEXPR VECTOR<T> PURE clamp(VECTOR<T> v, T min, T max) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DQuickStepController.java272 float scrubFraction = Utilities.clamp(Math.abs(offset) * 1f / trackSize, 0, 1);
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
H A DMLand.java636 public static final float clamp(float f) { method in class:MLand
1145 90 + lerp(clamp(rlerp(dv, PARAMS.MAX_V, -1 * PARAMS.MAX_V)), 90, -90));
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DTiledImageRenderer.java270 mLevel = Utils.clamp(Utils.floorLog2(1f / mScale), 0, mLevelCount);
/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationRecord.java323 n.priority = NotificationManagerService.clamp(n.priority, Notification.PRIORITY_MIN,
H A DNotificationManagerService.java5347 static int clamp(int x, int low, int high) { method in class:NotificationManagerService
/frameworks/base/media/java/android/media/
H A DMediaCodecInfo.java928 Range.create(1, MAX_SUPPORTED_INSTANCES_LIMIT).clamp(maxInstances);
1152 .clamp(maxInputChannels);
/frameworks/support/coordinatorlayout/src/main/java/androidx/coordinatorlayout/widget/
H A DCoordinatorLayout.java1230 mScrimPaint.setAlpha(clamp(Math.round(255 * scrimAlpha), 0, 255));
1249 private static int clamp(int value, int min, int max) { method in class:CoordinatorLayout
/frameworks/native/opengl/include/GLES2/
H A Dgl2ext.h1609 typedef void (GL_APIENTRYP PFNGLPOLYGONOFFSETCLAMPEXTPROC) (GLfloat factor, GLfloat units, GLfloat clamp);
1611 GL_APICALL void GL_APIENTRY glPolygonOffsetClampEXT (GLfloat factor, GLfloat units, GLfloat clamp);
/frameworks/base/config/
H A Dboot-image-profile.txt[all...]

Completed in 1117 milliseconds

12345