/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | StaticMetadata.java | 338 return Math.max(minExposure, Math.min(maxExposure, exposure)); 438 * Get max AE regions and do sanity check. 440 * @return AE max regions supported by the camera device 451 * Get max AWB regions and do sanity check. 453 * @return AWB max regions supported by the camera device 464 * Get max AF regions and do sanity check. 466 * @return AF max regions supported by the camera device 677 * Get and check max face detected count. 679 * @return max number of faces that can be detected 747 * Get and check max tonema 2357 checkArrayValuesInRange(Key<int[]> key, int[] array, int min, int max) argument 2364 checkArrayValuesInRange(Key<byte[]> key, byte[] array, byte min, byte max) argument [all...] |
/frameworks/base/packages/Shell/src/com/android/shell/ |
H A D | BugreportProgressService.java | 355 final int max = intent.getIntExtra(EXTRA_MAX, -1); 360 + pid + ", max: " + max); 363 if (!startProgress(name, id, pid, max)) { 429 private boolean startProgress(String name, int id, int pid, int max) { argument 441 if (max <= 0) { 442 Log.e(TAG, "Invalid value for extra " + EXTRA_MAX + ": " + max); 446 final BugreportInfo info = new BugreportInfo(mContext, id, pid, name, max); 467 if (info.max <= 0 || info.progress < 0) { 481 final String percentageText = nf.format((double) info.progress / info.max); 1643 int max; field in class:BugreportProgressService.BugreportInfo 1704 BugreportInfo(Context context, int id, int pid, String name, int max) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskStackLayoutAlgorithm.java | 58 float max; field in class:Range 62 max = relativeMax = relMax; 71 max = x + relativeMax; 75 * Returns x normalized to the range 0 to 1 such that 0 = min, 0.5 = origin and 1 = max 103 return (absX >= Math.floor(min)) && (absX <= Math.ceil(max)); 118 // XXX: This is a hack because you can currently set the max alpha to be > 1f 257 // The min/max z translations 468 // Calculate the min/max/initial scroll 478 mMaxScrollP = Math.max(mMinScrollP, (mNumStackTasks - 1) - 479 Math.max( [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | IpSecService.java | 320 ResourceTracker(int max) { argument 321 mMax = max;
|
/frameworks/base/services/core/java/com/android/server/media/ |
H A D | MediaSessionRecord.java | 275 mOptimisticVolume = Math.max(0, Math.min(mOptimisticVolume, mMaxVolume)); 284 Log.d(TAG, "Adjusted optimistic volume to " + mOptimisticVolume + " max is " 300 value = Math.max(0, Math.min(value, mMaxVolume)); 304 mOptimisticVolume = Math.max(0, Math.min(value, mMaxVolume)); 313 Log.d(TAG, "Set optimistic volume to " + mOptimisticVolume + " max is " 376 * Get the max volume that can be set. Only valid if playback type is 379 * @return The max volume that can be set. 453 + ", max=" + mMaxVolume + ", current=" + mCurrentVolume); 883 public void setPlaybackToRemote(int control, int max) { argument 889 mMaxVolume = max; [all...] |
/frameworks/native/cmds/dumpstate/ |
H A D | utils.cpp | 79 // Reasonable value for max stats. 141 MYLOGI("Could not read stats from %s; using max of %d\n", path_.c_str(), max_); 145 MYLOGE("No stats (empty file) on %s; using max of %d\n", path_.c_str(), max_); 151 MYLOGE("Invalid stats on file %s: not enough lines (%d). Using max of %d\n", path_.c_str(), 167 MYLOGI("Average max progress: %d in %d runs; estimated max: %d\n", average_max_, n_runs_, max_); 197 MYLOGD("Adjusting max progress from %d to %d\n", old_max, max_); 1067 // need the table number. It's a 32-bit unsigned number, so max 10 chars. Skip the table name. 1068 // Add a fixed max limit so this doesn't go awry. 1090 int max local [all...] |
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcCommit.cpp | 409 maxHeadingLen = max(maxHeadingLen, it->length()); 462 testPrintI(" max nonOverlapping overlays: %s%u", 467 testPrintI(" max Overlapping overlays: %s%u", 637 unsigned int max = 0; local 663 if (num > max) { max = num; } 666 return max; 785 testPrintE("Failed to locate display frame max width"); 808 testPrintE("Failed to locate display frame max height"); 900 testPrintE("Unable to locate display frame max dimensio [all...] |
/frameworks/rs/driver/runtime/ |
H A D | rs_cl.c | 716 float __attribute__((overloadable)) rsRand(float min, float max) { argument 717 return SC_randf2(min, max); 1502 extern double __attribute__((overloadable)) max(double v1, double v2) { function 1506 extern double2 __attribute__((overloadable)) max(double2 v1, double2 v2) { function 1513 extern double3 __attribute__((overloadable)) max(double3 v1, double3 v2) { function 1521 extern double4 __attribute__((overloadable)) max(double4 v1, double4 v2) { function 1530 extern long __attribute__((overloadable)) max(long v1, long v2) { function 1533 extern long2 __attribute__((overloadable)) max(long2 v1, long2 v2) { function 1539 extern long3 __attribute__((overloadable)) max(long3 v1, long3 v2) { function 1546 extern long4 __attribute__((overloadable)) max(long function 1555 extern ulong __attribute__((overloadable)) max(ulong v1, ulong v2) { function 1558 extern ulong2 __attribute__((overloadable)) max(ulong2 v1, ulong2 v2) { function 1564 extern ulong3 __attribute__((overloadable)) max(ulong3 v1, ulong3 v2) { function 1571 extern ulong4 __attribute__((overloadable)) max(ulong4 v1, ulong4 v2) { function 2074 HN_FUNC_HN_HN(max); variable 2075 HN_FUNC_HN_H(max); // TODO can this be arch-specific similar to _Z3maxDv2_ff? variable [all...] |
/frameworks/support/media/src/main/java/android/support/v4/media/session/ |
H A D | MediaControllerCompat.java | 532 * @param value The value to set it to, between 0 and the reported max. 904 int type, int stream, int control, int max, int current) { 908 new PlaybackInfo(type, stream, control, max, current)); 1335 PlaybackInfo(int type, int stream, int control, int max, int current) { argument 1339 mMaxVolume = max; 903 onAudioInfoChanged( int type, int stream, int control, int max, int current) argument
|
/frameworks/support/recommendation/src/main/java/androidx/recommendation/app/ |
H A D | ContentRecommendation.java | 489 * @param max The maximum value for the progress of this content. 490 * @param progress The progress amount for this content. Must be in the range (0 - max). 492 public void setProgress(int max, int progress) { argument 493 if (max < 0 || progress < 0) { 496 mProgressMax = max; 877 * @param max The maximum value for the progress of this content. 878 * @param progress The progress amount for this content. Must be in the range (0 - max). 881 public Builder setProgress(int max, int progress) { argument 882 if (max < 0 || progress < 0) { 885 mBuilderProgressMax = max; [all...] |
/frameworks/av/media/libaudioclient/ |
H A D | AudioTrack.cpp | 55 static inline const T &max(const T &x, const T &y) { function in namespace:android 95 return kFixPitch ? speed / max(pitch, AUDIO_TIMESTRETCH_PITCH_MIN_DELTA) : speed; 533 mMaxRequiredSpeed = min(max(maxRequiredSpeed, 1.0f), AUDIO_TIMESTRETCH_SPEED_MAX); 571 max((uint32_t) -notificationFrames, minNotificationsPerBuffer)); 1009 ALOGW("setPlaybackRate(%f, %f) failed. Resample rate exceeds max accepted value", 1448 max(mMaxRequiredSpeed, mPlaybackRate.mSpeed); 2114 ns = max((nsecs_t)0, ns - (timeNow - timeAfterCallbacks)); 2171 ns = max((nsecs_t)0, ns - (timeNow - timeAfterCallbacks));
|
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/media/ |
H A D | MediaRouter.java | 1362 sGlobal.requestSetVolume(this, Math.min(mVolumeMax, Math.max(0, volume))); 2776 int max, int current) { 2777 if (mVpCompat != null && controlType == mControlType && max == mMaxVolume) { 2778 // If we haven't changed control type or max just set the 2783 mVpCompat = new VolumeProviderCompat(controlType, max, current) { 2775 configureVolume(@olumeProviderCompat.ControlType int controlType, int max, int current) argument
|
/frameworks/base/core/java/android/widget/ |
H A D | GridLayout.java | 30 import static java.lang.Math.max; 629 result = Math.max(result, a[i]); 684 boolean isAtEdge = leading1 ? (span.min == 0) : (span.max == axis.getCount()); 705 int index = leading ? spec.span.min : spec.span.max; 851 if (span.max > count) { 1036 int cellSize = locations[span.max] - locations[span.min]; 1083 int measuredWidth = Math.max(widthSansPadding + hPadding, getSuggestedMinimumWidth()); 1084 int measuredHeight = Math.max(heightSansPadding + vPadding, getSuggestedMinimumHeight()); 1153 int x2 = hLocations[colSpan.max]; 1154 int y2 = vLocations[rowSpan.max]; 1850 setParentConstraints(int min, int max) argument 1856 getMeasure(int min, int max) argument 2446 public final int max; field in class:GridLayout.Interval 2458 Interval(int min, int max) argument [all...] |
H A D | RemoteViews.java | 2736 * If indeterminate is true, then the values for max and progress are ignored. 2739 * @param max The 100% value for the progress bar 2744 public void setProgressBar(int viewId, int max, int progress, argument 2748 setInt(viewId, "setMax", max);
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaDrm.cpp | 1343 DrmPlugin::HdcpLevel max = DrmPlugin::kHdcpNone; local 1345 status_t err = drm->getHdcpLevels(&connected, &max); 1362 DrmPlugin::HdcpLevel max = DrmPlugin::kHdcpLevelUnknown; local 1364 status_t err = drm->getHdcpLevels(&connected, &max); 1369 return HdcpLevelTojint(max); 1380 uint32_t open = 0, max = 0; local 1381 status_t err = drm->getNumberOfSessions(&open, &max); 1397 uint32_t open = 0, max = 0; local 1398 status_t err = drm->getNumberOfSessions(&open, &max); 1403 return max; [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_input_InputManagerService.cpp | 137 inline static T max(const T& a, const T& b) { function in namespace:android 504 jint tapDragInterval = max(min(longPressTimeout - 100, 1548 pattern[i] = max(jlong(0), min(patternMillis[i],
|
/frameworks/native/opengl/libagl/ |
H A D | context.h | 62 inline T max(T a, T b) { function in namespace:android::gl 66 inline T max(T a, T b, T c) { function in namespace:android::gl 67 return max(a, max(b, c));
|
/frameworks/support/compat/src/main/java/androidx/core/view/accessibility/ |
H A D | AccessibilityNodeInfoCompat.java | 787 * @param max The max value. 791 public static RangeInfoCompat obtain(int type, float min, float max, float current) { argument 794 AccessibilityNodeInfo.RangeInfo.obtain(type, min, max, current)); 820 * Gets the max value. 822 * @return The max value. 2874 * @param max The maximum text length. 2879 public void setMaxTextLength(int max) { argument 2881 mInfo.setMaxTextLength(max);
|
/frameworks/support/coordinatorlayout/src/main/java/androidx/coordinatorlayout/widget/ |
H A D | CoordinatorLayout.java | 710 return Math.max(super.getSuggestedMinimumWidth(), getPaddingLeft() + getPaddingRight()); 715 return Math.max(super.getSuggestedMinimumHeight(), getPaddingTop() + getPaddingBottom()); 779 keylineWidthUsed = Math.max(0, widthSize - paddingRight - keylinePos); 782 keylineWidthUsed = Math.max(0, keylinePos - paddingLeft); 809 widthUsed = Math.max(widthUsed, widthPadding + child.getMeasuredWidth() + 812 heightUsed = Math.max(heightUsed, heightPadding + child.getMeasuredHeight() + 1040 int left = Math.max(getPaddingLeft() + lp.leftMargin, 1043 int top = Math.max(getPaddingTop() + lp.topMargin, 1145 left = Math.max(getPaddingLeft() + lp.leftMargin, 1148 top = Math.max(getPaddingTo 1249 clamp(int value, int min, int max) argument [all...] |
/frameworks/support/gridlayout/src/main/java/androidx/gridlayout/widget/ |
H A D | GridLayout.java | 29 import static java.lang.Math.max; 609 result = Math.max(result, a[i]); 665 boolean isAtEdge = leading1 ? (span.min == 0) : (span.max == axis.getCount()); 690 int index = leading ? spec.span.min : spec.span.max; 824 if (span.max > count) { 929 int cellSize = locations[span.max] - locations[span.min]; 976 int measuredWidth = Math.max(widthSansPadding + hPadding, getSuggestedMinimumWidth()); 977 int measuredHeight = Math.max(heightSansPadding + vPadding, getSuggestedMinimumHeight()); 1046 int x2 = hLocations[colSpan.max]; 1047 int y2 = vLocations[rowSpan.max]; 1738 setParentConstraints(int min, int max) argument 1744 getMeasure(int min, int max) argument 2333 public final int max; field in class:GridLayout.Interval 2345 Interval(int min, int max) argument [all...] |
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/media/ |
H A D | MediaRouter.java | 1363 sGlobal.requestSetVolume(this, Math.min(mVolumeMax, Math.max(0, volume))); 2789 int max, int current) { 2790 if (mVpCompat != null && controlType == mControlType && max == mMaxVolume) { 2791 // If we haven't changed control type or max just set the 2796 mVpCompat = new VolumeProviderCompat(controlType, max, current) { 2788 configureVolume(@olumeProviderCompat.ControlType int controlType, int max, int current) argument
|
/frameworks/base/core/java/android/view/accessibility/ |
H A D | AccessibilityNodeInfo.java | 1423 * @param max The maximum text length. 1428 public void setMaxTextLength(int max) { argument 1430 mMaxTextLength = max; 4429 * @param max The maximum value. Use {@code Float.POSITIVE_INFINITY} if the range has no 4433 public static RangeInfo obtain(int type, float min, float max, float current) { argument 4436 return new RangeInfo(type, min, max, current); 4441 info.mMax = max; 4452 * @param max The maximum value. Use {@code Float.POSITIVE_INFINITY} if the range has no 4456 private RangeInfo(int type, float min, float max, float current) { argument 4459 mMax = max; [all...] |
/frameworks/native/services/inputflinger/tests/ |
H A D | InputReader_test.cpp | 1622 int32_t axis, uint32_t source, float min, float max, float flat, float fuzz) { 1628 ASSERT_NEAR(max, range->max, EPSILON) << "Axis: " << axis << " Source: " << source; 1621 assertMotionRange(const InputDeviceInfo& info, int32_t axis, uint32_t source, float min, float max, float flat, float fuzz) argument
|
/frameworks/av/services/audioflinger/ |
H A D | Threads.cpp | 99 #define max(a, b) ((a) > (b) ? (a) : (b)) macro 162 // multiplier is calculated based on min & max normal mixer buffer size 164 // multiplier is calculated based on min & max normal mixer buffer size 408 " us per mix loop: mean=%.0f stddev=%.0f min=%.0f max=%.0f\n" 409 " %% of wall: mean=%.1f stddev=%.1f min=%.1f max=%.1f\n" 410 " MHz: mean=%.1f, stddev=%.1f, min=%.1f max=%.1f", 1722 // Audio patch volume is always max 1928 frameCount = max(frameCount, mFrameCount * sFastTrackMultiplier); // incl framecount 0 3548 // Delays longer than the max allowed trigger a reset. 3553 // Delays within the max dela [all...] |
/frameworks/base/core/java/android/hardware/ |
H A D | Camera.java | 489 throw new RuntimeException("Camera initialization failed because the max" 2336 private static final String KEY_MAX_NUM_FOCUS_AREAS = "max-num-focus-areas"; 2341 private static final String KEY_MAX_EXPOSURE_COMPENSATION = "max-exposure-compensation"; 2349 private static final String KEY_MAX_NUM_METERING_AREAS = "max-num-metering-areas"; 2351 private static final String KEY_MAX_ZOOM = "max-zoom"; 2359 private static final String KEY_MAX_NUM_DETECTED_FACES_HW = "max-num-detected-faces-hw"; 2360 private static final String KEY_MAX_NUM_DETECTED_FACES_SW = "max-num-detected-faces-sw"; 3048 * @param max the maximum preview fps (scaled by 1000). 3053 public void setPreviewFpsRange(int min, int max) { argument 3054 set(KEY_PREVIEW_FPS_RANGE, "" + min + "," + max); [all...] |