Home
last modified time | relevance | path

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

12

/developers/samples/android/renderScript/RenderScriptIntrinsic/Application/src/main/java/com/example/android/renderscriptintrinsic/
DMainActivity.java235 final float min = 1.f; in getFilterParameter() local
236 f = (float) ((max - min) * (i / 100.0) + min); in getFilterParameter()
241 final float min = 0.f; in getFilterParameter() local
242 f = (float) ((max - min) * (i / 100.0) + min); in getFilterParameter()
247 final float min = (float) -Math.PI; in getFilterParameter() local
248 f = (float) ((max - min) * (i / 100.0) + min); in getFilterParameter()
/developers/samples/android/ui/activityscenetransition/ActivitySceneTransitionBasic/Application/src/main/java/com/example/android/activityscenetransitionbasic/
DSquareFrameLayout.java55 final int minSize = Math.min(getMeasuredWidth(), getMeasuredHeight()); in onMeasure()
68 size = Math.min(widthSize, heightSize); in onMeasure()
/developers/samples/android/renderScript/BasicRenderScript/Application/src/main/java/com/example/android/basicrenderscript/
DMainActivity.java70 float min = 0.0f; in onCreate()
71 float f = (float) ((max - min) * (progress / 100.0) + min); in onCreate()
/developers/samples/android/wearable/wear/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
DScalingScrollLayoutCallback.java39 progressToCenter = Math.min(progressToCenter, MAX_ICON_PROGRESS); in onLayoutFinished()
/developers/samples/android/wearable/wear/WearNotifications/Wearable/src/main/java/com/example/android/wearable/wear/wearnotifications/
DScalingScrollLayoutCallback.java50 mProgressToCenter = Math.min(mProgressToCenter, MAX_CHILD_SCALE); in onLayoutFinished()
/developers/samples/android/common/src/java/com/example/android/common/dummydata/
DCheeses.java178 count = Math.min(count, CHEESES.length); in randomList()
/developers/samples/android/media/MediaRouter/Application/src/main/java/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()
/developers/samples/android/ui/text/RoundedBackground-Kotlin/lib/src/main/java/com/android/example/text/styling/roundedbg/
DTextRoundedBgRenderer.kt22 import kotlin.math.min
102 val left = min(startOffset, endOffset) in draw()
/developers/samples/android/ui/views/Clipping/ClippingBasic/Application/src/main/java/com/example/android/clippingbasic/
DClippingBasicFragment.java133 final int margin = Math.min(view.getWidth(), view.getHeight()) / 10; in getOutline()
/developers/samples/android/ui/accessibility/BasicAccessibility/Application/src/main/java/com/example/android/basicaccessibility/
DDialView.java186 mRadius = (float) (Math.min(mWidth, mHeight) / 2 * 0.8); in onSizeChanged()
/developers/samples/android/common/src/java/com/example/android/common/view/
DSlidingTabStrip.java120 final int dividerHeightPx = (int) (Math.min(Math.max(0f, mDividerHeight), 1f) * height); in onDraw()
/developers/samples/android/connectivity/network/NetworkConnect/Application/src/main/java/com/example/android/networkconnect/
DNetworkFragment.java283 numChars = Math.min(numChars, maxLength); in readStream()
/developers/samples/android/content/documentsUi/ContentProviderPaging/kotlinApp/app/src/main/kotlin/com.example.android.contentproviderpaging/
DImageProvider.kt81 val maxIndex = Math.min(offset + limit, files.size) in query()
/developers/samples/android/content/documentsUi/ContentProviderPaging/app/src/main/java/com/example/android/contentproviderpaging/
DImageProvider.java116 for (int i = offset, maxIndex = Math.min(offset + limit, files.length); i < maxIndex; i++) { in query()
/developers/samples/android/input/multitouch/BasicMultitouch/Application/src/main/java/com/example/android/basicmultitouch/
DTouchDisplayView.java383 float pressure = Math.min(data.pressure, 1f); in drawCircle()
/developers/samples/android/ui/views/Clipping/ClippingBasic/
DREADME.md22 final int margin = Math.min(view.getWidth(), view.getHeight()) / 10;
/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/config/
DDigitalWatchFaceWearableConfigActivity.java143 float newTranslation = Math.min(-scroll, 0); in onAbsoluteScrollChange()
/developers/samples/android/sensors/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/
DBatchStepSensorFragment.java384 mEventLength = Math.min(EVENT_QUEUE_LENGTH, mEventLength + 1); in recordDelay()
/developers/samples/android/content/documentsUi/StorageProvider/Application/src/main/java/com/example/android/storageprovider/
DMyCloudProvider.java196 for (int i = 0; i < Math.min(MAX_LAST_MODIFIED + 1, lastModifiedFiles.size()); i++) { in queryRecentDocuments()
/developers/samples/android/media/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/
DCamera2VideoFragment.kt617 Collections.min(bigEnough, CompareSizesByArea()) in chooseOptimalSize()
/developers/samples/android/media/Camera2Basic/kotlinApp/Application/src/main/java/com/example/android/camera2basic/
DCamera2BasicFragment.kt806 return Collections.min(bigEnough, CompareSizesByArea()) in chooseOptimalSize()
/developers/samples/android/media/Camera2Video/Application/src/main/java/com/example/android/camera2video/
DCamera2VideoFragment.java268 return Collections.min(bigEnough, new CompareSizesByArea()); in chooseOptimalSize()
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
DDiskLruCache.java184 final int copyLength = Math.min(resultLength, originalLength - start); in copyOfRange()
/developers/samples/android/media/Camera2Basic/Application/src/main/java/com/example/android/camera2basic/
DCamera2BasicFragment.java408 return Collections.min(bigEnough, new CompareSizesByArea()); in chooseOptimalSize()
/developers/samples/android/media/Camera2Raw/Application/src/main/java/com/example/android/camera2raw/
DCamera2RawFragment.java1657 return Collections.min(bigEnough, new CompareSizesByArea());

12