Extending SearchFeatureProvider API to provide timeout
Bug: 38197948 Test: RunSettingsRoboTests Change-Id: I5b04085ba93061dafe8977b42ebe5092bc9a9d09
This commit is contained in:
@@ -137,6 +137,13 @@ public interface SearchFeatureProvider {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return smart ranking timeout in milliseconds.
|
||||
*/
|
||||
default long smartSearchRankingTimeoutMs(Context context) {
|
||||
return 300L;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepare for search ranking predictions to avoid latency on the first prediction call.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user