HomeSort by relevance Sort by last modified time
    Searched refs:Math (Results 726 - 750 of 4130) sorted by null

<<21222324252627282930>>

  /packages/apps/Launcher3/src/com/android/launcher3/widget/
PendingAppWidgetHostView.java 166 hsv[1] = Math.min(hsv[1], MIN_SATUNATION);
178 mCenterDrawable.setLevel(Math.max(mInfo.installProgress, 0));
221 int size = Math.min(maxSize, Math.min(availableWidth, availableHeight));
227 float iconSize = Math.max(0, Math.min(availableWidth, availableHeight));
232 int maxSize = Math.max(availableWidth, availableHeight);
238 int actualIconSize = (int) Math.min(iconSize, grid.iconSizePx);
  /packages/apps/Messaging/src/com/android/messaging/ui/
AudioPlaybackProgressBar.java 52 progress = Math.max(Math.min(progress, 100), 0);
  /packages/apps/Music/src/com/android/music/utils/
BitmapHelper.java 34 double scaleFactor = Math.min(
60 return Math.min(actualW / targetW, actualH / targetH);
  /packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/
InputStreamProvider.java 87 rotatedBounds[0] = Math.abs(rotatedBounds[0]);
88 rotatedBounds[1] = Math.abs(rotatedBounds[1]);
102 int scaleDownSampleSize = Math.max(1, Math.min(roundedTrueCrop.width() / outWidth,
179 dimsAfter[0] = Math.abs(dimsAfter[0]);
180 dimsAfter[1] = Math.abs(dimsAfter[1]);
183 outWidth = Math.round(dimsAfter[0]);
184 outHeight = Math.round(dimsAfter[1]);
  /packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
WallpaperTileInfo.java 60 rotatedBounds[0] = Math.abs(rotatedBounds[0]);
61 rotatedBounds[1] = Math.abs(rotatedBounds[1]);
  /packages/experimental/Bummer/src/com/android/dreams/bummer/
BummerView.java 52 final float newx = (float) (Math.random() * (framew - textw));
53 final float newy = (float) (Math.random() * (frameh - texth));
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
TextRange.java 92 spanStart = Math.min(spanStart, text.getSpanStart(spans[i]));
93 spanEnd = Math.max(spanEnd, text.getSpanEnd(spans[i]));
  /packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
BummerView.java 52 final float newx = (float) (Math.random() * (framew - textw));
53 final float newy = (float) (Math.random() * (frameh - texth));
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/ui/
StretchesViewer.java 205 ratio = Math.min(wRatio, ratio);
207 ratio = Math.min(hRatio, ratio);
209 int width = Math.round(mSize.x * ratio);
210 int height = Math.round(mSize.y * ratio);
247 dest.x = (int) Math.ceil(p.dest.x * ratio);
248 dest.y = (int) Math.ceil(p.dest.y * ratio);
249 dest.width = (int) Math.ceil(p.dest.width * ratio);
250 dest.height = (int) Math.ceil(p.dest.height * ratio);
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DrawableTestUtils.java 178 totalError += Math.abs(Color.red(idealColor) - Color.red(givenColor));
179 totalError += Math.abs(Color.green(idealColor) - Color.green(givenColor));
180 totalError += Math.abs(Color.blue(idealColor) - Color.blue(givenColor));
181 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor));
201 final int w = Math.max(d.getIntrinsicWidth(), x + 1);
202 final int h = Math.max(d.getIntrinsicHeight(), y + 1);
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
WindowSurface.java 103 x = (float)((width-1)*Math.random());
104 y = (float)((height-1)*Math.random());
105 dx = (float)(Math.random()*minStep*2) + 1;
106 dy = (float)(Math.random()*minStep*2) + 1;
110 cur += (Math.random()*minStep) - (minStep/2);
167 int dist = Math.abs(mBrightLine-index);
  /development/samples/ApiDemos/src/com/example/android/apis/view/
CustomLayout.java 101 mLeftWidth += Math.max(maxWidth,
104 mRightWidth += Math.max(maxWidth,
107 maxWidth = Math.max(maxWidth,
110 maxHeight = Math.max(maxHeight,
120 maxHeight = Math.max(maxHeight, getSuggestedMinimumHeight());
121 maxWidth = Math.max(maxWidth, getSuggestedMinimumWidth());
  /external/adhd/scripts/mic_testing/frontend/
source.js 63 var beta = this.duration / Math.log(k);
66 phi = 2 * Math.PI * this.freqStart * beta *
67 (Math.pow(k, i / leftChannel.length) - 1.0);
71 phi = f * 2 * Math.PI * i / this.sampleRate;
73 leftChannel[i] = this.leftGain * Math.sin(phi);
74 rightChannel[i] = this.rightGain * Math.sin(phi);
  /external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
BitSet.cs 39 using Math = System.Math;
96 BitSet s = new BitSet(Math.Max(a, b) + 1);
142 int newSize = Math.Max(_bits.Length << 1, NumWordsToHold(bit));
154 int min = Math.Min(_bits.Length, a._bits.Length);
202 int n = Math.Min(this._bits.Length, otherSet._bits.Length);
  /external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
BitSet.cs 40 using Math = System.Math;
105 BitSet s = new BitSet( Math.Max( a, b ) + 1 );
158 int newSize = Math.Max( _bits.Length << 1, NumWordsToHold( bit ) );
173 int min = Math.Min( _bits.Length, a._bits.Length );
233 int n = Math.Min( this._bits.Length, otherSet._bits.Length );
  /external/v8/tools/turbolizer/
util.js 9 var margin = Math.floor(height / 4);
28 let step = Math.floor(count / 2);
47 let step = Math.floor(count / 2);
  /frameworks/base/core/java/com/android/internal/app/
PlatLogoActivity.java 53 this.radius = Math.max(48*dp, r);
84 final int slots = 2 + (int)(Math.random() * 2);
85 float[] color = new float[] { (float) Math.random() * 360f, 1f, 1f };
122 float w = Math.max(canvas.getWidth(), canvas.getHeight()) * 1.414f;
132 w -= inner_w * (1.1f + Math.sin((i/20f + offset) * 3.14159f));
193 bg.setRadius((float) Math.hypot(pc0.x - pc1.x, pc0.y - pc1.y) / 2f);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/
GridTaskViewThumbnail.java 76 final int thumbnailWidth = Math.min(viewWidth,
78 final int thumbnailHeight = Math.min(viewHeight,
107 final int l = Math.max(0, outerRight - mCornerRadius);
125 final int t = Math.max(0, thumbnailHeight - mCornerRadius);
165 final int thumbnailWidth = Math.min(viewWidth,
167 final int thumbnailHeight = Math.min(viewHeight,
  /frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
ErrorCalculator.java 92 int interestingPixels = Math.max(1, regionCount) * REGION_SIZE * REGION_SIZE;
146 int interestingPixels = Math.max(1, interestingRegions) * REGION_SIZE * REGION_SIZE;
159 totalError += Math.abs(Color.red(idealColor) - Color.red(givenColor));
160 totalError += Math.abs(Color.green(idealColor) - Color.green(givenColor));
161 totalError += Math.abs(Color.blue(idealColor) - Color.blue(givenColor));
162 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor));
  /frameworks/ex/common/java/com/android/common/
OperationScheduler.java 172 time = Math.min(time, lastSuccessTimeMillis + options.periodicIntervalMillis);
175 time = Math.max(time, moratoriumTimeMillis);
176 time = Math.max(time, lastSuccessTimeMillis + options.minTriggerMillis);
187 backoff = Math.min(backoff, options.maxMoratoriumMillis);
189 time = Math.max(time, lastErrorTimeMillis + backoff);
210 return Math.max(
  /frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Quaternion.java 49 double norm = Math.sqrt(dot(a, a));
57 double angle = Math.acos(dot(vec1, vec2));
64 return Math.acos(Math.min(dot(vec1, vec2), 1));
74 x[0] = Math.cos(angle / 2);
75 double sin = Math.sin(angle / 2);
  /frameworks/support/paging/common/src/main/java/androidx/paging/
ContiguousPagedList.java 128 || mStorage.getTrailingNullCount() != Math.max(previousTrailing - newlyAppended, 0)
129 || mStorage.getLeadingNullCount() != Math.max(previousLeading - newlyPrepended, 0)
137 final int changedCount = Math.min(previousTrailing, newlyAppended);
149 final int changedCount = Math.min(previousLeading, newlyPrepended);
168 mPrependItemsRequested = Math.max(prependItems, mPrependItemsRequested);
173 mAppendItemsRequested = Math.max(appendItems, mAppendItemsRequested);
  /frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
LinearSnapHelper.java 173 Math.abs(distances[0]) > Math.abs(distances[1]) ? distances[0] : distances[1];
174 return (int) Math.round(distance / distancePerChild);
207 int absDistance = Math.abs(childCenter - center);
260 int start = Math.min(helper.getDecoratedStart(minPosView),
262 int end = Math.max(helper.getDecoratedEnd(minPosView),
  /libcore/ojluni/src/main/java/java/time/chrono/
ChronoLocalDateImpl.java 203 case WEEKS: return plusDays(Math.multiplyExact(amountToAdd, 7));
206 case DECADES: return plusYears(Math.multiplyExact(amountToAdd, 10));
207 case CENTURIES: return plusYears(Math.multiplyExact(amountToAdd, 100));
208 case MILLENNIA: return plusYears(Math.multiplyExact(amountToAdd, 1000));
209 case ERAS: return with(ERA, Math.addExact(getLong(ERA), amountToAdd));
277 return plusDays(Math.multiplyExact(weeksToAdd, 7));
  /packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
TaskImageContainer.java 254 safeCrop.left = Math.max(safeCrop.left, 0);
255 safeCrop.top = Math.max(safeCrop.top, 0);
256 safeCrop.right = Math.max(Math.min(safeCrop.right, width), safeCrop.left);
257 safeCrop.bottom = Math.max(Math.min(safeCrop.bottom, height), safeCrop.top);

Completed in 1099 milliseconds

<<21222324252627282930>>