/frameworks/wilhelm/src/android/ |
H A D | android_Effect.cpp | 285 // 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/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/native/services/inputflinger/ |
H A D | InputReader.cpp | 887 const InputDeviceInfo::MotionRange& range = ranges.itemAt(i); local 888 const char* label = getAxisLabel(range.axis); 894 snprintf(name, sizeof(name), "%d", range.axis); 898 name, range.source, range.min, range.max, range.flat, range.fuzz, 899 range.resolution); 1810 dump.appendFormat(INDENT4 "%s: unknown range\ [all...] |
/frameworks/native/services/inputflinger/tests/ |
H A D | InputReader_test.cpp | 1446 const InputDeviceInfo::MotionRange* range = info.getMotionRange(axis, source); local 1447 ASSERT_TRUE(range != NULL) << "Axis: " << axis << " Source: " << source; 1448 ASSERT_EQ(axis, range->axis) << "Axis: " << axis << " Source: " << source; 1449 ASSERT_EQ(source, range->source) << "Axis: " << axis << " Source: " << source; 1450 ASSERT_NEAR(min, range->min, EPSILON) << "Axis: " << axis << " Source: " << source; 1451 ASSERT_NEAR(max, range->max, EPSILON) << "Axis: " << axis << " Source: " << source; 1452 ASSERT_NEAR(flat, range->flat, EPSILON) << "Axis: " << axis << " Source: " << source; 1453 ASSERT_NEAR(fuzz, range->fuzz, EPSILON) << "Axis: " << axis << " Source: " << source; 1999 // Initially there may not be a valid motion range. 2005 // When the bounds are set, then there should be a valid motion range [all...] |
/frameworks/minikin/libs/minikin/ |
H A D | FontCollection.cpp | 69 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/native/libs/input/ |
H A D | InputDevice.cpp | 163 const MotionRange& range = mMotionRanges.itemAt(i); local 164 if (range.axis == axis && range.source == source) { 165 return ⦥ 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/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_api.cpp | 2701 void GLTrace_glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint * range, GLint * precision) { argument 2719 // copy argument range 2723 arg_range->add_int64value((uintptr_t)range); 2734 glContext->hooks->gl.glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision); 2739 (void *) range, [all...] |
/frameworks/compile/mclinker/lib/Target/Hexagon/ |
H A D | HexagonRelocator.cpp | 556 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/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardWidgetPager.java | 576 * 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...] |
H A D | PagedView.java | 152 // mOverScrollX is equal to getScrollX() when we're within the normal scroll range. Otherwise 866 void boundByReorderablePages(boolean isReordering, int[] range) { argument 871 protected void getVisiblePages(int[] range) { argument 872 range[0] = 0; 873 range[1] = getPageCount() - 1; 900 range[0] = Math.max(0, leftScreen - 1); 901 range[1] = Math.min(rightScreen + 1, getChildCount() - 1); 903 range[0] = -1; 904 range[1] = -1; 916 // mOverScrollX is equal to getScrollX() when we're within the normal scroll range [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | NotificationStackScrollLayout.java | 829 int range = getScrollRange(); 831 range = Math.min(range, mMaxScrollAfterExpand); 838 scrollAmount = overScrollUp(deltaY, range); 847 0, range, 0, getHeight() / 2, true); 922 private float overScrollUp(int deltaY, int range) { argument 934 if (newScrollY > range) { 938 setOverScrolledPixels(currentBottomPixels + newScrollY - range, 942 mOwnScrollY = range; 1027 final int range [all...] |
/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/opengl/java/android/opengl/ |
H A D | GLES20.java | 1079 // 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/media/java/android/media/ |
H A D | Utils.java | 36 * 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/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/base/core/java/android/text/ |
H A D | TextUtils.java | 262 * 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/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/core/java/android/widget/ |
H A D | ScrollBarDrawable.java | 88 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/core/jni/ |
H A D | android_hardware_SensorManager.cpp | 46 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 D | android_opengl_GLES20.cpp | 2990 /* 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...] |
H A D | android_view_InputDevice.cpp | 68 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);
|
/frameworks/base/core/java/android/hardware/ |
H A D | Camera.java | 1454 * @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...] |
/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/rtsp/ |
H A D | MyHandler.h | 1412 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/av/media/libstagefright/ |
H A D | MediaCodecList.cpp | 660 || !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...] |