OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:targetWidth
(Results
1 - 5
of
5
) sorted by null
/packages/apps/Gallery3D/src/com/cooliris/media/
Util.java
66
public static Bitmap transform(Matrix scaler, Bitmap source, int
targetWidth
, int targetHeight, boolean scaleUp) {
67
int deltaX = source.getWidth() -
targetWidth
;
76
Bitmap b2 = Bitmap.createBitmap(
targetWidth
, targetHeight, Bitmap.Config.ARGB_8888);
81
Rect src = new Rect(deltaXHalf, deltaYHalf, deltaXHalf + Math.min(
targetWidth
, source.getWidth()), deltaYHalf
83
int dstX = (
targetWidth
- src.width()) / 2;
85
Rect dst = new Rect(dstX, dstY,
targetWidth
- dstX, targetHeight - dstY);
93
float viewAspect = (float)
targetWidth
/ targetHeight;
103
float scale =
targetWidth
/ bitmapWidthF;
119
int dx1 = Math.max(0, b1.getWidth() -
targetWidth
);
122
Bitmap b2 = Bitmap.createBitmap(b1, dx1 / 2, dy1 / 2,
targetWidth
, targetHeight)
[
all
...]
/frameworks/base/media/java/android/media/
ThumbnailUtils.java
338
int
targetWidth
,
344
int deltaX = source.getWidth() -
targetWidth
;
353
Bitmap b2 = Bitmap.createBitmap(
targetWidth
, targetHeight,
362
deltaXHalf + Math.min(
targetWidth
, source.getWidth()),
364
int dstX = (
targetWidth
- src.width()) / 2;
369
targetWidth
- dstX,
381
float viewAspect = (float)
targetWidth
/ targetHeight;
391
float scale =
targetWidth
/ bitmapWidthF;
412
int dx1 = Math.max(0, b1.getWidth() -
targetWidth
);
419
targetWidth
,
[
all
...]
/packages/apps/Gallery/src/com/android/camera/
Util.java
152
int
targetWidth
,
156
int deltaX = source.getWidth() -
targetWidth
;
165
Bitmap b2 = Bitmap.createBitmap(
targetWidth
, targetHeight,
174
deltaXHalf + Math.min(
targetWidth
, source.getWidth()),
176
int dstX = (
targetWidth
- src.width()) / 2;
181
targetWidth
- dstX,
193
float viewAspect = (float)
targetWidth
/ targetHeight;
203
float scale =
targetWidth
/ bitmapWidthF;
224
int dx1 = Math.max(0, b1.getWidth() -
targetWidth
);
231
targetWidth
,
[
all
...]
/frameworks/base/core/java/com/android/internal/widget/
SlidingTab.java
340
final int
targetWidth
= targetDrawable.getIntrinsicWidth();
345
final int leftTarget = (int) (THRESHOLD * parentWidth) -
targetWidth
+ handleWidth / 2;
360
target.layout(leftTarget, targetTop, leftTarget +
targetWidth
, targetBottom);
365
target.layout(rightTarget, targetTop, rightTarget +
targetWidth
, targetBottom);
371
final int targetLeft = (parentWidth -
targetWidth
) / 2;
372
final int targetRight = (parentWidth +
targetWidth
) / 2;
[
all
...]
/external/webkit/WebKit/android/jni/
WebViewCore.cpp
[
all
...]
Completed in 275 milliseconds