Home
last modified time | relevance | path

Searched refs:aspectRatio (Results 1 – 25 of 26) sorted by relevance

12

/external/setupdesign/main/src/com/google/android/setupdesign/view/
DIllustrationVideoView.java67 private float aspectRatio = 1.0f; // initial guess until we know field in IllustrationVideoView
133 if (height < width * aspectRatio) { in onMeasure()
135 width = (int) (height / aspectRatio); in onMeasure()
138 height = (int) (width * aspectRatio); in onMeasure()
386 float aspectRatio = 0.0f; in onPrepared() local
388 aspectRatio = (float) mp.getVideoHeight() / mp.getVideoWidth(); in onPrepared()
392 if (Float.compare(this.aspectRatio, aspectRatio) != 0) { in onPrepared()
393 this.aspectRatio = aspectRatio; in onPrepared()
442 return aspectRatio; in getAspectRatio()
DIllustration.java52 private float aspectRatio = 0.0f; field in Illustration
80 aspectRatio = a.getFloat(R.styleable.SudIllustration_sudAspectRatio, 0.0f); in init()
126 public void setAspectRatio(float aspectRatio) { in setAspectRatio() argument
127 this.aspectRatio = aspectRatio; in setAspectRatio()
140 if (aspectRatio != 0.0f) { in onMeasure()
142 int illustrationHeight = (int) (parentWidth / aspectRatio); in onMeasure()
162 if (aspectRatio != 0f) { in onLayout()
/external/skqp/src/core/
DSkRTree.cpp10 SkRTree::SkRTree(SkScalar aspectRatio) in SkRTree() argument
11 : fCount(0), fAspectRatio(isfinite(aspectRatio) ? aspectRatio : 1) {} in SkRTree()
64 int SkRTree::CountNodes(int branches, SkScalar aspectRatio) { in CountNodes() argument
78 int numStrips = SkScalarCeilToInt(SkScalarSqrt(SkIntToScalar(numBranches) / aspectRatio)); in CountNodes()
101 return nodes + CountNodes(nodes, aspectRatio); in CountNodes()
DSkBBHFactory.cpp14 SkScalar aspectRatio = bounds.width() / bounds.height(); in operator ()() local
15 return new SkRTree(aspectRatio); in operator ()()
DSkRTree.h40 explicit SkRTree(SkScalar aspectRatio = 1);
84 static int CountNodes(int branches, SkScalar aspectRatio);
/external/libjpeg-turbo/
Drdgif.c388 int colormaplen, aspectRatio; in start_input_gif() local
417 aspectRatio = UCH(hdrbuf[6]); in start_input_gif()
418 if (aspectRatio != 0 && aspectRatio != 49) in start_input_gif()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DAttributeSetBuilderTest.java283 .addAttribute(R.attr.aspectRatio, "1234.456") in getAttributeFloatValue_shouldGetFloatValuesFromAttributes()
352 .addAttribute(R.attr.aspectRatio, "1") in getAttributeNameResource()
356 .isEqualTo(R.attr.aspectRatio); in getAttributeNameResource()
DR.java55 public static final int aspectRatio=0x7f010008; field in R.attr
/external/angle/util/
DMatrix.h43 static Matrix4 perspective(float fov, float aspectRatio, float n, float f);
DMatrix.cpp116 Matrix4 Matrix4::perspective(float fovY, float aspectRatio, float nearZ, float farZ) in perspective() argument
119 const float frustumWidth = frustumHeight * aspectRatio; in perspective()
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/env/
DSize.java107 public final float aspectRatio() { in aspectRatio() method in Size
/external/angle/src/common/
Dmatrix_utils.cpp201 Mat4 Mat4::Perspective(float fov, float aspectRatio, float n, float f) in Perspective() argument
204 const float frustumWidth = frustumHeight * aspectRatio; in Perspective()
Dmatrix_utils.h414 static Mat4 Perspective(float fov, float aspectRatio, float n, float f);
/external/setupdesign/main/src/com/google/android/setupdesign/
DSetupWizardLayout.java279 public void setIllustrationAspectRatio(float aspectRatio) { in setIllustrationAspectRatio() argument
283 illustration.setAspectRatio(aspectRatio); in setIllustrationAspectRatio()
/external/tensorflow/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/
DCamera2BasicFragment.java280 Size aspectRatio) { in chooseOptimalSize() argument
286 int w = aspectRatio.getWidth(); in chooseOptimalSize()
287 int h = aspectRatio.getHeight(); in chooseOptimalSize()
/external/dng_sdk/source/
Ddng_negative.cpp4729 real64 aspectRatio = AspectRatio (); in ConvertToProxy() local
4733 if (aspectRatio >= 1.0) in ConvertToProxy()
4735 newSize.v = Max_int32 (1, Round_int32 (proxySize / aspectRatio)); in ConvertToProxy()
4739 newSize.h = Max_int32 (1, Round_int32 (proxySize * aspectRatio)); in ConvertToProxy()
4749 if (aspectRatio >= 1.0) in ConvertToProxy()
4752 newSize.h = (uint32) sqrt (proxyCount * aspectRatio); in ConvertToProxy()
4754 newSize.v = Max_int32 (1, Round_int32 (newSize.h / aspectRatio)); in ConvertToProxy()
4761 newSize.v = (uint32) sqrt (proxyCount / aspectRatio); in ConvertToProxy()
4763 newSize.h = Max_int32 (1, Round_int32 (newSize.v * aspectRatio)); in ConvertToProxy()
/external/angle/third_party/vulkan_memory_allocator/src/
DCommon.h242 static mat4 Perspective(float fovY, float aspectRatio, float zNear, float zFar) in Perspective()
245 float xScale = yScale / aspectRatio; in Perspective()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowTypedArrayTest.java163 .addAttribute(R.attr.aspectRatio, "1") in shouldEnumeratePresentValues()
DShadowContextTest.java254 .addAttribute(R.attr.aspectRatio, "1.5") in obtainStyledAttributes_shouldExtractAttributesFromAttributeSet()
/external/openscreen/cast/streaming/
Danswer_messages_unittest.cc61 "aspectRatio": "64:27",
390 "aspectRatio": "64:27", in TEST()
/external/doclava/res/assets/templates/assets/
Djquery-resizable.min.js40aspectRatio),aspectRatio:j.aspectRatio,originalElement:this.element,_proportionallyResizeElements:… property
/external/tinyxml2/docs/
Djquery.js53aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:… property
/external/oboe/docs/reference/
Djquery.js53aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:… property
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/video/
DMediaCodecVideoRenderer.java1317 float aspectRatio = (float) formatShortEdgePx / formatLongEdgePx; in getCodecMaxSize() local
1319 int shortEdgePx = (int) (longEdgePx * aspectRatio); in getCodecMaxSize()
/external/doclava/res/assets/templates-sdk/assets/js/
Dandroid_3p-bundle.js2670aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:nu… property

12