Enable suggestion v2 experiment
Bug: 68662574 Test: robotests Change-Id: Ib8aeef45ebe1260e9c8699e231db37840a0ce3db
This commit is contained in:
@@ -92,7 +92,7 @@ public class SuggestionFeatureProviderImpl implements SuggestionFeatureProvider
|
||||
}
|
||||
|
||||
private static boolean isV2Enabled() {
|
||||
return FeatureFlagUtils.isEnabled(FEATURE_FLAG_SUGGESTIONS_V2);
|
||||
return FeatureFlagUtils.isEnabled(FEATURE_FLAG_SUGGESTIONS_V2) || true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -132,13 +132,6 @@ public class SuggestionFeatureProviderImplTest {
|
||||
assertThat(mProvider.isSuggestionEnabled(mContext)).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isSuggestionEnabled_isNotLowMemoryDevice_shouldReturnTrue() {
|
||||
when(mActivityManager.isLowRamDevice()).thenReturn(false);
|
||||
|
||||
assertThat(mProvider.isSuggestionEnabled(mContext)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isSuggestionV2Enabled_isNotLowMemoryDevice_sysPropOn_shouldReturnTrue() {
|
||||
when(mActivityManager.isLowRamDevice()).thenReturn(false);
|
||||
@@ -147,14 +140,6 @@ public class SuggestionFeatureProviderImplTest {
|
||||
assertThat(mProvider.isSuggestionV2Enabled(mContext)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isSuggestionV2Enabled_isNotLowMemoryDevice_sysPropOff_shouldReturnTrue() {
|
||||
when(mActivityManager.isLowRamDevice()).thenReturn(false);
|
||||
SettingsShadowSystemProperties.set(
|
||||
FeatureFlagUtils.FFLAG_PREFIX + mProvider.FEATURE_FLAG_SUGGESTIONS_V2, "false");
|
||||
assertThat(mProvider.isSuggestionV2Enabled(mContext)).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void dismissSuggestion_noParserOrSuggestion_noop() {
|
||||
mProvider.dismissSuggestion(mContext, null, (Tile) null);
|
||||
|
Reference in New Issue
Block a user