/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/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/ |
D | ClearAllButton.java | 69 public void setContentAlpha(float alpha) { in setContentAlpha() argument 70 if (mContentAlpha != alpha) { in setContentAlpha() 71 mContentAlpha = alpha; in setContentAlpha() 76 public void setVisibilityAlpha(float alpha) { in setVisibilityAlpha() argument 77 if (mVisibilityAlpha != alpha) { in setVisibilityAlpha() 78 mVisibilityAlpha = alpha; in setVisibilityAlpha() 97 final float alpha = mScrollAlpha * mContentAlpha * mVisibilityAlpha; in updateAlpha() local 98 setAlpha(alpha); in updateAlpha() 99 setClickable(alpha == 1); in updateAlpha()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/ |
D | CaptionCustomFragment.java | 222 final int alpha = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsTextColor() local 225 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, color | alpha); in setCaptionsTextColor() local 236 final int alpha = (int) Long.parseLong(textOpacity, 16) & 0xff000000; in setCaptionsTextOpacity() local 238 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, color | alpha); in setCaptionsTextOpacity() local 284 final int alpha = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsBackgroundColor() local 287 Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, color | alpha); in setCaptionsBackgroundColor() local 298 final int alpha = (int) Long.parseLong(backgroundOpacity, 16) & 0xff000000; in setCaptionsBackgroundOpacity() local 300 Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, color | alpha); in setCaptionsBackgroundOpacity() local 324 final int alpha = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsWindowColor() local 327 Settings.Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR, color | alpha); in setCaptionsWindowColor() local [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 setColorAlphaBound(mShadowInfo.ambientShadowColor, alpha)); in onDraw() 72 setColorAlphaBound(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/Launcher3/iconloaderlib/src/com/android/launcher3/icons/ |
D | GraphicsUtils.java | 39 public static int setColorAlphaBound(int color, int alpha) { in setColorAlphaBound() argument 40 if (alpha < 0) { in setColorAlphaBound() 41 alpha = 0; in setColorAlphaBound() 42 } else if (alpha > 255) { in setColorAlphaBound() 43 alpha = 255; in setColorAlphaBound() 45 return (color & 0x00ffffff) | (alpha << 24); in setColorAlphaBound()
|
/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/Launcher3/quickstep/src/com/android/launcher3/ |
D | QuickstepAppTransitionManagerImpl.java | 356 ObjectAnimator alpha = ObjectAnimator.ofFloat(appsView, View.ALPHA, alphas); in getLauncherContentAnimator() local 357 alpha.setDuration(CONTENT_ALPHA_DURATION); in getLauncherContentAnimator() 358 alpha.setInterpolator(LINEAR); in getLauncherContentAnimator() 360 alpha.addListener(new AnimatorListenerAdapter() { in getLauncherContentAnimator() 370 launcherAnimator.play(alpha); in getLauncherContentAnimator() 385 ObjectAnimator alpha = in getLauncherContentAnimator() local 387 alpha.setDuration(CONTENT_ALPHA_DURATION); in getLauncherContentAnimator() 388 alpha.setInterpolator(LINEAR); in getLauncherContentAnimator() 389 launcherAnimator.play(alpha); in getLauncherContentAnimator() 558 final float alpha; in getOpeningWindowAnimators() local [all …]
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | PieItem.java | 46 private float alpha; field in PieItem 78 public void setAlpha(float alpha) { in setAlpha() argument 79 this.alpha = alpha; in setAlpha() 80 drawable.setAlpha((int) (255 * alpha)); in setAlpha() 177 setAlpha(alpha); in setImageResource()
|
D | PieRenderer.java | 344 .alpha(0) in startFadeOut() 360 float alpha = 1; in onDraw() local 362 alpha = xFade.getValue(); in onDraw() 364 alpha = fadeIn.getValue(); in onDraw() 368 float sf = 0.9f + alpha * 0.1f; in onDraw() 379 drawItem(canvas, item, alpha); in onDraw() 384 drawItem(canvas, inner, (xFade != 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/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/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/ |
D | PreviewPagerAdapter.java | 151 final float alpha = (visibility == View.VISIBLE ? 1.0f : 0.0f); in setVisibility() local 153 view.setAlpha(alpha); in setVisibility() 161 .alpha(alpha) in setVisibility() 174 .alpha(alpha) in setVisibility()
|
/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/anim/ |
D | PropertySetter.java | 32 public void setViewAlpha(View view, float alpha, TimeInterpolator interpolator) { in setViewAlpha() argument 34 view.setAlpha(alpha); in setViewAlpha() 60 public void setViewAlpha(View view, float alpha, TimeInterpolator interpolator) { in setViewAlpha() argument 61 if (view == null || view.getAlpha() == alpha) { in setViewAlpha() 64 ObjectAnimator anim = ObjectAnimator.ofFloat(view, View.ALPHA, alpha); in setViewAlpha()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | PreviewPagerAdapter.java | 152 final float alpha = (visibility == View.VISIBLE ? 1.0f : 0.0f); in setVisibility() local 154 view.setAlpha(alpha); in setVisibility() 162 .alpha(alpha) in setVisibility() 175 .alpha(alpha) in setVisibility()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | OverviewInteractionState.java | 75 public void setBackButtonAlpha(float alpha, boolean animate) { in setBackButtonAlpha() argument 77 alpha = 1; in setBackButtonAlpha() 80 mUiHandler.obtainMessage(MSG_SET_BACK_BUTTON_ALPHA, animate ? 1 : 0, 0, alpha) in setBackButtonAlpha() 117 private void applyBackButtonAlpha(float alpha, boolean animate) { in applyBackButtonAlpha() argument 122 mISystemUiProxy.setBackButtonAlpha(alpha, animate); in applyBackButtonAlpha()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/ |
D | ColorPreference.java | 65 return Color.alpha(getValue()) == 0 || super.shouldDisableDependents(); in shouldDisableDependents() 90 if (Color.alpha(argb) < 255) { in onBindViewHolder() 117 final int alpha = Color.alpha(argb); in onBindListItem() local 120 if (alpha < 255) { in onBindListItem()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | ColorPreference.java | 65 return Color.alpha(getValue()) == 0 || super.shouldDisableDependents(); in shouldDisableDependents() 90 if (Color.alpha(argb) < 255) { in onBindViewHolder() 117 final int alpha = Color.alpha(argb); in onBindListItem() local 120 if (alpha < 255) { in onBindListItem()
|
/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/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()
|