Home
last modified time | relevance | path

Searched refs:alpha (Results 1 – 25 of 38) sorted by relevance

12

/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DGLColor.java24 public final int alpha; field in GLColor
26 public GLColor(int red, int green, int blue, int alpha) { in GLColor() argument
30 this.alpha = alpha; in GLColor()
37 this.alpha = 0x10000; in GLColor()
47 alpha == color.alpha); in equals()
DGLVertex.java69 colorBuffer.put(color.alpha); in put()
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DShapeHolder.java34 private float alpha = 1f; field in ShapeHolder
76 public void setAlpha(float alpha) { in setAlpha() argument
77 this.alpha = alpha; in setAlpha()
78 shape.setAlpha((int)((alpha * 255f) + .5f)); in setAlpha()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DProxyDrawable.java87 public void setAlpha(int alpha) { in setAlpha() argument
89 mProxy.setAlpha(alpha); in setAlpha()
DRegions.java49 private void drawOriginalRects(Canvas canvas, int alpha) { in drawOriginalRects() argument
52 mPaint.setAlpha(alpha); in drawOriginalRects()
55 mPaint.setAlpha(alpha); in drawOriginalRects()
DColorPickerDialog.java131 int a = ave(Color.alpha(c0), Color.alpha(c1), p); in interpColor()
160 return Color.argb(Color.alpha(color), pinToByte(ir), in rotateColor()
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/
DCrossfadeActivity.java121 .alpha(1f) in showContentOrLoadingIndicator()
128 .alpha(0f) in showContentOrLoadingIndicator()
/development/samples/devbytes/animation/PictureViewer/src/com/example/android/pictureviewer/
DPictureViewer.java76 prevImageView.animate().alpha(0).withLayer(); in onCreate()
77 nextImageView.animate().alpha(1).withLayer(). in onCreate()
/development/samples/browseable/DrawableTinting/src/com.example.android.drawabletinting/
DDrawableTintingFragment.java231 final int alpha = mAlphaBar.getProgress(); in getColor() local
236 return Color.argb(alpha, red, green, blue); in getColor()
265 Color.alpha(color), Color.red(color), Color.green(color), Color.blue(color), in updateTint()
272 mAlphaText.setText(getString(R.string.value_alpha, Color.alpha(color))); in updateTint()
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
DPictureDetailsActivity.java159 translationY(0).alpha(1). in runEnterAnimation()
212 mTextView.animate().translationY(-mTextView.getHeight()).alpha(0). in runExitAnimation()
222 mImageView.animate().alpha(0); in runExitAnimation()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java489 static int blend(float alpha, int from, int to) {
490 return from + (int) ((to - from) * alpha);
493 static void setPaintARGBBlend(Paint paint, float alpha,
496 paint.setARGB(blend(alpha, a1, a2), blend(alpha, r1, r2),
497 blend(alpha, g1, g2), blend(alpha, b1, b2));
/development/samples/devbytes/ui/ListViewDeletion/src/com/example/android/listviewdeletion/
DListViewDeletion.java97 view.animate().alpha(0).withEndAction(new Runnable() { in onCreate()
124 checkedView.animate().alpha(0).withEndAction(new Runnable() { in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DMatrixTrackingGL.java105 public void glClearColor(float red, float green, float blue, float alpha) { in glClearColor() argument
106 mgl.glClearColor(red, green, blue, alpha); in glClearColor()
109 public void glClearColorx(int red, int green, int blue, int alpha) { in glClearColorx() argument
110 mgl.glClearColorx(red, green, blue, alpha); in glClearColorx()
129 public void glColor4f(float red, float green, float blue, float alpha) { in glColor4f() argument
130 mgl.glColor4f(red, green, blue, alpha); in glColor4f()
133 public void glColor4x(int red, int green, int blue, int alpha) { in glColor4x() argument
134 mgl.glColor4x(red, green, blue, alpha); in glColor4x()
138 boolean alpha) { in glColorMask() argument
139 mgl.glColorMask(red, green, blue, alpha); in glColorMask()
[all …]
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DDigitalWatchFaceService.java393 int alpha = inMuteMode ? MUTE_ALPHA : NORMAL_ALPHA; in onInterruptionFilterChanged() local
394 mDatePaint.setAlpha(alpha); in onInterruptionFilterChanged()
395 mHourPaint.setAlpha(alpha); in onInterruptionFilterChanged()
396 mMinutePaint.setAlpha(alpha); in onInterruptionFilterChanged()
397 mColonPaint.setAlpha(alpha); in onInterruptionFilterChanged()
398 mAmPmPaint.setAlpha(alpha); in onInterruptionFilterChanged()
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/
DSlidingTabStrip.java168 private static int setColorAlpha(int color, byte alpha) { in setColorAlpha() argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha()
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/
DSlidingTabStrip.java168 private static int setColorAlpha(int color, byte alpha) { in setColorAlpha() argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha()
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/
DSlidingTabStrip.java168 private static int setColorAlpha(int color, byte alpha) { in setColorAlpha() argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha()
/development/samples/browseable/SlidingTabsColors/src/com.example.android.common/view/
DSlidingTabStrip.java168 private static int setColorAlpha(int color, byte alpha) { in setColorAlpha() argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha()
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/view/
DSlidingTabStrip.java168 private static int setColorAlpha(int color, byte alpha) { in setColorAlpha() argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha()
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/view/
DSlidingTabStrip.java168 private static int setColorAlpha(int color, byte alpha) { in setColorAlpha() argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha()
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java454 private static int blend(float alpha, int from, int to) { in blend() argument
455 return from + (int) ((to - from) * alpha); in blend()
458 private static void setPaintARGBBlend(Paint paint, float alpha, in setPaintARGBBlend() argument
461 paint.setARGB(blend(alpha, a1, a2), blend(alpha, r1, r2), in setPaintARGBBlend()
462 blend(alpha, g1, g2), blend(alpha, b1, b2)); in setPaintARGBBlend()
/development/samples/devbytes/ui/ImmersiveMode/src/main/java/com/example/android/immersive/
DImmersiveActivity.java47 .alpha(visible ? 1 : 0) in onCreate()
/development/samples/devbytes/graphics/FoldingLayout/src/com/example/android/foldinglayout/
DFoldingLayout.java469 int alpha = (int) (mFoldFactor * 255 * SHADING_ALPHA); in calculateMatrices()
471 mSolidShadow.setColor(Color.argb(alpha, 0, 0, 0)); in calculateMatrices() argument
482 mGradientShadow.setAlpha(alpha); in calculateMatrices()
/development/samples/devbytes/animation/ListViewAnimations/src/com/example/android/listviewanimations/
DListViewAnimations.java66 view.animate().setDuration(1000).alpha(0). in onCreate()
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/ui/
DAttractionsActivity.java154 mDotsPageIndicator.animate().alpha(1).setDuration( in onChromeFadeIn()
161 mDotsPageIndicator.animate().alpha(0).setDuration( in onChromeFadeOut()

12