Add SuggestionFeatureProvider interface.

The interface is added so that a vendor can add new suggestions to the
settings app, and customize details for these suggestions.

Test: make RunSettingsRoboTests

BUG: 34219298

Change-Id: I373c63709b1aaf68360aa2561a2ecfc3194e0e2b
This commit is contained in:
Stefanot
2017-01-13 14:58:41 +00:00
parent e51972868c
commit 2eac39b393
5 changed files with 86 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ import android.text.TextUtils;
import android.util.Log;
import com.android.settings.R;
import com.android.settings.dashboard.SuggestionFeatureProvider;
import com.android.settings.fuelgauge.PowerUsageFeatureProvider;
/**
@@ -60,6 +61,8 @@ public abstract class FeatureFactory {
return sFactory;
}
public abstract SuggestionFeatureProvider getSuggestionFeatureProvider();
public abstract SupportFeatureProvider getSupportFeatureProvider(Context context);
public abstract PowerUsageFeatureProvider getPowerUsageFeatureProvider(Context context);