Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9214ba39 authored by TYM Tsai's avatar TYM Tsai
Browse files

Fix the SettingsProviderMultiUsersTest flakiness

The ACCESSIBILITY_ENABLED setting appears to be monitored and it may
be possible to reset it. So change to use CONTENT_CAPTURE_ENABLED
setting.

Bug: 349572209
Flag: EXEMPT only test
Test: atest SettingsProviderTest:com.android.providers.settings.SettingsProviderMultiUsersTest#testSettings_profile_cloneToManagedProfile --iterations 50
Change-Id: Ic47c466951ba1ee0174cf2d7bd7375d20a6a84cb
parent 91f651e5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@

package com.android.providers.settings;

import static android.provider.Settings.Secure.ACCESSIBILITY_ENABLED;
import static android.provider.Settings.Secure.CONTENT_CAPTURE_ENABLED;
import static android.provider.Settings.Secure.SYNC_PARENT_SOUNDS;
import static android.provider.Settings.System.RINGTONE;

@@ -67,7 +67,7 @@ public class SettingsProviderMultiUsersTest {
    private static final String SPACE_SYSTEM = "system";
    private static final String SPACE_SECURE = "secure";

    private static final String CLONE_TO_MANAGED_PROFILE_SETTING = ACCESSIBILITY_ENABLED;
    private static final String CLONE_TO_MANAGED_PROFILE_SETTING = CONTENT_CAPTURE_ENABLED;
    private static final String CLONE_FROM_PARENT_SETTINGS = RINGTONE;
    private static final String SYNC_FROM_PARENT_SETTINGS = SYNC_PARENT_SOUNDS;