Home
last modified time | relevance | path

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

/external/setupdesign/main/src/com/google/android/setupdesign/view/
DIllustrationVideoView.java66 private float aspectRatio = 1.0f; // initial guess until we know field in IllustrationVideoView
115 if (height < width * aspectRatio) { in onMeasure()
117 width = (int) (height / aspectRatio); in onMeasure()
120 height = (int) (width * aspectRatio); in onMeasure()
333 float aspectRatio = 0.0f; in onPrepared() local
335 aspectRatio = (float) mp.getVideoHeight() / mp.getVideoWidth(); in onPrepared()
339 if (Float.compare(this.aspectRatio, aspectRatio) != 0) { in onPrepared()
340 this.aspectRatio = aspectRatio; in onPrepared()
377 return aspectRatio; in getAspectRatio()
DIllustration.java52 private float aspectRatio = 0.0f; field in Illustration
76 aspectRatio = a.getFloat(R.styleable.SudIllustration_sudAspectRatio, 0.0f); in init()
122 public void setAspectRatio(float aspectRatio) { in setAspectRatio() argument
123 this.aspectRatio = aspectRatio; in setAspectRatio()
136 if (aspectRatio != 0.0f) { in onMeasure()
138 int illustrationHeight = (int) (parentWidth / aspectRatio); in onMeasure()
158 if (aspectRatio != 0f) { in onLayout()
/external/skia/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/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/pdfium/fxbarcode/pdf417/
DBC_PDF417Writer.cpp67 int32_t aspectRatio = 4; in Encode() local
70 lineThickness, aspectRatio * lineThickness); in Encode()
88 scale * lineThickness, scale * aspectRatio * lineThickness); in Encode()
/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/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/
DSize.java107 public final float aspectRatio() { in aspectRatio() method in Size
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/env/
DSize.java107 public final float aspectRatio() { in aspectRatio() method in Size
/external/setupdesign/main/src/com/google/android/setupdesign/
DSetupWizardLayout.java273 public void setIllustrationAspectRatio(float aspectRatio) { in setIllustrationAspectRatio() argument
277 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/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/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/epid-sdk/doc/html/
Djquery.js81aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:… property
/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