HomeSort by relevance Sort by last modified time
    Searched refs:SizeF (Results 1 - 25 of 41) sorted by null

1 2

  /external/libmojo/ui/gfx/geometry/
size_conversions.h 13 // Returns a Size with each component from the input SizeF floored.
14 GFX_EXPORT Size ToFlooredSize(const SizeF& size);
16 // Returns a Size with each component from the input SizeF ceiled.
17 GFX_EXPORT Size ToCeiledSize(const SizeF& size);
19 // Returns a Size with each component from the input SizeF rounded.
20 GFX_EXPORT Size ToRoundedSize(const SizeF& size);
size_f.cc 11 float SizeF::GetArea() const {
15 void SizeF::Enlarge(float grow_width, float grow_height) {
19 void SizeF::SetToMin(const SizeF& other) {
24 void SizeF::SetToMax(const SizeF& other) {
29 std::string SizeF::ToString() const {
33 SizeF ScaleSize(const SizeF& s, float x_scale, float y_scale) {
34 SizeF scaled_s(s)
    [all...]
size_f.h 23 class GFX_EXPORT SizeF {
25 constexpr SizeF() : width_(0.f), height_(0.f) {}
26 constexpr SizeF(float width, float height)
29 constexpr explicit SizeF(const Size& size)
30 : SizeF(static_cast<float>(size.width()),
48 void SetToMin(const SizeF& other);
49 void SetToMax(const SizeF& other);
76 inline bool operator==(const SizeF& lhs, const SizeF& rhs) {
80 inline bool operator!=(const SizeF& lhs, const SizeF& rhs)
    [all...]
size_conversions.cc 11 Size ToFlooredSize(const SizeF& size) {
17 Size ToCeiledSize(const SizeF& size) {
23 Size ToRoundedSize(const SizeF& size) {
size.cc 82 return ToCeiledSize(ScaleSize(gfx::SizeF(size), x_scale, y_scale));
88 return ToCeiledSize(ScaleSize(gfx::SizeF(size), scale, scale));
94 return ToFlooredSize(ScaleSize(gfx::SizeF(size), x_scale, y_scale));
100 return ToFlooredSize(ScaleSize(gfx::SizeF(size), scale, scale));
106 return ToRoundedSize(ScaleSize(gfx::SizeF(size), x_scale, y_scale));
112 return ToRoundedSize(ScaleSize(gfx::SizeF(size), scale, scale));
rect_f.h 32 constexpr explicit RectF(const SizeF& size) : size_(size) {}
33 constexpr RectF(const PointF& origin, const SizeF& size)
63 constexpr const SizeF& size() const { return size_; }
64 void set_size(const SizeF& size) { size_ = size; }
150 void ClampToCenteredSize(const SizeF& size);
189 SizeF size_;
  /cts/tests/tests/util/src/android/util/cts/
SizeTest.java 24 import android.util.SizeF;
38 SizeF sizeF = new SizeF(100, 200);
39 assertEquals(100, sizeF.getWidth(), 0f);
40 assertEquals(200, sizeF.getHeight(), 0f);
52 assertEquals(new SizeF(9999, 9999), SizeF.parseSizeF("9999x9999"));
57 SizeF.parseSizeF("2by4");
62 assertEquals(new SizeF(100f, 200f), SizeF.parseSizeF("100*200"))
    [all...]
  /frameworks/base/core/java/android/hardware/camera2/marshal/impl/
MarshalQueryableSizeF.java 21 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> managedType, int nativeType)
    [all...]
  /frameworks/base/core/java/android/util/
SizeF.java 29 public final class SizeF {
31 * Create a new immutable SizeF instance.
42 public SizeF(final float width, final float height) {
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(width, height)}
    [all...]
  /frameworks/support/core/ktx/src/main/java/androidx/core/util/
Size.kt 22 import android.util.SizeF
50 * Returns "width", the first component of this [SizeF].
59 inline operator fun SizeF.component1() = width
62 * Returns "height", the second component of this [SizeF].
71 inline operator fun SizeF.component2() = height
  /frameworks/support/core/ktx/src/androidTest/java/androidx/core/util/
SizeTest.kt 21 import android.util.SizeF
34 val (w, h) = SizeF(1920.0f, 1080.0f)
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/gdiplus/
gdiplustypes.h 89 typedef struct SizeF {
94 SizeF(): Width(0.0f), Height(0.0f) {}
95 SizeF(REAL width, REAL height): Width(width), Height(height) {}
96 SizeF(const SizeF& size): Width(size.Width), Height(size.Height) {}
101 BOOL Equals(const SizeF& size) const {
104 SizeF operator+(const SizeF& size) const {
105 return SizeF(Width + size.Width, Height + size.Height);
107 SizeF operator-(const SizeF& size) const
    [all...]
gdiplusgpstubs.h 34 typedef SizeF GpSizeF;
  /external/libmojo/ui/gfx/geometry/mojo/
geometry_struct_traits.h 110 struct StructTraits<gfx::mojom::SizeFDataView, gfx::SizeF> {
111 static float width(const gfx::SizeF& p) { return p.width(); }
112 static float height(const gfx::SizeF& p) { return p.height(); }
113 static bool Read(gfx::mojom::SizeFDataView data, gfx::SizeF* out) {
geometry_struct_traits_unittest.cc 43 void EchoSizeF(const SizeF& s, EchoSizeFCallback callback) override {
113 TEST_F(GeometryStructTraitsTest, SizeF) {
116 gfx::SizeF input(width, height);
118 gfx::SizeF output;
  /frameworks/support/core/ktx/src/main/java/androidx/core/os/
Bundle.kt 24 import android.util.SizeF
95 } else if (Build.VERSION.SDK_INT >= 21 && value is SizeF) {
  /frameworks/support/core/ktx/src/androidTest/java/androidx/core/os/
BundleTest.kt 25 import android.util.SizeF
121 val sizeFValue = SizeF(1f, 1f)
125 "sizeF" to sizeFValue
129 assertSame(sizeFValue, bundle["sizeF"])
  /packages/apps/DevCamera/src/com/android/devcamera/
CameraInfoCache.java 27 import android.util.SizeF;
187 SizeF physicalSize =
190 physicalSize = new SizeF(6.32f, 4.69f); // mm, default from Nexus 6P
CameraDeviceReport.java 34 import android.util.SizeF;
95 SizeF size3 = p.get(CameraCharacteristics.SENSOR_INFO_PHYSICAL_SIZE);
  /frameworks/base/core/java/android/os/
Bundle.java 22 import android.util.SizeF;
519 * Inserts a SizeF value into the mapping of this Bundle, replacing
523 * @param value a SizeF object, or null
525 public void putSizeF(@Nullable String key, @Nullable SizeF value) {
896 public SizeF getSizeF(@Nullable String key) {
900 return (SizeF) o;
902 typeWarning(key, o, "SizeF", e);
    [all...]
  /frameworks/base/core/java/android/hardware/camera2/legacy/
ParameterUtils.java 31 import android.util.SizeF;
718 * @return {@link SizeF} with width/height being the component-wise zoom ratio
723 private static SizeF getZoomRatio(Size activeArraySize, Size cropSize) {
732 return new SizeF(zoomRatioWidth, zoomRatioHeight);
    [all...]
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
CameraMetadataTest.java 24 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)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
ItsSerializer.java 40 import android.util.SizeF;
89 private static Object serializeSizeF(SizeF size) throws org.json.JSONException {
327 } else if (keyType == SizeF.class) {
328 return new MetadataEntry(keyName, serializeSizeF((SizeF)keyValue));
    [all...]
  /cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
CameraMetadataGetter.java 46 import android.util.SizeF;
264 private static Object serializeSizeF(SizeF size) throws org.json.JSONException {
481 } else if (keyType == SizeF.class) {
482 return new MetadataEntry(keyName, serializeSizeF((SizeF) keyValue));
  /cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
CameraDeviceInfo.java 32 import android.util.SizeF;
107 SizeF size, String protoName) throws Exception {
261 } else if (keyType == SizeF.class) {
262 storeSizeF((SizeF) keyValue, protoName);

Completed in 2958 milliseconds

1 2