/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/Car/Notification/src/com/android/car/notification/headsup/animationhelper/ |
D | CarHeadsUpNotificationRightAnimationHelper.java | 46 ObjectAnimator alpha = ObjectAnimator.ofFloat(view, "alpha", 1f); in getAnimateInAnimator() local 47 alpha.setDuration( in getAnimateInAnimator() 49 alpha.setInterpolator(alphaInterpolator); in getAnimateInAnimator() 52 animatorSet.playTogether(move, alpha); in getAnimateInAnimator() 69 ObjectAnimator alpha = ObjectAnimator.ofFloat(view, "alpha", 0f); in getAnimateOutAnimator() local 70 alpha.setDuration(context.getResources().getInteger(R.integer.headsup_exit_duration_ms)); in getAnimateOutAnimator() 71 alpha.setInterpolator(alphaInterpolator); in getAnimateOutAnimator() 74 animatorSet.playTogether(move, alpha); in getAnimateOutAnimator()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | ClearAllButton.java | 86 public void setContentAlpha(float alpha) { in setContentAlpha() argument 87 if (mContentAlpha != alpha) { in setContentAlpha() 88 mContentAlpha = alpha; in setContentAlpha() 93 public void setVisibilityAlpha(float alpha) { in setVisibilityAlpha() argument 94 if (mVisibilityAlpha != alpha) { in setVisibilityAlpha() 95 mVisibilityAlpha = alpha; in setVisibilityAlpha() 126 final float alpha = mScrollAlpha * mContentAlpha * mVisibilityAlpha; in updateAlpha() local 127 setAlpha(alpha); in updateAlpha() 128 setClickable(Math.min(alpha, 1) == 1); in updateAlpha()
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | DoubleShadowBubbleTextView.java | 59 int alpha = Color.alpha(getCurrentTextColor()); in onDraw() local 63 getTextShadowColor(mShadowInfo.ambientShadowColor, alpha)); in onDraw() 75 getTextShadowColor(mShadowInfo.keyShadowColor, alpha)); in onDraw() 108 int textAlpha = Color.alpha(textView.getCurrentTextColor()); in skipDoubleShadow() 109 int keyShadowAlpha = Color.alpha(keyShadowColor); in skipDoubleShadow() 110 int ambientShadowAlpha = Color.alpha(ambientShadowColor); in skipDoubleShadow() 134 Math.round(Color.alpha(shadowColor) * textAlpha / 255f)); in getTextShadowColor()
|
/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/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
D | LauncherTaskbarUIController.java | 101 public void updateTaskbarBackgroundAlpha(float alpha) { in createTaskbarAnimationControllerCallbacks() 102 mTaskbarDragLayer.setTaskbarBackgroundAlpha(alpha); in createTaskbarAnimationControllerCallbacks() 106 public void updateTaskbarVisibilityAlpha(float alpha) { in createTaskbarAnimationControllerCallbacks() argument 107 mTaskbarView.setAlpha(alpha); in createTaskbarAnimationControllerCallbacks() 111 public void updateImeBarVisibilityAlpha(float alpha) { in createTaskbarAnimationControllerCallbacks() argument 112 mTaskbarDragLayer.updateImeBarVisibilityAlpha(alpha); in createTaskbarAnimationControllerCallbacks() 269 void updateTaskbarBackgroundAlpha(float alpha); 270 void updateTaskbarVisibilityAlpha(float alpha); 271 void updateImeBarVisibilityAlpha(float alpha);
|
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/ |
D | CueView.java | 76 public void setCue(Cue cue, ImageResolver imageResolver, float alpha) { in setCue() argument 93 mHandler.post(() -> update(cue, bitmaps, alpha)); in setCue() 101 () -> update(cue, Collections.emptyMap(), alpha)); in setCue() 107 private void update(Cue cue, Map<ImageReference, Bitmap> bitmaps, float alpha) { in update() argument 116 appendImage(builder, imageText, bitmap, alpha); in update() 124 setAlpha(alpha); in update() 128 float alpha) { in appendImage() argument 134 drawable.setAlpha((int) (alpha * 255)); in appendImage()
|
/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/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/modules/NeuralNetworks/common/operations/ |
D | LocalResponseNormalization.cpp | 52 int32_t radius, float bias, float alpha, float beta, in localResponseNormFloat32Impl() argument 73 float multiplier = std::pow(bias + alpha * sum, -beta); in localResponseNormFloat32Impl() 82 bool localResponseNorm(const T* inputData, const Shape& inputShape, int32_t radius, T bias, T alpha, 87 float bias, float alpha, float beta, int32_t axis, float* outputData, in localResponseNorm() argument 96 .range = radius, .bias = bias, .alpha = alpha, .beta = beta}; in localResponseNorm() 102 return localResponseNormFloat32Impl(inputData, inputShape, radius, bias, alpha, beta, axis, in localResponseNorm() 109 _Float16 bias, _Float16 alpha, _Float16 beta, int32_t axis, in localResponseNorm() argument 116 localResponseNorm<float>(inputDataFloat32.data(), inputShape, radius, bias, alpha, beta, axis, in localResponseNorm()
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/ |
D | elu.mod.py | 17 def test(name, input0, alpha, output0, input0_data, output0_data): argument 18 model = Model().Operation("ELU", input0, alpha).To(output0) 27 alpha=Float32Scalar("alpha", 1.0), 36 alpha=Float32Scalar("alpha", 0.1), 45 alpha=Float32Scalar("alpha", 10),
|
/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/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/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/ |
D | CueView.java | 69 public void setCue(Cue cue, ImageResolver imageResolver, float alpha) { in setCue() argument 86 mHandler.post(() -> update(cue, bitmaps, alpha)); in setCue() 94 () -> update(cue, Collections.emptyMap(), alpha)); in setCue() 100 private void update(Cue cue, Map<ImageReference, Bitmap> bitmaps, float alpha) { in update() argument 114 drawable.setAlpha((int) (alpha * 255)); in update() 123 setAlpha(alpha); in update()
|
/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/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/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/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/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()
|