Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 70) sorted by relevance

123

/development/tools/bugreport/src/com/android/bugreport/util/
DLines.java86 private Lines(ArrayList<? extends Line> list, int min, int max) { in Lines() argument
88 mMin = min; in Lines()
90 this.pos = min; in Lines()
139 return new Lines<T>(mList, Math.max(mMin, from), Math.min(mMax, to)); in copy()
/development/samples/browseable/RenderScriptIntrinsic/src/com.example.android.renderscriptintrinsic/
DMainActivity.java254 final float min = 1.f; in getFilterParameter() local
255 f = (float) ((max - min) * (i / 100.0) + min); in getFilterParameter()
260 final float min = 0.f; in getFilterParameter() local
261 f = (float) ((max - min) * (i / 100.0) + min); in getFilterParameter()
266 final float min = (float) -Math.PI; in getFilterParameter() local
267 f = (float) ((max - min) * (i / 100.0) + min); in getFilterParameter()
/development/samples/browseable/ActivitySceneTransitionBasic/src/com.example.android.activityscenetransitionbasic/
DSquareFrameLayout.java55 final int minSize = Math.min(getMeasuredWidth(), getMeasuredHeight()); in onMeasure()
68 size = Math.min(widthSize, heightSize); in onMeasure()
/development/build/tools/
Dmk_sdk_repo_xml.sh110 Platform.MinToolsRev min-tools-rev 1
111 Platform.MinPlatformToolsRev min-platform-tools-rev 3
112 Sample.MinApiLevel min-api-level 2
124 Extra.MinApiLevel min-api-level 2
161 Archive.MinJvmVers min-jvm-version 1
180 @ min-tools-rev
181 @ min-platform-tools-rev
/development/samples/browseable/BasicRenderScript/src/com.example.android.basicrenderscript/
DMainActivity.java71 float min = 0.0f; in onCreate()
72 float f = (float) ((max - min) * (progress / 100.0) + min); in onCreate()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
DBitmapHelper.java34 double scaleFactor = Math.min( in scaleBitmap()
60 return Math.min(actualW/targetW, actualH/targetH); in findScaleFactor()
/development/samples/devbytes/graphics/ImagePixelization/src/com/example/android/imagepixelization/
DImagePixelization.java183 maxX = Math.min(x + xPixels, width); in customImagePixelization()
184 maxY = Math.min(y + yPixels, height); in customImagePixelization()
200 int w = Math.min(xPixels, width - x); in customImagePixelization()
201 int h = Math.min(yPixels, height - y); in customImagePixelization()
/development/samples/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/
DScalingOffsettingHelper.java48 mProgressToCenter = Math.min(mProgressToCenter, MAX_CHILD_SCALE); in updateChild()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DLabelView.java151 result = Math.min(result, specSize); in measureWidth()
178 result = Math.min(result, specSize); in measureHeight()
DLayoutAnimation4.java70 return Math.min(32, mApps.size()); in getCount()
DLayoutAnimation6.java69 return Math.min(32, mApps.size()); in getCount()
DLayoutAnimation5.java69 return Math.min(32, mApps.size()); in getCount()
DLayoutAnimation1.java69 return Math.min(32, mApps.size()); in getCount()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DAlbumArtCache.java59 int maxSize = Math.min(MAX_ALBUM_ART_CACHE_SIZE, in AlbumArtCache()
60 (int) (Math.min(Integer.MAX_VALUE, Runtime.getRuntime().maxMemory()/4))); in AlbumArtCache()
/development/samples/devbytes/animation/Bouncer/src/com/example/android/bouncer/
DBouncer1.java69 minX = Math.min(mShapeX, minX); in setShapeX()
78 minY = Math.min(mShapeY, minY); in setShapeY()
DBouncer3.java70 minX = Math.min(mShapeX, minX); in setShapeX()
79 minY = Math.min(mShapeY, minY); in setShapeY()
DBouncer.java95 minX = Math.min(mShapeX, minX); in setShapeX()
108 minY = Math.min(mShapeY, minY); in setShapeY()
DBouncer2.java70 minX = Math.min(mShapeX, minX); in setShapeX()
79 minY = Math.min(mShapeY, minY); in setShapeY()
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/dummydata/
DCheeses.java178 count = Math.min(count, CHEESES.length); in randomList()
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/dummydata/
DCheeses.java178 count = Math.min(count, CHEESES.length); in randomList()
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/dummydata/
DCheeses.java178 count = Math.min(count, CHEESES.length); in randomList()
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DOverlayDisplayWindow.java318 scale = Math.min(scale, (float)mDefaultDisplayMetrics.widthPixels / mWidth); in updateWindowParams()
319 scale = Math.min(scale, (float)mDefaultDisplayMetrics.heightPixels / mHeight); in updateWindowParams()
320 scale = Math.max(MIN_SCALE, Math.min(MAX_SCALE, scale)); in updateWindowParams()
327 x = Math.max(0, Math.min(x, mDefaultDisplayMetrics.widthPixels - width)); in updateWindowParams()
328 y = Math.max(0, Math.min(y, mDefaultDisplayMetrics.heightPixels - height)); in updateWindowParams()
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DLayoutAnimationsByDefault.java56 gridContainer.addView(newButton, Math.min(1, gridContainer.getChildCount())); in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/
DMagnificationService.java120 final float nextScale = Math.max(1f, Math.min(5f, currScale + increment)); in handleVolumeKey()
/development/samples/CrossCompatibility/src/com/example/android/touchexample/
DTouchExampleView.java77 mScaleFactor = Math.max(0.1f, Math.min(mScaleFactor, 5.0f)); in onScale()

123