/frameworks/base/core/jni/ |
H A D | android_view_InputDevice.cpp | 73 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);
|
H A D | android_hardware_SensorManager.cpp | 52 jfieldID range; member in struct:android::SensorOffsets 79 sensorOffsets.range = _env->GetFieldID(sensorClass, "mMaxRange", "F"); 164 env->SetFloatField(sensor, sensorOffsets.range, list->getMaxValue());
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_PersistentDataBlockService.cpp | 49 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 D | Range.java | 24 * 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 D | deringing_luma.cpp | 34 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 D | omxVCM4P2_DecodePadMV_PVOP.c | 111 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 D | vlc_encode.cpp | 51 AVCEnc_Status te_v(AVCEncBitstream *bitstream, uint value, uint range) argument 55 if (range > 1)
|
H A D | motion_est.cpp | 971 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 D | Utils.java | 34 * Sorts distinct (non-intersecting) range array in ascending order. 62 for (Range<T> range: another) { 64 one[ix].getUpper().compareTo(range.getLower()) < 0) { 68 one[ix].getUpper().compareTo(range.getUpper()) < 0) { 69 result.add(range.intersect(one[ix])); 75 if (one[ix].getLower().compareTo(range.getUpper()) <= 0) { 76 result.add(range.intersect(one[ix])); 83 * Returns the index of the range that contains a value in a sorted array of distinct ranges. 86 * @return if the value is in one of the ranges, it returns the index of that range. Otherwise, 87 * the return value is {@code (-1-index)} for the {@code index} of the range tha 131 factorRange(Range<Integer> range, int factor) argument 142 factorRange(Range<Long> range, long factor) argument 158 scaleRange(Range<Rational> range, int num, int den) argument 167 alignRange(Range<Integer> range, int align) argument [all...] |
/frameworks/native/libs/input/ |
H A D | InputDevice.cpp | 166 const MotionRange& range = mMotionRanges.itemAt(i); local 167 if (range.axis == axis && range.source == source) { 168 return ⦥ 180 MotionRange range = { axis, source, min, max, flat, fuzz, resolution }; local 181 mMotionRanges.add(range); 184 void InputDeviceInfo::addMotionRange(const MotionRange& range) { argument 185 mMotionRanges.add(range);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | IntRangeManager.java | 26 * 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 D | findhalfpel.cpp | 78 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 D | motion_est.cpp | 81 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 D | vlc_encode.cpp | 2756 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 D | ScrollBarDrawable.java | 99 public void setParameters(int range, int offset, int extent, boolean vertical) { argument 106 if (mRange != range || mOffset != offset || mExtent != extent) { 107 mRange = range; 119 final int range = mRange; 123 if (extent <= 0 || range <= extent) { 143 int length = Math.round((float) size * extent / range); 149 int offset = Math.round((float) (size - length) * mOffset / (range - extent)); 387 return "ScrollBarDrawable: range=" + mRange + " offset=" + mOffset +
|
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
H A D | EnvReverbTest.java | 255 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 D | FontCollection.cpp | 73 Range* range = &mRanges.back(); local 75 ALOGD("i=%d: range start = %d\n", i, offset); 77 range->start = offset; 90 range->end = offset; 111 const Range& range = mRanges[ch >> kLogCharsPerPage]; local 113 ALOGD("querying range %d:%d\n", range.start, range.end); 117 for (size_t i = range.start; i < range [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/util/ |
H A D | AsyncListUtil.java | 34 * {@link AsyncListUtil} queries the currently visible range through {@link ViewCallback}, 85 * @param viewCallback Callback for querying visible item range and update notifications. 108 * Updates the currently visible item range. 117 return; // Will update range will the refresh result arrives. 127 * range. To be called when the data item count and/or contents has changed. 141 * this position stays outside of the cached item range (as defined by 180 // Invalid range may arrive soon after the refresh. 223 // There will be no scroll event if the size change does not affect the current range. 328 log("requesting tile range: %d..%d", 492 * tiles that is required to cover the range returne 572 extendRangeInto(int[] range, int[] outRange, int scrollHint) argument [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
H A D | AsyncListUtilTest.java | 202 public void extendRangeInto(int[] range, int[] outRange, int scrollHint) { argument 203 outRange[0] = range[0] - mStartPreload; 204 outRange[1] = range[1] + mEndPreload;
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | AsyncListUtilLayoutTest.java | 213 public void extendRangeInto(int[] range, int[] outRange, int scrollHint) { argument 214 outRange[0] = range[0] - mStartPrefetch; 215 outRange[1] = range[1] + mEndPrefetch;
|
/frameworks/av/media/libstagefright/ |
H A D | MediaCodecList.cpp | 918 || !strcmp(attrs[i], "range") 937 // measured-frame-rate, measured-blocks-per-second: range 938 // quality: range + default + [scale] 939 // complexity: range + default 950 if (msg->contains("range") || msg->contains("value")) { 951 return limitError(name, "has 'min' and 'max' as well as 'range' or " 954 msg->setString("range", min); 961 if (msg->contains("range")) { 962 return limitError(name, "has both 'range' and 'value' attributes"); 964 msg->setString("range", mi 967 AString range, scale = "linear", def, in_; local [all...] |
/frameworks/compile/mclinker/lib/Target/Hexagon/ |
H A D | HexagonRelocator.cpp | 571 uint32_t range = 1 << effectiveBits; local 572 if (result > (range - 1)) 686 int64_t range = 1LL << (effectiveBits - 1); local 687 if ((pResult > (range - 1)) || (pResult < -range)) 801 uint32_t range = 1 << 16; local 809 if (result < range - 1) { 903 int32_t range = 1 << (effectiveBits - 1); local 904 if ((result > range - 1) || (result < -range)) [all...] |
/frameworks/wilhelm/src/android/ |
H A D | android_Effect.cpp | 292 // initialize number of bands, band level range, and number of presets 297 int16_t range[2] = {0, 0}; local 298 if (android::NO_ERROR == android_eq_getParam(ieq->mEqEffect, EQ_PARAM_LEVEL_RANGE, 0, range)) { 299 ieq->mBandLevelRangeMin = range[0]; 300 ieq->mBandLevelRangeMax = range[1]; 303 SL_LOGV(" EQ init: num bands = %u, band range=[%d %d]mB", num, range[0], range[1]);
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | MyHandler.h | 1436 ssize_t i = response->mHeaders.indexOfKey("range"); 1438 // Server doesn't even tell use what range it is going to 1443 AString range = response->mHeaders.valueAt(i); local 1444 ALOGV("Range: %s", range.c_str()); 1447 CHECK(GetAttribute(range.c_str(), "npt", &val));
|
/frameworks/base/core/java/android/text/ |
H A D | TextUtils.java | 263 * Create a new String object containing the given range of characters 1016 * or end after <code>end</code> but overlap this range are trimmed 1020 * are out of range in <code>dest</code>. 1086 * report the start and end of the ellipsized range. TextDirection 1108 * report the start and end of the ellipsized range. 1717 * Pack 2 int values into a long, useful as a return value for a range 1727 * Get the start value from a range packed in a long by {@link #packRangeInLong(int, int)} 1732 public static int unpackRangeStartFromLong(long range) { argument 1733 return (int) (range >>> 32); 1737 * Get the end value from a range packe 1742 unpackRangeEndFromLong(long range) argument [all...] |