Searched refs:alpha (Results 1 - 25 of 55) sorted by relevance

123

/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
H A DZoomControl.java148 final double alpha = Math.atan((double)y / (double)x);
150 if (!checkHit(x, y, alpha)) {
156 mThumbX = (int)((mRadius * Math.cos(alpha)) + (getWidth() / 2));
157 mThumbY = (int)((getHeight() / 2) - (mRadius * Math.sin(alpha)));
158 progress = (int)((mMaxProgress / 2) - (alpha / mInterval));
160 mThumbX = (int)((mRadius * Math.cos(alpha)) + (getWidth() / 2));
161 mThumbY = (int)((getHeight() / 2) - (mRadius * Math.sin(alpha)));
162 progress = (int)((mMaxProgress / 2) - (alpha / mInterval));
164 mThumbX = (int)((getWidth() / 2) - (mRadius * Math.cos(alpha)));
165 mThumbY = (int)((getHeight() / 2) + (mRadius * Math.sin(alpha)));
206 checkHit(float x, float y, double alpha) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DViewOverlay.java22 * This is implemented by {@link View}s that contain an alpha layer and touch interceptor layer.
23 * The alpha layer covers the entire fragment and has an alpha value which makes the fragment
30 * Sets the alpha value on the alpha layer (if there is one).
32 public void setAlphaLayerValue(float alpha); argument
H A DCarouselTab.java37 * This view adds an alpha layer over the entire tab.
89 public void setAlphaLayerValue(float alpha) { argument
90 ContactDetailDisplayUtils.setAlphaOnViewBackground(mAlphaLayer, alpha);
H A DContactDetailUpdatesFragment.java54 * This optional view adds an alpha layer over the entire fragment.
170 public void setAlphaLayerValue(float alpha) { argument
171 // If the alpha layer is not ready yet, store it for later when the view is initialized
173 mInitialAlphaValue = alpha;
176 ContactDetailDisplayUtils.setAlphaOnViewBackground(mAlphaLayer, alpha);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DPositionRepository.java34 public float alpha; field in class:PositionRepository.Position
43 public Position(float x, float y, float z, float ftheta, float alpha) { argument
48 this.alpha = alpha;
65 alpha = another.alpha;
68 public void set(float x, float y, float z, float ftheta, float alpha) { argument
73 this.alpha = alpha;
82 && alpha
[all...]
H A DGLCanvasImpl.java118 public void setAlpha(float alpha) { argument
119 Utils.assertTrue(alpha >= 0 && alpha <= 1);
120 mAlpha = alpha;
123 public void multiplyAlpha(float alpha) { argument
124 Utils.assertTrue(alpha >= 0 && alpha <= 1);
125 mAlpha *= alpha;
254 float alpha = mAlpha;
258 && (!tex.isOpaque() || alpha < OPAQUE_ALPH
380 drawTexture(BasicTexture texture, int x, int y, int width, int height, float alpha) argument
457 setTextureColor(float r, float g, float b, float alpha) argument
465 drawMixed(BasicTexture from, int toColor, float ratio, int x, int y, int width, int height, float alpha) argument
530 drawMixed(BasicTexture from, BasicTexture to, float ratio, int x, int y, int width, int height, float alpha) argument
718 setTextureAlpha(float alpha) argument
731 setColorMode(int color, float alpha) argument
[all...]
H A DGLCanvas.java48 // Sets and gets the current alpha, alpha must be in [0, 1].
49 public void setAlpha(float alpha); argument
52 // (current alpha) = (current alpha) * alpha
53 public void multiplyAlpha(float alpha); argument
66 // Pushes the configuration state (matrix, alpha, and clip) onto
79 // alpha, and clip). This call balances a previous call to save(), and is
101 // Draws a texture to the specified rectangle. The "alpha" paramete
103 drawTexture(BasicTexture texture, int x, int y, int width, int height, float alpha) argument
[all...]
H A DSlideshowView.java97 float alpha = mPrevTexture == null ? 1f : mTransitionAnimation.get();
99 if (mPrevTexture != null && alpha != 1f) {
102 canvas.setAlpha(1f - alpha);
112 canvas.setAlpha(alpha);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DPagedViewIcon.java70 final int alpha = r.getInteger(R.integer.config_dragAppsCustomizeIconFadeAlpha);
71 if (alpha > 0) {
105 public void setAlpha(float alpha) { argument
106 final float viewAlpha = HolographicOutlineHelper.viewAlphaInterpolator(alpha);
107 final float holographicAlpha = HolographicOutlineHelper.highlightAlphaInterpolator(alpha);
159 float alpha;
162 alpha = mCheckedAlpha;
165 alpha = 1.0f;
174 mCheckedAlphaAnimator = ObjectAnimator.ofFloat(this, "alpha", getAlpha(), alpha);
[all...]
H A DPagedViewWidget.java77 final int alpha = r.getInteger(R.integer.config_dragAppsCustomizeIconFadeAlpha);
78 if (alpha > 0) {
201 protected boolean onSetAlpha(int alpha) { argument
205 private void setChildrenAlpha(float alpha) { argument
208 getChildAt(i).setAlpha(alpha);
212 public void setAlpha(float alpha) { argument
213 final float viewAlpha = mHolographicOutlineHelper.viewAlphaInterpolator(alpha);
214 final float holographicAlpha = mHolographicOutlineHelper.highlightAlphaInterpolator(alpha);
229 float alpha;
232 alpha
[all...]
H A DFastBitmapDrawable.java62 public void setAlpha(int alpha) { argument
63 mAlpha = alpha;
64 mPaint.setAlpha(alpha);
H A DBubbleTextView.java91 mBubbleColorAlpha = Color.alpha(bubbleColor) / 255.0f;
313 protected boolean onSetAlpha(int alpha) { argument
314 if (mPrevAlpha != alpha) {
315 mPrevAlpha = alpha;
316 mPaint.setAlpha((int) (alpha * mBubbleColorAlpha));
317 super.onSetAlpha(alpha);
H A DDragView.java182 public void setAlpha(float alpha) { argument
183 super.setAlpha(alpha);
187 mPaint.setAlpha((int) (255 * alpha));
H A DCellLayout.java405 float alpha = Math.min(MAX_ALPHA,
407 if (alpha > 0.0f) {
409 d.setAlpha((int) (alpha * 255 * mCrosshairsVisibility));
420 final float alpha = mDragOutlineAlphas[i];
421 if (alpha > 0) {
424 paint.setAlpha((int)(alpha + .5f));
906 public void setFastBackgroundAlpha(float alpha) { argument
907 mBackgroundAlpha = alpha;
918 public void setBackgroundAlpha(float alpha) { argument
919 mBackgroundAlpha = alpha;
927 onSetAlpha(int alpha) argument
931 setAlpha(float alpha) argument
936 setFastAlpha(float alpha) argument
941 setChildrenAlpha(float alpha) argument
948 setFastChildrenAlpha(float alpha) argument
[all...]
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
H A DGLMock.java73 float alpha) {
75 mGLColor = makeColor4f(red, green, blue, alpha);
79 public void glColor4x(int red, int green, int blue, int alpha) { argument
81 mGLColor = makeColor4x(red, green, blue, alpha);
184 float alpha) {
185 return (Math.round(alpha * 255) << 24) |
191 public static int makeColor4x(int red, int green, int blue, int alpha) { argument
193 return makeColor4f(red / X, green / X, blue / X, alpha / X);
72 glColor4f(float red, float green, float blue, float alpha) argument
183 makeColor4f(float red, float green, float blue, float alpha) argument
H A DGLCanvasStub.java30 public void setAlpha(float alpha) {} argument
34 public void multiplyAlpha(float alpha) {} argument
57 int x, int y, int width, int height, float alpha) {}
64 float ratio, int x, int y, int width, int height, float alpha) {}
56 drawTexture(BasicTexture texture, int x, int y, int width, int height, float alpha) argument
63 drawMixed(BasicTexture from, BasicTexture to, float ratio, int x, int y, int width, int height, float alpha) argument
H A DGLStub.java61 float alpha
68 int alpha
91 float alpha
98 int alpha
105 boolean alpha
798 byte alpha
/packages/apps/Calculator/src/com/android/calculator2/
H A DColorButton.java86 int alpha = 255 - 255 * duration / CLICK_FEEDBACK_DURATION;
87 int color = CLICK_FEEDBACK_COLOR | (alpha << 24);
/packages/apps/Phone/src/com/android/phone/
H A DBitmapUtils.java111 // The filter discards the alpha channel.
129 // Compute the alpha value.
130 int alpha = 0xff;
145 out[outPos] = (alpha << 24) | ((red >> 8) << RED_MASK_SHIFT)
/packages/apps/Settings/src/com/android/settings/drawable/
H A DDrawableWrapper.java74 public void setAlpha(int alpha) { argument
75 mDrawable.setAlpha(alpha);
/packages/apps/Browser/src/com/android/browser/
H A DSnapshotBar.java146 .alpha(0f)
150 .alpha(1f)
157 .alpha(1f)
161 .alpha(0f)
/packages/apps/Contacts/src/com/android/contacts/widget/
H A DTextHighlightingAnimation.java136 * A Span that modifies alpha of the default foreground color.
141 public void setAlpha(int alpha) { argument
142 mAlpha = alpha;
H A DPinnedHeaderListView.java84 int alpha; field in class:PinnedHeaderListView.PinnedHeader
310 header.alpha = MAX_ALPHA;
320 header.alpha = MAX_ALPHA * (headerHeight + portion) / headerHeight;
513 canvas.saveLayerAlpha(mBounds, header.alpha, Canvas.ALL_SAVE_FLAG);
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
H A DHoloSpiralRS.java256 float alpha = Color.alpha(color) / 255.0f;
257 return new Float4(red, green, blue, alpha);
/packages/apps/Contacts/src/com/android/contacts/voicemail/
H A DVoicemailPlaybackFragment.java451 mTemporaryTextView.animate().alpha(VISIBLE).setDuration(SHORT_ANIMATION_MS);
452 mPermanentTextView.animate().alpha(INVISIBLE).setDuration(SHORT_ANIMATION_MS);
463 .alpha(INVISIBLE).setDuration(LONG_ANIMATION_MS);
465 .alpha(VISIBLE).setDuration(LONG_ANIMATION_MS);

Completed in 568 milliseconds

123