/frameworks/base/services/tests/servicestests/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...] |
H A D | UidRangeTest.h | 26 jbyteArray marshall(JNIEnv* env, const android::net::UidRange& range);
|
/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/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/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/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/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/util/ |
H A D | RecyclerViewRequireScrollHelper.java | 64 final int range = mRecyclerView.computeVerticalScrollRange() 66 return range != 0 && offset < range - 1;
|
/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/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/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/base/core/java/android/view/ |
H A D | InputDevice.java | 98 * Use {@link #getMotionRange} to query the range of the pointing device. Some devices permit 99 * touches outside the display area so the effective range may be somewhat smaller or larger 112 * Use {@link #getMotionRange} to query the range of motion. 123 * Use {@link #getMotionRange} to query the range of positions. 132 * Use {@link #getMotionRange} to query the range of positions. 290 * Constant for retrieving the range of values for {@link MotionEvent#AXIS_X}. 299 * Constant for retrieving the range of values for {@link MotionEvent#AXIS_Y}. 308 * Constant for retrieving the range of values for {@link MotionEvent#AXIS_PRESSURE}. 317 * Constant for retrieving the range of values for {@link MotionEvent#AXIS_SIZE}. 326 * Constant for retrieving the range o [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/base/core/java/android/hardware/ |
H A D | ConsumerIrManager.java | 92 * Represents a range of carrier frequencies (inclusive) on which the 100 * Create a segment of a carrier frequency range. 102 * @param min The minimum transmittable frequency in this range segment. 103 * @param max The maximum transmittable frequency in this range segment. 111 * Get the minimum (inclusive) frequency in this range segment. 118 * Get the maximum (inclusive) frequency in this range segment. 145 CarrierFrequencyRange[] range = new CarrierFrequencyRange[freqs.length / 2]; 148 range[i / 2] = new CarrierFrequencyRange(freqs[i], freqs[i+1]); 150 return range;
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | ProgressReporterTest.java | 35 final int[] range = r.getSegmentRange(); 36 assertEquals("start", start, range[0]); 37 assertEquals("len", len, range[1]);
|
/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/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 476 ColorRange range = kColorRangeLimited; local 506 getColorConfigFromFormat( const sp<AMessage> &format, int32_t *range, int32_t *standard, int32_t *transfer) argument 536 int32_t range, standard, transfer; local 562 int32_t range = 0, standard = 0, transfer = 0; local [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/services/tests/servicestests/src/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/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;
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
H A D | PdfManipulationService.java | 251 PageRange range = ranges[i]; 254 if (range.getEnd() > lastPageIdx) { 255 if (range.getStart() > lastPageIdx) { 258 range = new PageRange(range.getStart(), lastPageIdx); 261 for (int j = range.getEnd(); j >= range.getStart(); j--) {
|
/frameworks/av/include/media/stagefright/foundation/ |
H A D | ColorUtils.h | 111 // using int32_t for media range/standard/transfers to denote extended ranges 115 static int32_t wrapColorAspectsIntoColorRange(ColorAspects::Range range); 120 int32_t range, ColorAspects::Range *aspect); 128 int32_t range, int32_t standard, int32_t transfer, ColorAspects &aspects); 130 const ColorAspects &aspects, int32_t *range, int32_t *standard, int32_t *transfer); 160 const sp<AMessage> &format, int *range, int *standard, int *transfer);
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
H A D | CameraSource.java | 319 for (int[] range : supportedFpsRanges) { 320 if (range[Camera.Parameters.PREVIEW_FPS_MIN_INDEX] < fps*1000 && 321 range[Camera.Parameters.PREVIEW_FPS_MAX_INDEX] > fps*1000 && 322 range[Camera.Parameters.PREVIEW_FPS_MIN_INDEX] > 324 range[Camera.Parameters.PREVIEW_FPS_MAX_INDEX] < 326 closestRange = range; 330 + ".Closest frame rate range: ["
|
/frameworks/minikin/libs/minikin/ |
H A D | FontCollection.cpp | 117 // the base code point without variation selector. The family won't be listed in the range in 122 Range* range = &mRanges.back(); local 124 ALOGD("i=%zd: range start = %zd\n", i, offset); 126 range->start = offset; 139 range->end = offset; 285 Range range = mRanges[ch >> kLogCharsPerPage]; local 293 mFamilyVec.begin() + range.start, mFamilyVec.begin() + range.end); 299 range = { 0, familyVecForVS.size() }; 303 ALOGD("querying range [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/util/ |
H A D | DiffUtil.java | 130 final Range range = stack.remove(stack.size() - 1); 131 final Snake snake = diffPartial(cb, range.oldListStart, range.oldListEnd, 132 range.newListStart, range.newListEnd, forward, backward, max); 138 snake.x += range.oldListStart; 139 snake.y += range.newListStart; 144 left.oldListStart = range.oldListStart; 145 left.newListStart = range.newListStart; 160 // re-use range fo [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | QuickViewIntentBuilder.java | 87 final Range<Integer> range = computeSiblingsRange(uris, documentLocation); 92 for (int i = range.getLower(); i <= range.getUpper(); i++) { 108 intent.putExtra(Intent.EXTRA_INDEX, documentLocation - range.getLower());
|