Home
last modified time | relevance | path

Searched refs:longSide (Results 1 – 6 of 6) sorted by relevance

/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoSource.java60 InputStream getStream(int longSide) { in getStream() argument
61 return PhotoSource.this.getStream(this, longSide); in getStream()
129 public Bitmap next(BitmapFactory.Options options, int longSide, int shortSide) { in next() argument
130 log(TAG, "decoding a picasa resource to " + longSide + ", " + shortSide); in next()
143 image = load(imageData, options, longSide, shortSide); in next()
153 options, longSide, shortSide); in next()
159 public Bitmap load(ImageData data, BitmapFactory.Options options, int longSide, int shortSide) { in load() argument
160 log(TAG, "decoding photo resource to " + longSide + ", " + shortSide); in load()
161 InputStream is = data.getStream(longSide); in load()
176 float insideRatio = Math.max((float) longSide / (float) rawLongSide, in load()
[all …]
DPhotoSourcePlexor.java70 protected InputStream getStream(ImageData data, int longSide) { in getStream() argument
71 return data.getStream(longSide); in getStream()
DPicasaSource.java433 protected InputStream getStream(ImageData data, int longSide) { in getStream() argument
442 ((2 * longSide) <= mDisplayLongSide)) { in getStream()
DStockSource.java83 protected InputStream getStream(ImageData data, int longSide) { in getStream() argument
DLocalSource.java243 protected InputStream getStream(ImageData data, int longSide) { in getStream() argument
/packages/apps/Camera/src/com/android/camera/
DPreviewFrameLayout.java99 int longSide = (widthLonger ? previewWidth : previewHeight); in onMeasure() local
101 if (longSide > shortSide * mAspectRatio) { in onMeasure()
102 longSide = (int) ((double) shortSide * mAspectRatio); in onMeasure()
104 shortSide = (int) ((double) longSide / mAspectRatio); in onMeasure()
107 previewWidth = longSide; in onMeasure()
111 previewHeight = longSide; in onMeasure()