/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
Rational.java | 20 * The rational data type of EXIF tag. Contains a pair of longs representing the 21 * numerator and denominator of a Rational number. 23 public class Rational { 29 * Create a Rational with a given numerator and denominator. 34 public Rational(long nominator, long denominator) { 40 * Create a copy of a Rational. 42 public Rational(Rational r) { 48 * Gets the numerator of the rational. 55 * Gets the denominator of the rational [all...] |
OrderedDataOutputStream.java | 51 public OrderedDataOutputStream writeRational(Rational rational) throws IOException { 52 writeInt((int) rational.getNumerator()); 53 writeInt((int) rational.getDenominator());
|
ExifTag.java | 50 * The RATIONAL type of EXIF standard. It consists of two LONGs. The first 350 * 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) [all...] |
/packages/apps/Camera2/src/com/android/camera/exif/ |
Rational.java | 21 * The rational data type of EXIF tag. Contains a pair of longs representing the 22 * numerator and denominator of a Rational number. 24 public class Rational { 30 * Create a Rational with a given numerator and denominator. 35 public Rational(long numerator, long denominator) { 41 * Create a copy of a Rational. 43 public Rational(Rational r) { 49 * Gets the numerator of the rational. 56 * Gets the denominator of the rational [all...] |
OrderedDataOutputStream.java | 51 public OrderedDataOutputStream writeRational(Rational rational) throws IOException { 52 writeInt((int) rational.getNumerator()); 53 writeInt((int) rational.getDenominator());
|
ExifTag.java | 50 * The RATIONAL type of EXIF standard. It consists of two LONGs. The first 350 * 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) [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
Rational.java | 20 * The rational data type of EXIF tag. Contains a pair of longs representing the 21 * numerator and denominator of a Rational number. 23 public class Rational { 29 * Create a Rational with a given numerator and denominator. 34 public Rational(long nominator, long denominator) { 40 * Create a copy of a Rational. 42 public Rational(Rational r) { 48 * Gets the numerator of the rational. 55 * Gets the denominator of the rational [all...] |
OrderedDataOutputStream.java | 51 public OrderedDataOutputStream writeRational(Rational rational) throws IOException { 52 writeInt((int) rational.getNumerator()); 53 writeInt((int) rational.getDenominator());
|
ExifTag.java | 50 * The RATIONAL type of EXIF standard. It consists of two LONGs. The first 350 * 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) [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/ |
Rational.java | 20 * The rational data type of EXIF tag. Contains a pair of longs representing the 21 * numerator and denominator of a Rational number. 23 public class Rational { 29 * Create a Rational with a given numerator and denominator. 34 public Rational(long nominator, long denominator) { 40 * Create a copy of a Rational. 42 public Rational(Rational r) { 48 * Gets the numerator of the rational. 55 * Gets the denominator of the rational [all...] |
OrderedDataOutputStream.java | 51 public OrderedDataOutputStream writeRational(Rational rational) throws IOException { 52 writeInt((int) rational.getNumerator()); 53 writeInt((int) rational.getDenominator());
|
ExifTag.java | 50 * The RATIONAL type of EXIF standard. It consists of two LONGs. The first 350 * 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) [all...] |
/packages/apps/Messaging/src/com/android/messaging/util/exif/ |
Rational.java | 20 * The rational data type of EXIF tag. Contains a pair of longs representing the 21 * numerator and denominator of a Rational number. 23 public class Rational { 29 * Create a Rational with a given numerator and denominator. 34 public Rational(long nominator, long denominator) { 40 * Create a copy of a Rational. 42 public Rational(Rational r) { 48 * Gets the numerator of the rational. 55 * Gets the denominator of the rational [all...] |
OrderedDataOutputStream.java | 51 public OrderedDataOutputStream writeRational(Rational rational) throws IOException { 52 writeInt((int) rational.getNumerator()); 53 writeInt((int) rational.getDenominator());
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
RationalTest.java | 20 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 r = new Rational(1, 2) [all...] |
RangeTest.java | 21 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>(new Rational(-1, 10), new Rational(1, 10)) [all...] |
/cts/tests/tests/util/src/android/util/cts/ |
RationalTest.java | 20 import android.util.Rational; 31 import static android.util.Rational.*; 36 private static final Rational UNIT = new Rational(1, 1); 42 Rational r = new Rational(1, 2); 47 r = new Rational(-1, 2); 52 r = new Rational(1, -2); 57 r = new Rational(-1, -2); 62 r = new Rational(1, 0) [all...] |
RangeTest.java | 21 import android.util.Rational; 97 Range<Rational> negativeOneTenthPositiveOneTenth = 98 new Range<Rational>(new Rational(-1, 10), new Rational(1, 10)); 99 Range<Rational> negativeOneTenthPositiveOneTenth2 = 100 Range.create(new Rational(-1, 10), new Rational(1, 10)); 123 Range<Rational> negativeOneTenthPositiveOneTenth = 124 new Range<Rational>(new Rational(-1, 10), new Rational(1, 10)) [all...] |
/frameworks/base/core/java/android/util/ |
Rational.java | 24 * <p>An immutable data type representation a rational number.</p> 27 * Rational number. </p> 29 public final class Rational extends Number implements Comparable<Rational> { 31 * Constant for the <em>Not-a-Number (NaN)</em> value of the {@code Rational} type. 37 * <p>Equivalent to constructing a new rational with both the numerator and denominator 40 public static final Rational NaN = new Rational(0, 0); 43 * Constant for the positive infinity value of the {@code Rational} type. 45 * <p>Equivalent to constructing a new rational with a positive numerator and a denominato [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
ExifUtil.java | 24 import com.android.camera.exif.Rational; 87 addExifTag(ExifInterface.TAG_GPS_ALTITUDE, rational(altitude, ALTITUDE_PRECISION)); 144 addExifTag(ExifInterface.TAG_SHUTTER_SPEED_VALUE, rational(shutterSpeedValue, SHUTTER_SPEED_VALUE_PRECISION)); 152 addExifTag(ExifInterface.TAG_F_NUMBER, rational(fNumber, F_NUMBER_PRECISION)); 157 addExifTag(ExifInterface.TAG_APERTURE_VALUE, rational(apertureValue, APERTURE_VALUE_PRECISION)); 162 addExifTag(ExifInterface.TAG_FOCAL_LENGTH, rational(focalLength, FOCAL_LENGTH_PRECISION)); 188 private Rational ratio(Long numerator, Long denominator) { 190 return new Rational(numerator, denominator); 194 private Rational rational(Float value, Long precision) [all...] |
/frameworks/base/core/java/android/hardware/camera2/params/ |
ColorSpaceTransform.java | 23 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. */ 47 /** Number of int elements in a rational. */ 50 /** Numerator offset inside a rational (pair). */ 53 /** Denominator offset inside a rational (pair). */ 60 * Create a new immutable {@link ColorSpaceTransform} instance from a {@link Rational} array. 71 public ColorSpaceTransform(Rational[] elements) { 90 * <p>The elements must be stored in a row-major order. Each rational is stored 135 public Rational getElement(int column, int row) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
fractions.py | 4 """Rational, infinite-precision, real numbers.""" 15 Rational = numbers.Rational 44 class Fraction(Rational): 45 """This class implements rational numbers. 48 produce a rational number equivalent to 4/3. Both arguments must 49 be Rational. The numerator defaults to 0 and the denominator 61 - other Rational instances (including integers) 71 Takes a string like '3/2' or '1.5', another Rational instance, a 102 if isinstance(numerator, Rational) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
fractions.py | 4 """Rational, infinite-precision, real numbers.""" 15 Rational = numbers.Rational 44 class Fraction(Rational): 45 """This class implements rational numbers. 48 produce a rational number equivalent to 4/3. Both arguments must 49 be Rational. The numerator defaults to 0 and the denominator 61 - other Rational instances (including integers) 71 Takes a string like '3/2' or '1.5', another Rational instance, a 102 if isinstance(numerator, Rational) [all...] |
/frameworks/base/core/java/android/hardware/camera2/utils/ |
ParamsUtils.java | 23 import android.util.Rational; 112 * Create a {@link Rational} value by approximating the float value as a rational. 119 * @return the rational representation of the float 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) [all...] |
/frameworks/av/media/img_utils/include/img_utils/ |
TagDefinitions.h | 250 RATIONAL, 266 RATIONAL, 274 RATIONAL, 306 RATIONAL, 322 RATIONAL, 330 RATIONAL, 648 RATIONAL, 656 RATIONAL, 766 RATIONAL, 774 RATIONAL, [all...] |