/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ScrollBarUtils.java | 21 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 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);
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_PersistentDataBlockService.cpp | 50 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/tests/net/java/android/net/ |
H A D | UidRangeTest.java | 84 fail("Exception not thrown for negative-length UID range"); 94 private static byte[] marshall(UidRange range) { argument 96 range.writeToParcel(p, /* flags */ 0);
|
/frameworks/base/tests/net/jni/ |
H A D | UidRangeTest.cpp | 28 const UidRange range = unmarshall(env, inParcel); local 29 return marshall(env, range); 34 const UidRange range = unmarshall(env, inParcel); local 35 return range.getStart(); 40 const UidRange range = unmarshall(env, inParcel); local 41 return range.getStop(); 58 UidRange range; local 59 range.readFromParcel(&p); 60 return range; 64 * Creates a Java byte[] array and writes the contents of 'range' t 70 marshall(JNIEnv* env, const UidRange& range) argument [all...] |
/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/native/libs/input/ |
H A D | InputDevice.cpp | 173 const MotionRange& range = mMotionRanges.itemAt(i); local 174 if (range.axis == axis && range.source == source) { 175 return ⦥ 187 MotionRange range = { axis, source, min, max, flat, fuzz, resolution }; local 188 mMotionRanges.add(range); 191 void InputDeviceInfo::addMotionRange(const MotionRange& range) { argument 192 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...] |
/frameworks/base/core/java/android/widget/ |
H A D | ScrollBarDrawable.java | 102 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/media/java/android/media/ |
H A D | Utils.java | 43 * 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 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/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/av/media/vndk/xmlparser/1.0/ |
H A D | MediaCodecsXmlParser.cpp | 650 || !strcmp(attrs[i], "range") 670 // measured-frame-rate, measured-blocks-per-second: range 671 // quality: range + default + [scale] 672 // complexity: range + default 687 if (msg->contains("range") || msg->contains("value")) { 688 return limitError(name, "has 'min' and 'max' as well as 'range' or " 691 msg->setString("range", min); 698 if (msg->contains("range")) { 699 return limitError(name, "has both 'range' and 'value' attributes"); 701 msg->setString("range", mi 704 AString range, scale = "linear", def, in_; local [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
H A D | AsyncListUtilTest.java | 249 public void extendRangeInto(int[] range, int[] outRange, int scrollHint) { argument 250 outRange[0] = range[0] - mStartPreload; 251 outRange[1] = range[1] + mEndPreload;
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | AsyncListUtilLayoutTest.java | 235 public void extendRangeInto(int[] range, int[] outRange, int scrollHint) { argument 236 outRange[0] = range[0] - mStartPrefetch; 237 outRange[1] = range[1] + mEndPrefetch;
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | ColorUtils.cpp | 153 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 493 ColorRange range = kColorRangeLimited; local 523 getColorConfigFromFormat( const sp<AMessage> &format, int32_t *range, int32_t *standard, int32_t *transfer) argument 553 int32_t range, standard, transfer; local 579 int32_t range = 0, standard = 0, transfer = 0; local [all...] |
/frameworks/base/tools/aapt2/compile/ |
H A D | NinePatch.cpp | 78 // range, 109 // We are ending a range. Which range? 117 // We are starting a range. Which range? 236 const Range& range = padding.front(); local 237 *padding_start = range.start; 238 *padding_end = length - range.end; 257 const Range& range = layout_bounds.front(); local 261 if (range 271 const Range& range = layout_bounds.back(); local 497 const Range& range = unexpected_ranges[0]; local 513 const Range& range = unexpected_ranges[0]; local 679 operator <<(::std::ostream& out, const Range& range) argument [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/minikin/libs/minikin/ |
H A D | FontCollection.cpp | 91 // the base code point without variation selector. The family won't be listed in the range in 96 Range* range = &mRanges.back(); local 98 ALOGD("i=%zd: range start = %zd\n", i, offset); 100 range->start = mFamilyVec.size(); 112 range->end = mFamilyVec.size(); 257 Range range = mRanges[ch >> kLogCharsPerPage]; local 260 range = { 0, static_cast<uint16_t>(mFamilies.size()) }; 264 ALOGD("querying range %zd:%zd\n", range.start, 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/ |
H A D | MediaCodecList.cpp | 948 || !strcmp(attrs[i], "range") 967 // measured-frame-rate, measured-blocks-per-second: range 968 // quality: range + default + [scale] 969 // complexity: range + default 980 if (msg->contains("range") || msg->contains("value")) { 981 return limitError(name, "has 'min' and 'max' as well as 'range' or " 984 msg->setString("range", min); 991 if (msg->contains("range")) { 992 return limitError(name, "has both 'range' and 'value' attributes"); 994 msg->setString("range", mi 997 AString range, scale = "linear", def, in_; local [all...] |