工具:CTS 9.0_R7
patch:2019-04-01
CtsGraphicsTestCases
android.graphics.drawable.cts.AdaptiveIconMaskTest#testDeviceConfig_iconMask_useRoundIcon
fail:java.lang.AssertionError: expected: rue but was: false
通过源码发现:
@Test
public void testDeviceConfig_iconMask_useRoundIcon() {
assertNotNull(mMask);
boolean circleMask = isCircle(mMask);
// If mask shape is circle, then mUseRoundIcon should be defined and should be true.
// If mask shape is not a circle
// mUseRoundIcon doesn't have to be defined.
// if mUseRoundIcon is defined, then should be false
assertEquals(mUseRoundIcon, circleMask);
}
If mask shape is circle, then mUseRoundIcon should be defined and should be true.
If mask shape is not a circle
mUseRoundIcon doesn’t have t