Searched refs:Rational (Results 1 - 25 of 30) sorted by path

12

/frameworks/base/config/
H A Dboot-image-profile.txt833 HPLandroid/app/PictureInPictureParams$Builder;->setAspectRatio(Landroid/util/Rational;)Landroid/app/PictureInPictureParams$Builder;
[all...]
H A Dpreloaded-classes3167 android.util.Rational
/frameworks/base/core/java/android/app/
H A DPictureInPictureArgs.java23 import android.util.Rational;
38 private Rational mAspectRatio;
55 public Builder setAspectRatio(Rational aspectRatio) {
113 private Rational mAspectRatio;
154 mAspectRatio = new Rational(in.readInt(), in.readInt());
165 private PictureInPictureArgs(Rational aspectRatio, List<RemoteAction> actions,
178 mAspectRatio = new Rational((int) (aspectRatio * 1000000000), 1000000000);
234 public Rational getAspectRatioRational() {
H A DPictureInPictureParams.java23 import android.util.Rational;
40 private Rational mAspectRatio;
57 public Builder setAspectRatio(Rational aspectRatio) {
122 private Rational mAspectRatio;
145 mAspectRatio = new Rational(in.readInt(), in.readInt());
157 PictureInPictureParams(Rational aspectRatio, List<RemoteAction> actions,
192 public Rational getAspectRatioRational() {
/frameworks/base/core/java/android/hardware/camera2/
H A DCameraCharacteristics.java27 import android.util.Rational;
642 public static final Key<Rational> CONTROL_AE_COMPENSATION_STEP =
643 new Key<Rational>("android.control.aeCompensationStep", Rational.class);
H A DCaptureResult.java27 import android.util.Rational;
3322 public static final Key<Rational[]> SENSOR_NEUTRAL_COLOR_POINT =
3323 new Key<Rational[]>("android.sensor.neutralColorPoint", Rational[].class);
3873 public static final Key<Rational[]> STATISTICS_PREDICTED_COLOR_TRANSFORM =
3874 new Key<Rational[]>("android.statistics.predictedColorTransform", Rational[].class);
/frameworks/base/core/java/android/hardware/camera2/marshal/
H A DMarshalHelpers.java22 import android.util.Rational;
106 * <li>Rational
111 * boxed objects are included, Rational is included, and other types such as char and
132 } else if (klass == Rational.class) {
146 * but for a non-primitive {@code Rational.class => Rational.class}.</p>
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryablePrimitive.java22 import android.util.Rational;
38 * <li>Rational <-> TYPE_RATIONAL
87 } else if (value instanceof Rational) {
89 marshalPrimitive((Rational) value, buffer);
120 private void marshalPrimitive(Rational value, ByteBuffer buffer) {
140 return new Rational(numerator, denominator);
177 } else if (klass == Rational.class) {
/frameworks/base/core/java/android/hardware/camera2/params/
H A DColorSpaceTransform.java23 import android.util.Rational;
28 * Immutable class for describing a 3x3 matrix of {@link Rational} values in row-major order.
44 /** The number of total Rational elements in this matrix. */
60 * Create a new immutable {@link ColorSpaceTransform} instance from a {@link Rational} array.
71 public ColorSpaceTransform(Rational[] elements) {
135 public Rational getElement(int column, int row) {
145 return new Rational(numerator, denominator);
149 * Copy the {@link Rational} elements in row-major order from this matrix into the destination.
162 public void copyElements(Rational[] destination, int offset) {
173 destination[i + offset] = new Rational(numerato
[all...]
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DParamsUtils.java23 import android.util.Rational;
112 * Create a {@link Rational} value by approximating the float value as a rational.
121 public static Rational createRational(float value) {
123 return Rational.NaN;
125 return Rational.POSITIVE_INFINITY;
127 return Rational.NEGATIVE_INFINITY;
129 return Rational.ZERO;
157 return new Rational(num, den);
/frameworks/base/core/java/android/util/
H A DRational.java27 * Rational number. </p>
29 public final class Rational extends Number implements Comparable<Rational> { class in inherits:Number,Comparable
31 * Constant for the <em>Not-a-Number (NaN)</em> value of the {@code Rational} type.
40 public static final Rational NaN = new Rational(0, 0);
43 * Constant for the positive infinity value of the {@code Rational} type.
48 public static final Rational POSITIVE_INFINITY = new Rational(1, 0);
51 * Constant for the negative infinity value of the {@code Rational} typ
101 public Rational(int numerator, int denominator) { method in class:Rational
[all...]
/frameworks/base/media/java/android/media/
H A DExifInterface.java555 private static class Rational { class in class:ExifInterface
559 private Rational(long numerator, long denominator) { method in class:ExifInterface.Rational
649 public static ExifAttribute createURational(Rational[] values, ByteOrder byteOrder) {
653 for (Rational value : values) {
660 public static ExifAttribute createURational(Rational value, ByteOrder byteOrder) {
661 return createURational(new Rational[] {value}, byteOrder);
664 public static ExifAttribute createSRational(Rational[] values, ByteOrder byteOrder) {
668 for (Rational value : values) {
675 public static ExifAttribute createSRational(Rational value, ByteOrder byteOrder) {
676 return createSRational(new Rational[] {valu
[all...]
H A DMediaCodecInfo.java24 import android.util.Rational;
123 private static final Range<Rational> POSITIVE_RATIONALS =
124 Range.create(new Rational(1, Integer.MAX_VALUE),
125 new Rational(Integer.MAX_VALUE, 1));
1232 private Range<Rational> mAspectRatioRange;
1233 private Range<Rational> mBlockAspectRatioRange;
1555 new Rational(widthInBlocks, heightInBlocks))
1556 && mAspectRatioRange.contains(new Rational(width, height));
1622 public Range<Rational> getAspectRatioRange(boolean blocks) {
1754 Range<Rational> ratio
[all...]
H A DUtils.java29 import android.util.Rational;
158 private static Rational scaleRatio(Rational ratio, int num, int den) {
162 return new Rational(
167 static Range<Rational> scaleRange(Range<Rational> range, int num, int den) {
278 static Range<Rational> parseRationalRange(Object o, Range<Rational> fallback) {
284 Rational.parseRational(s.substring(0, ix)),
285 Rational
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DStaticMetadata.java31 import android.util.Rational;
70 private static final Rational CONTROL_AE_COMPENSATION_STEP_DEFAULT = new Rational(1, 2);
1587 public Rational getAeCompensationStepChecked() {
1588 Key<Rational> key =
1590 Rational compensationStep = getValueFromKeyNonNull(key);
1616 Rational compensationStep = getAeCompensationStepChecked();
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DCamera2StillCaptureTest.java39 import android.util.Rational;
483 Rational[] empty = new Rational[] { Rational.ZERO, Rational.ZERO, Rational.ZERO};
484 Rational[] neutralColorPoint = mCollector.expectKeyValueNotNull("NeutralColorPoint",
492 Rational.ZERO);
H A DCamera2SwitchPreviewTest.java48 import android.util.Rational;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DCameraMetadataTest.java23 import android.util.Rational;
444 checkKeyGetAndSet("android.sensor.baseGainFactor", Rational.class, new Rational(1, 2));
489 checkKeyGetAndSet("android.sensor.calibrationTransform1", Rational[].class,
490 new Rational[] {
491 new Rational(1, 2), new Rational(3, 4), new Rational(5, 6),
492 new Rational(7, 8), new Rational(
[all...]
H A DRangeTest.java21 import android.util.Rational;
104 Range<Rational> negativeOneTenthPositiveOneTenth =
105 new Range<Rational>(new Rational(-1, 10), new Rational(1, 10));
106 Range<Rational> negativeOneTenthPositiveOneTenth2 =
107 Range.create(new Rational(-1, 10), new Rational(1, 10));
130 Range<Rational> negativeOneTenthPositiveOneTenth =
131 new Range<Rational>(ne
[all...]
H A DRationalTest.java20 import android.util.Rational;
31 import static android.util.Rational.*;
43 private static final Rational UNIT = new Rational(1, 1);
50 assertEquals(1, Rational.gcd(1, 2));
51 assertEquals(1, Rational.gcd(2, 3));
52 assertEquals(78, Rational.gcd(5*78, 7*78));
53 assertEquals(1, Rational.gcd(-1, 2));
54 assertEquals(1, Rational.gcd(-2, 3));
61 Rational
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifInterface.java1302 public Rational getTagRationalValue(int tagId, int ifdId) {
1303 Rational[] l = getTagRationalValues(tagId, ifdId);
1307 return new Rational(l[0]);
1313 public Rational getTagRationalValue(int tagId) {
1378 public Rational[] getTagRationalValues(int tagId, int ifdId) {
1389 public Rational[] getTagRationalValues(int tagId) {
1909 public static double convertLatOrLongToDouble(Rational[] coordinate, String reference) {
1933 Rational[] latitude = getTagRationalValues(TAG_GPS_LATITUDE);
1935 Rational[] longitude = getTagRationalValues(TAG_GPS_LONGITUDE);
2018 t = buildTag(TAG_GPS_TIME_STAMP, new Rational[] {
[all...]
H A DExifModifier.java173 Rational v = tag.getRational(i);
H A DExifParser.java699 Rational value[] = new Rational[tag.getComponentCount()];
723 Rational value[] = new Rational[tag.getComponentCount()];
853 protected Rational readUnsignedRational() throws IOException {
856 return new Rational(nomi, denomi);
869 protected Rational readRational() throws IOException {
872 return new Rational(nomi, denomi);
H A DExifTag.java350 * Sets Rational values into this tag. This method should be used for tags
361 * @see Rational
363 public boolean setValue(Rational[] value) {
382 * Sets a Rational value into this tag. This method should be used for tags
392 * @see Rational
394 public boolean setValue(Rational value) {
395 return setValue(new Rational[] {
468 } else if (obj instanceof Rational) {
469 return setValue((Rational) obj);
470 } else if (obj instanceof Rational[]) {
[all...]
H A DOrderedDataOutputStream.java51 public OrderedDataOutputStream writeRational(Rational rational) throws IOException {

Completed in 389 milliseconds

12