OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:targetHeight
(Results
1 - 6
of
6
) sorted by null
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
CameraPreview.java
97
int
targetHeight
= h;
103
if (Math.abs(size.height -
targetHeight
) < minDiff) {
105
minDiff = Math.abs(size.height -
targetHeight
);
113
if (Math.abs(size.height -
targetHeight
) < minDiff) {
115
minDiff = Math.abs(size.height -
targetHeight
);
/packages/apps/Gallery3D/src/com/cooliris/media/
Util.java
66
public static Bitmap transform(Matrix scaler, Bitmap source, int targetWidth, int
targetHeight
, boolean scaleUp) {
68
int deltaY = source.getHeight() -
targetHeight
;
76
Bitmap b2 = Bitmap.createBitmap(targetWidth,
targetHeight
, Bitmap.Config.ARGB_8888);
82
+ Math.min(
targetHeight
, source.getHeight()));
84
int dstY = (
targetHeight
- src.height()) / 2;
85
Rect dst = new Rect(dstX, dstY, targetWidth - dstX,
targetHeight
- dstY);
93
float viewAspect = (float) targetWidth /
targetHeight
;
96
float scale =
targetHeight
/ bitmapHeightF;
120
int dy1 = Math.max(0, b1.getHeight() -
targetHeight
);
122
Bitmap b2 = Bitmap.createBitmap(b1, dx1 / 2, dy1 / 2, targetWidth,
targetHeight
);
[
all
...]
/frameworks/base/media/java/android/media/
ThumbnailUtils.java
339
int
targetHeight
,
345
int deltaY = source.getHeight() -
targetHeight
;
353
Bitmap b2 = Bitmap.createBitmap(targetWidth,
targetHeight
,
363
deltaYHalf + Math.min(
targetHeight
, source.getHeight()));
365
int dstY = (
targetHeight
- src.height()) / 2;
370
targetHeight
- dstY);
381
float viewAspect = (float) targetWidth /
targetHeight
;
384
float scale =
targetHeight
/ bitmapHeightF;
413
int dy1 = Math.max(0, b1.getHeight() -
targetHeight
);
420
targetHeight
);
[
all
...]
/packages/apps/Gallery/src/com/android/camera/
Util.java
153
int
targetHeight
,
157
int deltaY = source.getHeight() -
targetHeight
;
165
Bitmap b2 = Bitmap.createBitmap(targetWidth,
targetHeight
,
175
deltaYHalf + Math.min(
targetHeight
, source.getHeight()));
177
int dstY = (
targetHeight
- src.height()) / 2;
182
targetHeight
- dstY);
193
float viewAspect = (float) targetWidth /
targetHeight
;
196
float scale =
targetHeight
/ bitmapHeightF;
225
int dy1 = Math.max(0, b1.getHeight() -
targetHeight
);
232
targetHeight
);
[
all
...]
/frameworks/base/core/java/com/android/internal/widget/
SlidingTab.java
341
final int
targetHeight
= targetDrawable.getIntrinsicHeight();
352
final int targetTop = (parentHeight -
targetHeight
) / 2;
353
final int targetBottom = targetTop +
targetHeight
;
373
final int top = (int) (THRESHOLD * parentHeight) + handleHeight / 2 -
targetHeight
;
378
target.layout(targetLeft, top, targetRight, top +
targetHeight
);
383
target.layout(targetLeft, bottom, targetRight, bottom +
targetHeight
);
[
all
...]
/packages/apps/Camera/src/com/android/camera/
Camera.java
[
all
...]
Completed in 173 milliseconds