/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | imgprocutil.h | 27 inline int clamp(int min, int val, int max) { function
|
H A D | colorspace.cpp | 40 static inline uint32 clamp(int32 x) { function 48 color.channel[kRed] = clamp(y + static_cast<int>(1.402 * v)); 49 color.channel[kGreen] = clamp(y - static_cast<int>(0.344 * u + 0.714 * v)); 50 color.channel[kBlue] = clamp(y + static_cast<int>(1.772 * u));
|
/frameworks/support/compat/src/main/java/androidx/core/math/ |
H A D | MathUtils.java | 38 public static float clamp(float value, float min, float max) { method in class:MathUtils 59 public static double clamp(double value, double min, double max) { method in class:MathUtils 80 public static int clamp(int value, int min, int max) { method in class:MathUtils
|
/frameworks/base/core/java/android/util/ |
H A D | Range.java | 173 public T clamp(T value) { method in class:Range
|
/frameworks/base/core/java/android/view/ |
H A D | RoundScrollbarRenderer.java | 78 sweepAngle = clamp(sweepAngle, MIN_SCROLLBAR_ANGLE_SWIPE, MAX_SCROLLBAR_ANGLE_SWIPE); 82 startAngle = clamp(startAngle, -SCROLLBAR_ANGLE_RANGE / 2, 97 private static float clamp(float val, float min, float max) { method in class:RoundScrollbarRenderer
|
/frameworks/native/services/sensorservice/ |
H A D | quat.h | 65 } clamp; local 71 q.x = sqrtf( clamp( Hx - My - Az + 1) * 0.25f ); 72 q.y = sqrtf( clamp(-Hx + My - Az + 1) * 0.25f ); 73 q.z = sqrtf( clamp(-Hx - My + Az + 1) * 0.25f ); 74 q.w = sqrtf( clamp( Hx + My + Az + 1) * 0.25f );
|
/frameworks/base/libs/hwui/utils/ |
H A D | MathUtils.h | 82 static inline T clamp(T a, T minValue, T maxValue) { function in class:android::uirenderer::MathUtils
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicInlines.h | 85 static inline int4 clamp(int4 amount, int low, int high) { function 94 static inline float4 clamp(float4 amount, float low, float high) { function 103 static inline int2 clamp(int2 amount, int low, int high) { function 110 static inline float2 clamp(float2 amount, float low, float high) { function 117 static inline int clamp(int amount, int low, int high) { function 121 static inline float clamp(float amount, float low, float high) { function
|
/frameworks/support/car/src/main/java/androidx/car/widget/ |
H A D | PagedSnapHelper.java | 246 * This method will clamp the maximum scroll distance so that a single fling will never scroll 283 outDist[0] = clamp(outDist[0], minDistance, maxDistance); 284 outDist[1] = clamp(outDist[1], minDistance, maxDistance); 354 * @param value The value to clamp. 360 private static int clamp(int value, int min, int max) { method in class:PagedSnapHelper
|
/frameworks/base/libs/hwui/ |
H A D | Glop.h | 124 GLenum clamp; member in struct:android::uirenderer::Glop::Fill::TextureData
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
H A D | Utilities.java | 122 public static float clamp(float value, float min, float max) { method in class:Utilities 129 public static int clamp(int value, int min, int max) { method in class:Utilities
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | Material.java | 62 private static int clamp(int c) {
method in class:Material 63 final int N = 255; // the value clamp is limiting to
89 byte v = (byte) clamp((int) (255 * (i - start) / (end - start)));
|
/frameworks/av/packages/MediaComponents/src/com/android/media/ |
H A D | SessionPlaylistAgent.java | 226 index = clamp(index, mPlaylist.size()); 271 index = clamp(index, mPlaylist.size() - 1); 488 private static int clamp(int value, int size) { method in class:SessionPlaylistAgent
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
H A D | Utils.java | 99 public static int clamp(int x, int min, int max) { method in class:Utils 106 public static float clamp(float x, float min, float max) { method in class:Utils 113 public static long clamp(long x, long min, long max) { method in class:Utils
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | PinnerService.java | 496 pinStart = clamp(0, pinStart, mapSize); 497 pinLength = clamp(0, pinLength, mapSize - pinStart); 512 pinLength = clamp(0, pinLength, maxBytesToPin - bytesPinned); 540 private static int clamp(int min, int value, int max) { method in class:PinnerService
|
/frameworks/support/media/src/main/java/androidx/media/ |
H A D | SessionPlaylistAgentImplBase.java | 235 index = clamp(index, mPlaylist.size()); 280 index = clamp(index, mPlaylist.size() - 1); 517 private static int clamp(int value, int size) { method in class:SessionPlaylistAgentImplBase
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/ |
H A D | OctopusDrawable.java | 62 public static float clamp(float v, float a, float b) { method in class:OctopusDrawable 118 vx = clamp(vx + dt_sec * ax, -MAX_VX, MAX_VX); 119 vy = clamp(vy + dt_sec * ay, -100*MAX_VY, MAX_VY); 128 point.x = clamp(point.x + dt_sec * vx, 0, scaledBounds[0]);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ExpandHelper.java | 197 float newHeight = clamp(target); 203 private float clamp(float target) { method in class:ExpandHelper 447 final float newHeight = clamp(rawHeight);
|
/frameworks/av/include/media/ |
H A D | VolumeShaper.h | 92 // Local definition for clamp as std::clamp is included in C++17 only. 93 // TODO: use the std::clamp version when Android build uses C++17. 95 static constexpr const R &clamp(const R &v, const R &lo, const R &hi) { function in class:android::media::VolumeShaper 204 return clamp(volume, MIN_LINEAR_VOLUME /* lo */, MAX_LINEAR_VOLUME /* hi */); 391 mXOffset = clamp(xOffset, MIN_CURVE_TIME /* lo */, MAX_CURVE_TIME /* hi */); 616 mDelayXOffset = clamp(xOffset, MIN_CURVE_TIME /* lo */, MAX_CURVE_TIME /* hi */); 862 VS_LOG("clamp to start - begin immediately");
|
/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/native/opengl/libs/ETC1/ |
H A D | etc1.cpp | 122 static inline etc1_byte clamp(int x) { function 191 *q++ = clamp(r + delta); 192 *q++ = clamp(g + delta); 193 *q++ = clamp(b + delta); 311 int decodedG = clamp(g + modifier); 316 int decodedR = clamp(r + modifier); 321 int decodedB = clamp(b + modifier);
|
/frameworks/support/media/src/main/java/androidx/media/subtitle/ |
H A D | Cea608CCParser.java | 639 private static int clamp(int x, int min, int max) { method in class:Cea608CCParser.CCMemory 644 mRow = clamp(row, 1, MAX_ROWS); 645 mCol = clamp(col, 1, MAX_COLS); 649 mRow = clamp(row, 1, MAX_ROWS); 653 mCol = clamp(mCol + col, 1, MAX_COLS);
|
/frameworks/av/packages/MediaComponents/src/com/android/media/subtitle/ |
H A D | ClosedCaptionRenderer.java | 857 private static int clamp(int x, int min, int max) { method in class:Cea608CCParser.CCMemory 862 mRow = clamp(row, 1, MAX_ROWS); 863 mCol = clamp(col, 1, MAX_COLS); 867 mRow = clamp(row, 1, MAX_ROWS); 871 mCol = clamp(mCol + col, 1, MAX_COLS);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | ColorSpace.java | 1807 v[0] = clamp(v[0]); 1808 v[1] = clamp(v[1]); 1809 v[2] = clamp(v[2]); 1815 v[0] = clamp(v[0]); 1816 v[1] = clamp(v[1]); 1817 v[2] = clamp(v[2]); 1821 private static float clamp(float x) { method in class:ColorSpace.Xyz 1858 v[0] = clamp(v[0], 0.0f, 100.0f); 1859 v[1] = clamp(v[1], -128.0f, 128.0f); 1860 v[2] = clamp( 1897 private static float clamp(float x, float min, float max) { method in class:ColorSpace.Lab 3019 private double clamp(double x) { method in class:ColorSpace.Rgb [all...] |