Home
last modified time | relevance | path

Searched refs:Range (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DRangeTest.java20 import android.util.Range;
35 Range<Integer> intRange = new Range<Integer>(1, 1); in testConstructor()
41 Range<Integer> intRange2 = new Range<Integer>(100, 200); in testConstructor()
45 Range<Float> floatRange = new Range<Float>(Float.NEGATIVE_INFINITY, in testConstructor()
55 new Range<Integer>(null, null); in testIllegalValues()
62 new Range<Integer>(null, 0); in testIllegalValues()
69 new Range<Integer>(0, null); in testIllegalValues()
78 new Range<Integer>(50, -50); in testIllegalValues()
85 new Range<Float>(0.0f, Float.NEGATIVE_INFINITY); in testIllegalValues()
94 Range<Float> oneHalf = Range.create(1.0f, 2.0f); in testEquals()
[all …]
DCameraMetadataTest.java22 import android.util.Range;
839 new TypeReference<Range<Integer>>() {{ }}, in testReadWriteRange()
840 Range.create(123, 456), in testReadWriteRange()
845 new TypeReference<Range<Long>>() {{ }}, in testReadWriteRange()
846 Range.create(123L, 456L), in testReadWriteRange()
/frameworks/base/media/java/android/media/
DUtils.java21 import android.util.Range;
39 public static <T extends Comparable<? super T>> void sortDistinctRanges(Range<T>[] ranges) { in sortDistinctRanges()
40 Arrays.sort(ranges, new Comparator<Range<T>>() { in sortDistinctRanges()
42 public int compare(Range<T> lhs, Range<T> rhs) { in sortDistinctRanges()
61 Range<T>[] intersectSortedDistinctRanges(Range<T>[] one, Range<T>[] another) { in intersectSortedDistinctRanges()
63 Vector<Range<T>> result = new Vector<Range<T>>(); in intersectSortedDistinctRanges()
64 for (Range<T> range: another) { in intersectSortedDistinctRanges()
81 return result.toArray(new Range[result.size()]); in intersectSortedDistinctRanges()
93 int binarySearchDistinctRanges(Range<T>[] ranges, T value) { in binarySearchDistinctRanges()
94 return Arrays.binarySearch(ranges, Range.create(value, value), in binarySearchDistinctRanges()
[all …]
DMediaCodecInfo.java21 import android.util.Range;
120 private static final Range<Integer> POSITIVE_INTEGERS =
121 Range.create(1, Integer.MAX_VALUE);
122 private static final Range<Long> POSITIVE_LONGS =
123 Range.create(1l, Long.MAX_VALUE);
124 private static final Range<Rational> POSITIVE_RATIONALS =
125 Range.create(new Rational(1, Integer.MAX_VALUE),
127 private static final Range<Integer> SIZE_RANGE = Range.create(1, 32768);
128 private static final Range<Integer> FRAME_RATE_RANGE = Range.create(0, 960);
129 private static final Range<Integer> BITRATE_RANGE = Range.create(0, 500000000);
[all …]
/frameworks/base/core/java/android/util/
DRange.java39 public final class Range<T extends Comparable<? super T>> { class
54 public Range(final T lower, final T upper) { in Range() method in Range
77 public static <T extends Comparable<? super T>> Range<T> create(final T lower, final T upper) { in create()
78 return new Range<T>(lower, upper); in create()
131 public boolean contains(Range<T> range) { in contains()
154 } else if (obj instanceof Range) { in equals()
156 Range other = (Range) obj; in equals()
204 public Range<T> intersect(Range<T> range) { in intersect()
217 return Range.create( in intersect()
236 public Range<T> intersect(T lower, T upper) { in intersect()
[all …]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableRange.java22 import android.util.Range;
37 implements MarshalQueryable<Range<T>> {
40 private class MarshalerRange extends Marshaler<Range<T>> {
41 private final Class<? super Range<T>> mClass;
42 private final Constructor<Range<T>> mConstructor;
47 protected MarshalerRange(TypeReference<Range<T>> typeReference, in MarshalerRange()
71 mConstructor = (Constructor<Range<T>>)mClass.getConstructor( in MarshalerRange()
79 public void marshal(Range<T> value, ByteBuffer buffer) { in marshal()
85 public Range<T> unmarshal(ByteBuffer buffer) { in unmarshal()
114 public int calculateMarshalSize(Range<T> value) { in calculateMarshalSize()
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DHighSpeedVideoConfiguration.java23 import android.util.Range;
60 mFpsRange = new Range<Integer>(mFpsMin, mFpsMax); in HighSpeedVideoConfiguration()
113 public Range<Integer> getFpsRange() { in getFpsRange()
156 private final Range<Integer> mFpsRange;
DStreamConfigurationMap.java30 import android.util.Range;
127 Range<Integer> fpsRange = config.getFpsRange(); in StreamConfigurationMap()
468 public Range<Integer>[] getHighSpeedVideoFpsRangesFor(Size size) { in getHighSpeedVideoFpsRangesFor()
476 Range<Integer>[] fpsRanges = new Range[fpsRangeCount]; in getHighSpeedVideoFpsRangesFor()
518 public Range<Integer>[] getHighSpeedVideoFpsRanges() { in getHighSpeedVideoFpsRanges()
519 Set<Range<Integer>> keySet = mHighSpeedVideoFpsRangeMap.keySet(); in getHighSpeedVideoFpsRanges()
520 return keySet.toArray(new Range[keySet.size()]); in getHighSpeedVideoFpsRanges()
544 public Size[] getHighSpeedVideoSizesFor(Range<Integer> fpsRange) { in getHighSpeedVideoSizesFor()
1180 private final HashMap</*HighSpeedVideoFpsRange*/Range<Integer>, /*Count*/Integer>
1181 mHighSpeedVideoFpsRangeMap = new HashMap<Range<Integer>, Integer>();
/frameworks/base/core/java/android/hardware/camera2/
DCameraCharacteristics.java386 public static final Key<android.util.Range<Integer>[]> CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES =
387 …new Key<android.util.Range<Integer>[]>("android.control.aeAvailableTargetFpsRanges", new TypeRefer…
406 public static final Key<android.util.Range<Integer>> CONTROL_AE_COMPENSATION_RANGE =
407 …new Key<android.util.Range<Integer>>("android.control.aeCompensationRange", new TypeReference<andr…
1748 public static final Key<android.util.Range<Integer>> SENSOR_INFO_SENSITIVITY_RANGE =
1749 …new Key<android.util.Range<Integer>>("android.sensor.info.sensitivityRange", new TypeReference<and…
1796 public static final Key<android.util.Range<Long>> SENSOR_INFO_EXPOSURE_TIME_RANGE =
1797 …new Key<android.util.Range<Long>>("android.sensor.info.exposureTimeRange", new TypeReference<andro…
DCaptureRequest.java862 public static final Key<android.util.Range<Integer>> CONTROL_AE_TARGET_FPS_RANGE =
863 …new Key<android.util.Range<Integer>>("android.control.aeTargetFpsRange", new TypeReference<android…
DCaptureResult.java713 public static final Key<android.util.Range<Integer>> CONTROL_AE_TARGET_FPS_RANGE =
714 …new Key<android.util.Range<Integer>>("android.control.aeTargetFpsRange", new TypeReference<android…
/frameworks/minikin/include/minikin/
DFontCollection.h54 struct Range { struct
77 std::vector<Range> mRanges; argument
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p2/src/
DomxVCM4P2_DecodePadMV_PVOP_s.s122 Range RN 1 label
309 ADD Range,High,High ;// Range=64*ScaleFactor
313 ADDLT diffMVdx,diffMVdx,Range ;// diffMVdx+=Range
316 SUBGT diffMVdx,diffMVdx,Range ;// If diffMVdx > High diffMVdx-=Range
327 …ADDLT diffMVdx,diffMVdx,Range ;// If diffMVdy<Low diffMVdy+=Range …
329 SUBGT diffMVdx,diffMVdx,Range ;// If diffMVdy > High diffMVdy-=Range
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p2/src/
DomxVCM4P2_DecodePadMV_PVOP_s.s122 Range RN 1 label
309 ADD Range,High,High ;// Range=64*ScaleFactor
313 ADDLT diffMVdx,diffMVdx,Range ;// diffMVdx+=Range
316 SUBGT diffMVdx,diffMVdx,Range ;// If diffMVdx > High diffMVdx-=Range
327 …ADDLT diffMVdx,diffMVdx,Range ;// If diffMVdy<Low diffMVdy+=Range …
329 SUBGT diffMVdx,diffMVdx,Range ;// If diffMVdy > High diffMVdy-=Range
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCamera2Capabilities.java27 import android.util.Range;
46 for (Range<Integer> fpsRange : p.get(CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES)) { in AndroidCamera2Capabilities()
74 Range<Integer> ecRange = p.get(CONTROL_AE_COMPENSATION_RANGE); in AndroidCamera2Capabilities()
DAndroidCamera2Settings.java28 import android.util.Range;
95 Range<Integer> previewFpsRange = mTemplateSettings.get(CONTROL_AE_TARGET_FPS_RANGE); in AndroidCamera2Settings()
209 Range<Integer> defaultFpsRange = mTemplateSettings.get(CONTROL_AE_TARGET_FPS_RANGE); in matchesTemplateDefault()
258 new Range(mPreviewFpsRangeMin, mPreviewFpsRangeMax)); in getRequestSettings()
/frameworks/minikin/libs/minikin/
DFontCollection.cpp67 Range dummy; in FontCollection()
69 Range* range = &mRanges.back(); in FontCollection()
107 const Range& range = mRanges[ch >> kLogCharsPerPage]; in getFamilyForChar()
/frameworks/native/opengl/tests/hwc/
DhwcCommit.cpp180 class Range { class
182 Range(void) : _l(0), _u(0) {} in Range() function in Range
183 Range(uint32_t lower, uint32_t upper) : _l(lower), _u(upper) {} in Range() function in Range
194 Range::operator string() in operator string()
217 static void double2Rational(double f, Range nRange, Range dRange,
1130 Range(scMin.width(), scMax.width()), in scHScale()
1131 Range(dfMin.width(), dfMax.width()), in scHScale()
1229 Range(scMin.height(), scMax.height()), in scVScale()
1230 Range(dfMin.height(), dfMax.height()), in scVScale()
1364 void Rational::double2Rational(double f, Range nRange, Range dRange, in double2Rational()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyMetadataMapper.java38 import android.util.Range;
416 Range<Integer>[] ranges = new Range[rangesSize]; in mapControlAe()
419 ranges[i++] = Range.create(r[Camera.Parameters.PREVIEW_FPS_MIN_INDEX], in mapControlAe()
466 m.set(CONTROL_AE_COMPENSATION_RANGE, Range.create(min, max)); in mapControlAe()
1134 private static int[] convertAeFpsRangeToLegacy(Range<Integer> fpsRange) { in convertAeFpsRangeToLegacy()
1307 Range<Integer>[] availableFpsRange = c. in createRequestTemplate()
1311 Range<Integer> bestRange = availableFpsRange[0]; in createRequestTemplate()
1312 for (Range<Integer> r : availableFpsRange) { in createRequestTemplate()
DLegacyRequestMapper.java29 import android.util.Range;
162 Range<Integer> aeFpsRange = request.get(CONTROL_AE_TARGET_FPS_RANGE); in convertRequestMetadata()
188 Range<Integer> compensationRange = in convertRequestMetadata()
628 private static int[] convertAeFpsRangeToLegacy(Range<Integer> fpsRange) { in convertAeFpsRangeToLegacy()
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
Dvignette.rsh37 // Range needs to be between 1.3 to 0.6. When scale is zero then range is
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
Dvignette_approx.rsh37 // Range needs to be between 1.3 to 0.6. When scale is zero then range is
Dvignette.rsh37 // Range needs to be between 1.3 to 0.6. When scale is zero then range is
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
Dvignette.rsh37 // Range needs to be between 1.3 to 0.6. When scale is zero then range is
Dvignette_approx.rsh37 // Range needs to be between 1.3 to 0.6. When scale is zero then range is

12