Home
last modified time | relevance | path

Searched refs:Rational (Results 1 – 25 of 35) sorted by relevance

12

/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifTag.java363 public boolean setValue(Rational[] value) { in setValue()
394 public boolean setValue(Rational value) { in setValue()
395 return setValue(new Rational[] { in setValue()
468 } else if (obj instanceof Rational) { in setValue()
469 return setValue((Rational) obj); in setValue()
470 } else if (obj instanceof Rational[]) { in setValue()
471 return setValue((Rational[]) obj); in setValue()
605 public Rational[] getValueAsRationals() { in getValueAsRationals()
606 if (mValue instanceof Rational[]) { in getValueAsRationals()
607 return (Rational[]) mValue; in getValueAsRationals()
[all …]
DRational.java23 public class Rational { class
34 public Rational(long nominator, long denominator) { in Rational() method in Rational
42 public Rational(Rational r) { in Rational() method in Rational
77 if (obj instanceof Rational) { in equals()
78 Rational data = (Rational) obj; in equals()
DExifParser.java703 Rational value[] = new Rational[tag.getComponentCount()]; in readFullTagValue()
727 Rational value[] = new Rational[tag.getComponentCount()]; in readFullTagValue()
857 protected Rational readUnsignedRational() throws IOException { in readUnsignedRational()
860 return new Rational(nomi, denomi); in readUnsignedRational()
873 protected Rational readRational() throws IOException { in readRational()
876 return new Rational(nomi, denomi); in readRational()
DExifInterface.java1302 public Rational getTagRationalValue(int tagId, int ifdId) { in getTagRationalValue()
1303 Rational[] l = getTagRationalValues(tagId, ifdId); in getTagRationalValue()
1307 return new Rational(l[0]); in getTagRationalValue()
1313 public Rational getTagRationalValue(int tagId) { in getTagRationalValue()
1378 public Rational[] getTagRationalValues(int tagId, int ifdId) { in getTagRationalValues()
1389 public Rational[] getTagRationalValues(int tagId) { in getTagRationalValues()
1950 public static double convertLatOrLongToDouble(Rational[] coordinate, String reference) { in convertLatOrLongToDouble()
1974 Rational[] latitude = getTagRationalValues(TAG_GPS_LATITUDE); in getLatLongAsDoubles()
1976 Rational[] longitude = getTagRationalValues(TAG_GPS_LONGITUDE); in getLatLongAsDoubles()
2059 t = buildTag(TAG_GPS_TIME_STAMP, new Rational[] { in addGpsDateTimeStampTag()
[all …]
DOrderedDataOutputStream.java51 public OrderedDataOutputStream writeRational(Rational rational) throws IOException { in writeRational()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifTag.java363 public boolean setValue(Rational[] value) { in setValue()
394 public boolean setValue(Rational value) { in setValue()
395 return setValue(new Rational[] { in setValue()
468 } else if (obj instanceof Rational) { in setValue()
469 return setValue((Rational) obj); in setValue()
470 } else if (obj instanceof Rational[]) { in setValue()
471 return setValue((Rational[]) obj); in setValue()
605 public Rational[] getValueAsRationals() { in getValueAsRationals()
606 if (mValue instanceof Rational[]) { in getValueAsRationals()
607 return (Rational[]) mValue; in getValueAsRationals()
[all …]
DRational.java23 public class Rational { class
34 public Rational(long nominator, long denominator) { in Rational() method in Rational
42 public Rational(Rational r) { in Rational() method in Rational
77 if (obj instanceof Rational) { in equals()
78 Rational data = (Rational) obj; in equals()
DExifParser.java699 Rational value[] = new Rational[tag.getComponentCount()]; in readFullTagValue()
723 Rational value[] = new Rational[tag.getComponentCount()]; in readFullTagValue()
853 protected Rational readUnsignedRational() throws IOException { in readUnsignedRational()
856 return new Rational(nomi, denomi); in readUnsignedRational()
869 protected Rational readRational() throws IOException { in readRational()
872 return new Rational(nomi, denomi); in readRational()
DExifInterface.java1302 public Rational getTagRationalValue(int tagId, int ifdId) { in getTagRationalValue()
1303 Rational[] l = getTagRationalValues(tagId, ifdId); in getTagRationalValue()
1307 return new Rational(l[0]); in getTagRationalValue()
1313 public Rational getTagRationalValue(int tagId) { in getTagRationalValue()
1378 public Rational[] getTagRationalValues(int tagId, int ifdId) { in getTagRationalValues()
1389 public Rational[] getTagRationalValues(int tagId) { in getTagRationalValues()
1909 public static double convertLatOrLongToDouble(Rational[] coordinate, String reference) { in convertLatOrLongToDouble()
1933 Rational[] latitude = getTagRationalValues(TAG_GPS_LATITUDE); in getLatLongAsDoubles()
1935 Rational[] longitude = getTagRationalValues(TAG_GPS_LONGITUDE); in getLatLongAsDoubles()
2018 t = buildTag(TAG_GPS_TIME_STAMP, new Rational[] { in addGpsDateTimeStampTag()
[all …]
DOrderedDataOutputStream.java51 public OrderedDataOutputStream writeRational(Rational rational) throws IOException { in writeRational()
/packages/apps/Camera2/src/com/android/camera/exif/
DExifTag.java363 public boolean setValue(Rational[] value) { in setValue()
394 public boolean setValue(Rational value) { in setValue()
395 return setValue(new Rational[] { in setValue()
468 } else if (obj instanceof Rational) { in setValue()
469 return setValue((Rational) obj); in setValue()
470 } else if (obj instanceof Rational[]) { in setValue()
471 return setValue((Rational[]) obj); in setValue()
605 public Rational[] getValueAsRationals() { in getValueAsRationals()
606 if (mValue instanceof Rational[]) { in getValueAsRationals()
607 return (Rational[]) mValue; in getValueAsRationals()
[all …]
DRational.java24 public class Rational { class
35 public Rational(long numerator, long denominator) { in Rational() method in Rational
43 public Rational(Rational r) { in Rational() method in Rational
78 if (obj instanceof Rational) { in equals()
79 Rational data = (Rational) obj; in equals()
DExifParser.java699 Rational value[] = new Rational[tag.getComponentCount()]; in readFullTagValue()
723 Rational value[] = new Rational[tag.getComponentCount()]; in readFullTagValue()
853 protected Rational readUnsignedRational() throws IOException { in readUnsignedRational()
856 return new Rational(nomi, denomi); in readUnsignedRational()
869 protected Rational readRational() throws IOException { in readRational()
872 return new Rational(nomi, denomi); in readRational()
DExifInterface.java1281 public Rational getTagRationalValue(int tagId, int ifdId) { in getTagRationalValue()
1282 Rational[] l = getTagRationalValues(tagId, ifdId); in getTagRationalValue()
1286 return new Rational(l[0]); in getTagRationalValue()
1292 public Rational getTagRationalValue(int tagId) { in getTagRationalValue()
1357 public Rational[] getTagRationalValues(int tagId, int ifdId) { in getTagRationalValues()
1368 public Rational[] getTagRationalValues(int tagId) { in getTagRationalValues()
1888 public static double convertLatOrLongToDouble(Rational[] coordinate, String reference) { in convertLatOrLongToDouble()
1912 Rational[] latitude = getTagRationalValues(TAG_GPS_LATITUDE); in getLatLongAsDoubles()
1914 Rational[] longitude = getTagRationalValues(TAG_GPS_LONGITUDE); in getLatLongAsDoubles()
1997 t = buildTag(TAG_GPS_TIME_STAMP, new Rational[] { in addGpsDateTimeStampTag()
[all …]
DOrderedDataOutputStream.java51 public OrderedDataOutputStream writeRational(Rational rational) throws IOException { in writeRational()
/packages/apps/Camera2/src/com/android/camera/settings/
DResolutionUtil.java25 import com.android.camera.exif.Rational;
58 public static final Rational ASPECT_RATIO_16x9 = new Rational(16, 9);
59 public static final Rational ASPECT_RATIO_4x3 = new Rational(4, 3);
348 public static Rational getAspectRatio(Size size) { in getAspectRatio()
357 return new Rational(numerator, denominator); in getAspectRatio()
360 public static boolean hasSameAspectRatio(Rational ar1, Rational ar2) { in hasSameAspectRatio()
374 public static Size getLargestPictureSize(Rational desiredAspectRatio, List<Size> sizes) { in getLargestPictureSize()
395 Rational aspectRatio = getAspectRatio(size); in getLargestPictureSize()
DResolutionSetting.java24 import com.android.camera.exif.Rational;
68 public void setPictureAspectRatio(CameraId cameraId, Rational aspectRatio) in setPictureAspectRatio()
149 final Rational aspectRatio = ResolutionUtil.ASPECT_RATIO_4x3; in getPictureSize()
182 public Rational getPictureAspectRatio(CameraId cameraId, Facing facing) in getPictureAspectRatio()
185 return new Rational(pictureSize.getWidth(), pictureSize.getHeight()); in getPictureAspectRatio()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
DExifTag.java319 boolean setValue(Rational[] value) { in setValue()
528 private boolean checkOverflowForUnsignedRational(Rational[] value) { in checkOverflowForUnsignedRational()
529 for (Rational v : value) { in checkOverflowForUnsignedRational()
540 private boolean checkOverflowForRational(Rational[] value) { in checkOverflowForRational()
541 for (Rational v : value) { in checkOverflowForRational()
572 } else if (value instanceof Rational[]) { in equals()
573 if (!(tag.value instanceof Rational[])) { in equals()
576 return Arrays.equals((Rational[]) value, (Rational[]) tag.value); in equals()
DRational.java25 public class Rational { class
31 Rational(long nominator, long denominator) { in Rational() method in Rational
54 if (obj instanceof Rational) { in equals()
55 Rational data = (Rational) obj; in equals()
DExifParser.java664 Rational[] value = new Rational[tag.getComponentCount()]; in readFullTagValue()
691 Rational[] value = new Rational[tag.getComponentCount()]; in readFullTagValue()
794 private Rational readUnsignedRational() throws IOException { in readUnsignedRational()
797 return new Rational(nomi, denomi); in readUnsignedRational()
806 private Rational readRational() throws IOException { in readRational()
809 return new Rational(nomi, denomi); in readRational()
/packages/apps/Camera2/src/com/android/camera/widget/
DAspectRatioDialogLayout.java24 import com.android.camera.exif.Rational;
40 private Rational mAspectRatio;
49 public AspectRatioDialogLayout(Context context, Rational defaultAspectRatio) { in AspectRatioDialogLayout()
107 private void setAspectRatio(Rational aspectRatio) { in setAspectRatio()
122 public void onConfirm(Rational chosenAspectRatio); in onConfirm()
/packages/apps/Camera2/src/com/android/camera/util/
DExifUtil.java24 import com.android.camera.exif.Rational;
188 private Rational ratio(Long numerator, Long denominator) {
190 return new Rational(numerator, denominator);
194 private Rational rational(Float value, Long precision) {
196 return new Rational((long) (value * precision), precision);
201 private Rational rational(Double value, Long precision) {
203 return new Rational((long) (value * precision), precision);
/packages/apps/Camera2/src/com/android/camera/app/
DFirstRunDialog.java28 import com.android.camera.exif.Rational;
52 private static final Rational DEFAULT_ASPECT_RATIO = ResolutionUtil.ASPECT_RATIO_4x3;
164 public void onConfirm(Rational aspectRatio) { in promptAspectRatioPreferenceDialog()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DOneCameraCharacteristicsImpl.java29 import android.util.Rational;
233 Rational compensationStep = mCameraCharacteristics.get( in getExposureCompensationStep()
/packages/apps/Camera2/src/com/android/camera/captureintent/state/
DStateStartingPreview.java34 import com.android.camera.exif.Rational;
165 final Rational pictureAspectRatio = in onEnter()

12