/frameworks/base/core/java/android/net/metrics/ |
H A D | NetworkMetrics.java | 150 j.add(String.format("dns avg=%dms max=%dms err=%.1f%% tot=%d", 151 (int) dnsLatencies.average(), (int) dnsLatencies.max, 153 j.add(String.format("connect avg=%dms max=%dms err=%.1f%% tot=%d", 154 (int) connectLatencies.average(), (int) connectLatencies.max, 167 public double max = Double.MIN_VALUE; field in class:NetworkMetrics.Metrics 173 this.max = Math.max(this.max, that.max); 183 max [all...] |
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | bugdroid.rs | 37 static short pill(float3 p1, float3 p2, float rad, short max, float3 img) {
38 return (short) (max * sigmoid(pillDistance(p1, p2, img) - rad));
41 static short cogPill(float3 p1, float3 p2, float rad, short max, float3 img) {
44 return (short) (max
57 static short cylinder(float3 p1, float3 p2, float rad, short max, float3 img) {
58 return (short) (max * sigmoid(cylinderDistance(p1, p2, img) - rad));
61 static short cogCylinder(float3 p1, float3 p2, float rad, short max, float3 img) {
64 return (short) (max
78 short max, float3 img) {
79 return (short) (max
[all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | hp_max.cpp | 88 cor_hp_max = pointer to max high-pass filtered norm. correlation (Word16) 92 cor_hp_max contains max high-pass filtered norm. correlation (Word16) 134 Word16 *cor_hp_max) // o : max high-pass filtered norm. correlation 138 Word32 max, t0, t1; 142 max = MIN_32; 154 if (L_sub (t0, max) >= 0) 156 max = t0; 181 // max/t0 182 shift1 = sub(norm_l(max), 1); 183 max16 = extract_h(L_shl(max, shift 249 Word32 max, t0, t1; local [all...] |
/frameworks/base/core/proto/android/util/ |
H A D | common.proto | 34 optional int64 max = 3;
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/writer/ |
H A D | FlagSet.java | 48 this.buckets = new long[Math.max(buckets.length, minBucketCount)]; 54 int max = 0; 56 max = Math.max(i, bits[i]); 58 buckets = new long[1 + (max / sBucketSize)]; 133 final int max = Math.max(buckets.length, other.buckets.length); 134 for (int i = 0; i < max; i ++) {
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
H A D | ProgressBarWrapper.java | 61 public void setMax(int max) { argument 62 mDeterminate.setMax(max);
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
H A D | UT_math_agree.java | 201 // max reference functions 202 private float max(float v1, float v2) { method in class:UT_math_agree 205 private float[] max(float[] v1, float[] v2) { method in class:UT_math_agree 209 rv[i] = max(v1[i], v2[i]); 212 private byte max(byte v1, byte v2) { method in class:UT_math_agree 215 private byte[] max(byte[] v1, byte[] v2) { method in class:UT_math_agree 219 rv[i] = max(v1[i], v2[i]); 222 private short max(short v1, short v2) { method in class:UT_math_agree 225 private short[] max(short[] v1, short[] v2) { method in class:UT_math_agree 229 rv[i] = max(v 232 private int max(int v1, int v2) { method in class:UT_math_agree 235 private int[] max(int[] v1, int[] v2) { method in class:UT_math_agree 242 private long max(long v1, long v2) { method in class:UT_math_agree 245 private long[] max(long[] v1, long[] v2) { method in class:UT_math_agree [all...] |
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
H A D | UT_math_agree.java | 242 // max reference functions 243 private float max(float v1, float v2) { method in class:UT_math_agree 247 private float[] max(float[] v1, float[] v2) { method in class:UT_math_agree 251 rv[i] = max(v1[i], v2[i]); 255 private byte max(byte v1, byte v2) { method in class:UT_math_agree 259 private byte[] max(byte[] v1, byte[] v2) { method in class:UT_math_agree 263 rv[i] = max(v1[i], v2[i]); 267 private short max(short v1, short v2) { method in class:UT_math_agree 271 private short[] max(short[] v1, short[] v2) { method in class:UT_math_agree 275 rv[i] = max(v 279 private int max(int v1, int v2) { method in class:UT_math_agree 283 private int[] max(int[] v1, int[] v2) { method in class:UT_math_agree 291 private long max(long v1, long v2) { method in class:UT_math_agree 295 private long[] max(long[] v1, long[] v2) { method in class:UT_math_agree [all...] |
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
H A D | UT_math_agree.java | 244 // max reference functions 245 private float max(float v1, float v2) { method in class:UT_math_agree 249 private float[] max(float[] v1, float[] v2) { method in class:UT_math_agree 253 rv[i] = max(v1[i], v2[i]); 257 private byte max(byte v1, byte v2) { method in class:UT_math_agree 261 private byte[] max(byte[] v1, byte[] v2) { method in class:UT_math_agree 265 rv[i] = max(v1[i], v2[i]); 269 private short max(short v1, short v2) { method in class:UT_math_agree 273 private short[] max(short[] v1, short[] v2) { method in class:UT_math_agree 277 rv[i] = max(v 281 private int max(int v1, int v2) { method in class:UT_math_agree 285 private int[] max(int[] v1, int[] v2) { method in class:UT_math_agree 293 private long max(long v1, long v2) { method in class:UT_math_agree 297 private long[] max(long[] v1, long[] v2) { method in class:UT_math_agree [all...] |
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/image/ |
H A D | RangeInverseDepthTransform.java | 39 return Math.max(0, Math.min(255, 46 Math.max(0, Math.min(255, value)) / 255f);
|
H A D | RangeLinearDepthTransform.java | 40 return Math.max(0, Math.min(255, 46 return near + (far - near) * Math.max(0, Math.min(255, value)) / 255f;
|
/frameworks/base/core/java/com/android/internal/widget/helper/ |
H A D | ItemTouchUIUtilImpl.java | 50 float max = 0; 57 if (elevation > max) { 58 max = elevation; 61 return max;
|
/frameworks/base/libs/hwui/renderstate/ |
H A D | Scissor.cpp | 72 GLint x = std::max(0, (int)clip.left); 73 GLint y = std::max(0, viewportHeight - (int)clip.bottom); 74 GLint width = std::max(0, ((int)clip.right) - x); 75 GLint height = std::max(0, (viewportHeight - (int)clip.top) - y);
|
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
H A D | ItemTouchUIUtilImpl.java | 54 float max = 0; 61 if (elevation > max) { 62 max = elevation; 65 return max;
|
/frameworks/av/packages/MediaComponents/src/com/android/widget/ |
H A D | BaseLayout.java | 86 maxWidth = Math.max(maxWidth, 88 maxHeight = Math.max(maxHeight, 105 maxHeight = Math.max(maxHeight, mPrivateProvider.getSuggestedMinimumHeight_impl()); 106 maxWidth = Math.max(maxWidth, mPrivateProvider.getSuggestedMinimumWidth_impl()); 111 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); 112 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); 128 final int width = Math.max(0, mInstance.getMeasuredWidth() 142 final int height = Math.max(0, mInstance.getMeasuredHeight() 197 return mInstance.isForegroundInsidePadding() ? Math.max(mInstance.getPaddingLeft(), 0) : 202 return mInstance.isForegroundInsidePadding() ? Math.max(mInstanc [all...] |
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
H A D | EffectParameter.java | 35 public EffectParameter (int min, int max, SeekBar seekBar, TextView textView, String unit) { argument 37 mMax = max; 43 mSeekBar.setMax(max-min);
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | DevicePolicyConstants.java | 54 * The max back-off 79 dasDiedServiceReconnectBackoffSec = Math.max(5, dasDiedServiceReconnectBackoffSec); 83 Math.max(1, dasDiedServiceReconnectBackoffIncrease); 85 // Make sure max >= default back off. 86 dasDiedServiceReconnectMaxBackoffSec = Math.max(dasDiedServiceReconnectBackoffSec,
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/ |
H A D | LongStatsCollector.java | 26 * Class that collect a series of longs and produces the median, min and max values. 64 mMax = Math.max(mMax, value); 74 private Stats(int samples, long min, long max, double median) { argument 77 mMax = max;
|
/frameworks/support/media-widget/src/main/java/androidx/media/widget/ |
H A D | BaseLayout.java | 98 maxWidth = Math.max(maxWidth, 100 maxHeight = Math.max(maxHeight, 117 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); 118 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); 124 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); 125 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); 142 final int width = Math.max(0, getMeasuredWidth() 155 final int height = Math.max(0, getMeasuredHeight() 209 return isForegroundInsidePadding() ? Math.max(getPaddingLeft(), 0) : 214 return isForegroundInsidePadding() ? Math.max(getPaddingRigh [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | WatchListDecorLayout.java | 117 final int width = Math.max(0, getMeasuredWidth() 131 final int height = Math.max(0, getMeasuredHeight() 176 maxWidth = Math.max(maxWidth, 178 maxHeight = Math.max(maxHeight, 195 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight()); 196 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth()); 201 maxHeight = Math.max(maxHeight, drawable.getMinimumHeight()); 202 maxWidth = Math.max(maxWidth, drawable.getMinimumWidth()); 215 int paddingTop = Math.max(mListView.getPaddingTop(), 217 int paddingBottom = Math.max(mListVie [all...] |
/frameworks/av/include/media/ |
H A D | EventMetric.h | 31 double max; member in struct:android::EventStatistics 97 stats->max = stats->max > value ? stats->max : value; 103 stats->max = value;
|
/frameworks/av/media/libeffects/loudness/dsp/core/ |
H A D | dynamic_range_compression.cpp | 78 const float max_abs_x = std::max(std::fabs(x), kMinLogAbsValue); 83 const float rect = std::max(overshoot, 0.0f); 106 const float max_abs_x = std::max(std::fabs(*x1), 107 std::max(std::fabs(*x2), kMinLogAbsValue)); 112 const float rect = std::max(overshoot, 0.0f);
|
/frameworks/av/media/libmedia/include/media/ |
H A D | EventMetric.h | 31 double max; member in struct:android::EventStatistics 97 stats->max = stats->max > value ? stats->max : value; 103 stats->max = value;
|
/frameworks/av/media/libstagefright/filters/ |
H A D | ColorConvert.cpp | 19 #ifndef max 20 #define max(a,b) ((a) > (b) ? (a) : (b)) macro 39 *r = min(262143, max(0, *r)); 40 *g = min(262143, max(0, *g)); 41 *b = min(262143, max(0, *b));
|
/frameworks/base/libs/hwui/ |
H A D | Patch.cpp | 81 const float xStretch = std::max(width - fixed, 0.0f); 83 rescaleX = fixed == 0.0f ? 0.0f : std::min(std::max(width, 0.0f) / fixed, 1.0f); 93 const float yStretch = std::max(height - fixed, 0.0f); 95 rescaleY = fixed == 0.0f ? 0.0f : std::min(std::max(height, 0.0f) / fixed, 1.0f); 119 float v2 = std::max(0.0f, stepY - vOffset) / bitmapHeight; 167 float u2 = std::max(0.0f, stepX - uOffset) / bitmapWidth; 191 x1 = std::max(x1, 0.0f); 192 x2 = std::max(x2, 0.0f); 193 y1 = std::max(y1, 0.0f); 194 y2 = std::max(y [all...] |