Loading res/layout/content_protection_preference_fragment.xml +1 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" xmlns:settings="http://schemas.android.com/apk/res-auto" android:key="content_protection_preference_subpage" android:title="@string/content_protection_preference_title"> <com.android.settingslib.widget.TopIntroPreference Loading tests/robotests/src/com/android/settings/security/ContentProtectionPreferenceFragmentTest.java +7 −1 Original line number Diff line number Diff line Loading @@ -113,8 +113,14 @@ public class ContentProtectionPreferenceFragmentTest { final List<String> allKeys = XmlTestUtils.getKeysFromPreferenceXml( mContext, R.layout.content_protection_preference_fragment); final List<String> nonIndexableKeysExpected = List.of( "content_protection_preference_top_intro", "content_protection_preference_subpage_illustration", "content_protection_preference_user_consent_work_profile_switch"); assertThat(allKeys).containsAtLeastElementsIn(nonIndexableKeys); assertThat(nonIndexableKeys).isEqualTo(nonIndexableKeysExpected); } @Test Loading @@ -132,7 +138,7 @@ public class ContentProtectionPreferenceFragmentTest { XmlTestUtils.getKeysFromPreferenceXml( mContext, R.layout.content_protection_preference_fragment); assertThat(nonIndexableKeys).containsAnyIn(allKeys); assertThat(nonIndexableKeys).isEqualTo(allKeys); } @Test Loading Loading
res/layout/content_protection_preference_fragment.xml +1 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" xmlns:settings="http://schemas.android.com/apk/res-auto" android:key="content_protection_preference_subpage" android:title="@string/content_protection_preference_title"> <com.android.settingslib.widget.TopIntroPreference Loading
tests/robotests/src/com/android/settings/security/ContentProtectionPreferenceFragmentTest.java +7 −1 Original line number Diff line number Diff line Loading @@ -113,8 +113,14 @@ public class ContentProtectionPreferenceFragmentTest { final List<String> allKeys = XmlTestUtils.getKeysFromPreferenceXml( mContext, R.layout.content_protection_preference_fragment); final List<String> nonIndexableKeysExpected = List.of( "content_protection_preference_top_intro", "content_protection_preference_subpage_illustration", "content_protection_preference_user_consent_work_profile_switch"); assertThat(allKeys).containsAtLeastElementsIn(nonIndexableKeys); assertThat(nonIndexableKeys).isEqualTo(nonIndexableKeysExpected); } @Test Loading @@ -132,7 +138,7 @@ public class ContentProtectionPreferenceFragmentTest { XmlTestUtils.getKeysFromPreferenceXml( mContext, R.layout.content_protection_preference_fragment); assertThat(nonIndexableKeys).containsAnyIn(allKeys); assertThat(nonIndexableKeys).isEqualTo(allKeys); } @Test Loading