/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | GLES11Canvas.java | 154 public void setAlpha(float alpha) { in setAlpha() argument 155 Utils.assertTrue(alpha >= 0 && alpha <= 1); in setAlpha() 156 mAlpha = alpha; in setAlpha() 165 public void multiplyAlpha(float alpha) { in multiplyAlpha() argument 166 Utils.assertTrue(alpha >= 0 && alpha <= 1); in multiplyAlpha() 167 mAlpha *= alpha; in multiplyAlpha() 281 float alpha = mAlpha; in drawMesh() local 285 && (!tex.isOpaque() || alpha < OPAQUE_ALPHA)); in drawMesh() 286 mGLState.setTextureAlpha(alpha); in drawMesh() 376 int x, int y, int width, int height, float alpha) { in drawTexture() argument [all …]
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/ |
D | SwipeButtonView.java | 158 float alpha = circleRadius / minBackgroundRadius; in updateIconColor() local 159 alpha = Math.min(1.0f, alpha); in updateIconColor() 160 int color = (int) colorInterpolator.evaluate(alpha, normalColor, inverseColor); in updateIconColor() 186 (int) (Color.alpha(circleColor) * fraction), in updateCircleColor() 402 public void setRestingAlpha(float alpha) { in setRestingAlpha() argument 403 restingAlpha = alpha; in setRestingAlpha() 406 setImageAlpha(alpha, false); in setRestingAlpha() 413 public void setImageAlpha(float alpha, boolean animate) { in setImageAlpha() argument 414 setImageAlpha(alpha, animate, -1, null, null); in setImageAlpha() 427 float alpha, in setImageAlpha() argument [all …]
|
D | SwipeButtonHelper.java | 422 float alpha = absTranslation / getMinTranslationAmount(); in setTranslation() local 425 float fadeOutAlpha = 1.0f - alpha; in setTranslation() 437 alpha + fadeOutAlpha * targetView.getRestingAlpha(), in setTranslation() 470 float alpha = absTranslation / getMinTranslationAmount(); in updateIconsFromTranslation() local 473 float fadeOutAlpha = 1.0f - alpha; in updateIconsFromTranslation() 478 updateIconAlpha(targetView, alpha + fadeOutAlpha * targetView.getRestingAlpha(), false); in updateIconsFromTranslation() 505 float alpha, in updateIcon() argument 521 updateIconAlpha(view, alpha, animate); in updateIcon() 524 private void updateIconAlpha(SwipeButtonView view, float alpha, boolean animate) { in updateIconAlpha() argument 525 float scale = getScale(alpha, view); in updateIconAlpha() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/ |
D | CaptionCustomFragment.java | 221 final int alpha = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsTextColor() local 224 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, color | alpha); in setCaptionsTextColor() local 235 final int alpha = (int) Long.parseLong(textOpacity, 16) & 0xff000000; in setCaptionsTextOpacity() local 237 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, color | alpha); in setCaptionsTextOpacity() local 283 final int alpha = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsBackgroundColor() local 286 Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, color | alpha); in setCaptionsBackgroundColor() local 297 final int alpha = (int) Long.parseLong(backgroundOpacity, 16) & 0xff000000; in setCaptionsBackgroundOpacity() local 299 Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, color | alpha); in setCaptionsBackgroundOpacity() local 323 final int alpha = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsWindowColor() local 326 Settings.Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR, color | alpha); in setCaptionsWindowColor() local [all …]
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | MultiShrinkScroller.java | 568 final int edgeEffectAlpha = Color.alpha(mEdgeGlowBottom.getColor()); in setHeaderTintColor() 1184 final float alpha = 1.0f - (float) Math.min(Math.pow(ratio, 1.5f) * 2f, 1f); in updatePhotoTintAndDropShadow() local 1186 mColorMatrix.setSaturation(alpha); in updatePhotoTintAndDropShadow() 1187 mColorMatrix.postConcat(alphaMatrix(alpha, Color.WHITE)); in updatePhotoTintAndDropShadow() 1189 gradientAlpha = (int) (255 * alpha); in updatePhotoTintAndDropShadow() 1239 private ColorMatrix alphaMatrix(float alpha, int color) { in alphaMatrix() argument 1240 mAlphaMatrixValues[0] = Color.red(color) * alpha / 255; in alphaMatrix() 1241 mAlphaMatrixValues[6] = Color.green(color) * alpha / 255; in alphaMatrix() 1242 mAlphaMatrixValues[12] = Color.blue(color) * alpha / 255; in alphaMatrix() 1243 mAlphaMatrixValues[4] = 255 * (1 - alpha); in alphaMatrix() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/hint/ |
D | PawAnswerHint.java | 152 Animator alpha = in createFadeInScaleAndAlpha() local 161 set.play(scale).with(alpha); in createFadeInScaleAndAlpha() 180 Animator alpha = in createFadeOutScaleAndAlpha() local 189 set.play(scale).with(alpha); in createFadeOutScaleAndAlpha() 231 Animator alpha = ObjectAnimator.ofFloat(target, View.ALPHA, begin, end); in createAlphaAnimator() local 232 alpha.setDuration(duration); in createAlphaAnimator() 233 alpha.setInterpolator(interpolator); in createAlphaAnimator() 234 alpha.setStartDelay(delay); in createAlphaAnimator() 235 return alpha; in createAlphaAnimator()
|
D | DotAnswerHint.java | 171 Animator alpha = in createFadeInScaleAndAlpha() local 180 set.play(scale).with(alpha); in createFadeInScaleAndAlpha() 225 Animator alpha = in createFadeOutScaleAndAlpha() local 234 set.play(scale).with(alpha); in createFadeOutScaleAndAlpha() 279 Animator alpha = ObjectAnimator.ofFloat(target, View.ALPHA, begin, end); in createAlphaAnimator() local 280 alpha.setDuration(duration); in createAlphaAnimator() 281 alpha.setInterpolator(interpolator); in createAlphaAnimator() 282 alpha.setStartDelay(delay); in createAlphaAnimator() 283 return alpha; in createAlphaAnimator()
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | DoubleShadowBubbleTextView.java | 59 int alpha = Color.alpha(getCurrentTextColor()); in onDraw() local 63 ColorUtils.setAlphaComponent(mShadowInfo.ambientShadowColor, alpha)); in onDraw() 72 ColorUtils.setAlphaComponent(mShadowInfo.keyShadowColor, alpha)); in onDraw() 102 int textAlpha = Color.alpha(textView.getCurrentTextColor()); in skipDoubleShadow() 103 int keyShadowAlpha = Color.alpha(keyShadowColor); in skipDoubleShadow() 104 int ambientShadowAlpha = Color.alpha(ambientShadowColor); in skipDoubleShadow()
|
/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() 434 public void setBackgroundAlpha(int alpha) { in setBackgroundAlpha() argument 435 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/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | PieRenderer.java | 344 .alpha(0) in startFadeOut() 360 float alpha = 1; in onDraw() local 362 alpha = mXFade.getValue(); in onDraw() 364 alpha = mFadeIn.getValue(); in onDraw() 368 float sf = 0.9f + alpha * 0.1f; in onDraw() 379 drawItem(canvas, item, alpha); in onDraw() 384 drawItem(canvas, inner, (mXFade != null) ? (1 - 0.5f * alpha) : 1); in onDraw() 390 private void drawItem(Canvas canvas, PieItem item, float alpha) { in drawItem() argument 401 alpha = alpha * (item.isEnabled() ? 1 : 0.3f); in drawItem() 403 item.setAlpha(alpha); in drawItem()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/ |
D | PieRenderer.java | 346 mOverlay.animate().alpha(0).setListener(new AnimatorListenerAdapter() { in startFadeOut() 359 float alpha = 1; in onDraw() local 361 alpha = mXFade.getValue(); in onDraw() 363 alpha = mFadeIn.getValue(); in onDraw() 367 float sf = 0.9f + alpha * 0.1f; in onDraw() 378 drawItem(canvas, item, alpha); in onDraw() 383 drawItem(canvas, inner, (mXFade != null) ? (1 - 0.5f * alpha) : 1); in onDraw() 389 private void drawItem(Canvas canvas, PieItem item, float alpha) { in drawItem() argument 400 alpha = alpha * (item.isEnabled() ? 1 : 0.3f); in drawItem() 402 item.setAlpha(alpha); in drawItem()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsBackgroundDrawable.java | 62 public void setAlpha(int alpha) { in setAlpha() argument 63 mImage.setAlpha(alpha); in setAlpha() 64 mAlpha = alpha; in setAlpha() 177 public void setAlpha(int alpha) { in setAlpha() argument 178 mHand.setAlpha(alpha); in setAlpha() 180 mIcons[i].setAlpha(alpha); in setAlpha()
|
/packages/apps/Settings/src/com/android/settings/ |
D | PreviewPagerAdapter.java | 157 final float alpha = (visibility == View.VISIBLE ? 1.0f : 0.0f); in setVisibility() local 159 view.setAlpha(alpha); in setVisibility() 167 .alpha(alpha) in setVisibility() 180 .alpha(alpha) in setVisibility()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | ColorPreference.java | 64 return Color.alpha(getValue()) == 0 || super.shouldDisableDependents(); in shouldDisableDependents() 89 if (Color.alpha(argb) < 255) { in onBindViewHolder() 116 final int alpha = Color.alpha(argb); in onBindListItem() local 119 if (alpha < 255) { in onBindListItem()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | PhotoView.java | 701 float alpha = getScrollAlpha(progress); in drawTileView() local 703 alpha = interpolate(filmRatio, alpha, 1f); in drawTileView() 706 canvas.multiplyAlpha(alpha); in drawTileView() 723 float alpha = getOffsetAlpha(offset); in drawTileView() local 724 canvas.multiplyAlpha(alpha); in drawTileView() 834 float alpha = getScrollAlpha(progress); in draw() local 836 alpha = interpolate(filmRatio, alpha, 1f); in draw() 838 canvas.multiplyAlpha(alpha); in draw() 842 float alpha = getOffsetAlpha(offset); in draw() local 843 canvas.multiplyAlpha(alpha); in draw() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/ |
D | PageIndicatorLineCaret.java | 74 public void set(PageIndicatorLineCaret obj, Integer alpha) { 75 obj.mLinePaint.setAlpha(alpha); 247 private void animateLineToAlpha(int alpha) { in animateLineToAlpha() argument 248 if (alpha == mToAlpha) { in animateLineToAlpha() 252 mToAlpha = alpha; in animateLineToAlpha() 253 setupAndRunAnimation(ObjectAnimator.ofInt(this, PAINT_ALPHA, alpha), in animateLineToAlpha()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | SwitchCompatUtils.java | 119 final int attr, final float alpha) { in getThemeAttrColor() argument 121 return getColor(color, alpha); in getThemeAttrColor() 124 private static int getColor(int color, float alpha) { in getColor() argument 125 final int originalAlpha = Color.alpha(color); in getColor() 127 return (color & 0x00ffffff) | (Math.round(originalAlpha * alpha) << 24); in getColor()
|
/packages/apps/Car/libs/car-stream-ui-lib/src/com/android/car/view/ |
D | CarRecyclerView.java | 119 float alpha = 1 - (1 - onScreen) * (1 - onScreen); in drawChild() local 120 fadeChild(child, alpha); in drawChild() 185 private void fadeChild(@NonNull View child, float alpha) { in fadeChild() argument 189 fadeChild(vg.getChildAt(i), alpha); in fadeChild() local 192 child.setAlpha(alpha); in fadeChild()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/ |
D | ExpandedAlarmViewHolder.java | 504 private void setChangingViewsAlpha(float alpha) { in setChangingViewsAlpha() argument 505 repeat.setAlpha(alpha); in setChangingViewsAlpha() 506 editLabel.setAlpha(alpha); in setChangingViewsAlpha() 507 repeatDays.setAlpha(alpha); in setChangingViewsAlpha() 508 vibrate.setAlpha(alpha); in setChangingViewsAlpha() 509 ringtone.setAlpha(alpha); in setChangingViewsAlpha() 510 hairLine.setAlpha(alpha); in setChangingViewsAlpha() 511 delete.setAlpha(alpha); in setChangingViewsAlpha() 512 preemptiveDismissButton.setAlpha(alpha); in setChangingViewsAlpha()
|
D | CollapsedAlarmViewHolder.java | 252 private void setChangingViewsAlpha(float alpha) { in setChangingViewsAlpha() argument 253 alarmLabel.setAlpha(alpha); in setChangingViewsAlpha() 254 daysOfWeek.setAlpha(alpha); in setChangingViewsAlpha() 255 upcomingInstanceLabel.setAlpha(alpha); in setChangingViewsAlpha() 256 hairLine.setAlpha(alpha); in setChangingViewsAlpha() 257 preemptiveDismissButton.setAlpha(alpha); in setChangingViewsAlpha()
|
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/car/ |
D | KeyboardView.java | 817 int alpha = in onBufferDraw() local 819 if (alpha > MAX_ALPHA) { in onBufferDraw() 820 alpha = MAX_ALPHA; in onBufferDraw() 821 } else if (alpha < 0) { in onBufferDraw() 822 alpha = 0; in onBufferDraw() 824 paint.setAlpha(alpha); in onBufferDraw() 826 int alpha; in onBufferDraw() local 829 alpha = (int) ((3 - mAnimateOutValue * 4) * MAX_ALPHA); in onBufferDraw() 832 alpha = (int) ((1 - mAnimateOutValue * 2) * MAX_ALPHA); in onBufferDraw() 834 if (alpha > MAX_ALPHA) { in onBufferDraw() [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/apps/Launcher3/src/com/android/launcher3/folder/ |
D | PreviewBackground.java | 111 public void set(PreviewBackground previewBackground, Integer alpha) { 112 previewBackground.mStrokeAlpha = alpha; 125 public void set(PreviewBackground previewBackground, Integer alpha) { 126 previewBackground.mShadowAlpha = alpha; 199 int alpha = (int) Math.min(MAX_BG_OPACITY, BG_OPACITY * mColorMultiplier); in getBgColor() local 200 return ColorUtils.setAlphaComponent(mBgColor, alpha); in getBgColor()
|