Home
last modified time | relevance | path

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

/platform_testing/libraries/flicker/utils/src/android/tools/traces/view/
DViewNode.kt39 val alpha: Double, // [default = 1]; constant in android.tools.traces.view.ViewNode
57 if (alpha != other.alpha) return false in equals()
75 result = 31 * result + alpha.hashCode() in hashCode()
96 alpha: Double, in toString()
111 alpha, in toString()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/matchers/
DHumanEyeMatcher.kt183 val alpha: Float = Color.alpha(color) / 255f in <lambda>() constant
184 if (alpha == 1f) return color in <lambda>()
185 if (alpha == 0f) return backgroundColor in <lambda>()
187 val outRed = alpha * Color.red(color) + (1 - alpha) * Color.red(backgroundColor) in <lambda>()
188 val outGreen = alpha * Color.green(color) + (1 - alpha) * Color.green(backgroundColor) in <lambda>()
189 val outBlue = alpha * Color.blue(color) + (1 - alpha) * Color.blue(backgroundColor) in <lambda>()
/platform_testing/libraries/motion/compose/tests/src/platform/test/motion/compose/
DComposeFeatureCapturesTest.kt91 Modifier.graphicsLayer { alpha = opacity } in alpha_capturesDataPoint()
92 .motionTestValues { opacity exportAs MotionTestValues.alpha } in alpha_capturesDataPoint()
99 assertThat(ComposeFeatureCaptures.alpha.capture(semanticsNode)).hasNativeValue(0.5f) in alpha_capturesDataPoint()
106 Box(Modifier.graphicsLayer { alpha = opacity }.testTag("box")) in alpha_withoutExport_throws()
112 ComposeFeatureCaptures.alpha.capture(semanticsNode) in alpha_withoutExport_throws()
DComposeToolkitTest.kt139 Modifier.graphicsLayer { alpha = opacity } in <lambda>()
144 .motionTestValues { opacity exportAs MotionTestValues.alpha } in <lambda>()
148 feature(hasTestTag("BoxOfInterest"), ComposeFeatureCaptures.alpha) in <lambda>()
168 Modifier.graphicsLayer { alpha = opacity } in <lambda>()
173 .motionTestValues { opacity exportAs MotionTestValues.alpha } in <lambda>()
177 Modifier.graphicsLayer { alpha = 1 - opacity } in <lambda>()
183 (1f - opacity) exportAs MotionTestValues.alpha in <lambda>()
188 feature(hasTestTag("bar"), ComposeFeatureCaptures.alpha, name = "bar_alpha") in <lambda>()
189 feature(hasTestTag("foo"), ComposeFeatureCaptures.alpha, name = "foo_alpha") in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/
DWindowLayoutParams.kt40 val alpha: Float = 0f, constant in android.tools.traces.wm.WindowLayoutParams
77 if (alpha != other.alpha) return false in equals()
113 result = 31 * result + alpha.hashCode() in hashCode()
140 "windowAnimations=$windowAnimations, alpha=$alpha, " + in toString()
172 alpha: Float, in from()
204 alpha, in from()
DWindowState.kt50 override val isVisible: Boolean = windowContainer.isVisible && attributes.alpha > 0 in <lambda>()
/platform_testing/libraries/motion/src/platform/test/motion/view/
DDrawableFeatureCaptures.kt29 val alpha = FeatureCapture<Drawable, Int>("alpha") { it.alpha.asDataPoint() } in <lambda>() constant
DViewFeatureCaptures.kt34 val alpha = FeatureCapture<View, Float>("alpha") { view -> view.alpha.asDataPoint() } in view() constant
/platform_testing/libraries/motion/compose/values/src/platform/test/motion/compose/values/
DMotionTestValues.kt33 val alpha = MotionTestValueKey<Float>("alpha") constant
/platform_testing/libraries/flag-helpers/junit/src_base/android/platform/test/flag/junit/
DFlagsParameterization.java61 public boolean isDependencyMet(String alpha, String beta) { in isDependencyMet() argument
62 boolean alphaEnabled = requireNonNull(mOverrides.get(alpha), alpha + " is not defined"); in isDependencyMet()
/platform_testing/libraries/motion/compose/src/platform/test/motion/compose/
DComposeFeatureCaptures.kt57 val alpha = constant
59 it.config[MotionTestValues.alpha.semanticsPropertyKey].asDataPoint() in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/
DConditionsFactory.kt91 it.layerState.getLayerWithBuffer(component)?.color?.alpha() == 1.0f in <lambda>()
113 it.layerState.getLayerWithBuffer(ComponentNameMatcher.NAV_BAR)?.color?.alpha() == 1.0f in <lambda>()
135 it.layerState.getLayerWithBuffer(ComponentNameMatcher.TASK_BAR)?.color?.alpha() == 1.0f in <lambda>()
157 it.layerState.getLayerWithBuffer(ComponentNameMatcher.STATUS_BAR)?.color?.alpha() == in <lambda>()
253 it.layerState.getLayerWithBuffer(componentMatcher)?.color?.alpha() == 1.0f in <lambda>()
260 .any { layer -> layer.color.alpha() == 1.0f } in <lambda>()
266 layer?.color?.alpha() == 1.0f in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/view/
DViewFrameBuilder.kt51 alpha = node.alpha.toDouble(), in parseViewNode()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DThemeHelper.java183 return color1.alpha() == color2.alpha() in isSimilarColor()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/
DILayerProperties.kt135 return color.alpha() == 0f
DLayerProperties.kt49 override val isOpaque: Boolean = if (color.alpha() != 1.0f) false else _isOpaque
DLayer.kt138 if (color.alpha() == 0.0f) reasons.add("Alpha is 0")
/platform_testing/libraries/screenshot/proto/src/main/proto/
Dscreenshot_result.proto35 // Only compare pixels that have a nonzero alpha value in the reference image.
79 // alpha in the reference image. Otherwise zero.
/platform_testing/libraries/flicker/utils/src/android/tools/datatypes/
DUtils.kt32 this.red() == -1f && this.green() == -1f && this.blue() == -1f && this.alpha() == 0f in emptyColor()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/wm/
DWindowManagerStateBuilder.kt423 alpha = proto?.alpha ?: 0f, in <lambda>()