HomeSort by relevance Sort by last modified time
    Searched refs:heightRatio (Results 1 - 11 of 11) sorted by null

  /frameworks/base/core/tests/coretests/src/android/util/
ScrollViewScenario.java 73 protected ViewFactoryBase(float heightRatio) {
74 mHeightRatio = heightRatio;
97 * @param heightRatio The view's height will be this * the screen height.
99 public Params addTextView(final String text, float heightRatio) {
100 mViewFactories.add(new ViewFactoryBase(heightRatio) {
114 * @param heightRatio The view's height will be this * the screen height.
116 public Params addTextViews(int numViews, String textPrefix, float heightRatio) {
118 addTextView(textPrefix + i, heightRatio);
126 * @param heightRatio The view's height will be this * the screen height.
128 public Params addButton(final String text, float heightRatio) {
    [all...]
  /external/chromium_org/ui/android/java/src/org/chromium/ui/gfx/
BitmapHelper.java 66 final int heightRatio = Math.round((float) height / (float) reqHeight);
72 inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio;
  /frameworks/base/core/java/android/app/backup/
WallpaperBackupHelper.java 155 final double heightRatio = mDesiredMinHeight / options.outHeight;
158 || heightRatio >= MAX_HEIGHT_RATIO
159 || heightRatio <= MIN_HEIGHT_RATIO) {
  /external/chromium_org/third_party/WebKit/Source/devtools/front_end/source_frame/
FontView.js 137 var heightRatio = containerHeight / height;
138 var finalFontSize = Math.floor(WebInspector.FontView._measureFontSize * Math.min(widthRatio, heightRatio)) - 2;
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
CameraVideoActivity.java 688 float heightRatio = mNextPreviewSize.height / (float)mPreviewTexHeight;
690 Log.v(TAG, "startPreview: widthRatio=" + widthRatio + " " + "heightRatio=" +
691 heightRatio);
694 if (heightRatio < widthRatio) {
695 transform.setScale(1, heightRatio / widthRatio);
697 mPreviewTexHeight * (1 - heightRatio / widthRatio) / 2);
699 Log.v(TAG, "startPreview: shrink vertical by " + heightRatio / widthRatio);
702 transform.setScale(widthRatio / heightRatio, 1);
703 transform.postTranslate(mPreviewTexWidth * (1 - widthRatio / heightRatio) / 2, 0);
705 Log.v(TAG, "startPreview: shrink horizontal by " + widthRatio / heightRatio);
    [all...]
  /development/samples/training/ContactsList/src/com/example/android/contactslist/util/
ImageLoader.java 398 final int heightRatio = Math.round((float) height / (float) reqHeight);
403 inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio;
  /external/chromium_org/third_party/WebKit/Source/platform/geometry/
RoundedRect.cpp 190 float heightRatio = static_cast<float>(m_rect.height()) / maxRadiusHeight;
191 m_radii.scale(widthRatio < heightRatio ? widthRatio : heightRatio);
  /frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/
CameraPreviewActivity.java 272 float heightRatio = mNextPreviewSize.height / (float)mPreviewTexHeight;
274 transform.setScale(1, heightRatio/widthRatio);
276 mPreviewTexHeight * (1 - heightRatio/widthRatio)/2);
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
CameraFormatsActivity.java 447 float heightRatio = mNextPreviewSize.height / (float)mPreviewTexHeight;
449 if (heightRatio < widthRatio) {
450 transform.setScale(1, heightRatio/widthRatio);
452 mPreviewTexHeight * (1 - heightRatio/widthRatio)/2);
454 transform.setScale(widthRatio/heightRatio, 1);
455 transform.postTranslate(mPreviewTexWidth * (1 - widthRatio/heightRatio)/2,
  /packages/apps/Contacts/src/com/android/contacts/widget/
MultiShrinkScroller.java 627 final float heightRatio = (float) transparentHeight / getHeight();
629 return 1.0f - Math.max(Math.min(1.0f, heightRatio), 0f);
    [all...]
  /packages/apps/LegacyCamera/src/com/android/camera/panorama/
PanoramaActivity.java     [all...]

Completed in 661 milliseconds