Searched refs:SizeF (Results 1 - 8 of 8) sorted by relevance

/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableSizeF.java21 import android.util.SizeF;
29 * Marshal {@link SizeF} to/from {@code TYPE_FLOAT}
31 public class MarshalQueryableSizeF implements MarshalQueryable<SizeF> {
35 private class MarshalerSizeF extends Marshaler<SizeF> {
37 protected MarshalerSizeF(TypeReference<SizeF> typeReference, int nativeType) {
42 public void marshal(SizeF value, ByteBuffer buffer) {
48 public SizeF unmarshal(ByteBuffer buffer) {
52 return new SizeF(width, height);
62 public Marshaler<SizeF> createMarshaler(
63 TypeReference<SizeF> managedTyp
[all...]
/frameworks/base/core/java/android/util/
H A DSizeF.java29 public final class SizeF { class
31 * Create a new immutable SizeF instance.
42 public SizeF(final float width, final float height) { method in class:SizeF
82 if (obj instanceof SizeF) {
83 final SizeF other = (SizeF) obj;
100 throw new NumberFormatException("Invalid SizeF: \"" + s + "\"");
110 * For any {@code SizeF s}: {@code SizeF.parseSizeF(s.toString()).equals(s)}.
115 * "<i>width</i>{@code *}<i>height</i>" {@code => new SizeF(widt
[all...]
/frameworks/base/core/java/android/os/
H A DBundle.java21 import android.util.SizeF;
352 * Inserts a SizeF value into the mapping of this Bundle, replacing
356 * @param value a SizeF object, or null
358 public void putSizeF(String key, SizeF value) {
762 public SizeF getSizeF(String key) {
766 return (SizeF) o;
768 typeWarning(key, o, "SizeF", e);
H A DParcel.java23 import android.util.SizeF;
689 * Flatten a SizeF into the parcel at the current dataPosition(),
692 public final void writeSizeF(SizeF val) {
1322 } else if (v instanceof SizeF) {
1324 writeSizeF((SizeF) v);
1744 * Read a SizeF from the parcel at the current dataPosition().
1746 public final SizeF readSizeF() {
1749 return new SizeF(width, height);
/frameworks/base/core/java/android/hardware/camera2/
H A DCameraCharacteristics.java1828 public static final Key<android.util.SizeF> SENSOR_INFO_PHYSICAL_SIZE =
1829 new Key<android.util.SizeF>("android.sensor.info.physicalSize", android.util.SizeF.class);
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DParameterUtils.java33 import android.util.SizeF;
715 * @return {@link SizeF} with width/height being the component-wise zoom ratio
720 private static SizeF getZoomRatio(Size activeArraySize, Size cropSize) {
729 return new SizeF(zoomRatioWidth, zoomRatioHeight);
H A DLegacyMetadataMapper.java40 import android.util.SizeF;
927 m.set(SENSOR_INFO_PHYSICAL_SIZE, new SizeF(width, height)); // in mm
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DCameraMetadataTest.java24 import android.util.SizeF;
672 new SizeF(123f, 456f),
677 new SizeF[] {
678 new SizeF(123f, 456f),
679 new SizeF(1.234f, 4.567f),
680 new SizeF(999.0f, 555.0f)

Completed in 1813 milliseconds