Home
last modified time | relevance | path

Searched refs:scaleFactor (Results 1 – 7 of 7) sorted by relevance

/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
DBitmapHelper.java34 double scaleFactor = Math.min( in scaleBitmap() local
37 (int) (src.getWidth() * scaleFactor), (int) (src.getHeight() * scaleFactor), false); in scaleBitmap()
40 public static Bitmap scaleBitmap(int scaleFactor, InputStream is) { in scaleBitmap() argument
46 bmOptions.inSampleSize = scaleFactor; in scaleBitmap()
72 int scaleFactor = findScaleFactor(width, height, is); in fetchAndRescaleBitmap() local
73 LogHelper.d(TAG, "Scaling bitmap ", uri, " by factor ", scaleFactor, " to support ", in fetchAndRescaleBitmap()
76 return scaleBitmap(scaleFactor, is); in fetchAndRescaleBitmap()
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
DBitmapUtils.java93 float scaleFactor = (float) maxDimension / width; in getThumbnail() local
95 scaledHeight = (int) (scaleFactor * height); in getThumbnail()
97 float scaleFactor = (float) maxDimension / height; in getThumbnail() local
98 scaledWidth = (int) (scaleFactor * width); in getThumbnail()
/development/samples/CrossCompatibility/src/com/example/android/touchexample/
DTouchExampleView.java73 public void onScale(float scaleFactor) { in onScale() argument
74 mScaleFactor *= scaleFactor; in onScale()
DVersionedGestureDetector.java51 public void onScale(float scaleFactor); in onScale() argument
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DTouchRotateActivity.java128 private void updateAngles(float dx, float dy, float scaleFactor) { in updateAngles() argument
130 mRenderer.mAngleX += dx * scaleFactor; in updateAngles()
131 mRenderer.mAngleY += dy * scaleFactor; in updateAngles()
/development/samples/devbytes/graphics/FoldingLayout/src/com/example/android/foldinglayout/
DFoldingLayout.java372 float scaleFactor = DEPTH_CONSTANT / (DEPTH_CONSTANT + depth); in calculateMatrices()
379 scaledHeight = mFoldDrawHeight * scaleFactor; in calculateMatrices()
381 scaledWidth = mFoldDrawWidth * scaleFactor; in calculateMatrices()
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/
DHdrViewfinderActivity.java237 double scaleFactor = Math.pow(2.f, yDistNorm * ACCELERATION_FACTOR);
241 mOddExposure *= scaleFactor;
243 mEvenExposure *= scaleFactor;