preference/src/androidTest/java/androidx/preference/PreferenceGroupInitialExpandedChildrenCountTest.java
private void createTestPreferencesCategory(PreferenceGroup preferenceGroup,
            List<Preference> preferenceList, int numPreference) {
        PreferenceCategory category = new PreferenceCategory(mContext);
        preferenceGroup.addPreference(category);
        preferenceList.add(category);
        createTestPreferences(category, preferenceList, numPreference);
    }
// add a preference category and add the number of preference to it and the cache
add a preference category and add the number of preference to it and the cache
add a preference category and add the number of preference to it and the cache
private void createTestPreferencesCategory(PreferenceGroup preferenceGroup,
            List<Preference> preferenceList, int numPreference) {
        PreferenceCategory category = new PreferenceCategory(mContext);
        preferenceGroup.addPreference(category);
        preferenceList.add(category);
        createTestPreferences(category, preferenceList, numPreference);
    }
private void createTestPreferencesCategory ( PreferenceGroup preferenceGroup , List < Preference > preferenceList , int numPreference ) { PreferenceCategory category = new PreferenceCategory ( mContext ) ; preferenceGroup . addPreference ( category ) ; preferenceList . add ( category ) ; createTestPreferences ( category , preferenceList , numPreference ) ; }
add a preference category and add the number of preference to it and the cache
add a preference category and add the number of preference to it and the cache