Home
last modified time | relevance | path

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

123

/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()
/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/tools/winscope/src/parsers/window_manager/operations/
Dadd_is_visible.ts39 const alpha = value constant
43 if (alpha !== undefined) {
48 isVisible && alpha > 0,
/development/tools/winscope/src/app/components/timeline/expanded-timeline/
Ddefault_timeline_row_component_test.ts82 const alpha = 0.2; constant
91 alpha,
96 alpha,
101 alpha,
106 alpha,
120 const alpha = 0.2; constant
129 alpha,
Dtransition_timeline_component.ts230 const alpha = aborted ? 0.25 : 1.0; constant
231 this.canvasDrawer.drawRect(rect, this.color, alpha);
254 const alpha = transition.getChildByName('aborted') ? 0.25 : 1.0; constant
255 this.canvasDrawer.drawRect(rect, this.color, alpha);
Dcanvas_drawer.ts33 drawRect(rect: Rect, color: string, alpha: number) {
45 this.ctx.fillStyle = `rgba(${r},${g},${b},${alpha})`;
/development/tools/winscope/src/parsers/view_capture/computations/
Drects_computation_test.ts44 alpha: 1,
61 alpha: 1,
78 alpha: 1,
/development/tools/winscope/src/viewers/components/
Dview_capture_property_groups_component_test.ts143 const alpha = assertDefined(translationSection.querySelector('.alpha')); constant
144 expect(alpha.innerHTML).toContain('Alpha:');
145 expect(alpha.innerHTML).toContain('1');
186 alpha: '1',
/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/tools/winscope/src/parsers/window_manager/computations/
Drects_computation.ts62 const alpha = constant
93 .setOpacity(alpha)
Drects_computation_test.ts88 alpha: 0.5,
102 alpha: 0.5,
/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/tools/winscope/src/trace/tree_node/
Dformatters.ts69 const alpha = formatNumber(alphaNode?.getValue() ?? 0); constant
71 return `${EMPTY_OBJ_STRING}, alpha: ${alpha}`;
73 return `(${r}, ${g}, ${b}, ${alpha})`;
/development/tools/winscope/src/parsers/surface_flinger/computations/
Dvisibility_properties_computation.ts408 const alpha = this.getColor(layer)?.getChildByName('a')?.getValue() ?? 0; constant
409 return alpha === 0;
413 const alpha = this.getColor(layer)?.getChildByName('a')?.getValue(); constant
414 if (alpha !== 1) {
/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/StartingWindow/src/com/example/android/startingwindow/
DCustomizeExitActivity.java125 ObjectAnimator alpha = ObjectAnimator.ofFloat(view, "alpha", 1, 0); in onSplashScreenExit() local
126 alpha.setInterpolator(ACCELERATE); in onSplashScreenExit()
131 animatorSet.playTogether(translationY, alpha, marginAnimator); in onSplashScreenExit()
/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/tools/winscope/src/viewers/common/
Dcurated_properties.ts77 alpha: string; property
/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/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/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()

123