Searched refs:min (Results 276 - 300 of 829) sorted by relevance

<<11121314151617181920>>

/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
H A Dfind_region.rs75 min_xy = min(min_xy, v);
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
H A Dcolorcube.rs40 int4 coord2 = min(coord1 + 1, gDims - 1);
H A Dgrain.rs71 p20 = min(p20 >> 10, (uint)255);
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
H A Dcolorcube.rs40 int4 coord2 = min(coord1 + 1, gDims - 1);
H A Dgrain.rs71 p20 = min(p20 >> 10, (uint)255);
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
H A Dcolorcube.rs40 int4 coord2 = min(coord1 + 1, gDims - 1);
H A Dgrain.rs71 p20 = min(p20 >> 10, (uint)255);
/frameworks/support/compat/java/android/support/v4/app/
H A DSharedElementCallback.java193 float scale = Math.min(1f, ((float) MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight));
219 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (width * height));
/frameworks/support/compat/java/android/support/v4/os/
H A DLocaleListCompat.java308 @NonNull @Size(min = 1)
328 @NonNull @Size(min = 1)
/frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/
H A DPathInterpolatorCompat.java21 import static java.lang.Math.min;
139 final int numPoints = min(MAX_NUM_POINTS, (int) (pathLength / PRECISION) + 1);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DWindowAlignment.java66 * Padding at the min edge, it is the left or top padding.
133 * Returns scroll distance to align min child.
239 // calculate scroll distance to move current mMinEdge to padding at min edge
242 // calculate scroll distance to move min child center to key line
262 mMinScroll = Math.min(mMinScroll,
272 // if we prefer key line, might align min child to key line for maxScroll
276 // don't over scroll min
277 mMinScroll = Math.min(mMinScroll, mMaxScroll);
298 // view center is before key line: align the min edge (first child) to padding.
331 return " min
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DDefaultMeasureSpecTest.java134 mExpectedH = Math.min(View.MeasureSpec.getSize(mHSpec), mExpectedH + 5);
149 mExpectedW = Math.min(View.MeasureSpec.getSize(mWSpec), mExpectedW + 5);
H A DLinearLayoutManagerTest.java134 focusIndex = Math.min(consecutiveFocusablesCount - 1, (focusIndex + 1));
136 visibleIndex = Math.min(consecutiveFocusablesCount + visibleChildCount - 2,
219 focusIndex = Math.min(consecutiveFocusablesCount - 1, (focusIndex + 1));
221 visibleIndex = Math.min(consecutiveFocusablesCount + visibleChildCount - 2,
305 focusIndex = Math.min(consecutiveFocusablesCount - 1, (focusIndex + 1));
307 visibleIndex = Math.min(consecutiveFocusablesCount + visibleChildCount - 2,
390 focusIndex = Math.min(consecutiveFocusablesCount - 1, (focusIndex + 1));
392 visibleIndex = Math.min(consecutiveFocusablesCount + visibleChildCount - 2,
H A DGridLayoutManagerTest.java165 assertEquals(Math.min(pos + 3, mAdapter.getItemCount() - 1),
247 focusIndex = Math.min(maxFocusIndex, (focusIndex + spanCount));
249 visibleIndex = Math.min(maxVisibleIndex, (visibleIndex + spanCount));
337 focusIndex = Math.min(maxFocusIndex, (focusIndex + spanCount));
339 visibleIndex = Math.min(maxVisibleIndex, (visibleIndex + spanCount));
427 focusIndex = Math.min(maxFocusIndex, (focusIndex + spanCount));
429 visibleIndex = Math.min(maxVisibleIndex, (visibleIndex + spanCount));
517 focusIndex = Math.min(maxFocusIndex, (focusIndex + spanCount));
519 visibleIndex = Math.min(maxVisibleIndex, (visibleIndex + spanCount));
/frameworks/av/media/libaudioprocessing/
H A DBufferProviders.cpp40 static inline T min(const T& a, const T& b) function in namespace:android
101 size_t count = min(mLocalBufferFrameCount, mBuffer.frameCount - mConsumed);
102 count = min(count, pBuffer->frameCount);
465 dstAvailable = min(mLocalBufferFrameCount - mRemaining, outputDesired);
553 size_t remaining = min(*srcFrames, *dstFrames - count);
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/
H A DOctopusDrawable.java346 float max, min; field in class:OctopusDrawable.Arm
349 float max, float min) {
361 this.min = min;
384 TaperedPathStroke.drawPath(canvas, p, max, min, pt);
348 Arm(float x, float y, float dx1, float dy1, float dx2, float dy2, float dx3, float dy3, float max, float min) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyguardAffordanceView.java179 alpha = Math.min(1.0f, alpha);
201 float fraction = 0.5f + 0.5f * Math.max(0.0f, Math.min(1.0f,
368 duration = Math.min(duration, CIRCLE_DISAPPEAR_MAX_DURATION);
453 durationFactor = Math.min(1.0f, durationFactor);
515 durationFactor = Math.min(1.0f, durationFactor);
/frameworks/base/services/core/java/com/android/server/policy/
H A DWindowOrientationListener.java532 int min = tiltTolerance[i * 2];
534 if (min >= -90 && min <= max && max <= 90) {
535 mTiltToleranceConfig[i][0] = min;
539 + "min=" + min + ", max=" + max);
/frameworks/support/wear/src/android/support/wear/widget/
H A DCircledImageView.java339 width = (int) Math.min(desiredWidth, widthSize);
347 height = (int) Math.min(desiredHeight, heightSize);
380 Math.min(
382 Math.min(
417 float clamped = Math.max(0, Math.min(1, percentage));
/frameworks/base/core/java/android/widget/
H A DProgressBar.java1517 * <p>Set the lower range of the progress bar to <tt>min</tt>.</p>
1519 * @param min the lower range of this progress bar
1526 public synchronized void setMin(int min) { argument
1528 if (min > mMax) {
1529 min = mMax;
1533 if (mMaxInitialized && min != mMin) {
1534 mMin = min;
1537 if (mProgress < min) {
1538 mProgress = min;
1542 mMin = min;
[all...]
/frameworks/native/libs/math/include/math/
H A DTVecHelpers.h499 friend inline CONSTEXPR VECTOR<T> PURE clamp(VECTOR<T> v, T min, T max) {
501 v[i] = std::min(max, std::max(min, v[i]));
514 friend inline CONSTEXPR VECTOR<T> PURE min(const VECTOR<T>& u, VECTOR<T> v) {
516 v[i] = std::min(u[i], v[i]);
536 friend inline CONSTEXPR T PURE min(const VECTOR<T>& v) {
539 r = std::min(r, v[i]);
/frameworks/rs/driver/runtime/
H A Drs_sample.c314 return (uint32_t)max(0, min(coord, size - 1));
555 lod = min(lod, (float)maxLOD);
564 lod0 = min(lod0, maxLOD);
565 lod1 = min(lod1, maxLOD);
608 lod = min(lod, (float)maxLOD);
617 lod0 = min(lod0, maxLOD);
618 lod1 = min(lod1, maxLOD);
/frameworks/support/design/src/android/support/design/widget/
H A DAppBarLayout.java496 // If this layout has a min height, use it (doubled)
500 // Otherwise, we'll use twice the min height of our last child
508 // If we reach here then we don't have a min height explicitly set. Instead we'll take a
848 int min, max;
851 min = -child.getTotalScrollRange();
852 max = min + child.getDownNestedPreScrollRange();
855 min = -child.getUpNestedPreScrollRange();
858 if (min != max) {
859 consumed[1] = scroll(coordinatorLayout, child, dy, min, max);
937 mOffsetAnimator.setDuration(Math.min(duratio
[all...]
/frameworks/base/core/java/android/net/
H A DNetworkStats.java1008 pool.rxBytes = Math.min(tunIfaceTotal.rxBytes, underlyingIfaceTotal.rxBytes);
1009 pool.rxPackets = Math.min(tunIfaceTotal.rxPackets, underlyingIfaceTotal.rxPackets);
1010 pool.txBytes = Math.min(tunIfaceTotal.txBytes, underlyingIfaceTotal.txBytes);
1011 pool.txPackets = Math.min(tunIfaceTotal.txPackets, underlyingIfaceTotal.txPackets);
1012 pool.operations = Math.min(tunIfaceTotal.operations, underlyingIfaceTotal.operations);
1099 long rxBytes = Math.min(left.rxBytes[i], right.rxBytes);
1103 long rxPackets = Math.min(left.rxPackets[i], right.rxPackets);
1107 long txBytes = Math.min(left.txBytes[i], right.txBytes);
1111 long txPackets = Math.min(left.txPackets[i], right.txPackets);
/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java531 rgbOut[outOffset] = (byte) Math.max(0, Math.min(COLOR_MAX, r));
532 rgbOut[outOffset + 1] = (byte) Math.max(0, Math.min(COLOR_MAX, g));
533 rgbOut[outOffset + 2] = (byte) Math.max(0, Math.min(COLOR_MAX, b));

Completed in 374 milliseconds

<<11121314151617181920>>