Home
last modified time | relevance | path

Searched refs:photoWidth (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/editor/
DPhotoEditorView.java152 final int photoHeight, photoWidth; in adjustDimensions()
155 photoWidth = (int) (photoHeight * mLandscapePhotoRatio); in adjustDimensions()
158 photoWidth = getWidth(); in adjustDimensions()
159 photoHeight = (int) (photoWidth / mPortraitPhotoRatio); in adjustDimensions()
163 layoutParams.width = photoWidth; in adjustDimensions()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java468 int photoWidth = options.outWidth; in applyFrame() local
481 photo.setTag(R.id.photo_width, Integer.valueOf(photoWidth)); in applyFrame()
715 float photoWidth = photo.getWidth(); in placeOnDeck() local
717 float scale = Math.min(getHeight() / photoHeight, getWidth() / photoWidth); in placeOnDeck()
719 float x = (getWidth() - photoWidth) / 2f; in placeOnDeck()
722 float offset = (((float) mWidth + scale * (photoWidth - 2f * mInset)) / 2f); in placeOnDeck()
926 float photoWidth = photo.getWidth(); in pickUp() local
929 float scale = Math.min(getHeight() / photoHeight, getWidth() / photoWidth); in pickUp()
933 float x = (getWidth() - photoWidth) / 2f; in pickUp()