Tools: 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
By Source found:
@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
Can be found Note: If mUseRoundIcon true, then the desktop should be the prototype adapter icon, if not you can not define the value of true.mUseRoundIcon located:
frameworks / Base / Core / RES / RES // values / config.xml
<!-- Flag indicating whether round icons should be parsed from the application manifest. -->
<bool name="config_useRoundIcon">false</bool> <!--mUseRoundIcon -->