Searched defs:range (Results 1 - 25 of 31) sorted by relevance

12

/frameworks/base/core/jni/
H A Dandroid_view_InputDevice.cpp68 const InputDeviceInfo::MotionRange& range = ranges.itemAt(i); local
69 env->CallVoidMethod(inputDeviceObj.get(), gInputDeviceClassInfo.addMotionRange, range.axis,
70 range.source, range.min, range.max, range.flat, range.fuzz, range.resolution);
H A Dandroid_hardware_SensorManager.cpp46 jfieldID range; member in struct:android::SensorOffsets
73 sensorOffsets.range = _env->GetFieldID(sensorClass, "mMaxRange", "F");
108 env->SetFloatField(sensor, sensorOffsets.range, list->getMaxValue());
H A Dandroid_opengl_GLES20.cpp2990 /* void glGetShaderPrecisionFormat ( GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision ) */
2999 GLint *range = (GLint *) 0; local
3007 _exceptionMessage = "range == null";
3025 range = range_base + rangeOffset;
3053 (GLint *)range,
3071 /* void glGetShaderPrecisionFormat ( GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision ) */
3083 GLint *range = (GLint *) 0; local
3087 range = (GLint *)getPointer(_env, range_buf, &_rangeArray, &_rangeRemaining, &_rangeBufferOffset);
3101 if (range == NULL) {
3103 range
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_PersistentDataBlockService.cpp49 uint64_t range[2]; local
53 range[0] = 0;
54 range[1] = len;
56 if (range[1] == 0)
59 ret = ioctl(fd, BLKSECDISCARD, &range);
62 range[0] = 0;
63 range[1] = len;
64 ret = ioctl(fd, BLKDISCARD, &range);
/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/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/on2/h264dec/omxdl/reference/vc/m4p2/src/
H A DomxVCM4P2_DecodePadMV_PVOP.c111 OMX_S16 high, low, range; local
151 range = ( 64 * scaleFactor);
225 /* Checking the range and keeping it within the limits */
228 pDstMVCurMB[iBlk].dx += range;
232 pDstMVCurMB[iBlk].dx -= range;
237 pDstMVCurMB[iBlk].dy += range;
241 pDstMVCurMB[iBlk].dy -= range;
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
H A Dvlc_encode.cpp51 AVCEnc_Status te_v(AVCEncBitstream *bitstream, uint value, uint range) argument
55 if (range > 1)
H A Dmotion_est.cpp971 int range = rateCtrl->mvRange; local
980 int step, max_step = range >> 1;
1008 /* find limit of the search (adjusting search range)*/
1012 ilow = i0 - range;
1022 ihigh = i0 + range - 1;
1032 jlow = j0 - range;
1042 jhigh = j0 + range - 1;
1255 Purpose: Perform full-search motion estimation over the range of search
1264 int range = encvid->rateCtrl->mvRange; local
1291 for (k = 1; k <= range;
[all...]
/frameworks/base/media/java/android/media/
H A DUtils.java36 * Sorts distinct (non-intersecting) range array in ascending order.
64 for (Range<T> range: another) {
66 one[ix].getUpper().compareTo(range.getLower()) < 0) {
70 one[ix].getUpper().compareTo(range.getUpper()) < 0) {
71 result.add(range.intersect(one[ix]));
77 if (one[ix].getLower().compareTo(range.getUpper()) <= 0) {
78 result.add(range.intersect(one[ix]));
85 * Returns the index of the range that contains a value in a sorted array of distinct ranges.
88 * @return if the value is in one of the ranges, it returns the index of that range. Otherwise,
89 * the return value is {@code (-1-index)} for the {@code index} of the range tha
133 factorRange(Range<Integer> range, int factor) argument
144 factorRange(Range<Long> range, long factor) argument
160 scaleRange(Range<Rational> range, int num, int den) argument
169 alignRange(Range<Integer> range, int align) argument
[all...]
/frameworks/native/libs/input/
H A DInputDevice.cpp163 const MotionRange& range = mMotionRanges.itemAt(i); local
164 if (range.axis == axis && range.source == source) {
165 return &range;
177 MotionRange range = { axis, source, min, max, flat, fuzz, resolution }; local
178 mMotionRanges.add(range);
181 void InputDeviceInfo::addMotionRange(const MotionRange& range) { argument
182 mMotionRanges.add(range);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DIntRangeManager.java26 * radio when the range of enabled message identifiers changes.
36 * of the caller) so that a call to remove a range can be mapped to the
37 * client that enabled that range (or else rejected).
48 * One or more clients forming the continuous range [startId, endId].
62 * @param startId the first id included in the range
63 * @param endId the last id included in the range
64 * @param client the client requesting the enabled range
110 * @param range the new ClientRange to insert
112 void insert(ClientRange range) { argument
117 if (range
[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/base/core/java/android/widget/
H A DScrollBarDrawable.java88 public void setParameters(int range, int offset, int extent, boolean vertical) { argument
93 if (mRange != range || mOffset != offset || mExtent != extent) {
97 mRange = range;
107 final int range = mRange;
111 if (extent <= 0 || range <= extent) {
127 int length = Math.round((float) size * extent / range);
128 int offset = Math.round((float) (size - length) * mOffset / (range - extent));
308 return "ScrollBarDrawable: range=" + mRange + " offset=" + mOffset +
/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/minikin/libs/minikin/
H A DFontCollection.cpp69 Range* range = &mRanges.back(); local
71 ALOGD("i=%d: range start = %d\n", i, offset);
73 range->start = offset;
86 range->end = offset;
107 const Range& range = mRanges[ch >> kLogCharsPerPage]; local
109 ALOGD("querying range %d:%d\n", range.start, range.end);
113 for (size_t i = range.start; i < range
[all...]
/frameworks/av/media/libstagefright/
H A DMediaCodecList.cpp660 || !strcmp(attrs[i], "range")
678 // size, blocks, bitrate, frame-rate, blocks-per-second, aspect-ratio: range
679 // quality: range + default + [scale]
680 // complexity: range + default
690 if (msg->contains("range") || msg->contains("value")) {
691 return limitError(name, "has 'min' and 'max' as well as 'range' or "
694 msg->setString("range", min);
701 if (msg->contains("range")) {
702 return limitError(name, "has both 'range' and 'value' attributes");
704 msg->setString("range", mi
707 AString range, scale = "linear", def, in_; local
[all...]
/frameworks/compile/mclinker/lib/Target/Hexagon/
H A DHexagonRelocator.cpp556 uint32_t range = 1 << effectiveBits; local
557 if (result > (range - 1))
671 int64_t range = 1LL << (effectiveBits - 1); local
672 if ((pResult > (range - 1)) || (pResult < -range))
786 uint32_t range = 1 << 16; local
794 if (result < range - 1) {
889 int32_t range = 1 << (effectiveBits - 1); local
890 if ((result > range - 1) || (result < -range))
[all...]
/frameworks/wilhelm/src/android/
H A Dandroid_Effect.cpp285 // initialize number of bands, band level range, and number of presets
290 int16_t range[2] = {0, 0}; local
291 if (android::NO_ERROR == android_eq_getParam(ieq->mEqEffect, EQ_PARAM_LEVEL_RANGE, 0, range)) {
292 ieq->mBandLevelRangeMin = range[0];
293 ieq->mBandLevelRangeMax = range[1];
296 SL_LOGV(" EQ init: num bands = %u, band range=[%d %d]mB", num, range[0], range[1]);
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardWidgetPager.java576 * Returns the bounded set of pages that are re-orderable. The range is fully inclusive.
579 void boundByReorderablePages(boolean isReordering, int[] range) { argument
581 // Remove non-widget pages from the range
582 while (range[1] >= range[0] && !isWidgetPage(range[1])) {
583 range[1]--;
585 while (range[0] <= range[1] && !isWidgetPage(range[
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DMyHandler.h1412 ssize_t i = response->mHeaders.indexOfKey("range");
1414 // Server doesn't even tell use what range it is going to
1419 AString range = response->mHeaders.valueAt(i); local
1420 ALOGV("Range: %s", range.c_str());
1423 CHECK(GetAttribute(range.c_str(), "npt", &val));
/frameworks/base/core/java/android/text/
H A DTextUtils.java262 * Create a new String object containing the given range of characters
1011 * or end after <code>end</code> but overlap this range are trimmed
1015 * are out of range in <code>dest</code>.
1081 * report the start and end of the ellipsized range. TextDirection
1103 * report the start and end of the ellipsized range.
1712 * Pack 2 int values into a long, useful as a return value for a range
1722 * Get the start value from a range packed in a long by {@link #packRangeInLong(int, int)}
1727 public static int unpackRangeStartFromLong(long range) { argument
1728 return (int) (range >>> 32);
1732 * Get the end value from a range packe
1737 unpackRangeEndFromLong(long range) argument
[all...]
/frameworks/base/core/java/android/hardware/
H A DCamera.java1454 * @param value zoom value. The valid range is 0 to {@link
1745 * // Camera driver coordinates range from (-1000, -1000) to (1000, 1000).
1746 * // UI coordinates range from (0, 0) to (width, height).
1756 * <p>The confidence level for the detection of the face. The range is 1 to
1983 * view. Setting Areas with bounds outside that range is not allowed. Areas
1986 * <p>The weight must range from 1 to 1000, and represents a weight for
2038 * the field of view. Setting bounds outside that range is not
2048 * Weight of the area. The weight must range from 1 to 1000, and
2086 private static final String KEY_PREVIEW_FPS_RANGE = "preview-fps-range";
2283 * Capture a scene using high dynamic range imagin
2837 getPreviewFpsRange(int[] range) argument
[all...]

Completed in 1409 milliseconds

12