Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
I encountered an issue where the expected value and actual value of CtsAppSafeHostTestCases test cases do not match.
After investigation, it was found that the reason was due to the setting of accessibility-capting-window_color in CtsAccessibilityTestCases. After testing CtsAccessibilityTestCases, the setting of accessibility-capting-window_color was not returned.
Can we return the settings for accessibility_capting_findow_color after completing CtsAccessibilityTestCases testing?
I followed the following method, and after deleting the setting of accessibility_captationing-window_color after testing CtsAppSecurHostTestCases, the CtsAppSecurHostTestCases test can pass.
diff --git a/tests/accessibility/src/android/view/accessibility/cts/CaptioningManagerTest.java b/tests/accessibility/src/android/view/accessibility/cts/CaptioningManagerTest.java
index 89bc47c3..d85939be 100644
=---a/tests/accessibility/src/android/view/accessibility/cts/CaptioningManagerTest.java
=+++b/tests/accessibility/src/android/view/accessibility/cts/CaptioningManagerTest.java
@@ -158,6 +158,8 @@ public class CaptioningManagerTest {
assertFalse("Default user style has no background color", userStyle.hasBackgroundColor());
assertFalse("Default user style has no window color", userStyle.hasWindowColor());
assertNull("Default user style has no typeface", userStyle.getTypeface());
+
+ deleteSecureSetting("accessibility_captioning_window_color");
}
Before and after modifying CtsAppSecurHostTestCases, the running CtsAppSecurHostTestCases and the cts log information of CtsAppSecurHostTestCases are sent along with the attachment.