Home
last modified time | relevance | path

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

1234

/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/tools/winscope/src/
Dmatrix_utils.js43 outrect.left = Math.min(leftTop.x, rightTop.x, leftBottom.x, rightBottom.x);
44 outrect.top = Math.min(leftTop.y, rightTop.y, leftBottom.y, rightBottom.y);
DLogEntry.vue98 min-width: 11em;
103 min-width: 30em;
107 min-width: 50em;
/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/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/ApiDemos/src/com/example/android/apis/view/
DLabelView.java151 result = Math.min(result, specSize); in measureWidth()
178 result = Math.min(result, specSize); in measureHeight()
/development/samples/devbytes/animation/Bouncer/src/com/example/android/bouncer/
DBouncer.java95 minX = Math.min(mShapeX, minX); in setShapeX()
108 minY = Math.min(mShapeY, minY); in setShapeY()
DBouncer3.java70 minX = Math.min(mShapeX, minX); in setShapeX()
79 minY = Math.min(mShapeY, minY); in setShapeY()
DBouncer1.java69 minX = Math.min(mShapeX, minX); in setShapeX()
78 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/tools/winscope/libs/virtualList/
Dvirtual.js104 if (this.sizes.size < Math.min(this.param.keeps, this.param.uniqueIds.length)) {
223 this.lastCalcIndex = Math.min(this.lastCalcIndex, this.getLastIndex())
270 const trulyEnd = Math.min(theoryEnd, this.getLastIndex())
/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/SwipeRefreshLayoutBasic/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/tools/winscope/src/mixins/
DFocusedDataViewFinder.js74 screenSpace = Math.min(visibleHeight, pos.bottom) - pos.top;
/development/samples/InlineFillService/src/com/example/android/inlinefillservice/
DInlineRequestHelper.java50 return Math.min(max, inlineRequest.get().getMaxSuggestionCount()); in getMaxSuggestionCount()
72 index = Math.min(inlineRequest.getInlinePresentationSpecs().size() - 1, index); in createInlineDataset()
/development/samples/CrossCompatibility/src/com/example/android/touchexample/
DTouchExampleView.java77 mScaleFactor = Math.max(0.1f, Math.min(mScaleFactor, 5.0f)); in onScale()

1234