Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 735) sorted by relevance

12345678910>>...30

/packages/modules/StatsD/tests/src/android/cts/statsd/atom/
DBufferDebug.java43 public static String debugString(byte[] buf, int max) { in debugString() argument
51 int len = max; in debugString()
53 max = len = buf.length; in debugString()
59 return toHex(buf, len, max); in debugString()
63 private static String toHex(byte[] buf, int len, int max) { in toHex() argument
69 writeRow(str, buf, row * WIDTH, WIDTH, max); in toHex()
74 writeRow(str, buf, rows * WIDTH, max - (rows * WIDTH), max); in toHex()
79 if (buf.length != max) { in toHex()
80 str.append(String.format("truncated to %d 0x%08x", max, max)); in toHex()
87 private static void writeRow(StringBuilder str, byte[] buf, int start, int len, int max) { in writeRow() argument
[all …]
/packages/apps/TV/src/com/android/tv/menu/
DPlaybackProgressBar.java80 public void setMax(long max) { in setMax() argument
81 if (max < 0) { in setMax()
82 max = 0; in setMax()
84 if (max != mMax) { in setMax()
85 mMax = max; in setMax()
86 if (mProgressStart > max) { in setMax()
87 mProgressStart = max; in setMax()
89 if (mProgressEnd > max) { in setMax()
90 mProgressEnd = max; in setMax()
92 if (mProgress > max) { in setMax()
[all …]
/packages/apps/Gallery2/jni/filters/
Dbwfilter.c31 float max = MAX(sg,sb); in JNIFUNCF() local
32 max = MAX(sr,max); in JNIFUNCF()
33 float avg = (min+max)/2; in JNIFUNCF()
47 max = MAX(g,b); in JNIFUNCF()
48 max = MAX(r,max); in JNIFUNCF()
49 avg =(min+max)/2; in JNIFUNCF()
/packages/modules/StatsD/lib/libkll/tests/
Dcompactor_stack_test.cpp62 std::uniform_int_distribution<uint64_t> dis(0, std::numeric_limits<uint64_t>::max()); in TEST_P()
86 std::uniform_int_distribution<uint64_t> dis(0, std::numeric_limits<uint64_t>::max()); in TEST_P()
123 compactor_stack.Add(random_.UnbiasedUniform(std::numeric_limits<uint64_t>::max())); in TEST_F()
135 compactor_stack.Add(random_.UnbiasedUniform(std::numeric_limits<uint64_t>::max())); in TEST_F()
149 compactor_stack.Add(random_.UnbiasedUniform(std::numeric_limits<uint64_t>::max())); in TEST_F()
160 compactor_stack.Add(random_.UnbiasedUniform(std::numeric_limits<uint64_t>::max())); in TEST_F()
174 compactor_stack.Add(random_.UnbiasedUniform(std::numeric_limits<uint64_t>::max())); in TEST_F()
198 compactor_stack.Add(random.UnbiasedUniform(std::numeric_limits<uint64_t>::max())); in TEST_P()
231 compactor_stack.Add(random.UnbiasedUniform(std::numeric_limits<uint32_t>::max())); in TEST_P()
235 compactor_stack.Add(random.UnbiasedUniform(std::numeric_limits<uint64_t>::max())); in TEST_P()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareMetrics.java230 data.mMaxConcurrentAttaches = Math.max(data.mMaxConcurrentAttaches, in recordAttachSession()
322 mMaxPublishInApp = Math.max(mMaxPublishInApp, numPublishesOnUid); in recordDiscoverySessionInternal()
323 mMaxSubscribeInApp = Math.max(mMaxSubscribeInApp, numSubscribesOnUid); in recordDiscoverySessionInternal()
324 mMaxDiscoveryInApp = Math.max(mMaxDiscoveryInApp, in recordDiscoverySessionInternal()
326 mMaxPublishInSystem = Math.max(mMaxPublishInSystem, numPublishesInSystem); in recordDiscoverySessionInternal()
327 mMaxSubscribeInSystem = Math.max(mMaxSubscribeInSystem, numSubscribesInSystem); in recordDiscoverySessionInternal()
328 mMaxDiscoveryInSystem = Math.max(mMaxDiscoveryInSystem, in recordDiscoverySessionInternal()
331 mMaxPublishWithRangingInApp = Math.max(mMaxPublishWithRangingInApp, in recordDiscoverySessionInternal()
333 mMaxSubscribeWithRangingInApp = Math.max(mMaxSubscribeWithRangingInApp, in recordDiscoverySessionInternal()
335 mMaxPublishWithRangingInSystem = Math.max(mMaxPublishWithRangingInSystem, in recordDiscoverySessionInternal()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DOverScroller.java227 return Math.max(mScrollerX.mDuration, mScrollerY.mDuration); in getDuration()
716 boolean springback(int start, int min, int max) { in springback() argument
727 } else if (start > max) { in springback()
728 startSpringback(start, max, 0); in springback()
748 void fling(int start, int velocity, int min, int max, int over) { in fling() argument
756 if (start > max || start < min) { in fling()
757 startAfterEdge(start, min, max, velocity); in fling()
778 if (mFinal > max) { in fling()
779 adjustDuration(mStart, mFinal, max); in fling()
780 mFinal = max; in fling()
[all …]
DUtils.java99 public static int clamp(int x, int min, int max) { in clamp() argument
100 if (x > max) return max; in clamp()
106 public static float clamp(float x, float min, float max) { in clamp() argument
107 if (x > max) return max; in clamp()
113 public static long clamp(long x, long min, long max) { in clamp() argument
114 if (x > max) return max; in clamp()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/
DSliceSeekbarPreference.java17 public SliceSeekbarPreference(Context context, SliceActionImpl action, int min, int max, in SliceSeekbarPreference() argument
21 update(min, max, value); in SliceSeekbarPreference()
25 int min, int max, int value) { in SliceSeekbarPreference() argument
28 update(min, max, value); in SliceSeekbarPreference()
69 private void update(int min, int max, int value) { in update() argument
71 this.setMax(max); in update()
/packages/apps/Camera2/src/com/android/camera/ui/motion/
DUnitBezier.java94 float max = 1.0f; in solve() local
100 if (input > max) { in solve()
101 return max; in solve()
104 while (min < max) { in solve()
113 max = input; in solve()
116 input = (max - min) * .5f + min; in solve()
/packages/services/Car/tools/emulator/
Duser_action_generator.py94 self.max = vhalAreaConfig.max_int32_value
97 self.max = vhalAreaConfig.max_int64_value
100 self.max = vhalAreaConfig.max_float_value
103 self.max = None
134 end = areaConfig.max if end > areaConfig.max else end
136 begin = areaConfig.max if begin > areaConfig.max else begin
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarHvacManagerTest.java135 int max = property.getMaxValue(areaId) == null ? 0 : property.getMaxValue(areaId); in checkIntMinMax() local
136 assertThat(min).isAtMost(max); in checkIntMinMax()
140 int max = property.getMaxValue() == null ? 0 : property.getMinValue(); in checkIntMinMax() local
141 assertThat(min).isAtMost(max); in checkIntMinMax()
161 float max = in checkFloatMinMax() local
163 assertThat(min).isAtMost(max); in checkFloatMinMax()
167 float max = property.getMaxValue() == null ? 0f : property.getMinValue(); in checkFloatMinMax() local
168 assertThat(min).isAtMost(max); in checkFloatMinMax()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DLauncherAppWidgetProviderInfo.java123 minSpanX = Math.max(minSpanX, in initSpans()
126 minSpanY = Math.max(minSpanY, in initSpans()
143 spanX = Math.max(spanX, in initSpans()
145 spanY = Math.max(spanY, in initSpans()
151 maxSpanX = Math.max(maxSpanX, minSpanX); in initSpans()
152 maxSpanY = Math.max(maxSpanY, minSpanY); in initSpans()
187 return Math.max(1, (int) Math.ceil( in getSpanX()
193 return Math.max(1, (int) Math.ceil( in getSpanY()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DEdgeEffect.java200 mEdgeAlpha = mEdgeAlphaStart = Math.max(PULL_EDGE_BEGIN, Math.min(distance, MAX_ALPHA)); in onPull()
201 mEdgeScaleY = mEdgeScaleYStart = Math.max( in onPull()
217 mGlowScaleY = mGlowScaleYStart = Math.min(MAX_GLOW_HEIGHT, Math.max( in onPull()
266 velocity = Math.max(MIN_VELOCITY, Math.abs(velocity)); in onAbsorb()
282 mEdgeAlphaFinish = Math.max(0, Math.min(velocity * VELOCITY_EDGE_FACTOR, 1)); in onAbsorb()
284 mEdgeScaleYFinish = Math.max( in onAbsorb()
293 mGlowAlphaFinish = Math.max( in onAbsorb()
316 mGlow.setAlpha((int) (Math.max(0, Math.min(mGlowAlpha, 1)) * 255)); in draw()
332 mEdge.setAlpha((int) (Math.max(0, Math.min(mEdgeAlpha, 1)) * 255)); in draw()
/packages/apps/TV/common/src/com/android/tv/common/support/tis/
DSimpleSessionManager.java31 private final int max; field in SimpleSessionManager
33 public SimpleSessionManager(int max) { in SimpleSessionManager() argument
34 this.max = max; in SimpleSessionManager()
50 return sessions.size() < max; in canCreateNewSession()
/packages/apps/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/toolbar/
DBaseLayoutInstaller.java232 int top = Math.max(0, in onGlobalLayout()
234 int left = Math.max(0, in onGlobalLayout()
236 int right = Math.max(0, in onGlobalLayout()
238 int bottom = Math.max(0, in onGlobalLayout()
241 top += Math.max(0, in onGlobalLayout()
245 bottom += Math.max(0, in onGlobalLayout()
249 left += Math.max(0, in onGlobalLayout()
253 right += Math.max(0, in onGlobalLayout()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/sharedlibrarysupport/
DSharedLibraryFactoryStub.java220 int top = Math.max(0, in recalcInsets()
222 int left = Math.max(0, in recalcInsets()
224 int right = Math.max(0, in recalcInsets()
226 int bottom = Math.max(0, in recalcInsets()
229 top += Math.max(0, in recalcInsets()
233 bottom += Math.max(0, in recalcInsets()
237 left += Math.max(0, in recalcInsets()
241 right += Math.max(0, in recalcInsets()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoSource.java171 int rawLongSide = Math.max(options.outWidth, options.outHeight); in load()
176 float insideRatio = Math.max((float) longSide / (float) rawLongSide, in load()
178 float outsideRatio = Math.max((float) longSide / (float) rawLongSide, in load()
200 rawLongSide = Math.max(options.outWidth, options.outHeight); in load()
201 rawShortSide = Math.max(options.outWidth, options.outHeight); in load()
203 ratio = Math.max((float) longSide / (float) rawLongSide, in load()
275 protected int pickRandomStart(int total, int max) { in pickRandomStart() argument
276 if (max >= total) { in pickRandomStart()
279 return (mRNG.nextInt() % (total - max)) - 1; in pickRandomStart()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DWallpaperCropUtils.java77 int maxDim = Math.max(maxDims.x, maxDims.y); in getDefaultCropSurfaceSize()
78 int minDim = Math.max(minDims.x, minDims.y); in getDefaultCropSurfaceSize()
83 maxDim = Math.max(realSize.x, realSize.y); in getDefaultCropSurfaceSize()
100 defaultWidth = Math.max((int) (minDim * WALLPAPER_SCREENS_SPAN), maxDim); in calculateCropSurfaceSize()
212 cropRect.left = Math.max(cropRect.left - extraWidth, rect.left); in calculateCropRect()
218 int availableExtraHeightTop = cropRect.top - Math.max( in calculateCropRect()
326 float maxSizeOut = Math.max(outWidth, outHeight); in fitToSize()
327 float maxSizeIn = Math.max(wallpaperSize.width(), wallpaperSize.height()); in fitToSize()
/packages/apps/Camera2/jni/
Djpegutil.h38 inline int max(int a, int b) { return a > b ? a : b; } in max() function
217 startX = max(startX, 0); in LoadAt()
218 startY = max(startY, 0); in LoadAt()
219 endX = max(endX, 0); in LoadAt()
220 endY = max(endY, 0); in LoadAt()
244 idx <= max(plane_start, plane_end); in LoadAt()
/packages/apps/Settings/src/com/android/settings/widget/
DSeekBarPreference.java202 public void setMax(int max) { in setMax() argument
203 if (max != mMax) { in setMax()
204 mMax = max; in setMax()
379 myState.max = mMax; in onSaveInstanceState()
396 mMax = myState.max; in onRestoreInstanceState()
409 int max; field in SeekBarPreference.SavedState
417 max = source.readInt(); in SavedState()
427 dest.writeInt(max); in writeToParcel()
/packages/apps/TV/tests/tunerscripts/
Dmeasure-tuning-time.awk15 max = tune_time;
20 if (tune_time > max) {
21 max = tune_time
30 print "Maximum tune time", max, "ms";
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DRangeArray.java24 public RangeArray(int min, int max) { in RangeArray() argument
25 mData = (T[]) new Object[max - min + 1]; in RangeArray()
30 public RangeArray(T[] src, int min, int max) { in RangeArray() argument
31 if (max - min + 1 != src.length) { in RangeArray()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/toolbar/
DToolbarProgressBarTest.java81 int[] max = new int[] { -5 }; in test_settersAndGetters_work() local
88 max[0] = progressBar.getMax(); in test_settersAndGetters_work()
95 assertThat(max[0]).isEqualTo(100); in test_settersAndGetters_work()
108 max[0] = progressBar.getMax(); in test_settersAndGetters_work()
115 assertThat(max[0]).isEqualTo(75); in test_settersAndGetters_work()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_random.h57 inline int db_RandomInt(int &r,int max) in db_RandomInt() argument
61 dtemp=db_QuickRandomDouble(r)*(max+1); in db_RandomInt()
64 if(itemp>=max) return(max); in db_RandomInt()
/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/
DRealLocationListeningAccountant.java161 passiveModeDuration = max(passiveModeDuration, passiveTimeNeeded); in getNextListeningInstruction()
167 passiveModeDuration = max(passiveModeDuration, timeBeforeLastResultIsTooOld); in getNextListeningInstruction()
186 return max(Duration.ZERO, budgetRequired); in calculateAdditionalActiveListeningBudgetRequired()
211 timeBeforeLastResultIsTooOld = max(Duration.ZERO, timeBeforeLastResultIsTooOld); in calculateTimeBeforeLastResultIsTooOld()
250 mActiveListeningBalanceMillis = Math.max(0, mActiveListeningBalanceMillis); in decrementActiveListeningBalanceWithFloor()
277 private static Duration max(@NonNull Duration one, @NonNull Duration two) { in max() method in RealLocationListeningAccountant

12345678910>>...30