Searched refs:max (Results 1 - 25 of 80) sorted by relevance

1234

/packages/inputmethods/OpenWnn/libs/libwnnDictionary/include/
H A Dnjd.h63 #define NORMALIZE_HINDO(freq, max, min) \
64 (((freq) < (min)) ? (min) : (((freq) > (max)) ? (max) : (freq)))
/packages/apps/Gallery3D/src/com/cooliris/media/
H A DShared.java67 public static int clamp(int value, int min, int max) { argument
70 } else if (value > max) {
71 value = max;
76 public static long clamp(long value, long min, long max) { argument
79 } else if (value > max) {
80 value = max;
H A DFloatUtils.java189 public static final float max(float scaleX, float scaleY) { method in class:FloatUtils
H A DUtil.java79 int deltaXHalf = Math.max(0, deltaX / 2);
80 int deltaYHalf = Math.max(0, deltaY / 2);
119 int dx1 = Math.max(0, b1.getWidth() - targetWidth);
120 int dy1 = Math.max(0, b1.getHeight() - targetHeight);
H A DImageViewTouchBase.java286 float max = Math.max(fw, fh) * 4;
287 return max;
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DRankAwarePromoter.java65 int stripeSize = Math.max(1, slotsToFill / defaultResults.size());
72 int stripeSize = Math.max(1, maxPromoted / defaultResults.size());
80 int stripeSize = Math.max(1, maxPromoted / otherResults.size());
/packages/apps/Camera/src/com/android/camera/ui/
H A DGLOptionItem.java97 int height = Math.max(Math.max(mIcon == null ? 0 : mIcon.getHeight(),
100 width = Math.max(sMinimalWidth, width);
101 height = Math.max(sMinimalHeight, height);
H A DLinearLayout.java31 width = Math.max(width, view.getMeasuredWidth());
H A DPopupWindowStencilImpl.java34 int aYoffset = Math.max(p.top, mAnchorPosition - aHeight / 2);
H A DZoomController.java118 int margin = Math.max(sSlider.getHeight(), mMaxLabelHeight);
180 maxWidth = Math.max(maxWidth, mTickLabels[i].getWidth());
181 maxHeight = Math.max(maxHeight, mTickLabels[i].getHeight());
203 + Math.max(sSlider.getHeight(), mMaxLabelHeight);
207 height = Math.max(sMinimalHeight, height);
H A DPopupWindow.java72 Math.max(0, width - p.left - p.right
79 widthSpec = MeasureSpec.makeMeasureSpec(Math.max(
114 int aYoffset = Math.max(p.top, mAnchorPosition - aHeight / 2);
/packages/apps/Settings/src/com/android/settings/fuelgauge/
H A DPercentageBar.java60 return Math.max(width, intrinsicWidth);
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
H A Dndldic.c96 #define NEXT_QUE(que, max) ( ((que) < ((max) - 1)) ? ((que) + 1) : 0 )
98 #define PREV_QUE(que, max) ( ((que) == 0) ? ((max) - 1) : ((que) - 1) )
389 NJ_UINT16 max, end; local
392 max = GET_LEARN_MAX_WORD_COUNT(handle);
395 for (i = 0; i < max; i++) {
436 NJ_UINT16 max, end; local
440 max = GET_LEARN_MAX_WORD_COUNT(handle);
443 for (i = 0; i < max;
482 NJ_UINT16 max; local
1199 NJ_UINT16 right, mid = 0, left, max; local
1397 NJ_UINT16 right, mid = 0, left, max = 0; local
1657 NJ_UINT16 max; local
1688 NJ_UINT16 max; local
1840 NJ_UINT16 word_cnt, max; local
2312 NJ_UINT16 right, mid = 0, left, max; local
[all...]
/packages/apps/Gallery/src/com/android/camera/
H A DEvenlySpacedLayout.java59 height = Math.max(height, child.getMeasuredHeight());
62 width = Math.max(width, child.getMeasuredWidth());
H A DPhotoAppWidgetConfigure.java56 int maxDimension = Math.max(display.heightPixels, display.widthPixels);
H A DImageViewTouchBase.java303 float max = Math.max(fw, fh) * 4;
304 return max;
/packages/apps/Launcher2/src/com/android/launcher2/
H A DIconCache.java59 Bitmap b = Bitmap.createBitmap(Math.max(d.getIntrinsicWidth(), 1),
60 Math.max(d.getIntrinsicHeight(), 1),
/packages/apps/Camera/src/com/android/camera/
H A DPreviewFrameLayout.java83 int horizontalPadding = Math.max(
H A DUtil.java276 public static int clamp(int x, int min, int max) { argument
277 if (x > max) return max;
H A DCameraSettings.java62 // max video duration in seconds for mms and youtube.
197 int max = mParameters.getMaxExposureCompensation();
199 if (max == 0 && min == 0) {
206 int maxValue = (int) Math.floor(max * step);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DSuggest.java153 matching = Math.max(matching, lessMatching);
220 int max = 6;
222 if (mCorrectionMode == CORRECTION_BASIC) max = 1;
223 while (i < mSuggestions.size() && i < max) {
H A DTutorial.java119 float max = 0;
121 max = Math.max(max, l.getLineWidth(i));
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/
H A DTutorialEN.java149 float max = 0;
151 max = Math.max(max, l.getLineWidth(i));
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadNotification.java144 int max = c.getInt(totalBytesColumn);
153 mNotifications.get(packageName).addItem(title, progress, max);
160 item.addItem(title, progress, max);
/packages/apps/Contacts/src/com/android/contacts/
H A DTabStripView.java115 Math.max(getWidth(),

Completed in 183 milliseconds

1234