/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
RationalTest.java | 20 import android.hardware.camera2.Rational; 34 Rational r = new Rational(1, 2); 39 r = new Rational(-1, 2); 44 r = new Rational(1, -2); 49 r = new Rational(-1, -2); 54 r = new Rational(1, 0); 59 r = new Rational(-1, 0); 64 r = new Rational(0, 0); 71 Rational r = new Rational(1, 2) [all...] |
CameraMetadataTest.java | 26 import android.hardware.camera2.Rational; 266 // rational (single) 267 checkKeyGetAndSet("android.sensor.baseGainFactor", Rational.class, new Rational(1, 2)); 311 // rational (n) -- in particular rational x 9 312 checkKeyGetAndSetArray("android.sensor.calibrationTransform1", Rational[].class, 313 new Rational[] { 314 new Rational(1, 2), new Rational(3, 4), new Rational(5, 6) [all...] |
/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 | 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/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/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/Mms/src/com/android/mms/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...] |
/frameworks/base/core/java/android/hardware/camera2/ |
Rational.java | 19 * The rational data type used by CameraMetadata keys. Contains a pair of ints representing the 20 * numerator and denominator of a Rational number. This type is immutable. 22 public final class Rational { 27 * <p>Create a Rational with a given numerator and denominator.</p> 32 * <p>A rational value with a 0-denominator may be constructed, but will have similar semantics 35 * @param numerator the numerator of the rational 36 * @param denominator the denominator of the rational 38 public Rational(int numerator, int denominator) { 50 * Gets the numerator of the rational. 60 * Gets the denominator of the rational [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...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_abstract_numbers.py | 5 from numbers import Complex, Real, Rational, Integral 30 self.assertFalse(issubclass(float, Rational))
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_abstract_numbers.py | 5 from numbers import Complex, Real, Rational, Integral 30 self.assertFalse(issubclass(float, Rational))
|
/frameworks/native/opengl/tests/hwc/ |
hwcCommit.cpp | 204 class Rational { 206 Rational(void) : _n(0), _d(1) {} 207 Rational(uint32_t n, uint32_t d) : _n(n), _d(d) {} 212 bool operator==(const Rational& other) const; 213 bool operator!=(const Rational& other) const { return !(*this == other); } 214 bool operator<(const Rational& other) const; 215 bool operator>(const Rational& other) const { 219 Rational& lower, Rational& upper); 263 Rational hScale [all...] |
/system/media/camera/include/system/ |
camera_metadata_tags.h | 110 ANDROID_COLOR_CORRECTION_TRANSFORM, // rational[] | public 137 ANDROID_CONTROL_AE_COMPENSATION_STEP, // rational | public 265 ANDROID_SENSOR_BASE_GAIN_FACTOR, // rational | public 267 ANDROID_SENSOR_CALIBRATION_TRANSFORM1, // rational[] | system 268 ANDROID_SENSOR_CALIBRATION_TRANSFORM2, // rational[] | system 269 ANDROID_SENSOR_COLOR_TRANSFORM1, // rational[] | system 270 ANDROID_SENSOR_COLOR_TRANSFORM2, // rational[] | system 271 ANDROID_SENSOR_FORWARD_MATRIX1, // rational[] | system 272 ANDROID_SENSOR_FORWARD_MATRIX2, // rational[] | system 310 ANDROID_STATISTICS_PREDICTED_COLOR_TRANSFORM, // rational[] | publi [all...] |
/pdk/apps/CameraITS/service/src/com/android/camera2/its/ |
ItsSerializer.java | 22 import android.hardware.camera2.Rational; 64 } else if (keyType == Rational.class) { 65 CameraMetadata.Key<Rational> key2 = (CameraMetadata.Key<Rational>)keyObj; 107 } else if (elmtType == Rational.class) { 108 CameraMetadata.Key<Rational[]> key2 = (CameraMetadata.Key<Rational[]>)keyObj; 249 } else if (elmtType == Rational.class) { 251 Array.set(val, i, new Rational( 289 } else if (keyType == Rational.class) [all...] |