Searched refs:FeatureFlagPersistent (Results 1 – 3 of 3) sorted by relevance
49 FeatureFlagPersistent.getAllPersistentFlags().add(TEST_FEATURE_NAME); in setUp()55 FeatureFlagPersistent.getAllPersistentFlags().add(PERSISTENT_FALSE_NAME); in setUp()58 FeatureFlagPersistent.getAllPersistentFlags().add(PERSISTENT_TRUE_NAME); in setUp()83 assertThat(FeatureFlagPersistent.isPersistent(VOLATILE_FALSE_NAME)).isFalse(); in isPersistent_notPersistent_shouldReturnFalse()91 assertThat(FeatureFlagPersistent.isPersistent(PERSISTENT_TRUE_NAME)).isTrue(); in isPersistent_persistent_shouldReturnTrue()99 assertThat(FeatureFlagPersistent.isEnabled(mContext, PERSISTENT_TRUE_NAME)).isTrue(); in isEnabled_enabled_shouldReturnTrue()107 assertThat(FeatureFlagPersistent.isEnabled(mContext, PERSISTENT_FALSE_NAME)).isFalse(); in isEnabled_disabled_shouldReturnFalse()118 assertThat(FeatureFlagPersistent.isEnabled(mContext, TEST_FEATURE_NAME)).isTrue(); in isEnabled_sysPropEnabled_shouldReturnTrue()129 assertThat(FeatureFlagPersistent.isEnabled(mContext, TEST_FEATURE_NAME)).isFalse(); in isEnabled_sysPropDisabled_shouldReturnFalse()139 FeatureFlagPersistent.setEnabled(mContext, TEST_FEATURE_NAME, true); in setEnabled_sysPropTrue_shouldSetValues()[all …]
34 mIsPersistent = FeatureFlagPersistent.isPersistent(key); in FeatureFlagPreference()37 isFeatureEnabled = FeatureFlagPersistent.isEnabled(context, key); in FeatureFlagPreference()48 FeatureFlagPersistent.setEnabled(getContext(), mKey, isChecked); in setChecked()
33 public class FeatureFlagPersistent { class