工具: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 to be defined.
if mUseRoundIcon is defined, then should be false
通过注解可以发现:如果mUseRoundIcon为true,那么桌面应该是原型适配图标,如果不是则不能定义这个为true.mUseRoundIcon的值位于:
frameworks/base/core/res/res//values/config.xml
false