/packages/wallpapers/MusicVisualization/res/raw/ |
D | vu.rs | 35 float scale = 0.0041; 37 matrixScale(mat1, scale, scale, scale); 73 matrixLoadTranslate(mat1, 0.f, -57.0f * scale, 0.f); 75 matrixScale(mat1, scale, scale, scale); 91 matrixScale(mat1, scale, scale, scale);
|
D | many.rs | 35 float scale = 0.0041; 39 matrixScale(mat1, scale, scale, scale); 76 matrixTranslate(mat1, 0.f, -57.0f * scale, 0.f); 78 matrixScale(mat1, scale, scale, scale); 95 matrixScale(mat1, scale, scale, scale); 158 float scale = .008f; 161 matrixScale(mat1, scale, scale / 2048.f, scale);
|
D | waveform.rs | 126 float scale = 0.004165f * (1.0f + 2.f * absf(sinf(radf(yrot)))); 131 matrixScale(mat1, scale, scale, scale);
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | Environment.java | 125 int scale; in onConfigurationChanged() local 129 scale = mScreenWidth; in onConfigurationChanged() 133 scale = mScreenHeight; in onConfigurationChanged() 135 mNormalKeyTextSize = (int) (scale * NORMAL_KEY_TEXT_SIZE_RATIO); in onConfigurationChanged() 136 mFunctionKeyTextSize = (int) (scale * FUNCTION_KEY_TEXT_SIZE_RATIO); in onConfigurationChanged() 137 mNormalBalloonTextSize = (int) (scale * NORMAL_BALLOON_TEXT_SIZE_RATIO); in onConfigurationChanged() 138 mFunctionBalloonTextSize = (int) (scale * FUNCTION_BALLOON_TEXT_SIZE_RATIO); in onConfigurationChanged() 139 mKeyBalloonWidthPlus = (int) (scale * KEY_BALLOON_WIDTH_PLUS_RATIO); in onConfigurationChanged() 140 mKeyBalloonHeightPlus = (int) (scale * KEY_BALLOON_HEIGHT_PLUS_RATIO); in onConfigurationChanged()
|
/packages/wallpapers/Basic/res/raw/ |
D | galaxy.rs | 57 void createParticle(struct Stars_s *star, struct Particles_s *part, float scale) { 81 d = mapf(-4.0f, State->galaxyRadius + 4.0f, 0.0f, scale, d); 85 star->speed = randf2(0.0015f, 0.0025f) * (0.5f + (scale / d)) * 0.8f; 104 float scale = State->galaxyRadius / (State->width * 0.5f); 108 createParticle(star, part, scale); 128 float scale = 512.0f / width; 129 float x = -scale + xOffset - scale * 0.05f; 130 float y = -scale; 132 scale *= 2.0f; 135 x + scale * 1.1f, y, 0.0f, [all …]
|
D | distort.rs | 80 leaf->scale = randf2(0.4f, 0.5f); 313 float s = leaf->scale; 395 leaf->scale = randf2(0.4f, 0.5f); 491 float scale = 1.0f / 10.0f; 504 drawLine(vx, vy, vz, vx + nx * scale, vy + ny * scale, vz + nz * scale);
|
D | grass.rs | 95 float scale = bladeStruct[BLADE_STRUCT_SCALE]; 130 float si = size * scale; 131 float spi = si - scale;
|
/packages/apps/Camera/src/com/android/camera/ |
D | ImageViewTouchBase.java | 274 float scale = Math.min(widthScale, heightScale); in getProperBaseMatrix() local 277 matrix.postScale(scale, scale); in getProperBaseMatrix() 280 (viewWidth - w * scale) / 2F, in getProperBaseMatrix() 281 (viewHeight - h * scale) / 2F); in getProperBaseMatrix() 310 protected void zoomTo(float scale, float centerX, float centerY) { in zoomTo() argument 311 if (scale > mMaxZoom) { in zoomTo() 312 scale = mMaxZoom; in zoomTo() 316 float deltaScale = scale / oldScale; in zoomTo() 323 protected void zoomTo(final float scale, final float centerX, in zoomTo() argument 325 final float incrementPerMs = (scale - getScale()) / durationMs; in zoomTo() [all …]
|
D | Util.java | 194 float scale = targetHeight / bitmapHeightF; in transform() local 195 if (scale < .9F || scale > 1F) { in transform() 196 scaler.setScale(scale, scale); in transform() 201 float scale = targetWidth / bitmapWidthF; in transform() local 202 if (scale < .9F || scale > 1F) { in transform() 203 scaler.setScale(scale, scale); in transform()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageViewTouchBase.java | 274 float scale = Math.min(widthScale, heightScale); in getProperBaseMatrix() local 277 matrix.postScale(scale, scale); in getProperBaseMatrix() 280 (viewWidth - w * scale) / 2F, in getProperBaseMatrix() 281 (viewHeight - h * scale) / 2F); in getProperBaseMatrix() 310 protected void zoomTo(float scale, float centerX, float centerY) { in zoomTo() argument 311 if (scale > mMaxZoom) { in zoomTo() 312 scale = mMaxZoom; in zoomTo() 316 float deltaScale = scale / oldScale; in zoomTo() 323 protected void zoomTo(final float scale, final float centerX, in zoomTo() argument 325 final float incrementPerMs = (scale - getScale()) / durationMs; in zoomTo() [all …]
|
D | Util.java | 196 float scale = targetHeight / bitmapHeightF; in transform() local 197 if (scale < .9F || scale > 1F) { in transform() 198 scaler.setScale(scale, scale); in transform() 203 float scale = targetWidth / bitmapWidthF; in transform() local 204 if (scale < .9F || scale > 1F) { in transform() 205 scaler.setScale(scale, scale); in transform()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | DragView.java | 73 Matrix scale = new Matrix(); in DragView() local 76 scale.setScale(scaleFactor, scaleFactor); in DragView() 78 mBitmap = Bitmap.createBitmap(bitmap, left, top, width, height, scale, true); in DragView() 99 float scale = mAnimationScale; in onDraw() local 100 if (scale < 0.999f) { // allow for some float error in onDraw() 102 float offset = (width-(width*scale))/2; in onDraw() 104 canvas.scale(scale, scale); in onDraw()
|
D | BubbleTextView.java | 70 final float scale = getContext().getResources().getDisplayMetrics().density; in init() local 71 mCornerRadius = CORNER_RADIUS * scale; in init() 72 mPaddingH = PADDING_H * scale; in init() 74 mPaddingV = PADDING_V * scale; in init()
|
D | Utilities.java | 369 final float scale = resources.getDisplayMetrics().density; in BubbleText() local 371 final float paddingLeft = 5.0f * scale; in BubbleText() 372 final float paddingRight = 5.0f * scale; in BubbleText() 375 mBubblePadding = 3.0f * scale; in BubbleText() 390 textPaint.setTextSize(13*scale); in BubbleText()
|
D | Workspace.java | 504 float scale = mScale; in dispatchDraw() local 505 if (scale < 0.999f) { in dispatchDraw() 508 int alpha = (scale < 0.5f) ? (int)(255 * 2 * scale) : 255; in dispatchDraw() 514 if (scale < 0.999f) { in dispatchDraw() 521 canvas.scale(scale, scale); in dispatchDraw() 532 && scale > 0.999f; in dispatchDraw() 558 public void setScale(float scale) { in setScale() argument 559 mScale = scale; in setScale()
|
D | Search.java | 89 final float scale = context.getResources().getDisplayMetrics().density; in Search() local 90 mWidgetTopOffset = Math.round(WIDGET_TOP_OFFSET * scale); in Search()
|
/packages/wallpapers/MagicSmoke/res/raw/ |
D | clouds.rs | 33 float scale[5]; 51 scale[idx] + xshift[idx], 0.f, // texture 53 scale[idx] + xshift[idx], scale[idx], // texture 55 0.f + xshift[idx], scale[idx]); // texture 166 float scale = 255.f / (255.f - lowcol); 175 alpha = (alpha - lowcol) * scale; 190 float scale = 255.f / (255.f - lowcol); 259 scale[0] = 4.0f; // changed below based on preset 260 scale[1] = 3.0f; 261 scale[2] = 3.4f; [all …]
|
/packages/apps/Launcher2/res/raw/ |
D | rollo.c | 218 draw_page(int icon, int lastIcon, float centerAngle, float scale) in draw_page() argument 257 float centerZ = cosine * RADIUS / scale; in draw_page() 259 if (scale > 1.f) { in draw_page() 260 centerX *= scale; in draw_page() 286 if (scale < 1.2f) { in draw_page() 287 float a = (1.2f - maxf(scale, 1.0f)) * 5; in draw_page() 306 float scale = 2.0f / SCREEN_WIDTH_PX; in draw_home_button() local 311 y += g_Zoom * (scale * params->homeButtonTextureHeight / 2); in draw_home_button() 392 float scale = (1 / g_Zoom); in main() local 395 draw_page(icon, lastIcon, -pageAngle*currentPagePosition, scale); in main() [all …]
|
D | rollo2.c | 216 float scale = 256.f / getWidth(); in positionStrip() local 217 float xscale = scale * 4.55 / 1.8f / 2; in positionStrip() 220 matrixScale(mat1, 1.f, scale, 1.f); in positionStrip() 251 float scale = 2.0f / SCREEN_WIDTH_PX; in draw_home_button() local 256 y += g_Zoom * (scale * params->homeButtonTextureHeight / 2); in draw_home_button() 338 float scale = (1 / g_Zoom); in main() local 378 float a = (1.2f - maxf(scale, 1.0f)) * 5; in main()
|
D | rollo3.c | 257 float scale = 72.f * 3 / getWidth(); in positionStrip() local 261 matrixScale(mat1, scale, scale, 1.f); in positionStrip() 264 matrixScale(mat1, scale, -scale, 1.f); in positionStrip()
|
/packages/apps/Launcher/src/com/android/launcher/ |
D | BubbleTextView.java | 71 final float scale = getContext().getResources().getDisplayMetrics().density; in init() local 72 mCornerRadius = CORNER_RADIUS * scale; in init() 73 mPaddingH = PADDING_H * scale; in init() 75 mPaddingV = PADDING_V * scale; in init()
|
D | DragLayer.java | 196 Matrix scale = new Matrix(); in startDrag() local 199 scale.setScale(scaleFactor, scaleFactor); in startDrag() 207 mDragBitmap = Bitmap.createBitmap(viewBitmap, 0, 0, width, height, scale, true); in startDrag() 266 canvas.scale(value, value); in dispatchDraw()
|
D | Utilities.java | 70 float scale = 1.0f; in createIconThumbnail() local 87 if (width < iconWidth || height < iconHeight || scale != 1.0f) { in createIconThumbnail()
|
D | Search.java | 87 final float scale = context.getResources().getDisplayMetrics().density; in Search() local 88 mWidgetTopOffset = Math.round(WIDGET_TOP_OFFSET * scale); in Search()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/galaxy/ |
D | GalaxyRS.java | 166 mGalaxyState.scale = width > height ? 1 : 0; in resize() 180 public int scale; field in GalaxyRS.GalaxyState 197 mGalaxyState.scale = mWidth > mHeight ? 1 : 0; in createState()
|