Searched defs:range (Results 1 - 25 of 55) sorted by path

123

/frameworks/av/media/libstagefright/
H A DACodec.cpp71 // OMX errors are directly mapped into status_t range if
2196 ALOGW("compression level %d outside [0..8] range, "
2201 ALOGW("compression level %d outside [0..8] range, "
5326 int32_t range, standard, transfer; local
5327 convertCodecColorAspectsToPlatformAspects(aspects, &range, &standard, &transfer);
5330 if (range == 0) {
5331 range = (dataSpace & HAL_DATASPACE_RANGE_MASK) >> HAL_DATASPACE_RANGE_SHIFT;
5341 if (range != 0) {
5342 mOutputFormat->setInt32("color-range", range);
[all...]
H A DUtils.cpp79 int32_t range = 0; local
83 meta->findInt32(kKeyColorRange, &range);
89 colorAspects.mRange = (ColorAspects::Range)range;
102 msg->setInt32("color-range", rangeMsg);
1260 int32_t range = 0, standard = 0, transfer = 0; local
1261 (void)msg->findInt32("color-range", &range);
1268 range, standard, transfer, colorAspects) != OK) {
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dderinging_luma.cpp34 int thres[4], range[4], max_range_blk, max_thres_blk; local
66 range[blks] = max_blk - min_blk;
68 if (range[blks] >= max_range_blk)
70 max_range_blk = range[blks];
86 if (range[blks]<32 && max_range_blk >= 64)
120 range[blks] = max_blk - min_blk;
122 if (range[blks] >= max_range_blk)
124 max_range_blk = range[blks];
140 if (range[blks]<32 && max_range_blk >= 64)
178 range[blk
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dfindhalfpel.cpp78 Int range = video->encParams->SearchRange; local
91 /**************** check range ***************************/
95 ilow = xpos - range;
96 jlow = ypos - range;
199 Int range = video->encParams->SearchRange; local
212 /**************** check range ***************************/
217 ilow = xpos + ((comp & 1) << 3) - range;
218 jlow = ypos + ((comp & 2) << 2) - range;
H A Dmotion_est.cpp81 Int *imin, Int *jmin, Int ilow, Int ihigh, Int jlow, Int jhigh, Int range);
785 Int range = encParams->SearchRange; local
798 Int step, max_step = range >> 1;
805 /* find limit of the search (adjusting search range)*/
809 ilow = i0 - range;
812 ihigh = i0 + range - 1;
815 jlow = j0 - range;
818 jhigh = j0 + range - 1;
824 ilow = i0 - range;
827 ihigh = i0 + range
1182 Int range = video->encParams->SearchRange; local
1266 fullsearchBlk(VideoEncData *video, Vol *currVol, UChar *cent, UChar *cur, Int *imin, Int *jmin, Int ilow, Int ihigh, Int jlow, Int jhigh, Int range) argument
[all...]
H A Dvlc_encode.cpp2756 Int f_code, /* <-- MV range in 1/2 units: 1=32,2=64,...,7=2048 */
2762 Int range; local
2771 range = 32 * scale_factor;
2772 low = -range;
2773 high = range - 1;
2776 diff_vector += 2 * range;
2778 diff_vector -= 2 * range;
/frameworks/av/media/libstagefright/foundation/
H A DColorUtils.cpp153 int32_t ColorUtils::wrapColorAspectsIntoColorRange(ColorAspects::Range range) { argument
155 if (sRanges.map(range, &res)) {
157 } else if (!isValid(range)) {
160 CHECK(!isDefined(range));
162 return kColorRangeVendorStart + range;
168 int32_t range, ColorAspects::Range *aspect) {
169 if (sRanges.map((ColorRange)range, aspect)) {
175 if (range >= start && range < start + numRanges) {
176 *aspect = (ColorAspects::Range)(range
167 unwrapColorAspectsFromColorRange( int32_t range, ColorAspects::Range *aspect) argument
230 convertPlatformColorAspectsToCodecAspects( int32_t range, int32_t standard, int32_t transfer, ColorAspects &aspects) argument
240 convertCodecColorAspectsToPlatformAspects( const ColorAspects &aspects, int32_t *range, int32_t *standard, int32_t *transfer) argument
563 ColorRange range = kColorRangeLimited; local
607 getColorConfigFromFormat( const sp<AMessage> &format, int32_t *range, int32_t *standard, int32_t *transfer) argument
637 int32_t range, standard, transfer; local
663 int32_t range = 0, standard = 0, transfer = 0; local
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DMyHandler.h1440 ssize_t i = response->mHeaders.indexOfKey("range");
1442 // Server doesn't even tell use what range it is going to
1447 AString range = response->mHeaders.valueAt(i); local
1448 ALOGV("Range: %s", range.c_str());
1451 CHECK(GetAttribute(range.c_str(), "npt", &val));
/frameworks/av/media/libstagefright/xmlparser/
H A DMediaCodecsXmlParser.cpp694 } else if (strEq(attrs[i], "range")) {
696 ALOGE("addLimit: range is null");
731 // measured-frame-rate, measured-blocks-per-second: range
732 // quality: range + default + [scale]
733 // complexity: range + default
739 std::string range; local
750 // "range" is specified in exactly one of the following forms:
753 // 3) range
757 return limitError(a_name, "has 'min' and 'max' as well as 'range' or "
760 range
[all...]
/frameworks/base/core/java/android/hardware/
H A DCamera.java1569 * @param value zoom value. The valid range is 0 to {@link
1940 * // Camera driver coordinates range from (-1000, -1000) to (1000, 1000).
1941 * // UI coordinates range from (0, 0) to (width, height).
1951 * <p>The confidence level for the detection of the face. The range is 1 to
2212 * view. Setting Areas with bounds outside that range is not allowed. Areas
2215 * <p>The weight must range from 1 to 1000, and represents a weight for
2267 * the field of view. Setting bounds outside that range is not
2277 * Weight of the area. The weight must range from 1 to 1000, and
2315 private static final String KEY_PREVIEW_FPS_RANGE = "preview-fps-range";
2512 * Capture a scene using high dynamic range imagin
3066 getPreviewFpsRange(int[] range) argument
[all...]
/frameworks/base/core/java/android/text/
H A DTextUtils.java285 * Create a new String object containing the given range of characters
1073 * or end after <code>end</code> but overlap this range are trimmed
1077 * are out of range in <code>dest</code>.
1212 * report the start and end of the ellipsized range. TextDirection
1234 * report the start and end of the ellipsized range.
1939 * Pack 2 int values into a long, useful as a return value for a range
1949 * Get the start value from a range packed in a long by {@link #packRangeInLong(int, int)}
1954 public static int unpackRangeStartFromLong(long range) { argument
1955 return (int) (range >>> 32);
1959 * Get the end value from a range packe
1964 unpackRangeEndFromLong(long range) argument
[all...]
/frameworks/base/core/java/android/util/
H A DRange.java24 * Immutable class for describing the range of two numeric values.
26 * A range (or "interval") defines the inclusive boundaries around a contiguous span of
31 * All ranges are bounded, and the left side of the range is always {@code >=}
32 * the right side of the range.
36 * stored must also be immutable. If mutable objects are stored here, then the range
41 * Create a new immutable range.
45 * is the range is bounded. {@code lower} must be {@link Comparable#compareTo lesser or equal}
64 * Create a new immutable range, with the argument types inferred.
68 * is the range is bounded. {@code lower} must be {@link Comparable#compareTo lesser or equal}
100 * Checks if the {@code value} is within the bounds of this range
131 contains(Range<T> range) argument
204 intersect(Range<T> range) argument
272 extend(Range<T> range) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DScrollBarDrawable.java102 public void setParameters(int range, int offset, int extent, boolean vertical) { argument
109 if (mRange != range || mOffset != offset || mExtent != extent) {
110 mRange = range;
122 final int range = mRange;
126 if (extent <= 0 || range <= extent) {
144 ScrollBarUtils.getThumbLength(scrollBarLength, thickness, extent, range);
146 ScrollBarUtils.getThumbOffset(scrollBarLength, thumbLength, extent, range,
382 return "ScrollBarDrawable: range=" + mRange + " offset=" + mOffset +
/frameworks/base/core/java/com/android/internal/print/
H A DDumpUtils.java263 * @param range The range to write
266 @NonNull PageRange range) {
268 proto.write("start", PageRangeProto.START, range.getStart());
269 proto.write("end", PageRangeProto.END, range.getEnd());
265 writePageRange(@onNull DualDumpOutputStream proto, String idName, long id, @NonNull PageRange range) argument
/frameworks/base/core/java/com/android/internal/widget/
H A DScrollBarUtils.java21 public static int getThumbLength(int size, int thickness, int extent, int range) { argument
24 int length = Math.round((float) size * extent / range);
31 public static int getThumbOffset(int size, int thumbLength, int extent, int range, int offset) { argument
33 int thumbOffset = Math.round((float) (size - thumbLength) * offset / (range - extent));
/frameworks/base/core/jni/
H A Dandroid_hardware_SensorManager.cpp57 jfieldID range; member in struct:__anon839::SensorOffsets
100 sensorOffsets.range = GetFieldIDOrDie(_env, sensorClass, "mMaxRange", "F");
172 env->SetFloatField(sensor, sensorOffsets.range, nativeSensor.getMaxValue());
H A Dandroid_opengl_GLES20.cpp3244 /* void glGetShaderPrecisionFormat ( GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision ) */
3253 GLint *range = (GLint *) 0; local
3261 _exceptionMessage = "range == null";
3279 range = range_base + rangeOffset;
3307 (GLint *)range,
3325 /* void glGetShaderPrecisionFormat ( GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision ) */
3337 GLint *range = (GLint *) 0; local
3344 _exceptionMessage = "range == null";
3347 range = (GLint *)getPointer(_env, range_buf, (jarray*)&_rangeArray, &_rangeRemaining, &_rangeBufferOffset);
3367 if (range
[all...]
H A Dandroid_view_InputDevice.cpp73 const InputDeviceInfo::MotionRange& range = ranges.itemAt(i); local
74 env->CallVoidMethod(inputDeviceObj.get(), gInputDeviceClassInfo.addMotionRange, range.axis,
75 range.source, range.min, range.max, range.flat, range.fuzz, range.resolution);
/frameworks/base/media/java/android/media/
H A DUtils.java43 * Sorts distinct (non-intersecting) range array in ascending order.
71 for (Range<T> range: another) {
73 one[ix].getUpper().compareTo(range.getLower()) < 0) {
77 one[ix].getUpper().compareTo(range.getUpper()) < 0) {
78 result.add(range.intersect(one[ix]));
84 if (one[ix].getLower().compareTo(range.getUpper()) <= 0) {
85 result.add(range.intersect(one[ix]));
92 * Returns the index of the range that contains a value in a sorted array of distinct ranges.
95 * @return if the value is in one of the ranges, it returns the index of that range. Otherwise,
96 * the return value is {@code (-1-index)} for the {@code index} of the range tha
140 factorRange(Range<Integer> range, int factor) argument
151 factorRange(Range<Long> range, long factor) argument
167 scaleRange(Range<Rational> range, int num, int den) argument
176 alignRange(Range<Integer> range, int align) argument
[all...]
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
H A DEnvReverbTest.java255 static float linToExp(int lin, int range) { argument
257 return (float)Math.pow((double)10,(double)72*(lin-range)/(20*range));
260 static int expToLin(float exp, int range) { argument
262 return (int)(20*range*Math.log10((double)exp)/72 + range);
/frameworks/base/opengl/java/android/opengl/
H A DGLES20.java1079 // C function void glGetShaderPrecisionFormat ( GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision )
1084 int[] range,
1090 // C function void glGetShaderPrecisionFormat ( GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision )
1095 java.nio.IntBuffer range,
1081 glGetShaderPrecisionFormat( int shadertype, int precisiontype, int[] range, int rangeOffset, int[] precision, int precisionOffset ) argument
1092 glGetShaderPrecisionFormat( int shadertype, int precisiontype, java.nio.IntBuffer range, java.nio.IntBuffer precision ) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DNotificationStackScrollLayout.java1420 int range = getScrollRange();
1421 if (mOwnScrollY > range) {
1437 int range = getScrollRange();
1438 mScroller.startScroll(mScrollX, mOwnScrollY, 0, range - mOwnScrollY);
1572 final int range = getScrollRange();
1577 } else if (newScrollY > range) {
1578 newScrollY = range;
1649 int range = getScrollRange();
1651 range = Math.min(range, mMaxScrollAfterExpan
1747 overScrollUp(int deltaY, int range) argument
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_PersistentDataBlockService.cpp50 uint64_t range[2]; local
54 range[0] = 0;
55 range[1] = len;
57 if (range[1] == 0)
60 ret = ioctl(fd, BLKSECDISCARD, &range);
63 range[0] = 0;
64 range[1] = len;
65 ret = ioctl(fd, BLKDISCARD, &range);
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDevicePolicyManagerService.java10600 private static boolean withinRange(Pair<LocalDate, LocalDate> range, LocalDate date) { argument
10601 return (!date.isBefore(range.first) && !date.isAfter(range.second));
10646 // is within range of the current freeze period, assume the device was off
/frameworks/base/tests/net/java/android/net/
H A DUidRangeTest.java90 fail("Exception not thrown for negative-length UID range");
100 private static byte[] marshall(UidRange range) { argument
102 range.writeToParcel(p, /* flags */ 0);

Completed in 5941 milliseconds

123