问题分析(Analysis)
Case Logic:
1、The case is draw the fading bounds on the testing rect.
2、Get the fading bounds, calculate the color to check whether fading bounds works.
addlayout(R.layout.frame_layout, (ViewInitializer) view -> {
final FadingView child = attachFadingView(view);
child.mEnableFadingTopEdge = true; child.setFadingEdgeLength(TEST_HEIGHT / 2);
child.setVerticalFadingEdgeEnabled(true);Assert.assertEquals(0, child.getSolidColor());
}).runWithVerifier(new SamplePointVerifier(new Point[] {
new Point(0, 0),new Point(0, TEST_HEIGHT / 4),
new Point(0, TEST_HEIGHT / 2),new Point(0, TEST_HEIGHT - 1)
}, new int[] {
Color.WHITE,0xFFFF8080, // gradient halfway between red and white
Color.RED,Color.RED,
}, 20)); // Tolerance set to account for interpolation
问题分析(Analysis)
Fail Reason:
Fading bounds shows black not white, the color is not expected.
结论(Conclusion)
结果
谷歌反馈
信息
谷歌确认此弃权
N/A
N/A
N/A
结果
详情(如果结果是YES)
使用来自 Partner Android Build (PAB) dashboard 的最新 CTS/GSI/VT S dev builds,来验证失败的测试,测试失败不再发生。
YES
Test Date:
2020 Sep 1
Test Case:
android.uirendering.cts.testclasses.ViewFadingEdgeTests#testCreateTop
Fade
CTS/VTS/CTS-On-GSI dev Build Number:
build#6801849
Build Created date:
2020 Aug 31
Pac Fingerprint: UNISOC/sp9832e_1h10_gofu/sp9832e_1h10_go:11/RP1A.201005.001
/35526:user/release-keys