Let SuggestionFeatureProvider manage SuggestionService name

Bug: 65065268
Test: robotests
Change-Id: I82315a7b1565dc34b516bf685ad8e831a1e28591
This commit is contained in:
Fan Zhang
2017-09-21 18:21:44 -07:00
parent ab74ca143a
commit 6598a7b4cd
5 changed files with 28 additions and 5 deletions

View File

@@ -32,6 +32,7 @@ public interface SuggestionFeatureProvider {
/**
* Whether or not the whole suggestion feature is enabled.
*
* @deprecated in favor of {@link #isSuggestionV2Enabled(Context)}
*/
@Deprecated
@@ -42,6 +43,11 @@ public interface SuggestionFeatureProvider {
*/
boolean isSuggestionV2Enabled(Context context);
/**
* Returns the component name for SuggestionService.
*/
ComponentName getSuggestionServiceComponent();
/**
* Returns true if smart suggestion should be used instead of xml based SuggestionParser.
*/