Home
last modified time | relevance | path

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

123

/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 …]
/frameworks/base/media/java/android/media/
DUtils.java21 import android.util.Range;
37 public static <T extends Comparable<? super T>> void sortDistinctRanges(Range<T>[] ranges) { in sortDistinctRanges()
38 Arrays.sort(ranges, new Comparator<Range<T>>() { in sortDistinctRanges()
40 public int compare(Range<T> lhs, Range<T> rhs) { in sortDistinctRanges()
59 Range<T>[] intersectSortedDistinctRanges(Range<T>[] one, Range<T>[] another) { in intersectSortedDistinctRanges()
61 Vector<Range<T>> result = new Vector<Range<T>>(); in intersectSortedDistinctRanges()
62 for (Range<T> range: another) { in intersectSortedDistinctRanges()
79 return result.toArray(new Range[result.size()]); in intersectSortedDistinctRanges()
91 int binarySearchDistinctRanges(Range<T>[] ranges, T value) { in binarySearchDistinctRanges()
92 return Arrays.binarySearch(ranges, Range.create(value, value), in binarySearchDistinctRanges()
[all …]
DMediaCodecInfo.java23 import android.util.Range;
119 private static final Range<Integer> POSITIVE_INTEGERS =
120 Range.create(1, Integer.MAX_VALUE);
121 private static final Range<Long> POSITIVE_LONGS =
122 Range.create(1l, Long.MAX_VALUE);
123 private static final Range<Rational> POSITIVE_RATIONALS =
124 Range.create(new Rational(1, Integer.MAX_VALUE),
126 private static final Range<Integer> SIZE_RANGE = Range.create(1, 32768);
127 private static final Range<Integer> FRAME_RATE_RANGE = Range.create(0, 960);
128 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;
34 implements MarshalQueryable<Range<T>> {
37 private class MarshalerRange extends Marshaler<Range<T>> {
38 private final Class<? super Range<T>> mClass;
39 private final Constructor<Range<T>> mConstructor;
44 protected MarshalerRange(TypeReference<Range<T>> typeReference, in MarshalerRange()
68 mConstructor = (Constructor<Range<T>>)mClass.getConstructor( in MarshalerRange()
76 public void marshal(Range<T> value, ByteBuffer buffer) { in marshal()
82 public Range<T> unmarshal(ByteBuffer buffer) { in unmarshal()
111 public int calculateMarshalSize(Range<T> value) { in calculateMarshalSize()
[all …]
/frameworks/base/core/java/android/hardware/camera2/
DCameraCharacteristics.java432 public static final Key<android.util.Range<Integer>[]> CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES =
433 …new Key<android.util.Range<Integer>[]>("android.control.aeAvailableTargetFpsRanges", new TypeRefer…
452 public static final Key<android.util.Range<Integer>> CONTROL_AE_COMPENSATION_RANGE =
453 …new Key<android.util.Range<Integer>>("android.control.aeCompensationRange", new TypeReference<andr…
762 public static final Key<android.util.Range<Integer>> CONTROL_POST_RAW_SENSITIVITY_BOOST_RANGE =
763 …new Key<android.util.Range<Integer>>("android.control.postRawSensitivityBoostRange", new TypeRefer…
2082 public static final Key<android.util.Range<Integer>> SENSOR_INFO_SENSITIVITY_RANGE =
2083 …new Key<android.util.Range<Integer>>("android.sensor.info.sensitivityRange", new TypeReference<and…
2130 public static final Key<android.util.Range<Long>> SENSOR_INFO_EXPOSURE_TIME_RANGE =
2131 …new Key<android.util.Range<Long>>("android.sensor.info.exposureTimeRange", new TypeReference<andro…
/frameworks/base/core/java/android/hardware/camera2/params/
DHighSpeedVideoConfiguration.java23 import android.util.Range;
64 mFpsRange = new Range<Integer>(mFpsMin, mFpsMax); in HighSpeedVideoConfiguration()
126 public Range<Integer> getFpsRange() { in getFpsRange()
171 private final Range<Integer> mFpsRange;
DStreamConfigurationMap.java30 import android.util.Range;
181 Range<Integer> fpsRange = config.getFpsRange(); in StreamConfigurationMap()
558 public Range<Integer>[] getHighSpeedVideoFpsRangesFor(Size size) { in getHighSpeedVideoFpsRangesFor()
566 Range<Integer>[] fpsRanges = new Range[fpsRangeCount]; in getHighSpeedVideoFpsRangesFor()
621 public Range<Integer>[] getHighSpeedVideoFpsRanges() { in getHighSpeedVideoFpsRanges()
622 Set<Range<Integer>> keySet = mHighSpeedVideoFpsRangeMap.keySet(); in getHighSpeedVideoFpsRanges()
623 return keySet.toArray(new Range[keySet.size()]); in getHighSpeedVideoFpsRanges()
639 public Size[] getHighSpeedVideoSizesFor(Range<Integer> fpsRange) { in getHighSpeedVideoSizesFor()
1569 Range<Integer>[] ranges = getHighSpeedVideoFpsRangesFor(size); in appendHighSpeedVideoConfigurationsString()
1570 for (Range<Integer> range : ranges) { in appendHighSpeedVideoConfigurationsString()
[all …]
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator.cpp44 struct Range { in pseudolocalizeStyledString() struct
54 auto cmp = [](const Range& r, size_t index) -> bool { in pseudolocalizeStyledString()
62 std::vector<Range> ranges; in pseudolocalizeStyledString()
63 ranges.push_back(Range{ 0 }); in pseudolocalizeStyledString()
64 ranges.push_back(Range{ originalText.size() - 1 }); in pseudolocalizeStyledString()
74 Range{ span.firstChar, &localized.spans[i].firstChar, nullptr }); in pseudolocalizeStyledString()
83 Range{ span.lastChar, nullptr, &localized.spans[i].lastChar }); in pseudolocalizeStyledString()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DStaticMetadata.java30 import android.util.Range;
961 Range<Integer> range = getValueFromKeyNonNull( in getSensitivityMinimumOrDefault()
994 Range<Integer> range = getValueFromKeyNonNull( in getSensitivityMaximumOrDefault()
1014 Range<Long> range = getValueFromKeyNonNull( in getExposureMinimumOrDefault()
1047 Range<Long> range = getValueFromKeyNonNull( in getExposureMaximumOrDefault()
1393 public Range<Integer>[] getAeAvailableTargetFpsRangesChecked() { in getAeAvailableTargetFpsRangesChecked()
1394 Key<Range<Integer>[]> key = in getAeAvailableTargetFpsRangesChecked()
1396 Range<Integer>[] fpsRanges = getValueFromKeyNonNull(key); in getAeAvailableTargetFpsRangesChecked()
1399 return new Range[0]; in getAeAvailableTargetFpsRangesChecked()
1424 public Range<Integer> getAeMaxTargetFpsRange() { in getAeMaxTargetFpsRange()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2RecordingTest.java43 import android.util.Range;
219 List<Range<Integer>> fixedFpsRanges = in constrainedHighSpeedRecording()
224 for (Range<Integer> fpsRange : fixedFpsRanges) { in constrainedHighSpeedRecording()
293 private List<Range<Integer>> getHighSpeedFixedFpsRangeForSize(StreamConfigurationMap config, in getHighSpeedFixedFpsRangeForSize()
295 Range<Integer>[] availableFpsRanges = config.getHighSpeedVideoFpsRangesFor(size); in getHighSpeedFixedFpsRangeForSize()
296 List<Range<Integer>> fixedRanges = new ArrayList<Range<Integer>>(); in getHighSpeedFixedFpsRangeForSize()
297 for (Range<Integer> range : availableFpsRanges) { in getHighSpeedFixedFpsRangeForSize()
306 int captureRate, Range<Integer> fpsRange, in startSlowMotionRecording()
379 List<Range<Integer> > fpsRanges = Arrays.asList( in basicRecordingTestByCamera()
391 Range<Integer> fpsRange = new Range(profile.videoFrameRate, profile.videoFrameRate); in basicRecordingTestByCamera()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DQuickViewIntentBuilder.java36 import android.util.Range;
86 final Range<Integer> range = computeSiblingsRange(uris, documentLocation); in build()
164 private static Range<Integer> computeSiblingsRange(List<Uri> uris, int documentLocation) { in computeSiblingsRange()
181 return new Range(firstSibling, lastSibling); in computeSiblingsRange()
/frameworks/base/core/java/android/hardware/camera2/utils/
DSurfaceUtils.java23 import android.util.Range;
146 Range<Integer> fpsRange, StreamConfigurationMap config) { in checkConstrainedHighSpeedSurfaces()
157 Range<Integer>[] highSpeedFpsRanges = config.getHighSpeedVideoFpsRanges(); in checkConstrainedHighSpeedSurfaces()
/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/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/minikin/include/minikin/
DFontCollection.h60 struct Range { struct
98 std::vector<Range> mRanges;
/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/native/include/media/hardware/
DVideoAPI.h115 enum Range : uint32_t { enum
179 Range mRange; // IN/OUT
266 inline static const char *asString(ColorAspects::Range i, const char *def = "??") {
/frameworks/native/opengl/tests/hwc/
DhwcCommit.cpp179 class Range { class
181 Range(void) : _l(0), _u(0) {} in Range() function in Range
182 Range(uint32_t lower, uint32_t upper) : _l(lower), _u(upper) {} in Range() function in Range
193 Range::operator string() in operator string()
216 static void double2Rational(double f, Range nRange, Range dRange,
1128 Range(scMin.width(), scMax.width()), in scHScale()
1129 Range(dfMin.width(), dfMax.width()), in scHScale()
1227 Range(scMin.height(), scMax.height()), in scVScale()
1228 Range(dfMin.height(), dfMax.height()), in scVScale()
1362 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;
417 Range<Integer>[] ranges = new Range[rangesSize]; in mapControlAe()
420 ranges[i++] = Range.create( in mapControlAe()
468 m.set(CONTROL_AE_COMPENSATION_RANGE, Range.create(min, max)); in mapControlAe()
1185 private static int[] convertAeFpsRangeToLegacy(Range<Integer> fpsRange) { in convertAeFpsRangeToLegacy()
1358 Range<Integer>[] availableFpsRange = c. in createRequestTemplate()
1362 Range<Integer> bestRange = availableFpsRange[0]; in createRequestTemplate()
1363 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()
190 Range<Integer> compensationRange = in convertRequestMetadata()
631 private static int[] convertAeFpsRangeToLegacy(Range<Integer> fpsRange) { in convertAeFpsRangeToLegacy()
/frameworks/av/include/media/stagefright/foundation/
DColorUtils.h115 static int32_t wrapColorAspectsIntoColorRange(ColorAspects::Range range);
120 int32_t range, ColorAspects::Range *aspect);
/frameworks/minikin/libs/minikin/
DFontCollection.cpp117 Range dummy; in FontCollection()
119 Range* range = &mRanges.back(); in FontCollection()
282 Range range = mRanges[ch >> kLogCharsPerPage]; in getFamilyForChar()
/frameworks/av/media/libstagefright/foundation/
DColorUtils.cpp37 ALookup<CU::ColorRange, CA::Range> sRanges{
144 static bool isValid(ColorAspects::Range r) { in isValid()
148 static bool isDefined(ColorAspects::Range r) { in isDefined()
153 int32_t ColorUtils::wrapColorAspectsIntoColorRange(ColorAspects::Range range) { in wrapColorAspectsIntoColorRange()
168 int32_t range, ColorAspects::Range *aspect) { in unwrapColorAspectsFromColorRange()
176 *aspect = (ColorAspects::Range)(range - start); in unwrapColorAspectsFromColorRange()

123