HomeSort by relevance Sort by last modified time
    Searched refs:sourceWidth (Results 1 - 3 of 3) sorted by null

  /frameworks/policies/base/phone/com/android/internal/policy/impl/
IconUtilities.java 124 int sourceWidth = icon.getIntrinsicWidth();
127 if (sourceWidth > 0 && sourceWidth > 0) {
129 if (width < sourceWidth || height < sourceHeight) {
131 final float ratio = (float) sourceWidth / sourceHeight;
132 if (sourceWidth > sourceHeight) {
134 } else if (sourceHeight > sourceWidth) {
137 } else if (sourceWidth < width && sourceHeight < height) {
139 width = sourceWidth;
  /packages/apps/Launcher2/src/com/android/launcher2/
Utilities.java 121 int sourceWidth = icon.getIntrinsicWidth();
124 if (sourceWidth > 0 && sourceWidth > 0) {
126 if (width < sourceWidth || height < sourceHeight) {
128 final float ratio = (float) sourceWidth / sourceHeight;
129 if (sourceWidth > sourceHeight) {
131 } else if (sourceHeight > sourceWidth) {
134 } else if (sourceWidth < width && sourceHeight < height) {
136 width = sourceWidth;
  /packages/apps/Gallery3D/src/com/cooliris/media/
AdaptiveBackgroundTexture.java 92 int sourceWidth = source.getWidth();
96 float fitX = (float) sourceWidth / (float) destWidth;
105 cropWidth = sourceWidth;
114 cropX = (sourceWidth - cropWidth) / 2;

Completed in 233 milliseconds