/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
D | ZoomControl.java | 148 final double alpha = Math.atan((double)y / (double)x); in onTouchEvent() local 150 if (!checkHit(x, y, alpha)) { in onTouchEvent() 156 mThumbX = (int)((mRadius * Math.cos(alpha)) + (getWidth() / 2)); in onTouchEvent() 157 mThumbY = (int)((getHeight() / 2) - (mRadius * Math.sin(alpha))); in onTouchEvent() 158 progress = (int)((mMaxProgress / 2) - (alpha / mInterval)); in onTouchEvent() 160 mThumbX = (int)((mRadius * Math.cos(alpha)) + (getWidth() / 2)); in onTouchEvent() 161 mThumbY = (int)((getHeight() / 2) - (mRadius * Math.sin(alpha))); in onTouchEvent() 162 progress = (int)((mMaxProgress / 2) - (alpha / mInterval)); in onTouchEvent() 164 mThumbX = (int)((getWidth() / 2) - (mRadius * Math.cos(alpha))); in onTouchEvent() 165 mThumbY = (int)((getHeight() / 2) + (mRadius * Math.sin(alpha))); in onTouchEvent() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | GLES11Canvas.java | 156 public void setAlpha(float alpha) { in setAlpha() argument 157 Assert.assertTrue(alpha >= 0 && alpha <= 1); in setAlpha() 158 mAlpha = alpha; in setAlpha() 167 public void multiplyAlpha(float alpha) { in multiplyAlpha() argument 168 Assert.assertTrue(alpha >= 0 && alpha <= 1); in multiplyAlpha() 169 mAlpha *= alpha; in multiplyAlpha() 283 float alpha = mAlpha; in drawMesh() local 287 && (!tex.isOpaque() || alpha < OPAQUE_ALPHA)); in drawMesh() 288 mGLState.setTextureAlpha(alpha); in drawMesh() 378 int x, int y, int width, int height, float alpha) { in drawTexture() argument [all …]
|
D | GLES20Canvas.java | 383 public void setAlpha(float alpha) { in setAlpha() argument 384 mAlphas[mCurrentAlphaIndex] = alpha; in setAlpha() 388 public void multiplyAlpha(float alpha) { in multiplyAlpha() argument 389 setAlpha(getAlpha() * alpha); in multiplyAlpha() 523 float alpha = ((color >>> 24) & 0xFF) / 255f * getAlpha(); in getColor() local 524 float red = ((color >>> 16) & 0xFF) / 255f * alpha; in getColor() 525 float green = ((color >>> 8) & 0xFF) / 255f * alpha; in getColor() 526 float blue = (color & 0xFF) / 255f * alpha; in getColor() 530 mTempColor[3] = alpha; in getColor()
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/ |
D | PointCloud.java | 49 private float alpha = 0.0f; field in PointCloud.WaveManager 59 alpha = a; in setAlpha() 63 return alpha; in getAlpha() 71 private float alpha = 0.0f; field in PointCloud.GlowManager 90 alpha = a; in setAlpha() 94 return alpha; in getAlpha() 185 glowAlpha = glowManager.alpha * max(0.0f, (float) Math.pow(cosf, 10.0f)); in getAlphaForPoint() 194 waveAlpha = waveManager.alpha * max(0.0f, (float) Math.pow(cosf, 20.0f)); in getAlphaForPoint() 214 int alpha = getAlphaForPoint(point); in draw() local 216 if (alpha == 0) continue; in draw() [all …]
|
D | TargetDrawable.java | 56 public void setAlpha(float alpha) { in setAlpha() argument 57 mAlpha = alpha; in setAlpha() 67 public void setAlpha(int alpha) { in setAlpha() argument 68 mRealDrawable.setAlpha(alpha); in setAlpha() 199 public void setAlpha(float alpha) { in setAlpha() argument 200 mAlpha = alpha; in setAlpha()
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/glrenderer/ |
D | GLMock.java | 75 float alpha) { in glColor4f() argument 77 mGLColor = makeColor4f(red, green, blue, alpha); in glColor4f() 81 public void glColor4x(int red, int green, int blue, int alpha) { in glColor4x() argument 83 mGLColor = makeColor4x(red, green, blue, alpha); in glColor4x() 186 float alpha) { in makeColor4f() argument 187 return (Math.round(alpha * 255) << 24) | in makeColor4f() 193 public static int makeColor4x(int red, int green, int blue, int alpha) { in makeColor4x() argument 195 return makeColor4f(red / X, green / X, blue / X, alpha / X); in makeColor4x()
|
D | GLStub.java | 61 float alpha in glClearColor() argument 68 int alpha in glClearColorx() argument 91 float alpha in glColor4f() argument 98 int alpha in glColor4x() argument 105 boolean alpha in glColorMask() argument 798 byte alpha in glColor4ub() argument
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | PieRenderer.java | 352 mOverlay.animate().alpha(0).setListener(new AnimatorListenerAdapter() { in startFadeOut() 369 float alpha = 1; in onDraw() local 371 alpha = mXFade.getValue(); in onDraw() 373 alpha = mFadeIn.getValue(); in onDraw() 377 float sf = 0.9f + alpha * 0.1f; in onDraw() 388 drawItem(canvas, item, alpha); in onDraw() 393 drawItem(canvas, inner, (mXFade != null) ? (1 - 0.5f * alpha) : 1); in onDraw() 399 private void drawItem(Canvas canvas, PieItem item, float alpha) { in drawItem() argument 410 alpha = alpha * (item.isEnabled() ? 1 : 0.3f); in drawItem() 412 item.setAlpha(alpha); in drawItem()
|
/packages/apps/Gallery2/src/com/android/camera/ui/ |
D | PieRenderer.java | 504 float alpha = 1; in onDraw() local 506 alpha = mXFade.getValue(); in onDraw() 508 alpha = mFadeIn.getValue(); in onDraw() 510 alpha = mFadeOut.getValue(); in onDraw() 514 float sf = 0.9f + alpha * 0.1f; in onDraw() 532 drawItem(Math.max(0, mOpen.size() - 2), pos, count, canvas, item, alpha); in onDraw() 545 drawItem(level, pos, count, canvas, inner, alpha); in onDraw() 547 … drawItem(level, pos, count, canvas, inner, (mXFade != null) ? (1 - 0.5f * alpha) : 1); in onDraw() 569 private void drawItem(int level, int pos, int count, Canvas canvas, PieItem item, float alpha) { in drawItem() argument 585 p.setAlpha((int)(255 * alpha)); in drawItem() [all …]
|
/packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/ |
D | clouds.rs | 284 int alpha = pix & 0x00ff; 285 if (alpha < lowcol) { 286 alpha = 0; 288 alpha = (alpha - lowcol) * scale; 290 alpha /= alphafactor; 292 if (pm) newpix = premul(newpix, alpha); 293 newpix = newpix | (alpha << 24);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | PhotoView.java | 702 float alpha = getScrollAlpha(progress); in drawTileView() local 704 alpha = interpolate(filmRatio, alpha, 1f); in drawTileView() 707 canvas.multiplyAlpha(alpha); in drawTileView() 724 float alpha = getOffsetAlpha(offset); in drawTileView() local 725 canvas.multiplyAlpha(alpha); in drawTileView() 835 float alpha = getScrollAlpha(progress); in draw() local 837 alpha = interpolate(filmRatio, alpha, 1f); in draw() 839 canvas.multiplyAlpha(alpha); in draw() 843 float alpha = getOffsetAlpha(offset); in draw() local 844 canvas.multiplyAlpha(alpha); in draw() [all …]
|
D | SlideshowView.java | 96 float alpha = mPrevTexture == null ? 1f : mTransitionAnimation.get(); in render() local 98 if (mPrevTexture != null && alpha != 1f) { in render() 101 canvas.setAlpha(1f - alpha); in render() 111 canvas.setAlpha(alpha); in render()
|
/packages/wallpapers/NoiseField/src/com/android/noisefield/ |
D | noisefield.rs | 33 float alpha; 169 particle->alpha = particle->alphaStart; 221 particle->alpha = particle->alphaStart; 268 particle->alpha = (particle->alphaStart)*(particle->death)/100.0; 270 particle->alpha = particle->alpha*particle->life/100.0; 272 particle->alpha = particle->alphaStart;
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
D | Blend.cpp | 1082 double alpha = x * m_wb.direction / m_wb.width; in MosaicToFrame() local 1083 double length = (y - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; in MosaicToFrame() 1084 double deltaTheta = m_wb.theta * alpha; in MosaicToFrame() 1092 double alpha = y * m_wb.direction / m_wb.width; in MosaicToFrame() local 1093 double length = (x - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; in MosaicToFrame() 1094 double deltaTheta = m_wb.theta * alpha; in MosaicToFrame() 1124 double alpha = deltaTheta / m_wb.theta; in FrameToMosaic() local 1125 wx = alpha * m_wb.width * m_wb.direction; in FrameToMosaic() 1126 wy = (length - m_wb.radius) * m_wb.direction + alpha * m_wb.correction; in FrameToMosaic() 1134 double alpha = deltaTheta / m_wb.theta; in FrameToMosaic() local [all …]
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Blend.cpp | 1062 double alpha = x * m_wb.direction / m_wb.width; in MosaicToFrame() local 1063 double length = (y - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; in MosaicToFrame() 1064 double deltaTheta = m_wb.theta * alpha; in MosaicToFrame() 1072 double alpha = y * m_wb.direction / m_wb.width; in MosaicToFrame() local 1073 double length = (x - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; in MosaicToFrame() 1074 double deltaTheta = m_wb.theta * alpha; in MosaicToFrame() 1104 double alpha = deltaTheta / m_wb.theta; in FrameToMosaic() local 1105 wx = alpha * m_wb.width * m_wb.direction; in FrameToMosaic() 1106 wy = (length - m_wb.radius) * m_wb.direction + alpha * m_wb.correction; in FrameToMosaic() 1114 double alpha = deltaTheta / m_wb.theta; in FrameToMosaic() local [all …]
|
/packages/apps/Gallery2/jni_mosaic/feature_mos/src/mosaic/ |
D | Blend.cpp | 1082 double alpha = x * m_wb.direction / m_wb.width; in MosaicToFrame() local 1083 double length = (y - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; in MosaicToFrame() 1084 double deltaTheta = m_wb.theta * alpha; in MosaicToFrame() 1092 double alpha = y * m_wb.direction / m_wb.width; in MosaicToFrame() local 1093 double length = (x - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; in MosaicToFrame() 1094 double deltaTheta = m_wb.theta * alpha; in MosaicToFrame() 1124 double alpha = deltaTheta / m_wb.theta; in FrameToMosaic() local 1125 wx = alpha * m_wb.width * m_wb.direction; in FrameToMosaic() 1126 wy = (length - m_wb.radius) * m_wb.direction + alpha * m_wb.correction; in FrameToMosaic() 1134 double alpha = deltaTheta / m_wb.theta; in FrameToMosaic() local [all …]
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
D | ContactDetailTabCarousel.java | 334 mShadow.animate().setStartDelay(TRANSITION_TIME).alpha(1.0f); in animateAppear() 340 float alpha = mLastScrollPosition * MAX_ALPHA / mAllowedHorizontalScrollLength; in updateAlphaLayers() local 341 alpha = MoreMath.clamp(alpha, 0.0f, 1.0f); in updateAlphaLayers() 342 mAboutTab.setAlphaLayerValue(alpha); in updateAlphaLayers() 343 mUpdatesTab.setAlphaLayerValue(MAX_ALPHA - alpha); in updateAlphaLayers()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoTable.java | 358 final double alpha = Math.toRadians(direction); in moveFocus() local 360 final double[] left = { Math.sin(alpha - beta), in moveFocus() 361 Math.cos(alpha - beta) }; in moveFocus() 362 final double[] right = { Math.sin(alpha + beta), in moveFocus() 363 Math.cos(alpha + beta) }; in moveFocus() 609 .alpha(0f); in fadeOutBackground() 619 .alpha(1f) in fadeInBackground() 640 .alpha(0f) in fadeAway() 907 .alpha(1f) in pickUp()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | DragView.java | 186 int alpha = crossFade ? (int) (255 * (1 - mCrossFadeProgress)) : 255; in onDraw() local 187 mPaint.setAlpha(alpha); in onDraw() 235 public void setAlpha(float alpha) { in setAlpha() argument 236 super.setAlpha(alpha); in setAlpha() 237 mPaint.setAlpha((int) (255 * alpha)); in setAlpha()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/ |
D | grass.rs | 233 static void alpha(float a) { 422 alpha(1.0f); 433 alpha(newB); 437 alpha(normf(half, gMorning, now)); 447 alpha(newB); 452 alpha(normf(half, gDusk, now));
|
/packages/apps/Camera/src/com/android/camera/ |
D | SwitchAnimManager.java | 108 float alpha = canvas.getAlpha(); in drawAnimation() local 117 canvas.setAlpha(alpha); in drawAnimation() 138 float alpha = canvas.getAlpha(); in drawDarkPreview() local 142 canvas.setAlpha(alpha); in drawDarkPreview()
|
/packages/apps/Gallery2/src/com/android/camera/ |
D | SwitchAnimManager.java | 108 float alpha = canvas.getAlpha(); in drawAnimation() local 117 canvas.setAlpha(alpha); in drawAnimation() 138 float alpha = canvas.getAlpha(); in drawDarkPreview() local 142 canvas.setAlpha(alpha); in drawDarkPreview()
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
D | GLCanvasStub.java | 46 public void setAlpha(float alpha) {} in setAlpha() argument 52 public void multiplyAlpha(float alpha) {} in multiplyAlpha() argument 88 int x, int y, int width, int height, float alpha) {} in drawTexture() argument 100 float ratio, int x, int y, int width, int height, float alpha) {} in drawMixed() argument
|
/packages/apps/Phone/src/com/android/phone/ |
D | AnimationUtils.java | 81 view.animate().alpha(1); in show() 115 view.animate().alpha(0f).setListener(new AnimatorListenerAdapter() { in hide() 170 public void setCrossFadeAlpha(int alpha) { in setCrossFadeAlpha() argument 171 mCrossFadeAlpha = alpha; in setCrossFadeAlpha()
|
/packages/apps/Browser/src/com/android/browser/ |
D | SnapshotBar.java | 146 .alpha(0f) in showDate() 150 .alpha(1f) in showDate() 157 .alpha(1f) in showTitle() 161 .alpha(0f) in showTitle()
|