HomeSort by relevance Sort by last modified time
    Searched refs:heightRatio (Results 1 - 9 of 9) 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...]
  /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) {
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
CameraVideoActivity.java 700 float heightRatio = mNextPreviewSize.height / (float)mPreviewTexHeight;
702 Log.v(TAG, "startPreview: widthRatio=" + widthRatio + " " + "heightRatio=" +
703 heightRatio);
706 if (heightRatio < widthRatio) {
707 transform.setScale(1, heightRatio / widthRatio);
709 mPreviewTexHeight * (1 - heightRatio / widthRatio) / 2);
711 Log.v(TAG, "startPreview: shrink vertical by " + heightRatio / widthRatio);
714 transform.setScale(widthRatio / heightRatio, 1);
715 transform.postTranslate(mPreviewTexWidth * (1 - widthRatio / heightRatio) / 2, 0);
717 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;
  /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);
  /packages/apps/Camera2/src/com/android/camera/data/
GlideFilmstripManager.java 217 double heightRatio = (double) maxSize.height() / original.height();
219 double ratio = widthRatio > heightRatio ? heightRatio : widthRatio;
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
CameraFormatsActivity.java 454 float heightRatio = mNextPreviewSize.height / (float)mPreviewTexHeight;
456 if (heightRatio < widthRatio) {
457 transform.setScale(1, heightRatio/widthRatio);
459 mPreviewTexHeight * (1 - heightRatio/widthRatio)/2);
461 transform.setScale(widthRatio/heightRatio, 1);
462 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 551 milliseconds