/frameworks/native/services/surfaceflinger/TimeStats/ |
H A D | TimeStats.cpp | 66 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 D | TaskStackViewScroller.java | 183 return Utilities.clamp(scroll, mLayoutAlgorithm.mMinScrollP, mLayoutAlgorithm.mMaxScrollP);
|
H A D | TaskStackViewTouchHandler.java | 297 float clampedScrollP = Utilities.clamp(curScrollP, minScrollP, maxScrollP);
|
H A D | TaskStackView.java | 870 Utilities.clamp(focusTaskIndex, 0, mStack.getTaskCount() - 1) : -1; 1156 mLastScrollPPercent = Utilities.clamp(Utilities.unmapRange(mStackScroller.getStackScroll(),
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicConvolve3x3.cpp | 101 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 D | rsCpuIntrinsicResize.cpp | 117 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 D | rsCpuIntrinsicConvolve5x5.cpp | 122 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 D | rs_math.spec | 493 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 D | MotionEvent.java | 3101 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 D | HorizontalScrollView.java | 1547 // 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 D | ScrollView.java | 1570 // 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 D | Animator.cpp | 281 fraction = MathUtils::clamp(fraction, 0.0f, 1.0f);
|
H A D | GlopBuilder.cpp | 371 // 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 D | SpotShadow.cpp | 349 ratioZ = MathUtils::clamp(polyVertex.z / lightToPolyZ, 0.0f, CASTER_Z_CAP_RATIO);
|
/frameworks/support/compat/src/main/java/androidx/core/widget/ |
H A D | NestedScrollView.java | 1758 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 D | TVecHelpers.h | 496 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 D | QuickStepController.java | 272 float scrubFraction = Utilities.clamp(Math.abs(offset) * 1f / trackSize, 0, 1);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/ |
H A D | MLand.java | 636 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 D | TiledImageRenderer.java | 270 mLevel = Utils.clamp(Utils.floorLog2(1f / mScale), 0, mLevelCount);
|
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | NotificationRecord.java | 323 n.priority = NotificationManagerService.clamp(n.priority, Notification.PRIORITY_MIN,
|
H A D | NotificationManagerService.java | 5347 static int clamp(int x, int low, int high) { method in class:NotificationManagerService
|
/frameworks/base/media/java/android/media/ |
H A D | MediaCodecInfo.java | 928 Range.create(1, MAX_SUPPORTED_INSTANCES_LIMIT).clamp(maxInstances); 1152 .clamp(maxInputChannels);
|
/frameworks/support/coordinatorlayout/src/main/java/androidx/coordinatorlayout/widget/ |
H A D | CoordinatorLayout.java | 1230 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 D | gl2ext.h | 1609 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 D | boot-image-profile.txt | [all...] |