@Test public void testPreferencesName() { final String name = SharedPreferencesPolicies.preferencesName(context, ":test_preferences"); assertThat(name, is(context.getPackageName() + ":test_preferences")); }
@NonNull public static String preferencesName(@NonNull final Context context, @NonNull final String nameSuffix) { return context.getPackageName() + nameSuffix; }
SharedPreferencesPolicies { @NonNull public static String preferencesName(@NonNull final Context context, @NonNull final String nameSuffix) { return context.getPackageName() + nameSuffix; } }
SharedPreferencesPolicies { @NonNull public static String preferencesName(@NonNull final Context context, @NonNull final String nameSuffix) { return context.getPackageName() + nameSuffix; } private  SharedPreferencesPolicies(); }
SharedPreferencesPolicies { @NonNull public static String preferencesName(@NonNull final Context context, @NonNull final String nameSuffix) { return context.getPackageName() + nameSuffix; } private  SharedPreferencesPolicies(); @NonNull static String defaultPreferencesName(@NonNull final Context context); @NonNull static String preferencesName(@NonNull final Context context, @NonNull final String nameSuffix); }
SharedPreferencesPolicies { @NonNull public static String preferencesName(@NonNull final Context context, @NonNull final String nameSuffix) { return context.getPackageName() + nameSuffix; } private  SharedPreferencesPolicies(); @NonNull static String defaultPreferencesName(@NonNull final Context context); @NonNull static String preferencesName(@NonNull final Context context, @NonNull final String nameSuffix); static final String DEFAULT_PREFERENCES_NAME_SUFFIX; static final int MODE_PRIVATE; static final int MODE_APPEND; }