OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:sourceWidth
(Results
1 - 4
of
4
) sorted by null
/frameworks/base/policy/src/com/android/internal/policy/impl/
IconUtilities.java
130
int
sourceWidth
= icon.getIntrinsicWidth();
133
if (
sourceWidth
> 0 &&
sourceWidth
> 0) {
135
if (width <
sourceWidth
|| height < sourceHeight) {
137
final float ratio = (float)
sourceWidth
/ sourceHeight;
138
if (
sourceWidth
> sourceHeight) {
140
} else if (sourceHeight >
sourceWidth
) {
143
} else if (
sourceWidth
< width && sourceHeight < height) {
145
width =
sourceWidth
;
/frameworks/base/opengl/tests/hwc/
hwcStress.cpp
463
int
sourceWidth
= layer->sourceCrop.right
467
if (((layer->displayFrame.left +
sourceWidth
) <= width)
470
+
sourceWidth
;
/packages/apps/Launcher2/src/com/android/launcher2/
Utilities.java
73
int
sourceWidth
= icon.getWidth();
75
if (
sourceWidth
> textureWidth && sourceHeight > textureHeight) {
78
(
sourceWidth
- textureWidth) / 2,
81
} else if (
sourceWidth
== textureWidth && sourceHeight == textureHeight) {
114
int
sourceWidth
= icon.getIntrinsicWidth();
117
if (
sourceWidth
> 0 && sourceHeight > 0) {
119
if (width <
sourceWidth
|| height < sourceHeight) {
121
final float ratio = (float)
sourceWidth
/ sourceHeight;
122
if (
sourceWidth
> sourceHeight) {
124
} else if (sourceHeight >
sourceWidth
) {
[
all
...]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
ImageUtils.java
492
int
sourceWidth
= source.getWidth();
494
int destWidth = Math.max(1, (int) (xScale *
sourceWidth
));
505
g2.drawImage(source, 0, 0, destWidth, destHeight, 0, 0,
sourceWidth
, sourceHeight, null);
Completed in 187 milliseconds