/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/InCallUI/src/com/android/incallui/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 …]
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | MultiShrinkScroller.java | 505 final int edgeEffectAlpha = Color.alpha(mEdgeGlowBottom.getColor()); in setHeaderTintColor() 1115 final float alpha = 1.0f - (float) Math.min(Math.pow(ratio, 1.5f) * 2f, 1f); in updatePhotoTintAndDropShadow() local 1117 mColorMatrix.setSaturation(alpha); in updatePhotoTintAndDropShadow() 1118 mColorMatrix.postConcat(alphaMatrix(alpha, Color.WHITE)); in updatePhotoTintAndDropShadow() 1120 gradientAlpha = (int) (255 * alpha); in updatePhotoTintAndDropShadow() 1173 private ColorMatrix alphaMatrix(float alpha, int color) { in alphaMatrix() argument 1174 mAlphaMatrixValues[0] = Color.red(color) * alpha / 255; in alphaMatrix() 1175 mAlphaMatrixValues[6] = Color.green(color) * alpha / 255; in alphaMatrix() 1176 mAlphaMatrixValues[12] = Color.blue(color) * alpha / 255; in alphaMatrix() 1177 mAlphaMatrixValues[4] = 255 * (1 - alpha); in alphaMatrix() [all …]
|
/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/Camera2/src/com/android/camera/ui/ |
D | BottomBar.java | 112 private void setPaintColor(int alpha, int color) { in setPaintColor() argument 115 mAnimatedCircleDrawable.setAlpha(alpha); in setPaintColor() 118 mColorDrawable.setAlpha(alpha); in setPaintColor() 125 intentBackground.setAlpha(alpha); in setPaintColor() 133 private void setCancelBackgroundColor(int alpha, int color) { in setCancelBackgroundColor() argument 139 animatedCircleDrawable.setAlpha(alpha); in setCancelBackgroundColor() 145 colorDrawable.setAlpha(alpha); in setCancelBackgroundColor() 416 public void setBackgroundAlpha(int alpha) { in setBackgroundAlpha() argument 417 mBackgroundAlpha = alpha; in setBackgroundAlpha()
|
D | ModeTransitionView.java | 138 int alpha = ((int) shadeHeight - mHeight / 2) * ALPHA_FULLY_OPAQUE in updateShade() local 140 mIconDrawable.setAlpha(alpha); in updateShade() 328 private void snapShadeTo(int scrollDistance, int alpha) { in snapShadeTo() argument 329 snapShadeTo(scrollDistance, alpha, true); in snapShadeTo() 340 private void snapShadeTo(final int scrollDistance, final int alpha, in snapShadeTo() argument 354 mIconDrawable.setAlpha(alpha); in snapShadeTo() 555 public void setAlpha(float alpha) { in setAlpha() argument 556 super.setAlpha(alpha); in setAlpha()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | FrameLayoutWithShadows.java | 85 public void setAlpha(float alpha) { in setAlpha() argument 86 if (mAlpha != alpha) { in setAlpha() 87 mAlpha = alpha; in setAlpha() 89 int alphaMulitplied = (int)(alpha * 255); in setAlpha() 107 protected boolean onSetAlpha(int alpha) { in onSetAlpha() argument 189 public void setShadowsAlpha(float alpha) { in setShadowsAlpha() argument 190 mShadowsAlpha = alpha; in setShadowsAlpha() 194 shadow.setAlpha(alpha); in setShadowsAlpha()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DragLayer.java | 536 public void animateViewIntoPosition(DragView dragView, final int[] pos, float alpha, in animateViewIntoPosition() argument 544 animateViewIntoPosition(dragView, fromX, fromY, pos[0], pos[1], alpha, 1, 1, scaleX, scaleY, in animateViewIntoPosition() 698 float alpha = finalAlpha * alphaPercent + initAlpha * (1 - alphaPercent); in animateView() 716 mDropView.setAlpha(alpha); in animateView() 791 float alpha = 1 - percent; in fadeOutDragView() 792 mDropView.setAlpha(alpha); in fadeOutDragView() 902 int alpha = (int) (mBackgroundAlpha * 255); in dispatchDraw() local 903 mBackground.setAlpha(alpha); in dispatchDraw() 951 public void setBackgroundAlpha(float alpha) { in setBackgroundAlpha() argument 952 if (alpha != mBackgroundAlpha) { in setBackgroundAlpha() [all …]
|
D | DragView.java | 195 int alpha = crossFade ? (int) (255 * (1 - mCrossFadeProgress)) : 255; in onDraw() local 196 mPaint.setAlpha(alpha); in onDraw() 244 public void setAlpha(float alpha) { in setAlpha() argument 245 super.setAlpha(alpha); in setAlpha() 246 mPaint.setAlpha((int) (255 * alpha)); in setAlpha()
|
D | PageIndicatorMarker.java | 68 .alpha(1f) in activate() 73 .alpha(0f) in activate() 88 mInactiveMarker.animate().alpha(1f) in inactivate() 91 .alpha(0f) in inactivate()
|
D | LauncherScroller.java | 87 final float alpha = (float) i / NB_SAMPLES; 95 if (Math.abs(tx - alpha) < 1E-5) break; 96 if (tx > alpha) x_max = x; 107 if (Math.abs(dy - alpha) < 1E-5) break; 108 if (dy > alpha) y_max = y;
|
/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 …]
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoTable.java | 365 final double alpha = Math.toRadians(direction); in moveFocus() local 367 final double[] left = { Math.sin(alpha - beta), in moveFocus() 368 Math.cos(alpha - beta) }; in moveFocus() 369 final double[] right = { Math.sin(alpha + beta), in moveFocus() 370 Math.cos(alpha + beta) }; in moveFocus() 618 .alpha(0f); in fadeOutBackground() 627 .alpha(1f); in fadeOutBackground() 639 .alpha(1f) in fadeInBackground() 652 .alpha(0f) in fadeInBackground() 678 .alpha(0f) in fadeAway() [all …]
|
/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/TvSettings/Settings/src/com/android/tv/settings/util/ |
D | TransitionImageView.java | 198 mBgAlphaDiff = Color.alpha(dstColor) - Color.alpha(srcColor); in calculateDiffs() 251 int alpha = (int) ((mSrc.getAlpha() + mAlphaDiff * mProgress) * 255); in setProgress() local 252 mBitmapDrawable.setAlpha(alpha); in setProgress() 254 getBackground().setAlpha(alpha); in setProgress() 265 Color.alpha(mSrcBgColor) + (int) (mBgAlphaDiff * mProgress), in setProgress()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | ColorPreference.java | 63 return Color.alpha(getValue()) == 0 || super.shouldDisableDependents(); in shouldDisableDependents() 88 if (Color.alpha(argb) < 255) { in onBindView() 115 final int alpha = Color.alpha(argb); in onBindListItem() local 118 if (alpha < 255) { in onBindListItem()
|
/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/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
D | ActionAdapter.java | 351 private void setAlpha(View view, boolean shouldAnimate, float alpha) { in setAlpha() argument 353 view.animate().alpha(alpha) in setAlpha() 358 view.setAlpha(alpha); in setAlpha() 454 v.animate().alpha(destAlpha).setDuration(duration).setStartDelay(delay); in prepareAndAnimateView() 496 checkView.animate().alpha(CHECKMARK_ANIM_UNSELECTED_ALPHA) in fadeCheckmarks() 519 checkView.animate().alpha(CHECKMARK_ANIM_SELECTED_ALPHA).setDuration(duration) in fadeCheckmarks()
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
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/TvSettings/Settings/src/com/android/tv/settings/dialog/ |
D | SettingsLayoutAdapter.java | 469 private void setAlpha(View view, boolean shouldAnimate, float alpha) { in setAlpha() argument 471 view.animate().alpha(alpha) in setAlpha() 476 view.setAlpha(alpha); in setAlpha() 589 v.animate().alpha(destAlpha).setDuration(duration).setStartDelay(delay); in prepareAndAnimateView() 624 checkView.animate().alpha(CHECKMARK_ANIM_UNSELECTED_ALPHA) in fadeCheckmarks() 645 checkView.animate().alpha(CHECKMARK_ANIM_SELECTED_ALPHA).setDuration(duration) in fadeCheckmarks()
|
D | DialogActionAdapter.java | 397 private void setAlpha(View view, boolean shouldAnimate, float alpha) { in setAlpha() argument 399 view.animate().alpha(alpha) in setAlpha() 404 view.setAlpha(alpha); in setAlpha() 519 v.animate().alpha(destAlpha).setDuration(duration).setStartDelay(delay); in prepareAndAnimateView() 554 checkView.animate().alpha(CHECKMARK_ANIM_UNSELECTED_ALPHA) in fadeCheckmarks() 575 checkView.animate().alpha(CHECKMARK_ANIM_SELECTED_ALPHA).setDuration(duration) in fadeCheckmarks()
|
/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()
|