preference/src/androidTest/java/androidx/preference/PreferenceGroupInitialExpandedChildrenCountTest.java
private void createTestPreferences(PreferenceGroup preferenceGroup,
            List<Preference> preferenceList, int numPreference) {
        for (int i = 0; i < numPreference; i++) {
            final Preference preference = new Preference(mContext);
            preference.setTitle(PREFERENCE_TITLE_PREFIX + i);
            preferenceGroup.addPreference(preference);
            preferenceList.add(preference);
        }
    }
// create the number of preference in the corresponding preference group and add it to the cache
create the number of preference in the corresponding preference group and add it to the cache
create the number of preference in the corresponding preference group and add it to the cache
private void createTestPreferences(PreferenceGroup preferenceGroup,
            List<Preference> preferenceList, int numPreference) {
        for (int i = 0; i < numPreference; i++) {
            final Preference preference = new Preference(mContext);
            preference.setTitle(PREFERENCE_TITLE_PREFIX + i);
            preferenceGroup.addPreference(preference);
            preferenceList.add(preference);
        }
    }
private void createTestPreferences ( PreferenceGroup preferenceGroup , List < Preference > preferenceList , int numPreference ) { for ( int i = 0 ; i < numPreference ; i ++ ) { final Preference preference = new Preference ( mContext ) ; preference . setTitle ( PREFERENCE_TITLE_PREFIX + i ) ; preferenceGroup . addPreference ( preference ) ; preferenceList . add ( preference ) ; } }
create the number of preference in the corresponding preference group and add it to the cache
create the number of preference in the corresponding preference group and add it to the cache