Home
last modified time | relevance | path

Searched refs:height (Results 1 – 25 of 114) sorted by relevance

12345

/packages/apps/Launcher/src/com/android/launcher/
DUtilities.java68 int height = sIconHeight; in createIconThumbnail() local
74 painter.setIntrinsicHeight(height); in createIconThumbnail()
86 if (width > 0 && height > 0) { in createIconThumbnail()
87 if (width < iconWidth || height < iconHeight || scale != 1.0f) { in createIconThumbnail()
91 height = (int) (width / ratio); in createIconThumbnail()
93 width = (int) (height * ratio); in createIconThumbnail()
108 final int y = (sIconHeight - height) / 2; in createIconThumbnail()
109 icon.setBounds(x, y, x + width, y + height); in createIconThumbnail()
113 } else if (iconWidth < width && iconHeight < height) { in createIconThumbnail()
120 final int y = (height - iconHeight) / 2; in createIconThumbnail()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DUtilities.java69 static Bitmap centerToFit(Bitmap bitmap, int width, int height, Context context) { in centerToFit() argument
73 if (bitmapWidth < width || bitmapHeight < height) { in centerToFit()
77 bitmapHeight < height ? height : bitmapHeight, Bitmap.Config.RGB_565); in centerToFit()
81 canvas.drawBitmap(bitmap, (width - bitmapWidth) / 2.0f, (height - bitmapHeight) / 2.0f, in centerToFit()
108 int height = sIconHeight; in createIconThumbnail() local
113 painter.setIntrinsicHeight(height); in createIconThumbnail()
126 if (width < iconWidth || height < iconHeight) { in createIconThumbnail()
130 height = (int) (width / ratio); in createIconThumbnail()
132 width = (int) (height * ratio); in createIconThumbnail()
147 final int y = (sIconHeight - height) / 2; in createIconThumbnail()
[all …]
DActivityPicker.java345 int height = mIconHeight; in createIconThumbnail() local
357 painter.setIntrinsicHeight(height); in createIconThumbnail()
360 if (width > 0 && height > 0) { in createIconThumbnail()
361 if (width < iconWidth || height < iconHeight) { in createIconThumbnail()
365 height = (int) (width / ratio); in createIconThumbnail()
367 width = (int) (height * ratio); in createIconThumbnail()
382 final int y = (mIconHeight - height) / 2; in createIconThumbnail()
383 icon.setBounds(x, y, x + width, y + height); in createIconThumbnail()
387 } else if (iconWidth < width && iconHeight < height) { in createIconThumbnail()
394 final int y = (height - iconHeight) / 2; in createIconThumbnail()
/packages/wallpapers/Basic/res/raw/
Dgrass.rs63 void drawNight(int width, int height) {
76 void drawSunrise(int width, int height) {
78 drawRect(0.0f, 0.0f, width, height, 0.0f);
81 void drawNoon(int width, int height) {
83 drawRect(0.0f, 0.0f, width, height, 0.0f);
86 void drawSunset(int width, int height) {
88 drawRect(0.0f, 0.0f, width, height, 0.0f);
216 int height = State->height;
230 drawNight(width, height);
235 drawNight(width, height);
[all …]
Dgalaxy.rs114 void drawSpace(float xOffset, int width, int height) {
119 width, height, 0.0f, 2.0f, 0.0f,
120 0.0f, height, 0.0f, 0.0f, 0.0f);
123 void drawLights(float xOffset, int width, int height) {
140 void drawParticles(float xOffset, float offset, int width, int height) {
190 int height = State->height;
195 drawSpace(x, width, height);
197 drawParticles(x, offset, width, height);
198 drawLights(x, width, height);
Ddistort.rs73 float height = State->glHeight;
79 leaf->y = randf2(-height * 0.5f, height * 0.5f);
95 int height = State->meshHeight;
100 if (y >= height - r) y = height - r - 1;
138 int height = State->meshHeight;
149 int h = height;
181 int height = State->meshHeight;
193 float fh = 1.0f / height;
234 gDrops[0].y = height / 2;
238 for (y=0; y < height; y++) {
[all …]
/packages/apps/Mms/src/com/android/mms/model/
DRegionModel.java31 int width, int height) { in RegionModel() argument
32 this(regionId, DEFAULT_FIT, left, top, width, height); in RegionModel()
36 int width, int height) { in RegionModel() argument
37 this(regionId, fit, left, top, width, height, null); in RegionModel()
41 int width, int height, String bgColor) { in RegionModel() argument
47 mHeight = height; in RegionModel()
128 public void setHeight(int height) { in setHeight() argument
129 mHeight = height; in setHeight()
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DBalloonHint.java141 boolean textBold, int textColor, int width, int height) { in setBalloonConfig() argument
143 setBalloonSize(width, height); in setBalloonConfig()
157 public void setBalloonConfig(Drawable icon, int width, int height) { in setBalloonConfig() argument
159 setBalloonSize(width, height); in setBalloonConfig()
199 int width, int height) { in delayedUpdate() argument
207 + mParentLocationInWindow[1], width, height); in delayedUpdate()
210 locationInParent, width, height); in delayedUpdate()
236 private void setBalloonSize(int width, int height) { in setBalloonSize() argument
239 int heightMeasureSpec = MeasureSpec.makeMeasureSpec(height, in setBalloonSize()
286 int width, int height) { in startTimer() argument
[all …]
/packages/apps/Mms/src/com/android/mms/ui/
DAdaptableSlideViewInterface.java27 void setTextRegion(int left, int top, int width, int height); in setTextRegion() argument
31 void setImageRegion(int left, int top, int width, int height); in setImageRegion() argument
35 void setVideoRegion(int left, int top, int width, int height); in setVideoRegion() argument
43 void onSizeChanged(int width, int height); in onSizeChanged() argument
/packages/apps/Camera/src/com/android/camera/
DHighlightView.java89 float height = mDrawRect.height(); in draw() local
91 mDrawRect.top + (height / 2), in draw()
109 int height = mResizeDrawableDiagonal.getIntrinsicHeight(); in draw() local
116 + (mDrawRect.height() / 2) - d - height / 2; in draw()
247 dy * (mCropRect.height() / r.height())); in handleMotion()
259 float yDelta = dy * (mCropRect.height() / r.height()); in handleMotion()
307 if (dy > 0F && r.height() + 2 * dy > mImageRect.height()) { in growBy()
308 float adjustment = (mImageRect.height() - r.height()) / 2F; in growBy()
325 if (r.height() < heightCap) { in growBy()
326 r.inset(0F, -(heightCap - r.height()) / 2F); in growBy()
[all …]
DEvenlySpacedLayout.java50 int height = 0; in onMeasure() local
57 height = Math.max(height, child.getMeasuredHeight()); in onMeasure()
59 height += child.getMeasuredHeight(); in onMeasure()
64 resolveSize(height, heightMeasureSpec)); in onMeasure()
/packages/apps/Gallery/src/com/android/camera/
DHighlightView.java91 float height = mDrawRect.height(); in draw() local
93 mDrawRect.top + (height / 2), in draw()
111 int height = mResizeDrawableDiagonal.getIntrinsicHeight(); in draw() local
118 + (mDrawRect.height() / 2) - d - height / 2; in draw()
249 dy * (mCropRect.height() / r.height())); in handleMotion()
261 float yDelta = dy * (mCropRect.height() / r.height()); in handleMotion()
309 if (dy > 0F && r.height() + 2 * dy > mImageRect.height()) { in growBy()
310 float adjustment = (mImageRect.height() - r.height()) / 2F; in growBy()
327 if (r.height() < heightCap) { in growBy()
328 r.inset(0F, -(heightCap - r.height()) / 2F); in growBy()
[all …]
DEvenlySpacedLayout.java52 int height = 0; in onMeasure() local
59 height = Math.max(height, child.getMeasuredHeight()); in onMeasure()
61 height += child.getMeasuredHeight(); in onMeasure()
66 resolveSize(height, heightMeasureSpec)); in onMeasure()
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/
DRenderScriptWallpaper.java31 protected abstract T createScene(int width, int height); in createScene() argument
74 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onSurfaceChanged() argument
75 super.onSurfaceChanged(holder, format, width, height); in onSurfaceChanged()
77 mRs.contextSetSurface(width, height, holder.getSurface()); in onSurfaceChanged()
80 mRenderer = createScene(width, height); in onSurfaceChanged()
84 mRenderer.resize(width, height); in onSurfaceChanged()
DRenderScriptScene.java33 public RenderScriptScene(int width, int height) { in RenderScriptScene() argument
35 mHeight = height; in RenderScriptScene()
79 public void resize(int width, int height) { in resize() argument
81 mHeight = height; in resize()
/packages/wallpapers/Basic/src/com/android/wallpaper/
DRenderScriptWallpaper.java30 protected abstract T createScene(int width, int height); in createScene() argument
73 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onSurfaceChanged() argument
74 super.onSurfaceChanged(holder, format, width, height); in onSurfaceChanged()
76 mRs.contextSetSurface(width, height, holder.getSurface()); in onSurfaceChanged()
79 mRenderer = createScene(width, height); in onSurfaceChanged()
83 mRenderer.resize(width, height); in onSurfaceChanged()
DRenderScriptScene.java33 public RenderScriptScene(int width, int height) { in RenderScriptScene() argument
35 mHeight = height; in RenderScriptScene()
79 public void resize(int width, int height) { in resize() argument
81 mHeight = height; in resize()
/packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/
DRenderScriptWallpaper.java32 protected abstract T createScene(int width, int height); in createScene() argument
75 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onSurfaceChanged() argument
76 super.onSurfaceChanged(holder, format, width, height); in onSurfaceChanged()
78 mRs.contextSetSurface(width, height, holder.getSurface()); in onSurfaceChanged()
81 mRenderer = createScene(width, height); in onSurfaceChanged()
85 mRenderer.resize(width, height); in onSurfaceChanged()
DRenderScriptScene.java33 public RenderScriptScene(int width, int height) { in RenderScriptScene() argument
35 mHeight = height; in RenderScriptScene()
79 public void resize(int width, int height) { in resize() argument
81 mHeight = height; in resize()
/packages/wallpapers/Basic/src/com/android/wallpaper/walkaround/
DWalkAroundWallpaper.java137 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onSurfaceChanged() argument
138 super.onSurfaceChanged(holder, format, width, height); in onSurfaceChanged()
175 size.width == metrics.heightPixels && size.height == metrics.widthPixels) || in startPreview()
177 size.width == metrics.widthPixels && size.height == metrics.heightPixels)) { in startPreview()
178 params.setPreviewSize(size.width, size.height); in startPreview()
186 if (size.width >= metrics.widthPixels && size.height >= metrics.heightPixels) { in startPreview()
187 params.setPreviewSize(size.width, size.height); in startPreview()
206 params.setPreviewSize(size.width, size.height); in startPreview()
/packages/wallpapers/Basic/src/com/android/wallpaper/fall/
DFallRS.java97 public FallRS(int width, int height) { in FallRS() argument
98 super(width, height); in FallRS()
127 final int y = worldState.height / 4 + (int)(Math.random() * (worldState.height / 2)); in start()
132 public void resize(int width, int height) { in resize() argument
133 super.resize(width, height); in resize()
136 mWorldState.height = height; in resize()
137 mWorldState.rotate = width > height ? 1 : 0; in resize()
179 final int height = mWidth > mHeight ? mWidth : mHeight; in createMesh() local
182 int hResolution = (int) (MESH_RESOLUTION * height / (float) width); in createMesh()
184 mGlHeight = 2.0f * height / (float) width; in createMesh()
[all …]
/packages/apps/Mms/src/com/android/mms/dom/smil/
DSmilRegionElementImpl.java109 int height = parseRegionLength(getAttribute(HEIGHT_ATTRIBUTE_NAME), false); in getTop() local
110 return bbh - bottom - height; in getTop()
160 final int height = parseRegionLength(getAttribute(HEIGHT_ATTRIBUTE_NAME), false); in getHeight() local
161 return height == 0 ? in getHeight()
163 height; in getHeight()
224 public void setHeight(int height) throws DOMException { in setHeight() argument
225 this.setAttribute(HEIGHT_ATTRIBUTE_NAME, String.valueOf(height) + "px"); in setHeight()
/packages/apps/Settings/src/com/android/settings/
DActivityPicker.java350 int height = mIconHeight; in createIconThumbnail() local
362 painter.setIntrinsicHeight(height); in createIconThumbnail()
365 if (width > 0 && height > 0) { in createIconThumbnail()
366 if (width < iconWidth || height < iconHeight) { in createIconThumbnail()
370 height = (int) (width / ratio); in createIconThumbnail()
372 width = (int) (height * ratio); in createIconThumbnail()
387 final int y = (mIconHeight - height) / 2; in createIconThumbnail()
388 icon.setBounds(x, y, x + width, y + height); in createIconThumbnail()
392 } else if (iconWidth < width && iconHeight < height) { in createIconThumbnail()
399 final int y = (height - iconHeight) / 2; in createIconThumbnail()
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis1/
DVisualization1.java102 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onSurfaceChanged() argument
103 super.onSurfaceChanged(holder, format, width, height); in onSurfaceChanged()
106 mCenterY = height/2.0f; in onSurfaceChanged()
147 final int height = frame.height(); in drawFrame() local
/packages/wallpapers/Basic/src/com/android/wallpaper/galaxy/
DGalaxyRS.java94 GalaxyRS(int width, int height) { in GalaxyRS() argument
95 super(width, height); in GalaxyRS()
161 public void resize(int width, int height) { in resize() argument
162 super.resize(width, height); in resize()
165 mGalaxyState.height = height; in resize()
166 mGalaxyState.scale = width > height ? 1 : 0; in resize()
175 public int height; field in GalaxyRS.GalaxyState
196 mGalaxyState.height = mHeight; in createState()

12345