/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/DeskClock/src/com/android/deskclock/alarms/dataadapter/ |
D | ExpandedAlarmViewHolder.kt | 237 repeatDays.alpha = if (isExpansion) 0f else 1f in <lambda>() 259 repeatDays.alpha = 1f in <lambda>() 475 private fun setChangingViewsAlpha(alpha: Float) { in <lambda>() 476 repeat.alpha = alpha in <lambda>() 477 editLabel.alpha = alpha in <lambda>() 478 repeatDays.alpha = alpha in <lambda>() 479 vibrate.alpha = alpha in <lambda>() 480 ringtone.alpha = alpha in <lambda>() 481 hairLine.alpha = alpha in <lambda>() 482 delete.alpha = alpha in <lambda>() [all …]
|
D | CollapsedAlarmViewHolder.kt | 236 private fun setChangingViewsAlpha(alpha: Float) { in <lambda>() 237 alarmLabel.alpha = alpha in <lambda>() 238 daysOfWeek.alpha = alpha in <lambda>() 239 upcomingInstanceLabel.alpha = alpha in <lambda>() 240 hairLine.alpha = alpha in <lambda>() 241 preemptiveDismissButton.alpha = alpha in <lambda>()
|
/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 | 365 ObjectAnimator alpha = ObjectAnimator.ofFloat(appsView, View.ALPHA, alphas); in getLauncherContentAnimator() local 366 alpha.setDuration(CONTENT_ALPHA_DURATION); in getLauncherContentAnimator() 367 alpha.setInterpolator(LINEAR); in getLauncherContentAnimator() 369 alpha.addListener(new AnimatorListenerAdapter() { in getLauncherContentAnimator() 379 launcherAnimator.play(alpha); in getLauncherContentAnimator() 394 ObjectAnimator alpha = in getLauncherContentAnimator() local 396 alpha.setDuration(CONTENT_ALPHA_DURATION); in getLauncherContentAnimator() 397 alpha.setInterpolator(LINEAR); in getLauncherContentAnimator() 398 launcherAnimator.play(alpha); in getLauncherContentAnimator() 567 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()
|
/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/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/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/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | PreviewFragment.java | 504 float alpha; in setUpBottomSheetListeners() 506 alpha = slideOffset; in setUpBottomSheetListeners() 508 alpha = 1f - slideOffset; in setUpBottomSheetListeners() 510 setBottomSheetContentAlpha(alpha); in setUpBottomSheetListeners() 515 protected void setBottomSheetContentAlpha(float alpha) { in setBottomSheetContentAlpha() argument 643 public void setContentAlpha(float alpha) { in setContentAlpha() argument 644 mSetWallpaperButton.setAlpha(alpha); in setContentAlpha() 645 mExploreButton.setAlpha(alpha); in setContentAlpha() 646 mAttributionTitle.setAlpha(alpha); in setContentAlpha() 647 mAttributionSubtitle1.setAlpha(alpha); in setContentAlpha() [all …]
|
/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 | 76 public void setBackButtonAlpha(float alpha, boolean animate) { in setBackButtonAlpha() argument 78 alpha = 1; in setBackButtonAlpha() 81 mUiHandler.obtainMessage(MSG_SET_BACK_BUTTON_ALPHA, animate ? 1 : 0, 0, alpha) in setBackButtonAlpha() 118 private void applyBackButtonAlpha(float alpha, boolean animate) { in applyBackButtonAlpha() argument 123 mISystemUiProxy.setBackButtonAlpha(alpha, animate); in applyBackButtonAlpha()
|
/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/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()
|