/frameworks/libs/systemui/toruslib/torus-math/src/main/java/com/google/android/torus/math/ |
D | MathUtils.kt | 51 clamp: Boolean = true in map() 53 if (clamp) { in map() 85 clamp: Boolean = true in map() 87 if (clamp) { in map() 115 fun lerp(start: Double, end: Double, amount: Double, clamp: Boolean = true): Double { in lerp() 116 val amountClamped = if (clamp) { in lerp() 117 clamp(amount, 0.0, 1.0) in lerp() 141 fun lerp(init: Float, end: Float, amount: Float, clamp: Boolean = true): Float { in lerp() 142 val amountClamped = if (clamp) { in lerp() 143 clamp(amount, 0.0f, 1.0f) in lerp() [all …]
|
/frameworks/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/utils/ |
D | MathUtils.kt | 48 clamp: Boolean = true in map() 50 if (clamp) { in map() 81 clamp: Boolean = true in map() 83 if (clamp) { in map() 110 fun lerp(start: Double, end: Double, amount: Double, clamp: Boolean = true): Double { in lerp() 112 if (clamp) { in lerp() 113 clamp(amount, 0.0, 1.0) in lerp() 136 fun lerp(init: Float, end: Float, amount: Float, clamp: Boolean = true): Float { in lerp() 138 if (clamp) { in lerp() 139 clamp(amount, 0.0f, 1.0f) in lerp() [all …]
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | DistortionMapper.h | 92 DistortionMapperInfo *mapperInfo, bool clamp, bool simple = true); 104 DistortionMapperInfo *mapperInfo, bool clamp, bool simple = true); 116 const DistortionMapperInfo *mapperInfo, bool clamp, bool simple = true) const; 128 const DistortionMapperInfo *mapperInfo, bool clamp, bool simple = true) const; 199 const DistortionMapperInfo *mapperInfo, bool clamp, bool simple) const; 204 const DistortionMapperInfo *mapperInfo, bool clamp) const; 207 const DistortionMapperInfo *mapperInfo, bool clamp) const;
|
D | DistortionMapper.cpp | 272 DistortionMapperInfo *mapperInfo, bool clamp, bool simple) { in mapRawToCorrected() argument 275 if (simple) return mapRawToCorrectedSimple(coordPairs, coordCount, mapperInfo, clamp); in mapRawToCorrected() 318 if (clamp) { in mapRawToCorrected() 331 const DistortionMapperInfo *mapperInfo, bool clamp) const { in mapRawToCorrectedSimple() 341 if (clamp) { in mapRawToCorrectedSimple() 353 DistortionMapperInfo *mapperInfo, bool clamp, bool simple) { in mapRawRectToCorrected() argument 364 mapRawToCorrected(coords, 2, mapperInfo, clamp, simple); in mapRawRectToCorrected() 377 const DistortionMapperInfo *mapperInfo, bool clamp, bool simple) const { in mapCorrectedToRaw() argument 378 return mapCorrectedToRawImpl(coordPairs, coordCount, mapperInfo, clamp, simple); in mapCorrectedToRaw() 383 const DistortionMapperInfo *mapperInfo, bool clamp, bool simple) const { in mapCorrectedToRawImpl() argument [all …]
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | resize.rscript | 27 float xf = clamp(x * scale, 0.f, (float)gWidthIn - 1.f); 28 float yf = clamp(y * scale, 0.f, (float)gHeightIn - 1.f); 54 uint32_t xs0 = (uint32_t) clamp(startx + 0, 0, maxx); 55 uint32_t xs1 = (uint32_t) clamp(startx + 1, 0, maxx); 56 uint32_t xs2 = (uint32_t) clamp(startx + 2, 0, maxx); 57 uint32_t xs3 = (uint32_t) clamp(startx + 3, 0, maxx); 59 uint32_t ys0 = (uint32_t) clamp(starty + 0, 0 , maxy); 60 uint32_t ys1 = (uint32_t) clamp(starty + 1, 0 , maxy); 61 uint32_t ys2 = (uint32_t) clamp(starty + 2, 0 , maxy); 62 uint32_t ys3 = (uint32_t) clamp(starty + 3, 0 , maxy); [all …]
|
D | levels.rsh | 28 pixel = clamp(pixel, 0.f, 255.f); 31 pixel = clamp(pixel, 0.f, 255.f); 40 pixel = clamp(pixel, 0.f, 255.f); 43 pixel = clamp(pixel, 0.f, 255.f);
|
D | vibrance.rscript | 48 o.r = clamp((int) Rc, 0, 255); 49 o.g = clamp((int) Gc, 0, 255); 50 o.b = clamp((int) Bc, 0, 255);
|
/frameworks/native/services/sensorservice/ |
D | quat.h | 65 } clamp; in matrixToQuat() local 71 q.x = sqrtf( clamp( Hx - My - Az + 1) * 0.25f ); in matrixToQuat() 72 q.y = sqrtf( clamp(-Hx + My - Az + 1) * 0.25f ); in matrixToQuat() 73 q.z = sqrtf( clamp(-Hx - My + Az + 1) * 0.25f ); in matrixToQuat() 74 q.w = sqrtf( clamp( Hx + My + Az + 1) * 0.25f ); in matrixToQuat()
|
/frameworks/rs/driver/runtime/arch/ |
D | clamp.c | 25 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \ 46 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \ 53 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \ 61 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high) { \ 70 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T low, T high) { \ 77 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T low, T high) { \ 85 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T low, T high) { \
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | levels.rsh | 28 pixel = clamp(pixel, 0.f, 255.f); 31 pixel = clamp(pixel, 0.f, 255.f); 40 pixel = clamp(pixel, 0.f, 255.f); 43 pixel = clamp(pixel, 0.f, 255.f);
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | levels.rsh | 28 pixel = clamp(pixel, 0.f, 255.f); 31 pixel = clamp(pixel, 0.f, 255.f); 40 pixel = clamp(pixel, 0.f, 255.f); 43 pixel = clamp(pixel, 0.f, 255.f);
|
D | vibrance.rscript | 48 o.r = clamp((int) Rc, 0, 255); 49 o.g = clamp((int) Gc, 0, 255); 50 o.b = clamp((int) Bc, 0, 255);
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicInlines.h | 85 static inline int4 clamp(int4 amount, int low, int high) { in CVT_FUNC() 94 static inline float4 clamp(float4 amount, float low, float high) { in clamp() function 103 static inline int2 clamp(int2 amount, int low, int high) { in clamp() function 110 static inline float2 clamp(float2 amount, float low, float high) { in clamp() function 117 static inline int clamp(int amount, int low, int high) { in clamp() function 121 static inline float clamp(float amount, float low, float high) { in clamp() function
|
/frameworks/rs/toolkit/ |
D | Utils.h | 92 inline int4 clamp(int4 amount, int low, int high) { in clamp() function 101 inline float4 clamp(float4 amount, float low, float high) { in clamp() function 110 inline int2 clamp(int2 amount, int low, int high) { in clamp() function 117 inline float2 clamp(float2 amount, float low, float high) { in clamp() function 124 inline int clamp(int amount, int low, int high) { in clamp() function 128 inline float clamp(float amount, float low, float high) { in clamp() function
|
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/ |
D | Utils.java | 167 int outr = clamp((int) ((float) Math.pow(f_r, 1.0 / 2.2) * 255.0f)); in interpolateColor() 168 int outg = clamp((int) ((float) Math.pow(f_g, 1.0 / 2.2) * 255.0f)); in interpolateColor() 169 int outb = clamp((int) ((float) Math.pow(f_b, 1.0 / 2.2) * 255.0f)); in interpolateColor() 170 int outa = clamp((int) (f_a * 255.0f)); in interpolateColor() 182 public static int clamp(int c) { in clamp() method in Utils
|
/frameworks/native/include/ui/ |
D | Size.h | 38 constexpr Size(T w, T h) : width(clamp<int32_t>(w)), height(clamp<int32_t>(h)) {} in Size() 51 width = clamp<int32_t>(v); in setWidth() 56 height = clamp<int32_t>(v); in setHeight() 89 static constexpr remove_cvref_t<ToType> clamp(FromType v) { in clamp() function
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | Size.h | 38 constexpr Size(T w, T h) : width(clamp<int32_t>(w)), height(clamp<int32_t>(h)) {} in Size() 51 width = clamp<int32_t>(v); in setWidth() 56 height = clamp<int32_t>(v); in setHeight() 89 static constexpr remove_cvref_t<ToType> clamp(FromType v) { in clamp() function
|
/frameworks/native/libs/ui/include/ui/ |
D | Size.h | 38 constexpr Size(T w, T h) : width(clamp<int32_t>(w)), height(clamp<int32_t>(h)) {} in Size() 51 width = clamp<int32_t>(v); in setWidth() 56 height = clamp<int32_t>(v); in setHeight() 89 static constexpr remove_cvref_t<ToType> clamp(FromType v) { in clamp() function
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/brightness/data/repository/ |
D | FakeScreenBrightnessRepository.kt | 52 val clampedValue = value.clamp(bounds.first, bounds.second) in setTemporaryBrightness() 58 val clampedValue = value.clamp(bounds.first, bounds.second) in setBrightness() 75 val clampedBrightness = LinearBrightness(brightnessInfo.value.brightness).clamp(min, max) in setMinMaxBrightness()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/brightness/domain/interactor/ |
D | ScreenBrightnessInteractor.kt | 74 gammaBrightness.clamp().toLinearBrightness() in <lambda>() 80 screenBrightnessRepository.setBrightness(gammaBrightness.clamp().toLinearBrightness()) in <lambda>() 94 private fun GammaBrightness.clamp(): GammaBrightness { in <lambda>() method in com.android.systemui.brightness.domain.interactor.ScreenBrightnessInteractor
|
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/ |
D | levels_f.rsh | 28 pixel = clamp(pixel, 0.f, 255.f); 31 pixel = clamp(pixel, 0.f, 255.f); 51 pixel = clamp(pixel, 0.f, 255.f);
|
/frameworks/av/services/camera/libcameraservice/fuzzer/ |
D | DistortionMapperFuzzer.cpp | 60 bool clamp = fdp.ConsumeBool(); in LLVMFuzzerTestOneInput() local 69 m.mapCorrectedToRaw(input.data(), input.size()/2, mapperInfo, clamp, simple); in LLVMFuzzerTestOneInput()
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | clamp.rscript | 26 float2 res2 = clamp(src2, min2, max2); 35 float3 res3 = clamp(src3, min3, max3); 45 float4 res4 = clamp(src4, min4, max4);
|
/frameworks/rs/driver/runtime/ |
D | rs_core.c | 23 return clamp(v, l, h); in rsClamp() 26 return clamp(v, l, h); in rsClamp() 29 return clamp(v, l, h); in rsClamp() 32 return clamp(v, l, h); in rsClamp() 35 return clamp(v, l, h); in rsClamp() 38 return clamp(v, l, h); in rsClamp() 41 return clamp(v, l, h); in rsClamp()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/ |
D | BrightnessClamperControllerTest.java | 158 mClamperController.clamp(mMockRequest, initialBrightness, initialSlowChange, STATE_ON); in testClamp_AppliesModifier() 176 DisplayBrightnessState state = mClamperController.clamp(mMockRequest, initialBrightness, in testClamp_inactiveClamperNotApplied() 200 DisplayBrightnessState state = mClamperController.clamp(mMockRequest, initialBrightness, in testClamp_activeClamperApplied_brightnessAboveMax() 224 DisplayBrightnessState state = mClamperController.clamp(mMockRequest, initialBrightness, in testClamp_activeClamperApplied_brightnessBelowMax() 248 mClamperController.clamp(mMockRequest, initialBrightness, in testClamp_activeClamperAppliedTwoTimes_keepsSlowChange() 251 DisplayBrightnessState state = mClamperController.clamp(mMockRequest, initialBrightness, in testClamp_activeClamperAppliedTwoTimes_keepsSlowChange() 276 DisplayBrightnessState state = mClamperController.clamp(mMockRequest, initialBrightness, in testAmbientLuxChanges()
|